
/* =========================================
   1. RESET & VARIABLES
   ========================================= */
:root {
    /* Colors */
    --c-bg-body: #0a0a0a;
    --c-bg-dark: #141414;
    --c-bg-card: #1f1f1f;
    --c-bg-input: #2a2a2a;
    
    --c-primary: #ffc107;   /* Gold */
    --c-primary-dark: #d39e00;
    --c-secondary: #e53935; /* Red */
    --c-secondary-dark: #b71c1c;
    --c-accent: #00e676;    /* Green */
    
    --c-text-main: #ffffff;
    --c-text-muted: #a0a0a0;
    --c-border: #333333;

    /* Typography */
    --font-main: 'Montserrat', 'Roboto', system-ui, -apple-system, sans-serif;
    --fs-h1: clamp(1.75rem, 5vw, 2.5rem);
    --fs-h2: clamp(1.5rem, 4vw, 2rem);
    --fs-body: 1rem;
    --fs-small: 0.875rem;

    /* Spacing & Layout */
    --container-width: 1200px;
    --header-height: 80px;
    --gap-sm: 0.5rem;
    --gap-md: 1rem;
    --gap-lg: 2rem;
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 16px;
    --radius-round: 50px;

    /* Effects */
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.3);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.4);
    --shadow-glow: 0 0 15px rgba(255, 193, 7, 0.3);
    --transition: all 0.3s ease;
}

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

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

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

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

ul, ol {
    list-style: none;
    padding: 0;
    margin: 0;
}

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

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

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 var(--gap-md);
    width: 100%;
}

/* =========================================
   2. HEADER
   ========================================= */

/* Top Menu */
.header-top__menu {
    display: flex;
    flex-wrap: wrap;
    gap: var(--gap-md);
    justify-content: center;
    background-color: var(--c-bg-dark);
    padding: 0.5rem 0;
    font-size: var(--fs-small);
    border-bottom: 1px solid var(--c-border);
}

.header-top__menu a {
    color: var(--c-text-muted);
}

.header-top__menu a:hover {
    color: var(--c-primary);
}

/* Header Main Row */
.header-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--gap-md) 0;
}

.site-logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--c-primary);
    text-transform: uppercase;
    letter-spacing: 2px;
    background: url('path-to-logo.png') no-repeat center/contain; /* Fallback styles */
    min-width: 150px;
    min-height: 50px;
}

.user-bar {
    display: flex;
    gap: var(--gap-md);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.6em 1.5em;
    font-weight: 600;
    text-transform: uppercase;
    border-radius: var(--radius-sm);
    transition: var(--transition);
    font-size: 0.875rem;
    letter-spacing: 0.5px;
    position: relative;
    overflow: hidden;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow);
}

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

.btn-reg, .btn-yellow {
    background: linear-gradient(135deg, var(--c-primary), var(--c-primary-dark));
    color: #000;
}

.btn-enter {
    background: transparent;
    border: 1px solid var(--c-primary);
    color: var(--c-primary);
}

.btn-enter:hover {
    background: rgba(255, 193, 7, 0.1);
}

.btn-play {
    background: var(--c-secondary);
    color: white;
    border-radius: var(--radius-round);
    padding: 0.8em 2em;
    font-weight: bold;
}

.btn-play:hover {
    background: var(--c-secondary-dark);
}

/* Mobile Nav Button */
.mob-nav-btn {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 20px;
    cursor: pointer;
}

.mob-nav-btn span {
    display: block;
    height: 2px;
    width: 100%;
    background-color: var(--c-text-main);
    border-radius: 2px;
}

/* Mobile Navigation Dropdown */
.mob-navigation {
    display: none; /* Controlled by JS typically */
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: var(--c-bg-dark);
    z-index: 100;
    padding: var(--gap-md);
}

.mob-navigation ul li {
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--c-border);
}

/* Banners */
.header-banners {
    display: grid;
    grid-template-columns: 1fr; /* Simplification for layout */
    gap: var(--gap-md);
    margin-bottom: var(--gap-lg);
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-md);
}

/* Styling just one active banner look for CSS-only display */
.banner-item {
    position: relative;
    min-height: 300px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: var(--gap-lg);
    background-color: var(--c-bg-card);
    border-radius: var(--radius-md);
    overflow: hidden;
}

.banner-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover !important;
    background-position: center !important;
    z-index: 0;
    opacity: 0.5;
    transition: transform 10s ease;
}

.banner-item:hover .banner-img {
    transform: scale(1.1);
}

.banner-text {
    position: relative;
    z-index: 2;
    font-size: clamp(1.2rem, 3vw, 2rem);
    font-weight: 800;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.8);
    margin-bottom: 0.5rem;
}

.banner-text.text-left { color: var(--c-primary); }
.banner-text.text-right { color: var(--c-text-main); }

.banner-btn {
    position: relative;
    z-index: 2;
    align-self: flex-start;
    margin-top: var(--gap-md);
    padding: 1em 3em;
    background: var(--c-secondary);
    color: white;
    border: none;
    font-weight: bold;
    text-transform: uppercase;
    border-radius: var(--radius-sm);
    box-shadow: 0 4px 15px rgba(229, 57, 53, 0.4);
}

