
/* =========================================
   1. VARIABLES & RESET
   ========================================= */
:root {
    /* Colors */
    --bg-body: #0f1118;
    --bg-card: #1b1e28;
    --bg-header: rgba(15, 17, 24, 0.95);
    
    --accent-primary: #ff4e00;
    --accent-secondary: #ffcc00;
    --accent-gradient: linear-gradient(135deg, #ff4e00 0%, #ffcc00 100%);
    --accent-gradient-hover: linear-gradient(135deg, #ff6a00 0%, #ffdd44 100%);
    
    --text-main: #e0e0e0;
    --text-muted: #8a8d98;
    --text-highlight: #ffffff;
    
    --success: #00c853;
    --danger: #ff1744;

    /* Typography */
    --font-stack: 'Segoe UI', system-ui, -apple-system, sans-serif;
    --fs-base: 1rem;
    --fs-h1: clamp(1.5rem, 4vw, 2.5rem);
    --fs-h2: clamp(1.2rem, 3vw, 2rem);
    
    /* Spacing & Layout */
    --container-width: 1240px;
    --gap-sm: 0.5rem;
    --gap-md: 1rem;
    --gap-lg: 2rem;
    --radius-sm: 4px;
    --radius-md: 12px;
    --radius-lg: 20px;
    
    /* Effects */
    --shadow-card: 0 10px 20px rgba(0, 0, 0, 0.3);
    --shadow-glow: 0 0 15px rgba(255, 78, 0, 0.4);
    --transition-fast: 0.2s ease;
    --transition-smooth: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

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

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

body {
    background-color: var(--bg-body);
    color: var(--text-main);
    font-family: var(--font-stack);
    line-height: 1.6;
    overflow-x: hidden;
    background-image: radial-gradient(circle at 50% 0%, #2a1f2d 0%, var(--bg-body) 60%);
}

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

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

ul {
    list-style: none;
}

/* =========================================
   2. LAYOUT UTILITIES
   ========================================= */
.container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 var(--gap-md);
}

.row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 calc(var(--gap-md) * -0.5);
}

.align-items-center { align-items: center; }
.justify-content-between { justify-content: space-between; }
.justify-content-center { justify-content: center; }

.pt-10 { padding-top: 0.625rem; }
.pb-10 { padding-bottom: 0.625rem; }
.pb-30 { padding-bottom: 1.875rem; }

/* =========================================
   3. BUTTONS
   ========================================= */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    font-weight: 700;
    text-transform: uppercase;
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-size: 0.875rem;
    letter-spacing: 0.05em;
    transition: var(--transition-fast);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-defolt {
    background: var(--accent-gradient);
    color: #fff;
    box-shadow: 0 4px 6px rgba(0,0,0,0.2);
}

.btn-defolt:hover, .btn-defolt:focus {
    background: var(--accent-gradient-hover);
    box-shadow: var(--shadow-glow);
    transform: translateY(-2px);
}

.btn-defolt:active {
    transform: translateY(0);
}

/* Outline button style for 'Login' if needed */
.btn-voiti {
    background: transparent;
    border: 2px solid var(--accent-primary);
    color: var(--accent-primary);
    margin-left: var(--gap-sm);
}

.btn-voiti:hover {
    background: var(--accent-primary);
    color: #fff;
    box-shadow: var(--shadow-glow);
}

.btn-box {
    display: flex;
    gap: 0.5rem;
}

/* =========================================
   4. NAVIGATION
   ========================================= */
/* Top slim nav */
.navigation-v2 {
    background: rgba(255, 255, 255, 0.03);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding: 0.5rem 0;
    font-size: 0.8rem;
}

.navigation-v2 .row, .navigation .row {
    justify-content: center;
    gap: 1.5rem;
}

.navigation-v2 a.main, .navigation a.main {
    color: var(--text-muted);
    position: relative;
}

.navigation-v2 a.main:hover, .navigation a.main:hover {
    color: var(--accent-secondary);
}

/* Main secondary nav */
.navigation {
    margin: 2rem 0;
}

.navigation-bg {
    background: var(--bg-card);
    border-radius: var(--radius-md);
    padding: 1rem;
    box-shadow: var(--shadow-card);
    justify-content: space-around !important;
}

.navigation .item a {
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.9rem;
    padding: 0.5rem;
    color: var(--text-highlight);
}

.navigation .item a:hover {
    text-shadow: 0 0 10px rgba(255, 204, 0, 0.5);
    color: var(--accent-secondary);
}

/* =========================================
   5. HEADER
   ========================================= */
.heder {
    padding: 1rem 0;
    background: var(--bg-header);
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.heder img.lozad {
    height: 3rem;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 0 5px rgba(255, 78, 0, 0.5));
}

/* =========================================
   6. BANNERS & PROMO
   ========================================= */
.pre-header-dovnload {
    background: linear-gradient(90deg, #1b1e28 0%, #252a3a 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    padding: 1rem 1.5rem;
    margin: 1.5rem 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    box-shadow: inset 0 0 20px rgba(0,0,0,0.5);
}

.pre-header-dovnload .text-box {
    color: var(--text-highlight);
    font-size: 0.95rem;
    font-weight: 500;
}

.pre-header-dovnload button {
    background: none;
    border: none;
    cursor: pointer;
    transition: transform var(--transition-fast);
}

.pre-header-dovnload button:hover {
    transform: scale(1.05);
}

/* Hero Carousel Area */
.baner {
    margin-bottom: 2rem;
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.owl-baner .item {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    min-height: 350px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.owl-baner .item img.img-res {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 0;
}

.owl-baner .item__text {
    position: relative;
    z-index: 2;
    text-align: center;
    background: rgba(0, 0, 0, 0.6);
    padding: 2rem;
    border-radius: var(--radius-md);
    backdrop-filter: blur(4px);
    max-width: 80%;
    border: 1px solid rgba(255, 204, 0, 0.3);
}

.owl-baner .item h2 {
    color: var(--accent-secondary);
    font-size: var(--fs-h1);
    text-transform: uppercase;
    text-shadow: 0 4px 10px rgba(0,0,0,0.8);
    margin-bottom: 1rem;
}

.owl-baner .btn {
    position: relative;
    z-index: 2;
    margin-top: 1rem;
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
}

/* =========================================
   7. GAMES GRID
   ========================================= */
.games_list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.games_list .item {
    background: var(--bg-card);
    border-radius: var(--radius-md);
    padding: 0.8rem;
    position: relative;
    overflow: hidden;
    transition: var(--transition-smooth);
    border: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.games_list .item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
    border-color: var(--accent-primary);
}

.games_list .item img {
    width: 100%;
    height: auto;
    border-radius: var(--radius-sm);
    margin-bottom: 1rem;
    transition: transform 0.5s ease;
}

.games_list .item:hover img {
    transform: scale(1.05);
}

.games_list .title {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-highlight);
    margin-bottom: 0.8rem;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    width: 100%;
}

.games_list .plau-game {
    width: 100%;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s ease;
}

.games_list .item:hover .plau-game {
    opacity: 1;
    transform: translateY(0);
}

/* =========================================
   8. WINNERS & TICKER
   ========================================= */
.main_menu_winners {
    background: var(--bg-card);
    padding: 1.5rem 0;
    border-top: 1px solid var(--accent-primary);
    border-bottom: 1px solid var(--accent-primary);
    margin-bottom: 2rem;
}

.menu_winners-title, .menu_winners-pretitle {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

/* =========================================
   9. CONTENT & TYPOGRAPHY
   ========================================= */
.main_content h1, .main_content h2 {
    color: var(--text-highlight);
    margin: 2rem 0 1rem;
    font-weight: 800;
}

.main_content h1 {
    font-size: var(--fs-h1);
    background: linear-gradient(to right, #fff, #bbb);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.main_content p, .main_content li {
    margin-bottom: 1rem;
    color: var(--text-main);
}

.main_content ul {
    list-style: disc;
    padding-left: 1.5rem;
}

.main_content blockquote {
    border-left: 4px solid var(--accent-primary);
    background: rgba(255, 78, 0, 0.05);
    padding: 1rem;
    margin: 1.5rem 0;
    font-style: italic;
    color: var(--text-highlight);
}

/* Table Styling */
table {
    width: 100%;
    border-collapse: collapse;
    margin: 2rem 0;
    background: var(--bg-card);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-card);
}

table thead {
    background: linear-gradient(90deg, #333 0%, #222 100%);
    color: var(--accent-secondary);
}

table td, table th {
    padding: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    text-align: left;
}

table tr:last-child td {
    border-bottom: none;
}

table tr:hover {
    background: rgba(255, 255, 255, 0.02);
}

/* =========================================
   10. FORMS
   ========================================= */
.content-form {
    background: url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSI0IiBoZWlnaHQ9IjQiPgo8cmVjdCB3aWR0aD0iNCIgaGVpZ2h0PSI0IiBmaWxsPSIjMWIxZTI4Ii8+CjxyZWN0IHdpZHRoPSIxIiBoZWlnaHQ9IjEiIGZpbGw9IiMzMzMiLz4KPC9zdmc+') repeat;
    padding: 2rem;
    border-radius: var(--radius-lg);
    margin: 2rem 0;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.content-form .h2 {
    color: var(--accent-secondary);
    font-size: var(--fs-h2);
    margin-bottom: 0.5rem;
    font-weight: bold;
}

.form-box {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
    flex-wrap: wrap;
}

.form-group {
    flex: 1;
    min-width: 200px;
}

.form-control {
    width: 100%;
    padding: 0.8rem 1rem;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-sm);
    color: #fff;
    font-size: 1rem;
    transition: var(--transition-fast);
}

.form-control:focus {
    outline: none;
    border-color: var(--accent-primary);
    box-shadow: 0 0 8px rgba(255, 78, 0, 0.3);
}

.btn-green {
    background: linear-gradient(135deg, #00b09b 0%, #96c93d 100%);
}

/* =========================================
   11. FAQ SECTION
   ========================================= */
.faq {
    margin-bottom: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-md);
    background: var(--bg-card);
    overflow: hidden;
}

.faq-header {
    padding: 1.2rem;
    font-weight: 600;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.02);
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-highlight);
    transition: background 0.3s;
}

.faq-header:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--accent-secondary);
}

.faq-content {
    padding: 1.5rem;
    color: var(--text-muted);
    line-height: 1.6;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    display: block !important; /* Overriding inline style for demo purposes if JS fails, typically toggled via JS */
    opacity: 1 !important;     /* Overriding inline style */
}

/* =========================================
   12. FOOTER
   ========================================= */
.footer {
    background: #08090d;
    padding-top: 3rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    text-align: center;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.footer-col {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.footer img {
    opacity: 0.7;
    transition: opacity 0.3s;
}

.footer img:hover {
    opacity: 1;
}

/* =========================================
   13. RESPONSIVE DESIGN
   ========================================= */
@media (max-width: 992px) {
    .container {
        max-width: 960px;
    }
    
    .owl-baner .item {
        min-height: 250px;
    }
}

@media (max-width: 768px) {
    :root {
        --fs-base: 0.9rem;
    }

    .heder .row {
        flex-direction: column;
        gap: 1rem;
    }

    .navigation-v2 {
        display: none; /* Often hidden on mobile for hamburger menu */
    }

    .navigation .row {
        flex-direction: column;
        align-items: center;
    }

    .navigation .item {
        width: 100%;
        text-align: center;
        border-bottom: 1px solid rgba(255,255,255,0.05);
    }

    .pre-header-dovnload {
        flex-direction: column;
        text-align: center;
    }

    .games_list {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.8rem;
    }

    .menu_winners-title, .menu_winners-pretitle {
        justify-content: center;
    }

    .form-box {
        flex-direction: column;
    }
    
    .btn-box {
        width: 100%;
        justify-content: center;
    }
    
    .owl-baner .item__text {
        padding: 1rem;
        max-width: 95%;
    }
    
    .owl-baner .item h2 {
        font-size: 1.2rem;
    }
}

@media (max-width: 480px) {
    .games_list {
        grid-template-columns: 1fr;
    }
    
    .btn {
        width: 100%;
    }
    
    .heder img.lozad {
        height: 2.5rem;
    }
}
