/* ========================================
   Casino Loft - Loft Style Design
   Green Theme with Dollar Accent
   ======================================== */

/* CSS Variables - Light Theme (Default) */
:root {
    /* Colors - Green Theme */
    --primary-green: #22C55E;
    --primary-green-dark: #16A34A;
    --primary-green-light: #4ADE80;
    --accent-dollar: #FBBF24;
    --accent-dollar-dark: #F59E0B;
    
    /* Backgrounds - Light Theme */
    --bg-primary: #FFFFFF;
    --bg-secondary: #F9FAFB;
    --bg-card: #FFFFFF;
    --bg-hover: #F3F4F6;
    --bg-overlay: rgba(0, 0, 0, 0.5);
    
    /* Text - Light Theme */
    --text-primary: #111827;
    --text-secondary: #4B5563;
    --text-muted: #6B7280;
    --text-inverse: #FFFFFF;
    
    /* Borders */
    --border: #E5E7EB;
    --border-light: #F3F4F6;
    --border-dark: #D1D5DB;
    
    /* Shadows */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px rgba(0, 0, 0, 0.15);
    --shadow-green: 0 4px 14px rgba(34, 197, 94, 0.25);
    
    /* Gradients */
    --gradient-green: linear-gradient(135deg, #22C55E 0%, #16A34A 100%);
    --gradient-dollar: linear-gradient(135deg, #FBBF24 0%, #F59E0B 100%);
    --gradient-loft: linear-gradient(135deg, #22C55E 0%, #10B981 50%, #059669 100%);
    
    /* Sizes */
    --header-height: 80px;
    --border-radius: 12px;
    --border-radius-lg: 20px;
    --border-radius-xl: 28px;
    
    /* Transitions */
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-fast: all 0.15s ease;
}

/* Dark Theme */
[data-theme="dark"] {
    --bg-primary: #0F172A;
    --bg-secondary: #1E293B;
    --bg-card: #1E293B;
    --bg-hover: #334155;
    --bg-overlay: rgba(0, 0, 0, 0.8);
    
    --text-primary: #F1F5F9;
    --text-secondary: #CBD5E1;
    --text-muted: #94A3B8;
    --text-inverse: #111827;
    
    --border: #334155;
    --border-light: #1E293B;
    --border-dark: #475569;
    
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.5);
    --shadow-xl: 0 20px 25px rgba(0, 0, 0, 0.6);
    --shadow-green: 0 4px 14px rgba(34, 197, 94, 0.3);
}

/* ========================================
   Reset & Base
   ======================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: 'Noto Sans Armenian', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    transition: background-color 0.3s ease, color 0.3s ease;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Noto Sans Armenian', 'Inter', sans-serif;
    font-weight: 700;
    line-height: 1.2;
    color: var(--text-primary);
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-fast);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ========================================
   Theme Toggle
   ======================================== */
.theme-toggle {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--gradient-green);
    border: none;
    color: white;
    font-size: 20px;
    cursor: pointer;
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.theme-toggle:hover {
    transform: scale(1.1);
    box-shadow: var(--shadow-xl);
}

/* Theme Toggle - Desktop and Mobile */
.theme-toggle-desktop {
    display: flex;
}

.theme-toggle-mobile {
    display: none;
}

/* Mobile: Hide desktop toggle, show mobile toggle in header */
@media (max-width: 968px) {
    .theme-toggle-desktop {
        display: none;
    }
    
    .theme-toggle-mobile {
        display: flex;
        position: static;
        width: 45px;
        height: 45px;
        font-size: 18px;
        margin: 0;
    }
    
    .header-right {
        gap: 12px;
    }
    
    .btn-play-now {
        padding: 10px 16px;
        font-size: 14px;
    }
}

/* ========================================
   Header - Loft Style
   ======================================== */
.main-header {
    position: sticky;
    top: 0;
    z-index: 999;
    background: var(--bg-card);
    border-bottom: 2px solid var(--border);
    box-shadow: var(--shadow-md);
    backdrop-filter: blur(10px);
}

.header-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 24px;
    height: var(--header-height);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 20px;
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--text-primary);
    border-radius: 3px;
    transition: var(--transition);
}

.logo-link {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 800;
    font-size: 24px;
    color: var(--text-primary);
}

