@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

:root {
    /* Luxury Casino Color Palette - Deep Royal Theme */
    --bg-main: #0d0216;
    --bg-elevated: #160425;
    --bg-panel: #1e0633;
    --bg-soft: #2a0848;
    --surface: #2d0a4e;
    --surface-2: #360c5c;
    
    /* Lines & Borders */
    --line: rgba(212, 175, 55, 0.15);
    --line-strong: rgba(212, 175, 55, 0.35);
    
    /* Text Palette */
    --text-main: #ffffff;
    --text-muted: #b8a8c9;
    --text-dark: #0d0216;
    
    /* Luxury Gold & Royal Accents */
    --accent: #d4af37;          /* Royal Gold */
    --accent-glow: rgba(212, 175, 55, 0.4);
    --accent-2: #c41e3a;        /* Royal Red */
    --accent-3: #9d4edd;        /* Royal Purple */
    --accent-4: #ffd700;        /* Bright Gold */
    
    /* Fonts - Simplified to Inter for better readability */
    --font-main: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    --font-heading: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    --font-alt: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    
    /* Depth & Shadows */
    --shadow-lg: 0 20px 40px rgba(0, 0, 0, 0.5);
    --shadow-md: 0 12px 24px rgba(0, 0, 0, 0.35);
    --shadow-sm: 0 4px 10px rgba(0, 0, 0, 0.25);
    --shadow-glow: 0 0 30px var(--accent-glow);
    
    /* Layout Constants */
    --radius-sm: 6px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-xl: 40px;
    --container: 1200px;
    --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    color: var(--text-main);
    background: var(--bg-main);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    padding-top: 108px;
    background-image: 
        radial-gradient(ellipse at 20% 0%, rgba(157, 78, 221, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 100%, rgba(196, 30, 58, 0.1) 0%, transparent 50%);
}

@media (max-width: 992px) {
    body {
        padding-top: 116px; /* Mobile header height (Two rows) */
    }
}

body.no-scroll {
    overflow: hidden;
}

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

ul {
    list-style: none;
}

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

.container {
    width: min(calc(100% - 40px), var(--container));
    margin: 0 auto;
}

.section {
    padding: 80px 0;
    width: 100%;
}

@media (max-width: 768px) {
    .section {
        padding: 40px 0;
    }
}

::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #0b100d;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--accent), var(--accent-3));
    border-radius: 999px;
    border: 2px solid var(--bg-main);
}

.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 9999;
    background: rgba(13, 2, 22, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--line);
}

.main-header.scrolled {
    box-shadow: var(--shadow-md);
}

/* Top row: logo + auth */
.header-top {
    border-bottom: 1px solid var(--line);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    width: min(calc(100% - 32px), var(--container));
    margin: 0 auto;
    padding: 10px 0;
}

.logo img {
    height: 42px;
    width: auto;
    filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.15));
}

/* Header auth — two buttons */
.header-auth {
    display: flex;
    align-items: center;
    gap: 10px;
}

