/* global styles, variables */
:root {
    --bg-main: #141a33;
    --bg-panel: #1e2542;
    --bg-panel-hover: #262e50;
    --color-primary: #F09E48;
    --color-primary-dark: #D87B28;
    --color-accent: #7B5BD4;
    --text-main: #ffffff;
    --text-muted: #a0a5b5;

    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;

    --shadow-sm: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 8px 15px rgba(0, 0, 0, 0.2);
    --shadow-glow: 0 0 15px rgba(240, 158, 72, 0.3);

    --transition: 0.3s ease;

    --header-height-desktop: 70px;
    --header-height-mobile: 60px;
    --sidebar-width: 250px;
    --mobile-nav-height: 70px;
}

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

body {
    background-color: var(--bg-main);
    color: var(--text-main);
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    line-height: 1.5;
    overflow-x: hidden;
}

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

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

ul {
    list-style: none;
}

/* Layout */
.app-container {
    display: flex;
    min-height: 100vh;
}

/* Sidebar */
.sidebar {
    width: var(--sidebar-width);
    background-color: var(--bg-main);
    border-right: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    flex-direction: column;
    position: fixed;
    height: 100vh;
    overflow-y: auto;
    z-index: 100;
}

.sidebar-logo {
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.sidebar-logo img {
    height: 40px;
}

.sidebar-nav {
    padding: 20px 15px;
}

.nav-group {
    background-color: var(--bg-panel);
    border-radius: var(--radius-md);
    margin-bottom: 15px;
    overflow: hidden;
}

.nav-item {
    display: flex;
    align-items: center;
    padding: 12px 15px;
    color: var(--text-muted);
    font-size: 14px;
    font-weight: 500;
    transition: all var(--transition);
    gap: 12px;
}

.nav-item:hover,
.nav-item.active {
    background-color: rgba(255, 255, 255, 0.05);
    color: var(--text-main);
}

.nav-item svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

.nav-item img {
    width: 20px;
    height: 20px;
}

.vip-block {
    background: linear-gradient(135deg, rgba(123, 91, 212, 0.2), rgba(30, 37, 66, 0));
    border: 1px solid var(--color-accent);
}

.vip-block .nav-item {
    color: var(--text-main);
}

.lucky-promo {
    display: flex;
    justify-content: space-between;
    padding: 0 10px;
    margin-bottom: 15px;
    gap: 10px;
}

.lucky-promo img {
    width: 100%;
    border-radius: var(--radius-md);
    transition: transform var(--transition);
    cursor: pointer;
}

.lucky-promo img:hover {
    transform: scale(1.05);
}

/* Main Content area */
.main-content {
    flex: 1;
    margin-left: var(--sidebar-width);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Header (Desktop) */
.top-header {
    height: var(--header-height-desktop);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 30px;
    background-color: var(--bg-main);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    position: sticky;
    top: 0;
    z-index: 90;
}

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

.header-nav {
    display: flex;
    gap: 10px;
}

.header-link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    background-color: var(--bg-panel);
    color: var(--text-muted);
    font-size: 14px;
    font-weight: 600;
}

.header-link.active,
.header-link:hover {
    color: var(--text-main);
    background-color: rgba(255, 255, 255, 0.1);
}

.header-center {
    flex: 1;
    display: flex;
    justify-content: center;
    max-width: 400px;
    margin: 0 20px;
}

.search-box {
    width: 100%;
    position: relative;
}

.search-box input {
    width: 100%;
    background-color: var(--bg-panel);
    border: 1px solid transparent;
    border-radius: 40px;
    padding: 10px 15px 10px 40px;
    color: var(--text-main);
    font-size: 14px;
    outline: none;
    transition: border-color var(--transition);
}

.search-box input:focus {
    border-color: var(--color-accent);
}

.search-icon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    fill: var(--text-muted);
}

.header-right {
    display: flex;
    gap: 15px;
}

.btn {
    padding: 10px 24px;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    text-align: center;
    border: none;
    transition: all var(--transition);
}

.btn-outline {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--text-main);
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.1);
}

.btn-primary {
    background: linear-gradient(90deg, var(--color-primary), var(--color-primary-dark));
    color: #fff;
    box-shadow: 0 4px 15px rgba(240, 158, 72, 0.4);
}

.btn-primary:hover {
    box-shadow: 0 6px 20px rgba(240, 158, 72, 0.6);
    transform: translateY(-1px);
}