.logo-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-icon {
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-dollar);
    color: white;
    border-radius: var(--border-radius);
    font-size: 28px;
    font-weight: 900;
    box-shadow: var(--shadow-green);
}

.logo-text {
    font-family: 'Noto Sans Armenian', sans-serif;
    font-weight: 800;
    background: var(--gradient-green);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
    justify-content: center;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    border-radius: var(--border-radius);
    color: var(--text-secondary);
    font-weight: 500;
    transition: var(--transition);
    position: relative;
}

.nav-link:hover {
    color: var(--primary-green);
    background: var(--bg-hover);
}

.nav-link.active {
    color: var(--primary-green);
    background: rgba(34, 197, 94, 0.1);
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    height: 3px;
    background: var(--gradient-green);
    border-radius: 3px 3px 0 0;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

.btn-play-now {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: var(--gradient-green);
    color: white;
    border-radius: var(--border-radius);
    font-weight: 600;
    box-shadow: var(--shadow-green);
    transition: var(--transition);
}

.btn-play-now:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-xl);
}

/* Mobile Menu */
.mobile-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: var(--bg-overlay);
    z-index: 998;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.mobile-overlay.active {
    display: block;
    opacity: 1;
}

@media (max-width: 968px) {
    .mobile-menu-toggle {
        display: flex;
    }
    
    .main-nav {
        position: fixed;
        top: var(--header-height);
        left: -100%;
        width: 280px;
        height: calc(100vh - var(--header-height));
        background: var(--bg-card);
        flex-direction: column;
        align-items: stretch;
        padding: 24px;
        box-shadow: var(--shadow-xl);
        transition: left 0.3s ease;
        z-index: 999;
    }
    
    .main-nav.active {
        left: 0;
    }
    
    .nav-link {
        width: 100%;
        justify-content: flex-start;
    }
    
    .nav-link.active::after {
        display: none;
    }
}

/* ========================================
   Main Content
   ======================================== */
.main-content {
    min-height: calc(100vh - var(--header-height) - 200px);
    padding: 40px 0;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ========================================
   Buttons
   ======================================== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: var(--border-radius);
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    font-size: 16px;
}

.btn-primary {
    background: var(--gradient-green);
    color: white;
    box-shadow: var(--shadow-green);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-xl);
}

.btn-secondary {
    background: var(--bg-card);
    color: var(--text-primary);
    border: 2px solid var(--border);
}

.btn-secondary:hover {
    background: var(--bg-hover);
    border-color: var(--primary-green);
}

.btn-dollar {
    background: var(--gradient-dollar);
    color: white;
    box-shadow: 0 4px 14px rgba(251, 191, 36, 0.3);
}

.btn-dollar:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(251, 191, 36, 0.4);
}

/* ========================================
   Cards - Loft Style
   ======================================== */
.card {
    background: var(--bg-card);
    border: 2px solid var(--border);
    border-radius: var(--border-radius-lg);
    padding: 24px;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}

.card:hover {
    border-color: var(--primary-green);
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}

.card-header {
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 2px solid var(--border);
}

.card-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.card-body {
    color: var(--text-secondary);
}

/* ========================================
   Casino Cards
   ======================================== */
.casinos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 24px;
    margin-top: 32px;
}

.casino-card {
    background: var(--bg-card);
    border: 2px solid var(--border);
    border-radius: var(--border-radius-lg);
    padding: 24px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.casino-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-green);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.casino-card:hover::before {
    transform: scaleX(1);
}

.casino-card:hover {
    border-color: var(--primary-green);
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}

.casino-rank {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    background: var(--gradient-dollar);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 18px;
    box-shadow: var(--shadow-md);
}

.casino-logo-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 120px;
    margin-bottom: 20px;
    padding: 16px;
    background: var(--bg-secondary);
    border-radius: var(--border-radius);
}

