
/* =========================================
   1. Reset & Variables (Modern CSS)
   ========================================= */
:root {
    /* Colors */
    --color-bg-body: #0f0f12;
    --color-bg-card: #1a1a20;
    --color-bg-dark: #050505;
    
    --color-primary: #ff4e00; /* Fire Orange */
    --color-primary-dark: #cc3e00;
    --color-accent: #ffd700; /* Gold */
    --color-success: #28a745;
    --color-success-hover: #218838;
    
    --color-text-main: #e0e0e0;
    --color-text-muted: #a0a0a0;
    --color-text-light: #ffffff;

    /* Gradients */
    --gradient-fire: linear-gradient(135deg, #ff8c00 0%, #ff4e00 100%);
    --gradient-gold: linear-gradient(to bottom, #fff7ad 0%, #ffd700 50%, #cca400 100%);
    --gradient-dark: linear-gradient(180deg, rgba(30,30,35,0.9) 0%, rgba(10,10,12,1) 100%);

    /* Typography */
    --font-family: 'Inter', 'Roboto', system-ui, sans-serif;
    --font-size-base: 16px;
    
    /* Spacing & Layout */
    --container-width: 1240px;
    --spacing-sm: 0.5rem;
    --spacing-md: 1rem;
    --spacing-lg: 2rem;
    --border-radius: 8px;
    --border-radius-lg: 16px;

    /* Effects */
    --shadow-card: 0 4px 20px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 0 15px rgba(255, 78, 0, 0.3);
    --transition-fast: 0.2s ease;
    --transition-smooth: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    font-size: var(--font-size-base);
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    background-color: var(--color-bg-body);
    color: var(--color-text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

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

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

ul {
    list-style: none;
}

button {
    cursor: pointer;
    border: none;
    font-family: inherit;
    background: none;
}

/* =========================================
   2. Layout Utilities
   ========================================= */
.container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

.row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -15px;
}

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

/* Margins & Paddings Helpers */
.pt-10 { padding-top: 10px; }
.pb-10 { padding-bottom: 10px; }
.pb-30 { padding-bottom: 30px; }

/* =========================================
   3. Navigation (Top & Secondary)
   ========================================= */
.navigation-v2, .navigation {
    background: var(--color-bg-dark);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding: var(--spacing-sm) 0;
}

.navigation-v2 .row, .navigation-bg {
    display: flex;
    justify-content: center;
    gap: var(--spacing-md);
}

.navigation-v2 .item a, .navigation .item a {
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--color-text-muted);
    padding: 0.5em 1em;
    border-radius: var(--border-radius);
    transition: var(--transition-fast);
    white-space: nowrap;
}

.navigation-v2 .item a:hover, .navigation .item a:hover {
    color: var(--color-primary);
    background: rgba(255, 255, 255, 0.05);
    text-shadow: 0 0 10px rgba(255, 78, 0, 0.5);
}

/* =========================================
   4. Header
   ========================================= */
.heder {
    padding: var(--spacing-lg) 0;
    background: linear-gradient(to bottom, var(--color-bg-body), var(--color-bg-card));
    position: relative;
    z-index: 10;
}

.heder .logo img {
    max-height: 70px;
    filter: drop-shadow(0 0 5px rgba(255,215,0, 0.3));
}

.btn-box {
    display: flex;
    gap: var(--spacing-md);
    align-items: center;
}

/* Button Styles */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75em 1.5em;
    font-weight: 700;
    text-transform: uppercase;
    border-radius: var(--border-radius);
    transition: var(--transition-smooth);
    letter-spacing: 0.05em;
    font-size: 0.9rem;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0,0,0,0.2);
}

.btn:active {
    transform: translateY(2px);
}

.btn-regist {
    background: var(--gradient-fire);
    color: white;
    border: 1px solid transparent;
}

.btn-regist:hover {
    box-shadow: 0 0 20px rgba(255, 78, 0, 0.6);
    filter: brightness(1.1);
}

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

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

.btn-defolt {
    /* Generic fallback styles if classes mix */
    min-width: 120px;
}

/* Mobile Menu Toggle */
.open-menu {
    cursor: pointer;
    margin-left: var(--spacing-md);
    transition: transform 0.3s ease;
}
.open-menu:hover { transform: scale(1.1); }
.open-menu .close { display: none; }