/* Counters */
.header-counters {
    display: flex;
    justify-content: space-between;
    gap: var(--gap-md);
    margin-bottom: var(--gap-lg);
    background: var(--c-bg-card);
    padding: var(--gap-md);
    border-radius: var(--radius-md);
    border: 1px solid var(--c-border);
}

.counter-container {
    display: flex;
    align-items: center;
    gap: 2px;
    font-family: 'Courier New', monospace;
    font-weight: bold;
    font-size: 1.5rem;
    color: var(--c-primary);
}

.count {
    background: #000;
    padding: 0.2em 0.4em;
    border-radius: 2px;
    box-shadow: inset 0 0 5px rgba(255, 255, 255, 0.1);
}

/* Main Navigation */
.main-navigation {
    background: linear-gradient(to bottom, #2a2a2a, #1a1a1a);
    border-radius: var(--radius-sm);
    margin-bottom: var(--gap-lg);
}

.main-navigation ul {
    display: flex;
    justify-content: space-between;
    overflow-x: auto;
}

.main-navigation li {
    flex: 1;
    text-align: center;
}

.main-navigation a {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    color: var(--c-text-muted);
    border-right: 1px solid var(--c-border);
    height: 100%;
}

.main-navigation li:last-child a {
    border-right: none;
}

.main-navigation li.active a,
.main-navigation a:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--c-primary);
    box-shadow: inset 0 -3px 0 var(--c-primary);
}

.main-navigation .icon {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    display: block;
}

/* =========================================
   3. SLOTS GRID
   ========================================= */
.slots-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: var(--gap-md);
    margin-bottom: var(--gap-lg);
}

.slot-item {
    background: var(--c-bg-card);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: var(--transition);
    position: relative;
    border: 1px solid transparent;
}

.slot-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-glow);
    border-color: var(--c-primary);
}

.slot-logo {
    position: relative;
    padding-bottom: 75%; /* Aspect Ratio 4:3 */
    background: #000;
    overflow: hidden;
}

/* Pseudo-element for slot image placement if empty in HTML */
.slot-logo::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(45deg, #333, #444);
    z-index: 1;
}

.btns-wrap {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    z-index: 10;
    transition: opacity 0.3s;
}

.slot-item:hover .btns-wrap {
    opacity: 1;
}

.slot-name {
    padding: 0.75rem;
    text-align: center;
    font-size: 0.9rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: var(--c-text-main);
    background: var(--c-bg-card);
}

/* =========================================
   4. CONTENT & TEXT
   ========================================= */
.content-text {
    background: var(--c-bg-card);
    padding: var(--gap-lg);
    border-radius: var(--radius-md);
    margin-bottom: var(--gap-lg);
}

.content-text h1 {
    font-size: var(--fs-h1);
    color: var(--c-primary);
    margin-bottom: 1rem;
    line-height: 1.2;
}

.content-text h2 {
    font-size: var(--fs-h2);
    color: var(--c-text-main);
    margin-top: 2rem;
    margin-bottom: 1rem;
    border-left: 4px solid var(--c-secondary);
    padding-left: 1rem;
}

.content-text p {
    color: var(--c-text-muted);
    margin-bottom: 1rem;
}

/* TOC */
.toc_container {
    background: rgba(255, 255, 255, 0.05);
    padding: 1rem;
    border-radius: var(--radius-sm);
    margin-bottom: 2rem;
    border: 1px solid var(--c-border);
}

.toc_title {
    font-weight: bold;
    margin-bottom: 0.5rem;
    color: var(--c-primary);
}

/* Tables */
table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 1.5rem;
    background: #111;
    border-radius: var(--radius-sm);
    overflow: hidden;
}

th, td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid var(--c-border);
}

th {
    background: #222;
    color: var(--c-primary);
    font-weight: 600;
}

tr:hover td {
    background: rgba(255, 255, 255, 0.05);
}

/* Wrapper for table responsive scroll */
.two-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--gap-lg);
    margin: 2rem 0;
}

@media (max-width: 768px) {
    .two-columns { grid-template-columns: 1fr; }
    table { display: block; overflow-x: auto; }
}

/* Top 3 / Features Slider Grid */
.top3Slider {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--gap-md);
    margin-bottom: 2rem;
}

.top3__item {
    background: #252525;
    padding: 1.5rem;
    border-radius: var(--radius-md);
    height: 100%;
    border: 1px solid transparent;
    transition: var(--transition);
}

.top3__item:hover {
    border-color: var(--c-primary);
    background: #2a2a2a;
}

.top3__item .h3 {
    font-size: 1.25rem;
    color: var(--c-primary);
    margin-bottom: 0.5rem;
    font-weight: bold;
}

/* Info Blocks */
.info-block {
    display: grid;
    gap: var(--gap-md);
}