/* Mobile Header */
.mobile-header {
    display: none;
    height: var(--header-height-mobile);
    background-color: var(--bg-main);
    align-items: center;
    justify-content: space-between;
    padding: 0 15px;
    position: sticky;
    top: 0;
    z-index: 90;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.mobile-logo {
    height: 30px;
}

/* Hero Section */
.hero {
    position: relative;
    padding: 60px 40px;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    border-radius: var(--radius-xl);
    margin: 20px;
    overflow: hidden;
    background-color: var(--bg-panel);
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
    opacity: 0.6;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 600px;
}

.hero-logo {
    margin: 0 auto 20px;
    max-width: 180px;
}

.hero h1 {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 10px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.hero h2 {
    font-size: 48px;
    font-weight: 800;
    margin-bottom: 30px;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8);
    background: linear-gradient(180deg, #fff, #ddd);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero .btn-primary {
    font-size: 18px;
    padding: 15px 40px;
    border-radius: var(--radius-md);
}

/* Payments Row */
.payments-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 30px;
    padding: 20px;
    background-color: var(--bg-panel);
    border-radius: var(--radius-lg);
    margin: 0 20px 30px;
    flex-wrap: wrap;
}

.payments-row img {
    height: 25px;
    opacity: 0.8;
    transition: opacity var(--transition);
}

.payments-row img:hover {
    opacity: 1;
}

/* Sections */
.section {
    padding: 0 20px 40px;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.section-title {
    font-size: 20px;
    font-weight: 700;
}

.see-all {
    font-size: 12px;
    font-weight: 600;
    padding: 6px 14px;
    background-color: var(--bg-panel);
    border-radius: 4px;
    transition: background var(--transition);
}

.see-all:hover {
    background-color: var(--bg-panel-hover);
}

/* Games Grid */
.games-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 15px;
}

.game-card {
    position: relative;
    border-radius: var(--radius-md);
    overflow: hidden;
    aspect-ratio: 3/4;
    transition: all var(--transition);
    background-color: var(--bg-panel);
    display: block;
}

.game-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.game-card:hover {
    transform: scale(1.03);
    box-shadow: var(--shadow-glow);
    z-index: 10;
}

.game-card:hover img {
    transform: scale(1.1);
}

.game-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 800;
    color: #fff;
    z-index: 5;
    text-transform: uppercase;
}

.badge-top {
    background: linear-gradient(90deg, #1bd6b4, #10b496);
}

.badge-hot {
    background: linear-gradient(90deg, #ff4d4d, #cc0000);
}

/* Promos Banner Section */
.promos-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    padding: 0 20px 40px;
}

.promo-card {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    display: flex;
    align-items: center;
    color: var(--text-main);
}

.promo-bg {
    width: 100%;
    border-radius: var(--radius-lg);
    transition: transform var(--transition);
    display: block;
}

.promo-card:hover .promo-bg {
    transform: scale(1.02);
}

.promo-content {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 30px;
    z-index: 2;
    background: linear-gradient(90deg, rgba(20, 26, 51, 0.95) 0%, rgba(20, 26, 51, 0.7) 40%, rgba(20, 26, 51, 0) 100%);
    border-radius: var(--radius-lg);
}

.promo-text h4 {
    font-size: 22px;
    font-weight: 800;
    margin-bottom: 5px;
    color: #fff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
}

.promo-text p {
    font-size: 15px;
    color: #ddd;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
    font-weight: 600;
}

.promo-btn {
    background: linear-gradient(90deg, var(--color-primary), var(--color-primary-dark));
    color: #fff;
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 800;
    box-shadow: 0 4px 15px rgba(240, 158, 72, 0.4);
    transition: transform var(--transition);
    border: 1px dashed rgba(255, 255, 255, 0.8);
    cursor: pointer;
    text-align: center;
}

.promo-btn:hover {
    transform: scale(1.05);
}

/* SEO Content Section */
.seo-content {
    padding: 40px 20px;
    max-width: 900px;
    margin: 0 auto;
    color: var(--text-muted);
}

.seo-content h2 {
    color: var(--text-main);
    font-size: 28px;
    margin: 40px 0 20px;
}

.seo-content h3 {
    color: var(--text-main);
    font-size: 22px;
    margin: 30px 0 15px;
}

.seo-content p {
    margin-bottom: 20px;
    line-height: 1.7;
}

.seo-content ul {
    list-style-type: disc;
    padding-left: 20px;
    margin-bottom: 20px;
}

.seo-content li {
    margin-bottom: 10px;
}

.faq-item {
    margin-bottom: 20px;
    background-color: var(--bg-panel);
    padding: 20px;
    border-radius: var(--radius-md);
}

.faq-item h4 {
    color: var(--text-main);
    margin-bottom: 10px;
    font-size: 18px;
}

/* Footer */
.footer {
    background-color: var(--bg-panel);
    padding: 40px 20px;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    margin-top: auto;
}

.footer-logo {
    max-width: 150px;
    margin: 0 auto 20px;
}

.footer-text {
    font-size: 12px;
    color: var(--text-muted);
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Mobile Nav Sticky */
.mobile-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: var(--mobile-nav-height);
    background-color: var(--bg-panel);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    z-index: 100;
    justify-content: space-around;
    align-items: center;
    padding: 0 10px;
}

.mobile-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    color: var(--text-muted);
    font-size: 11px;
    font-weight: 500;
}

.mobile-nav-item.active {
    color: var(--color-primary);
}

.mobile-nav-item svg,
.mobile-nav-item img {
    width: 24px;
    height: 24px;
    fill: currentColor;
}

/* Responsive */
@media (max-width: 1200px) {
    .games-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 992px) {
    .games-grid {
        grid-template-columns: repeat(3, 1fr);
    }

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

@media (max-width: 768px) {
    .sidebar {
        display: none;
    }

    .main-content {
        margin-left: 0;
        padding-bottom: var(--mobile-nav-height);
        /* Space for mobile nav */
    }

    .top-header {
        display: none;
    }

    .mobile-header {
        display: flex;
    }

    .mobile-nav {
        display: flex;
    }

    .hero {
        margin: 0;
        border-radius: 0;
        min-height: 480px;
        padding: 40px 20px;
        align-items: flex-start;
        padding-top: 60px;
    }

    .hero-bg {
        object-position: bottom center;
    }

    .hero h2 {
        font-size: 36px;
    }

    .payments-row {
        margin: 20px 10px;
        gap: 15px;
    }

    .payments-row img {
        height: 20px;
    }

    .games-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .section {
        padding: 0 10px 30px;
    }

    .promos-grid {
        grid-template-columns: 1fr;
        padding: 0 10px 30px;
    }
}