/* =========================================
   5. Pre-Header & Download Areas
   ========================================= */
.pre-header-dovnload {
    background: rgba(255, 255, 255, 0.03);
    border-radius: var(--border-radius);
    padding: var(--spacing-md);
    margin: var(--spacing-md) 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--spacing-lg);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.pre-header-dovnload .text-box {
    color: var(--color-text-main);
    font-size: 1rem;
    line-height: 1.4;
}

.pre-header-dovnload button img {
    transition: transform 0.3s ease;
}
.pre-header-dovnload button:hover img {
    transform: scale(1.05);
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.5));
}

/* =========================================
   6. Banner (Carousel)
   ========================================= */
.baner {
    margin-bottom: var(--spacing-lg);
    position: relative;
    overflow: hidden;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-card);
}

.owl-baner .item {
    position: relative;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
}

.owl-baner img.img-res {
    width: 100%;
    height: auto;
    object-fit: cover;
    min-height: 300px;
}

.owl-baner img.img-all {
    display: none; /* Hide mobile specific images on desktop by default */
}

.item__text {
    position: absolute;
    top: 50%;
    left: 10%;
    transform: translateY(-50%);
    z-index: 2;
    max-width: 500px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.8);
}

.item__text h2 {
    font-size: clamp(1.5rem, 4vw, 3rem);
    color: var(--color-text-light);
    font-weight: 800;
    margin-bottom: var(--spacing-sm);
    background: var(--gradient-gold);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.owl-baner .btn {
    position: absolute;
    bottom: 20%;
    left: 10%;
    z-index: 3;
    background: var(--color-success);
    color: white;
    font-size: 1.2rem;
    padding: 1rem 2.5rem;
}
.owl-baner .btn:hover {
    background: var(--color-success-hover);
    box-shadow: 0 0 15px rgba(40, 167, 69, 0.6);
}

/* =========================================
   7. Winners & Jackpot Section
   ========================================= */
.main_menu_winners {
    padding: var(--spacing-lg) 0;
    background: url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSI0IiBoZWlnaHQ9IjQiPgo8cmVjdCB3aWR0aD0iNCIgaGVpZ2h0PSI0IiBmaWxsPSIjMWEwYTAwIi8+CjxyZWN0IHdpZHRoPSIxIiBoZWlnaHQ9IjEiIGZpbGw9IiMzMzMiLz4KPC9zdmc+');
    border-top: 1px solid #333;
    border-bottom: 1px solid #333;
}

.menu_winners-title, .menu_winners-pretitle {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-sm);
}

.menu_winners-title .left img,
.menu_winners-title .right img {
    max-height: 50px;
}

/* =========================================
   8. Games Grid (CSS Grid)
   ========================================= */
.games_list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
    margin: var(--spacing-lg) 0;
}

.games_list .item {
    background: var(--color-bg-card);
    border-radius: var(--border-radius);
    padding: 10px;
    position: relative;
    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: var(--shadow-glow);
    border-color: var(--color-primary);
}

.games_list .item img {
    width: 100%;
    border-radius: 6px;
    margin-bottom: 10px;
    transition: var(--transition-fast);
}

.games_list .item:hover img {
    filter: brightness(1.1);
}

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

.games_list .item .btn {
    width: 100%;
    padding: 0.5rem;
    font-size: 0.8rem;
    background: var(--color-bg-dark);
    color: var(--color-text-muted);
    border: 1px solid #333;
}

.games_list .item:hover .btn {
    background: var(--color-primary);
    color: white;
    border-color: var(--color-primary);
}

/* =========================================
   9. Content Typography & Tables
   ========================================= */
.main_content h1, .main_content h2, .main_content h3 {
    color: var(--color-text-light);
    margin-bottom: 1rem;
    margin-top: 2rem;
    line-height: 1.2;
}

.main_content h1 {
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    text-align: center;
    color: var(--color-accent);
}

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

.main_content ul {
    margin-bottom: 1rem;
    padding-left: 1.5rem;
}

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

.main_content ul li::before {
    content: "•";
    color: var(--color-primary);
    font-weight: bold;
    display: inline-block;
    width: 1em;
    margin-left: -1em;
}

/* Tables */
table {
    width: 100%;
    border-collapse: collapse;
    margin: 2rem 0;
    background: var(--color-bg-card);
    border-radius: var(--border-radius);
    overflow: hidden;
    font-size: 0.95rem;
}