.header-auth .btn-login {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-height: 38px;
    padding: 0 22px;
    border-radius: 50px;
    border: 1.5px solid var(--line-strong);
    background: transparent;
    color: var(--accent);
    font-weight: 600;
    font-size: 0.85rem;
    transition: var(--transition);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.header-auth .btn-login:hover {
    background: var(--surface);
    border-color: var(--accent);
    color: var(--text-main);
}

.header-auth .btn-register {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-height: 38px;
    padding: 0 22px;
    border-radius: 50px;
    background: linear-gradient(135deg, var(--accent) 0%, #b8941d 100%);
    color: var(--text-dark);
    font-weight: 700;
    font-size: 0.85rem;
    transition: var(--transition);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
}

.header-auth .btn-register:hover {
    background: linear-gradient(135deg, #e4c360 0%, var(--accent) 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(212, 175, 55, 0.4);
}

/* Desktop nav row */
.desktop-nav {
    display: block;
    background: var(--bg-elevated);
    border-bottom: 1px solid var(--line);
}

.desktop-nav ul {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 4px;
    width: min(calc(100% - 32px), var(--container));
    margin: 0 auto;
    padding: 6px 0;
}

.desktop-nav a {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 6px 14px;
    border-radius: var(--radius-sm);
    color: var(--text-muted);
    font-size: 0.88rem;
    font-weight: 500;
    transition: var(--transition);
}

.desktop-nav a:hover,
.desktop-nav a:focus-visible {
    color: var(--accent);
    background: var(--bg-soft);
}

/* Mobile nav strip */
.mobile-nav-strip {
    display: none;
    background: var(--bg-elevated);
    border-bottom: 1px solid var(--line);
}

.mobile-nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: min(calc(100% - 24px), var(--container));
    margin: 0 auto;
    padding: 8px 0;
}

.menu-label {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text-muted);
}

/* Mobile menu toggle (hamburger) */
.mobile-menu-toggle {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 38px;
    height: 38px;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: var(--bg-soft);
    cursor: pointer;
    gap: 4px;
}

.mobile-menu-toggle span {
    display: block;
    width: 18px;
    height: 2px;
    background: var(--text-main);
    transition: var(--transition);
}

/* Nav list (mobile dropdown) */
.nav-list {
    display: none;
    position: fixed;
    top: 116px; /* Exactly below the mobile nav strip */
    left: 16px;
    right: 16px;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    background: var(--bg-panel);
    box-shadow: var(--shadow-lg);
    z-index: 10000; /* Higher than fixed header */
}

.nav-list.active {
    display: block;
}

.nav-list ul {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
}

.nav-list a {
    display: flex;
    justify-content: center;
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    background: var(--bg-soft);
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 500;
}

.nav-list a:hover {
    color: var(--accent);
}


footer {
    margin-top: 80px;
    padding: 60px 0 30px;
    border-top: 1px solid var(--line);
    background: linear-gradient(180deg, var(--bg-elevated) 0%, var(--bg-main) 100%);
}

.footer-top {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 32px;
    padding: 32px;
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    background: var(--bg-panel);
    box-shadow: var(--shadow-md);
}

.footer-nav h4,
.footer-contact h4 {
    margin-bottom: 16px;
    font-family: var(--font-main);
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-main);
}

.footer-nav ul,
.footer-contact ul {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-nav a,
.footer-contact p,
.footer-contact li,
.footer-brand p {
    color: var(--text-muted);
}

.footer-nav a:hover,
.footer-links a:hover {
    color: var(--accent);
    padding-left: 5px;
    text-decoration: none;
}

.contact-list li {
    display: flex;
    align-items: center;
    gap: 12px;
}

.contact-list li span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: var(--radius-sm);
    background: var(--bg-soft);
    color: var(--accent);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    margin-top: 24px;
    padding: 0 8px;
    color: var(--text-muted);
    font-size: 0.92rem;
}

.footer-links {
    display: flex;
    gap: 18px;
}

.footer-links a {
    color: var(--accent);
    font-weight: 700;
}

.ad-container {
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: var(--bg-panel);
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    width: 100%;
    margin: 1rem 0;
}

.ad-container:hover {
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.15);
    border-color: rgba(59, 130, 246, 0.3);
}

.ad-container img {
    width: 100%;
    height: auto;
    object-fit: cover;
    display: block;
    min-height: 80px;
    max-height: 200px;
}

@media (max-width: 768px) {
    .ad-container img {
        min-height: 60px;
        object-fit: contain; /* Prevents text cutoff on extreme mobile views */
        background: #000;
    }
}

/* --- Unified Section Headers --- */
.section-header {
    margin-bottom: 3.5rem;
    position: relative;
}

.section-prefix {
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.25em;
    color: var(--accent);
    text-transform: uppercase;
    margin-bottom: 0.75rem;
    font-family: var(--font-main);
}

.section-title {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 5vw, 3.2rem);
    font-weight: 700;
    color: #ffffff;
    line-height: 1.2;
    margin-bottom: 16px;
    letter-spacing: -0.02em;
}