.info-block--v3 {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.info-block__item {
    background: rgba(255, 255, 255, 0.03);
    padding: 1.5rem;
    border-radius: var(--radius-md);
    text-align: center;
}

.info-block__title h3 {
    color: var(--c-accent);
    margin: 0 0 0.5rem 0;
    font-size: 1.1rem;
}

/* =========================================
   5. FORMS
   ========================================= */
.content-form {
    background: linear-gradient(135deg, #1e1e1e, #111);
    padding: 2rem;
    border-radius: var(--radius-md);
    margin: 2rem 0;
    border: 1px solid var(--c-border);
}

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

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

.form-control {
    width: 100%;
    padding: 0.8rem 1rem;
    background: var(--c-bg-input);
    border: 1px solid var(--c-border);
    border-radius: var(--radius-sm);
    color: white;
    font-family: inherit;
    transition: var(--transition);
}

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

.btn-green {
    background: var(--c-accent);
    color: #000;
    border: none;
    padding: 0.8rem 2rem;
    cursor: pointer;
    border-radius: var(--radius-sm);
    font-weight: bold;
    transition: var(--transition);
}

.btn-green:hover {
    background: #00b359;
    transform: translateY(-2px);
}

/* =========================================
   6. FAQ
   ========================================= */
.accord-block {
    margin-bottom: 1rem;
    background: #222;
    border-radius: var(--radius-sm);
    overflow: hidden;
}

.accord-block-header {
    padding: 1rem;
    cursor: pointer;
    background: #2a2a2a;
    transition: background 0.3s;
    position: relative;
}

.accord-block-header:hover {
    background: #333;
}

.accord-block-header h3 {
    margin: 0;
    font-size: 1rem;
    color: var(--c-text-main);
    padding-right: 2rem;
}

.accord-block-header::after {
    content: '+';
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.5rem;
    color: var(--c-primary);
}

.accord-block-content {
    padding: 1rem;
    color: var(--c-text-muted);
    border-top: 1px solid var(--c-border);
    display: block !important; /* Overriding inline style for demonstration if JS absent */
}

/* =========================================
   7. FOOTER
   ========================================= */
.footer {
    background: #000;
    color: #666;
    padding: 3rem 0;
    margin-top: 3rem;
    border-top: 2px solid var(--c-primary);
}

.footer__top, .footer__center, .footer__bottom {
    margin-bottom: 2rem;
}

.footer__icons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.footer__text {
    font-size: 0.8rem;
    text-align: center;
    line-height: 1.8;
}

.footer__text a {
    color: var(--c-primary);
}

/* =========================================
   8. SIDE BLOCKS (STICKY)
   ========================================= */
.side_block {
    position: fixed;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 1000;
}

.side_block_item {
    width: 60px;
    height: 60px;
    background: var(--c-secondary);
    border: 2px solid #fff;
    border-radius: var(--radius-sm) 0 0 var(--radius-sm);
    position: relative;
    overflow: hidden;
    transition: width 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: -2px 2px 10px rgba(0,0,0,0.5);
}

.side_block_item:hover {
    width: 150px;
    background: var(--c-primary);
}

.side_block_item_hover span {
    color: white;
    font-weight: bold;
    text-transform: uppercase;
    white-space: nowrap;
    opacity: 0;
    transition: opacity 0.3s;
}

.side_block_item:hover .side_block_item_hover span {
    opacity: 1;
    color: black;
}

/* =========================================
   9. MEDIA QUERIES (Mobile)
   ========================================= */
@media (max-width: 768px) {
    :root {
        --header-height: 60px;
    }
    
    /* Header layout */
    .header-top {
        flex-wrap: wrap;
        gap: 1rem;
    }
    
    .mob-nav-btn {
        display: flex;
        order: 3;
    }
    
    .site-logo {
        order: 1;
    }
    
    .user-bar {
        order: 2;
        margin-left: auto;
    }
    
    .user-bar button {
        padding: 0.5em 0.8em;
        font-size: 0.75rem;
    }
    
    /* Navigation */
    .main-navigation ul {
        flex-wrap: nowrap;
        overflow-x: auto;
        justify-content: flex-start;
        padding-bottom: 5px; /* Scrollbar space */
    }
    
    .main-navigation a {
        min-width: 80px;
        padding: 0.5rem;
        font-size: 0.8rem;
    }
    
    .main-navigation .icon {
        font-size: 1.2rem;
    }

    /* Counters stack */
    .header-counters {
        flex-direction: column;
    }
    
    .counter-container {
        justify-content: center;
        font-size: 1.1rem;
    }

    /* Slots */
    .slots-list {
        grid-template-columns: repeat(2, 1fr); /* 2 columns on mobile */
    }

    /* Hide less important elements */
    .header-top__menu {
        display: none;
    }
    
    .side_block {
        display: none; /* Hide sticky buttons on mobile to avoid overlap */
    }
    
    .form-box {
        flex-direction: column;
    }
    
    .btn-green {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .slots-list {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.5rem;
    }
    
    .banner-text {
        font-size: 1.2rem;
    }
    
    .slot-name {
        font-size: 0.8rem;
        padding: 0.5rem;
    }
}