.casino-logo {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.casino-name {
    font-size: 22px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 12px;
    text-align: center;
}

.casino-rating {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 16px;
}

.rating-display {
    display: flex;
    align-items: baseline;
    gap: 4px;
}

.rating-number {
    font-size: 32px;
    font-weight: 800;
    color: var(--primary-green);
}

.rating-max {
    font-size: 18px;
    color: var(--text-muted);
}

.rating-text {
    font-size: 14px;
    color: var(--text-secondary);
    font-weight: 500;
}

.casino-bonus {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px;
    background: rgba(251, 191, 36, 0.1);
    border: 2px solid rgba(251, 191, 36, 0.3);
    border-radius: var(--border-radius);
    margin-bottom: 16px;
    color: var(--accent-dollar-dark);
    font-weight: 600;
}

.casino-features {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 20px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: var(--text-secondary);
}

.feature-item i {
    color: var(--primary-green);
}

.casino-actions {
    display: flex;
    gap: 12px;
}

.casino-actions .btn {
    flex: 1;
    justify-content: center;
}

/* ========================================
   Hero Section
   ======================================== */
.hero-section {
    position: relative;
    padding: 80px 0;
    background: var(--bg-secondary);
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(34, 197, 94, 0.1) 0%, transparent 70%);
    border-radius: 50%;
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: var(--gradient-dollar);
    color: white;
    border-radius: 50px;
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 24px;
    box-shadow: var(--shadow-md);
}

.hero-title {
    font-size: 56px;
    font-weight: 900;
    margin-bottom: 24px;
    line-height: 1.1;
}

.hero-title .dollar-accent {
    color: var(--accent-dollar-dark);
    font-size: 64px;
}

.hero-title .green-accent {
    background: var(--gradient-green);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-description {
    font-size: 20px;
    color: var(--text-secondary);
    margin-bottom: 40px;
    line-height: 1.6;
}

.hero-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ========================================
   Sections
   ======================================== */
.section {
    padding: 80px 0;
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 48px;
}

.section-title {
    font-size: 42px;
    font-weight: 800;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.section-subtitle {
    font-size: 18px;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ========================================
   Footer - Loft Style
   ======================================== */
.main-footer {
    background: var(--bg-secondary);
    border-top: 2px solid var(--border);
    padding: 60px 0 24px;
    margin-top: 80px;
}

.footer-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 24px;
}

.footer-top {
    display: grid;
    grid-template-columns: 1.5fr 2fr;
    gap: 60px;
    margin-bottom: 40px;
}

.footer-brand {
    max-width: 400px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    font-size: 24px;
    font-weight: 800;
}

.footer-tagline {
    color: var(--text-secondary);
    line-height: 1.6;
}

.footer-links-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.footer-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--text-primary);
}

.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links a {
    color: var(--text-secondary);
    transition: var(--transition-fast);
}

.footer-links a:hover {
    color: var(--primary-green);
    padding-left: 4px;
}

.footer-bottom {
    padding-top: 40px;
    border-top: 2px solid var(--border);
    display: flex;
    flex-direction: column;
    gap: 24px;
    align-items: center;
}

.footer-badges {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
    justify-content: center;
}

.badge-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: var(--bg-card);
    border: 2px solid var(--border);
    border-radius: var(--border-radius);
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 500;
}

.badge-item i {
    color: var(--primary-green);
}

.footer-copyright {
    text-align: center;
}

.footer-copyright p {
    color: var(--text-secondary);
    font-size: 14px;
    margin-bottom: 8px;
}

.disclaimer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 12px;
    color: var(--text-muted);
}

.disclaimer i {
    color: var(--accent-dollar-dark);
}

@media (max-width: 968px) {
    .footer-top {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .footer-links-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }
}

/* ========================================
   Responsive
   ======================================== */
@media (max-width: 768px) {
    .hero-title {
        font-size: 36px;
    }
    
    .hero-title .dollar-accent {
        font-size: 44px;
    }
    
    .section-title {
        font-size: 32px;
    }
    
    .casinos-grid {
        grid-template-columns: 1fr;
    }
    
    .header-container {
        padding: 0 16px;
    }
    
    .logo-text {
        font-size: 20px;
    }
    
    .btn-play-now span {
        display: none;
    }
    
    .hero-actions {
        flex-direction: column;
        width: 100%;
    }
    
    .hero-actions .btn {
        width: 100%;
    }
}

/* ========================================
   Utilities
   ======================================== */
.text-center {
    text-align: center;
}

.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mt-4 { margin-top: 32px; }

.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }
.mb-4 { margin-bottom: 32px; }

