/* Import Montserrat font */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;600;700&display=swap');

/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #ff4d4d;
    --secondary-color: #2c3e50;
    --accent-color: #f1c40f;
    --text-color: #333;
    --light-bg: #f8f9fa;
    --dark-bg: #1a1a2e;
    --white: #ffffff;
    --gray-100: #f8f9fa;
    --gray-200: #e9ecef;
    --gray-300: #dee2e6;
    --gray-400: #ced4da;
    --gray-500: #adb5bd;
    --gray-600: #6c757d;
    --gray-700: #495057;
    --gray-800: #343a40;
    --gray-900: #212529;
}

html, body, #root, .container, .main-banner, .banner-img {
    width: 100% !important;
    max-width: 100vw !important;
    box-sizing: border-box !important;
    overflow-x: hidden !important;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--dark-bg);
    width: 100% !important;
    max-width: 100vw !important;
    overflow-x: hidden !important;
}

/* Top Bar - Desktop (default) */
.top-bar {
    background: var(--gray-900);
    padding: 0.5rem 0;
    color: var(--white);
    position: static;
    z-index: auto;
}

.top-bar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-left: 2rem;
    padding-right: 2rem;
}

.social-links a {
    color: var(--white);
    margin-right: 1rem;
    text-decoration: none;
    transition: color 0.3s ease;
}

.social-links a:hover {
    color: var(--primary-color);
}

.top-bar-right {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-right: 1rem;
}

.support-link {
    color: var(--white);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Main Navigation - Desktop (default) */
.main-nav {
    background: var(--gray-800);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-left: 2rem;
    padding-right: 2rem;
}

.logo {
    margin-right: 2rem;
}

.logo img {
    height: 40px;
}

.nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--dark-bg);
    padding: 1.5rem;
    flex-direction: column;
    gap: 1.25rem;
    box-shadow: 0 4px 12px rgba(255, 255, 255, 0.1);
    border-top: 2px solid var(--white);
    z-index: 1000;
}

.nav-links.active {
    display: flex;
    animation: slideDown 0.3s ease forwards;
}

.nav-link {
    color: var(--white);
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    padding: 0.5rem 0;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.2);
}

.nav-link:hover {
    color: var(--white);
    transform: translateX(5px);
    text-shadow: 0 0 15px rgba(255, 255, 255, 0.4);
}

.nav-buttons {
    display: flex;
    gap: 1.5rem;
    margin-right: 1rem;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.8rem 2rem;
    min-width: 120px;
    text-align: center;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: var(--primary-color);
    color: var(--white);
}

.btn-primary:hover {
    background: #ff3333;
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--white);
    color: var(--white);
}

.btn-outline:hover {
    background: var(--white);
    color: var(--dark-bg);
    transform: translateY(-2px);
}

.btn-large {
    padding: 1rem 2rem;
    font-size: 1.1rem;
}