.section-title-alt {
    background: linear-gradient(90deg, #fff 0%, #a0a0a0 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* --- Grids & Layouts --- */
.modern-grid,
.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

@media (max-width: 1200px) {
    .container {
        width: min(calc(100% - 40px), var(--container));
    }
    
    .modern-grid,
    .news-grid {
        gap: 20px;
    }
}

@media (max-width: 992px) {
    .footer-top {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }
    
    .footer-brand {
        grid-column: span 2;
        text-align: center;
    }
    
    .footer-brand .footer-desc {
        margin: 0 auto;
    }

    .modern-grid,
    .news-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .header-container {
        padding: 8px 0;
    }

    .logo img {
        height: 34px;
    }

    .header-auth .btn-login,
    .header-auth .btn-register {
        min-height: 32px;
        padding: 0 14px;
        font-size: 0.75rem;
    }

    .footer-top {
        grid-template-columns: 1fr;
        padding: 30px 20px;
    }
    
    .footer-brand {
        grid-column: span 1;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }

    .modern-grid,
    .news-grid {
        grid-template-columns: 1fr !important;
    }

    .section-title {
        font-size: 2.2rem;
    }
}

@media (max-width: 480px) {
    .container {
        width: min(calc(100% - 24px), var(--container));
    }

    .header-auth {
        gap: 6px;
    }

    .header-auth .btn-login,
    .header-auth .btn-register {
        padding: 0 10px;
    }
}
.news-card {
    border-radius: var(--radius-lg);
    background: linear-gradient(145deg, var(--bg-panel) 0%, var(--surface) 100%);
    border: 1px solid var(--line);
    transition: var(--transition);
    box-shadow: var(--shadow-md);
    overflow: hidden;
    position: relative;
    height: 100%;
}

.news-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--accent), var(--accent-3), var(--accent-2));
    opacity: 0;
    transition: opacity 0.3s;
}

.news-card:hover::before {
    opacity: 1;
}

.news-card a {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    padding: 16px;
    height: 100%;
}

.news-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg), 0 0 40px rgba(212, 175, 55, 0.15);
    border-color: var(--accent);
}

.news-card img,
.news-card-img {
    border-radius: var(--radius-md);
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.8s;
    margin-bottom: 12px;
}

.news-card:hover img {
    transform: scale(1.05);
}

.news-meta {
    font-size: 0.75rem;
    color: var(--accent);
    font-weight: 600;
    margin-bottom: 8px;
    text-transform: uppercase;
}

.news-card h4 {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: #fff;
    line-height: 1.4;
}

.news-card p {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 16px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* --- Glass Footer --- */
.glass-footer {
    background: #0a0a0b;
    border-top: 1px solid var(--line);
    padding: 80px 0 40px;
    margin-top: 80px;
}

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

.footer-logo {
    height: 40px;
    margin-bottom: 20px;
}

.footer-brand p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.7;
}

.footer-nav h4,
.footer-contact h4 {
    color: #fff;
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 24px;
}

.footer-nav ul,
.contact-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-nav a {
    color: var(--text-muted);
    transition: var(--transition);
}

.footer-nav a:hover {
    color: var(--accent);
    padding-left: 5px;
}

.footer-bottom {
    padding-top: 40px;
    border-top: 1px solid var(--line);
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-muted);
    font-size: 0.85rem;
}


@media (max-width: 992px) {
    /* Hide desktop nav, show mobile strip */
    .desktop-nav {
        display: none;
    }

    .mobile-nav-strip {
        display: block;
    }

    .footer-top {
        grid-template-columns: 1fr;
    }

    .modern-grid,
    .news-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }
}

@media (max-width: 768px) {
    .container {
        width: min(calc(100% - 24px), var(--container));
    }

    .header-auth .btn-login,
    .header-auth .btn-register {
        min-height: 34px;
        padding: 0 12px;
        font-size: 0.8rem;
    }

    .footer-top {
        padding: 24px 20px;
        border-radius: var(--radius-md);
        display: flex;
        flex-direction: column;
        gap: 2.5rem;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
    }

    .modern-grid,
    .news-grid {
        grid-template-columns: 1fr !important;
        gap: 20px;
    }
}
.read-more {
    margin-top: auto;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--accent);
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s;
}

[class*="card"]:hover .read-more {
    gap: 12px;
}