table thead td {
    background: var(--color-bg-dark);
    color: var(--color-primary);
    font-weight: bold;
    text-transform: uppercase;
    padding: 1rem;
    border-bottom: 2px solid var(--color-primary);
}

table tbody td {
    padding: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--color-text-main);
}

table tbody tr:nth-child(even) {
    background: rgba(255, 255, 255, 0.02);
}

table tbody tr:hover {
    background: rgba(255, 78, 0, 0.05);
}

/* =========================================
   10. Forms
   ========================================= */
.content-form {
    background: linear-gradient(135deg, #1a1a20 0%, #0d0d10 100%);
    padding: 2rem;
    border-radius: var(--border-radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.05);
    margin: 2rem 0;
    text-align: center;
}

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

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

.form-control {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid #444;
    padding: 0.8rem 1.2rem;
    border-radius: var(--border-radius);
    color: white;
    width: 100%;
    min-width: 300px;
    font-size: 1rem;
    transition: var(--transition-fast);
}

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

.btn-green {
    background: var(--color-success);
    color: white;
    cursor: pointer;
}
.btn-green:hover {
    background: var(--color-success-hover);
}

/* =========================================
   11. FAQ Accordion (Visual Style)
   ========================================= */
.faq-blocks {
    margin-top: 2rem;
}

.faq {
    background: var(--color-bg-card);
    margin-bottom: 10px;
    border-radius: var(--border-radius);
    overflow: hidden;
}

.faq-header {
    padding: 1.2rem;
    cursor: pointer;
    font-weight: 600;
    position: relative;
    transition: background 0.2s;
    color: var(--color-text-light);
}

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

.faq-header::after {
    content: '+';
    float: right;
    font-size: 1.2rem;
    color: var(--color-primary);
}

.faq-content {
    padding: 0 1.2rem 1.2rem 1.2rem;
    color: var(--color-text-muted);
    /* Note: JS is usually required to toggle display/opacity properly */
    display: block !important; 
    opacity: 1 !important;
    border-top: 1px solid rgba(255,255,255,0.05);
}

/* =========================================
   12. Footer
   ========================================= */
.footer {
    background: var(--color-bg-dark);
    margin-top: 4rem;
    border-top: 1px solid #222;
    padding-top: 3rem;
    text-align: center;
    color: #666;
    font-size: 0.9rem;
}

.footer-col {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
    margin-bottom: 20px;
}

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

.footer img:hover {
    opacity: 1;
}

/* =========================================
   13. Responsive / Mobile Styles
   ========================================= */
@media (max-width: 992px) {
    .navigation-v2, .navigation {
        display: none; /* Often hidden on mobile for hamburger menu */
    }
    
    .baner .item__text {
        left: 50%;
        transform: translate(-50%, -50%);
        text-align: center;
        width: 90%;
    }
}

@media (max-width: 768px) {
    :root {
        --spacing-lg: 1.5rem;
    }

    .container {
        padding: 0 15px;
    }

    /* Header Mobile */
    .heder .row {
        flex-direction: row; /* Keep logo and hamburger inline */
    }
    
    .btn-box {
        display: none; /* Hide desktop buttons on mobile if desired, or scale them */
    }

    .d-lg-none {
        display: block !important;
    }

    /* Pre-header stack */
    .pre-header-dovnload {
        flex-direction: column;
        text-align: center;
    }

    /* Grid Mobile */
    .games_list {
        grid-template-columns: repeat(2, 1fr); /* 2 cols on mobile */
        gap: 10px;
    }

    .games_list .item .btn {
        padding: 0.3rem;
        font-size: 0.7rem;
    }

    /* Content Mobile */
    .main_content h1 {
        font-size: 1.5rem;
    }

    .form-control {
        min-width: 100%;
    }

    /* Winners Mobile */
    .menu_winners-title, .menu_winners-pretitle {
        justify-content: center;
    }
    
    .menu_winners-title img, .menu_winners-pretitle img {
        width: 100%;
        max-width: 300px;
        height: auto;
    }
    
    table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }
}

@media (max-width: 480px) {
    .games_list {
        grid-template-columns: 1fr 1fr; /* Keep 2 cols even on small screens for casino feel, or 1fr for list */
    }
}