/* Hero Section */
.hero {
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('../images/hero-bg.jpg');
    background-size: cover;
    background-position: center;
    min-height: 80vh;
    display: flex;
    align-items: center;
    text-align: center;
    color: var(--white);
    position: relative;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem;
    position: relative;
    z-index: 1;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

/* Features Section */
.features {
    padding: 4rem 0;
    background: var(--gray-900);
    color: var(--white);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.feature-card {
    background: var(--gray-800);
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
    transition: transform 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
}

.feature-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

/* Games Section */
.games {
    padding: 4rem 0;
    background: var(--dark-bg);
    color: var(--white);
}

.games h2 {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 2.5rem;
}

.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.game-card {
    background: var(--gray-800);
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.3s ease;
}

.game-card:hover {
    transform: translateY(-5px);
}

.game-image {
    height: 200px;
    overflow: hidden;
}

.game-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.game-info {
    padding: 1.5rem;
    text-align: center;
}

/* Promotions Section */
.promotions {
    padding: 4rem 0;
    background: var(--gray-900);
    color: var(--white);
}

.promotions h2 {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 2.5rem;
}

.promotions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.promo-card {
    background: var(--gray-800);
    border-radius: 10px;
    padding: 2rem;
}

.promo-content h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.promo-content ul {
    list-style: none;
    margin: 1.5rem 0;
}

.promo-content ul li {
    margin-bottom: 0.5rem;
    padding-left: 1.5rem;
    position: relative;
}

.promo-content ul li::before {
    content: "✓";
    color: var(--primary-color);
    position: absolute;
    left: 0;
}

/* VIP Section */
.vip {
    padding: 4rem 0;
    background: var(--dark-bg);
    color: var(--white);
}

.vip h2 {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 2.5rem;
}

.vip-benefits {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.vip-level {
    background: var(--gray-800);
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
}

.vip-level h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.vip-level ul {
    list-style: none;
    margin: 1.5rem 0;
}

.vip-level ul li {
    margin-bottom: 0.5rem;
}

/* Footer */
.footer {
    background: var(--gray-900);
    color: var(--white);
    padding: 4rem 0 2rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-col h3 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 0.8rem;
}

.footer-col a {
    color: var(--white);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-col a:hover {
    color: var(--primary-color);
}

.payment-methods {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.payment-methods img {
    height: 30px;
    width: auto;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid var(--gray-800);
}

.footer-bottom-links {
    margin-top: 1rem;
}

.footer-bottom-links a {
    color: var(--white);
    text-decoration: none;
    margin: 0 1rem;
    transition: color 0.3s ease;
}

.footer-bottom-links a:hover {
    color: var(--primary-color);
}

/* Responsive Design */
@media (max-width: 768px) {
    .top-bar {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        z-index: 1100;
        padding: 0.5rem 1rem;
        background: var(--gray-900);
        width: 100%;
    }
    .main-nav {
        position: fixed !important;
        top: 56px !important;
        left: 0 !important;
        right: 0 !important;
        z-index: 1099 !important;
        background: var(--gray-800) !important;
        box-shadow: 0 2px 10px rgba(0,0,0,0.15) !important;
        width: 100% !important;
        padding: 0.75rem 1rem !important;
    }
    body {
        padding-top: 106px; /* 56px top-bar + 50px main-nav, adjust if needed */
    }
    .top-bar-content {
        padding: 0;
        justify-content: space-between;
        align-items: center;
        height: 40px;
    }

    .social-links {
        display: flex;
        gap: 0.75rem;
        align-items: center;
    }

    .social-links a {
        margin-right: 0;
        font-size: 1.1rem;
        display: flex;
        align-items: center;
        color: var(--white);
    }

    .top-bar-right {
        margin-right: 0;
        gap: 0.75rem;
        align-items: center;
    }

    .support-link {
        font-size: 0.9rem;
        display: flex;
        align-items: center;
        color: var(--white);
    }

    .support-link i {
        font-size: 1rem;
    }

    .main-nav {
        padding: 0.75rem 1rem;
        position: relative;
        z-index: 1000;
    }

    .nav-content {
        padding: 0;
        display: flex;
        align-items: center;
        justify-content: space-between;
        height: 50px;
    }

    .logo {
        margin-right: 1rem;
    }

    .logo img {
        height: 35px;
        width: auto;
    }

    .nav-buttons {
        gap: 0.75rem;
        margin-right: 0;
        display: flex;
        align-items: center;
    }

    .nav-buttons .btn {
        padding: 0.5rem 0.75rem;
        min-width: auto;
        height: 35px;
        display: flex;
        align-items: center;
        white-space: nowrap;
        font-size: 0.85rem;
    }

    .nav-buttons .btn i {
        margin-right: 0.25rem;
        font-size: 1rem;
    }

    .nav-buttons .btn span {
        font-size: 0.85rem;
    }

    .mobile-menu-btn {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        background: var(--primary-color);
        border: none;
        cursor: pointer;
        padding: 0.5rem;
        z-index: 1002;
        width: 40px;
        height: 40px;
        margin-left: 0.75rem;
        border-radius: 8px;
        transition: all 0.3s ease;
        box-shadow: 0 2px 8px rgba(255, 77, 77, 0.3);
    }

    .mobile-menu-btn:hover {
        background: #ff3333;
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(255, 77, 77, 0.4);
    }

    .mobile-menu-btn span {
        display: block;
        width: 24px;
        height: 2px;
        background: var(--white);
        margin: 3px 0;
        transition: all 0.3s ease;
        border-radius: 2px;
    }

    .mobile-menu-btn.active {
        background: var(--accent-color);
        box-shadow: 0 4px 16px rgba(241, 196, 15, 0.5);
        transform: scale(1.05);
    }

    .mobile-menu-btn.active:hover {
        background: #f4d03f;
        box-shadow: 0 6px 20px rgba(241, 196, 15, 0.6);
    }

    .mobile-menu-btn.active span {
        background: var(--white);
        box-shadow: 0 0 8px rgba(255, 255, 255, 0.5);
    }

    .mobile-menu-btn.active span:nth-child(1) {
        transform: rotate(45deg) translate(4px, 4px);
    }

    .mobile-menu-btn.active span:nth-child(2) {
        opacity: 0;
        transform: translateX(-10px);
    }

    .mobile-menu-btn.active span:nth-child(3) {
        transform: rotate(-45deg) translate(4px, -4px);
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--dark-bg);
        padding: 1.5rem;
        flex-direction: column;
        gap: 1.25rem;
        box-shadow: 0 4px 12px rgba(255, 255, 255, 0.1);
        border-top: 2px solid var(--white);
        z-index: 1000;
    }

    .nav-links.active {
        display: flex;
        animation: slideDown 0.3s ease forwards;
    }

    .nav-links::before,
    .nav-links::after {
        display: none;
    }

    .nav-overlay {
        background: rgba(0, 0, 0, 0.8);
    }

    .nav-overlay.active {
        opacity: 1;
        visibility: visible;
    }

    .nav-link {
        color: var(--white);
        text-decoration: none;
        font-weight: 600;
        font-size: 1.1rem;
        transition: all 0.3s ease;
        padding: 0.5rem 0;
        text-shadow: 0 0 10px rgba(255, 255, 255, 0.2);
    }

    .nav-link:hover {
        color: var(--white);
        transform: translateX(5px);
        text-shadow: 0 0 15px rgba(255, 255, 255, 0.4);
    }

    .mobile-social-links {
        display: flex;
        gap: 1rem;
        margin-top: 1rem;
        padding-top: 1rem;
        border-top: 1px solid var(--white);
    }

    .mobile-social-links a {
        color: var(--white);
        font-size: 1.25rem;
        transition: all 0.3s ease;
        text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
    }

    .mobile-social-links a:hover {
        color: var(--white);
        transform: translateY(-2px);
        text-shadow: 0 0 15px rgba(255, 255, 255, 0.5);
    }

    .mobile-language-selector {
        margin-top: 1.2rem;
        padding-top: 1.2rem;
        border-top: 1px solid var(--gray-700);
    }

    .mobile-language-selector .lang-btn {
        width: 100%;
        justify-content: center;
        padding: 0.7rem;
        background: var(--gray-800);
        border-radius: 4px;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .features-grid,
    .games-grid,
    .promotions-grid,
    .vip-benefits {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .payment-methods {
        justify-content: center;
    }

    .footer-bottom-links {
        display: flex;
        flex-direction: column;
        gap: 1rem;
    }

    .main-banner {
        width: 100% !important;
        max-width: 100vw !important;
        margin: 0 0 1.5rem 0;
        padding: 0;
        overflow: hidden;
        /* border: 2px solid red; */
    }
    .banner-img {
        width: 100% !important;
        max-width: 100vw !important;
        height: auto !important;
        object-fit: cover;
        display: block;
    }

    .container {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
}

/* Tablet Styles */
@media (min-width: 769px) and (max-width: 1024px) {
    .container {
        padding: 0 2rem;
    }

    .features-grid,
    .games-grid,
    .promotions-grid,
    .vip-benefits {
        grid-template-columns: repeat(2, 1fr);
    }
}

.nav-links .btn {
    background: var(--primary-color);
    color: var(--white);
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 4px 12px rgba(255, 77, 77, 0.3);
    transition: all 0.3s ease;
}

.nav-links .btn:hover {
    background: #ff3333;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(255, 77, 77, 0.4);
}

.nav-links .btn-outline {
    background: transparent;
    border: 2px solid var(--white);
    color: var(--white);
    box-shadow: 0 4px 12px rgba(255, 255, 255, 0.2);
}

.nav-links .btn-outline:hover {
    background: var(--white);
    color: var(--dark-bg);
    box-shadow: 0 6px 16px rgba(255, 255, 255, 0.3);
}

.mobile-social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--white);
}

.mobile-social-links a {
    color: var(--white);
    font-size: 1.25rem;
    transition: all 0.3s ease;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

.mobile-social-links a:hover {
    color: var(--white);
    transform: translateY(-2px);
    text-shadow: 0 0 15px rgba(255, 255, 255, 0.5);
}

.lang-btn {
    background: var(--accent-color);
    color: var(--gray-900);
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(241, 196, 15, 0.4);
}

.lang-btn:hover {
    background: #f4d03f;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(241, 196, 15, 0.5);
}

.lang-btn i {
    font-size: 1.1rem;
}

.lang-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background: var(--dark-bg);
    border-radius: 8px;
    padding: 0.5rem;
    margin-top: 0.5rem;
    box-shadow: 0 4px 12px rgba(255, 255, 255, 0.1);
    display: none;
    z-index: 1000;
    border: 1px solid var(--white);
}

.lang-dropdown.active {
    display: block;
    animation: fadeIn 0.3s ease forwards;
}

.lang-dropdown a {
    color: var(--white);
    text-decoration: none;
    padding: 0.5rem 1rem;
    display: block;
    transition: all 0.3s ease;
    border-radius: 4px;
}

.lang-dropdown a:hover {
    background: var(--white);
    color: var(--dark-bg);
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (min-width: 769px) {
    .nav-links {
        display: flex !important;
        flex-direction: row;
        align-items: center;
        gap: 2rem;
        position: static;
        background: none;
        padding: 0;
        box-shadow: none;
        border: none;
    }
    .mobile-menu-btn {
        display: none !important;
    }
    .mobile-social-links {
        display: none !important;
    }
}
@media (max-width: 768px) {
    .nav-links {
        display: none;
        /* ...existing mobile styles... */
    }
    .mobile-menu-btn {
        display: flex !important;
    }
    .mobile-social-links {
        display: flex !important;
    }
}

.flag-img {
    width: 22px;
    height: 16px;
    max-width: 100%;
    object-fit: cover;
    border-radius: 3px;
    margin-right: 6px;
    box-shadow: 0 1px 2px rgba(0,0,0,0.08);
    display: inline-block;
    vertical-align: middle;
}

.main-banner {
    width: 100%;
    max-width: 100vw;
    overflow: hidden;
    margin: 0 auto 2rem auto;
}
.banner-img {
    width: 100%;
    height: auto;
    display: block;
    max-width: 100vw;
    object-fit: cover;
} 