/* --- BRAND ACCURATE DESIGN TOKENS --- */
:root {
    --bg-main: #01050e;        /* Deep Midnight Black Blue */
    --bg-sidebar: #09101d;     /* Sidebar Background */
    --bg-header: #01050e;
    --bg-card: #0d1421;        /* Card Background */
    
    /* Colori Bottoni e Accenti */
    --primary-gradient: linear-gradient(90deg, #00d4ff 0%, #007aff 100%);
    --accent-red: #ff0055;     /* Sidebar Active Indicator */
    --accent-cyan: #00d4ff;
    
    --text-white: #ffffff;
    --text-gray: #8fa0b8;      
    --text-muted: #5c6b85;
    --border-ui: #1a2b4d;      
    
    /* Border Radii */
    --radius-btn-sm: 6px;      /* Header buttons */
    --radius-pill: 50px;       /* Hero buttons */
    --radius-card: 12px;       /* Betting Cards */
}

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

body {
    background-color: var(--bg-main);
    color: var(--text-white);
    font-family: 'Inter', sans-serif;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

a { text-decoration: none; color: inherit; transition: 0.25s ease; }

/* --- LAYOUT --- */
.app-layout {
    display: flex;
    min-height: 100vh;
}

/* --- SIDEBAR --- */
.sidebar {
    width: 260px;
    background-color: var(--bg-sidebar);
    border-right: 1px solid var(--border-ui);
    display: flex;
    flex-direction: column;
    position: fixed;
    height: 100vh;
    z-index: 100;
    transition: transform 0.3s ease;
}

.nav-list { flex: 1; overflow-y: auto; padding-top: 10px; }

.nav-item {
    display: flex;
    align-items: center;
    padding: 12px 24px;
    color: var(--text-gray);
    font-weight: 600;
    font-size: 13px;
    border-left: 4px solid transparent;
}

.nav-item:hover, .nav-item.active {
    color: white;
    background-color: rgba(255, 255, 255, 0.03);
    border-left-color: var(--accent-red);
}

.nav-item i { margin-right: 12px; font-style: normal; font-size: 18px; width: 22px; text-align: center; }

.nav-divider {
    height: 1px;
    background-color: var(--border-ui);
    margin: 15px 24px;
    opacity: 0.5;
}

.sidebar-footer {
    padding: 20px 24px;
    border-top: 1px solid var(--border-ui);
}

.sidebar-logo {
    padding: 25px 24px;
    font-size: 22px;
    font-weight: 900;
    font-style: italic;
    text-transform: uppercase;
    letter-spacing: -1px;
    color: white;
}

.lang-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 12px;
    color: var(--text-gray);
    font-weight: 700;
    text-transform: uppercase;
    cursor: pointer;
}

.lang-btn-spaced {
    margin-top: 18px;
    text-decoration: none;
}

/* --- MAIN CONTENT --- */
.main-content {
    flex: 1;
    margin-left: 260px;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
}

/* --- HEADER --- */
.header {
    height: 72px;
    padding: 0 30px;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    background-color: var(--bg-header);
    border-bottom: 1px solid var(--border-ui);
    position: sticky;
    top: 0;
    z-index: 90;
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 101;
}

.mobile-menu-btn span {
    width: 25px;
    height: 3px;
    background-color: var(--text-white);
    border-radius: 2px;
    transition: all 0.3s ease;
}

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

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

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

.search-box { position: relative; width: 350px; }
.search-box input {
    width: 100%;
    background: #0d1421;
    border: 1px solid var(--border-ui);
    padding: 10px 15px;
    border-radius: 6px;
    color: white;
    font-size: 13px;
}

.header-actions { display: flex; gap: 12px; }

.btn {
    height: 40px;
    padding: 0 24px;
    border-radius: var(--radius-btn-sm);
    font-weight: 800;
    font-size: 12px;
    text-transform: uppercase;
    cursor: pointer;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-login {
    background-color: #131b2b;
    color: white;
    border: 1px solid #2d3b50;
}

.btn-register {
    background: var(--primary-gradient);
    color: white;
    font-weight: 900;
}

/* --- HERO BANNER --- */
.hero-banner {
    margin: 20px 30px;
    background: url('banner.png') center/cover no-repeat;
    border-radius: 12px;
    padding: 60px;
    display: flex;
    position: relative;
    overflow: hidden;
    border: 1px solid var(--border-ui);
    min-height: 400px;
    align-items: center;
}

.hero-content { z-index: 2; max-width: 600px; }
.hero-content h1 { font-size: 56px; font-weight: 900; font-style: italic; line-height: 1; margin-bottom: 25px; text-transform: uppercase; color: #fff; letter-spacing: -1.5px; }
.hero-content p { color: #b0c2d8; margin-bottom: 35px; font-size: 18px; }

.hero-badge {
    font-size: 12px;
    font-weight: 800;
    color: var(--text-gray);
    margin-bottom: 15px;
    display: block;
    letter-spacing: 3px;
    text-transform: uppercase;
}

.cta-pill {
    display: inline-flex;
    background: var(--primary-gradient);
    color: white;
    padding: 18px 50px;
    border-radius: var(--radius-pill);
    font-weight: 900;
    font-style: italic;
    text-transform: uppercase;
    box-shadow: 0 10px 30px rgba(0, 122, 255, 0.3);
}

/* --- HORIZONTAL BETTING BLOCK --- */
.betting-block {
    padding: 0 30px 40px;
    overflow: hidden;
}

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

.block-header h2 {
    font-size: 14px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: white;
}

.show-all-link {
    color: var(--accent-cyan);
    font-size: 11px;
    font-weight: 700;
}

.betting-slider {
    display: flex;
    gap: 15px;
    overflow-x: auto;
    padding-bottom: 10px;
    scroll-behavior: smooth;
}

.betting-slider::-webkit-scrollbar {
    height: 6px;
}
.betting-slider::-webkit-scrollbar-track {
    background: #09101d;
    border-radius: 4px;
}
.betting-slider::-webkit-scrollbar-thumb {
    background: #1a2b4d;
    border-radius: 4px;
}

.event-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-ui);
    border-radius: var(--radius-card);
    padding: 20px;
    min-width: 280px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: 0.2s;
}

.event-card:hover {
    border-color: var(--accent-cyan);
    transform: translateY(-2px);
}

.card-header {
    display: flex;
    justify-content: space-between;
    font-size: 11px;
    color: var(--text-muted);
    font-weight: 700;
    margin-bottom: 15px;
    text-transform: uppercase;
}

.live-indicator {
    color: #00ff88;
}

.card-teams {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 20px;
}

.team-row {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 14px;
    color: #fff;
}

.team-row i {
    color: #fff; 
    opacity: 0.7;
    font-style: normal;
}

.card-odds {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}

.odd-box {
    background-color: #1a2434;
    border: 1px solid #2d3b50;
    border-radius: 6px;
    padding: 8px 0;
    text-align: center;
    cursor: pointer;
    transition: 0.2s;
    text-decoration: none;
    display: block;
}

.odd-box:hover {
    background-color: #252f40;
    border-color: var(--accent-cyan);
}

.odd-box-disabled {
    opacity: 0.3;
    pointer-events: none;
}

.odd-box span { display: block; }
.odd-name { font-size: 10px; color: var(--text-muted); font-weight: 700; margin-bottom: 2px; }
.odd-val { font-size: 13px; font-weight: 800; color: #fff; }

/* --- SEO CONTENT BLOCK --- */
.container { padding: 0 30px 60px; max-width: 1400px; }
.seo-box {
    background-color: var(--bg-sidebar);
    border-radius: 16px;
    padding: 45px;
    border: 1px solid var(--border-ui);
    line-height: 1.8;
    color: #8fa0b8;
}
.seo-box h2 { color: white; font-size: 30px; margin-bottom: 25px; font-weight: 800; font-style: italic; text-transform: uppercase; }
.seo-box h3 { color: white; font-size: 24px; margin-top: 30px; margin-bottom: 20px; font-weight: 800; font-style: italic; text-transform: uppercase; }
.seo-box p { margin-bottom: 20px; color: #8fa0b8; }
.seo-box table {
    width: 100%;
    border-collapse: collapse;
    margin: 30px 0;
    background-color: var(--bg-card);
    border: 1px solid var(--border-ui);
    border-radius: 8px;
    overflow: hidden;
}
.seo-box table td {
    padding: 15px;
    border: 1px solid var(--border-ui);
    color: #8fa0b8;
}
.seo-box table td:first-child {
    background-color: rgba(0, 212, 255, 0.1);
    color: var(--accent-cyan);
    font-weight: 700;
}
.seo-box table td p {
    margin: 0;
    color: #8fa0b8;
}
.seo-box table tr:first-child td {
    background-color: rgba(0, 122, 255, 0.15);
    color: white;
    font-weight: 800;
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: 0.5px;
}
.seo-box table tr:first-child td p {
    color: white;
    font-weight: 800;
}
.seo-box ul, .seo-box ol {
    margin: 20px 0;
    padding-left: 30px;
    color: #8fa0b8;
}
.seo-box ul li, .seo-box ol li {
    margin-bottom: 12px;
    line-height: 1.8;
    color: #8fa0b8;
}
.seo-box ul li {
    list-style-type: disc;
}
.seo-box ol li {
    list-style-type: decimal;
}

/* --- FOOTER --- */
.footer {
    background-color: #01040a;
    padding: 80px 30px 40px;
    border-top: 1px solid var(--border-ui);
    margin-top: auto;
}

.footer-grid { 
    display: grid; 
    grid-template-columns: repeat(4, 1fr); 
    gap: 40px; 
    max-width: 1300px; 
    margin: 0 auto 60px; 
    align-items: start;
}

.f-col h4 { 
    color: #5c6b85; 
    text-transform: uppercase; 
    font-size: 11px; 
    margin-bottom: 30px; 
    font-weight: 800; 
    letter-spacing: 1px;
}

.f-col ul {
    padding: 0;
    margin: 0;
    list-style: none;
}

.f-col ul li { 
    margin-bottom: 14px; 
    font-size: 13px; 
    font-weight: 600; 
}

.f-col ul li a {
    color: #fff;
    text-decoration: none;
    display: block;
    transition: color 0.2s;
}

.f-col ul li a:hover {
    color: var(--accent-cyan);
}

.footer-bottom {
    max-width: 1300px;
    margin: 0 auto;
    border-top: 1px solid #131a26;
    padding-top: 40px;
    text-align: center;
    color: #5c6b85;
    font-size: 12px;
}

.pay-methods {
    opacity: 0.7;
    font-weight: 800;
    font-size: 14px;
    margin-bottom: 25px;
}

.age-badge-container {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
}

.age-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border: 1px solid #5c6b85;
    border-radius: 50%;
    font-size: 11px;
    font-weight: 800;
}

.footer-disclaimer {
    max-width: 800px;
    margin: 0 auto 20px;
    line-height: 1.6;
    opacity: 0.6;
}

.footer-copyright {
    font-weight: 700;
    color: #fff;
}

/* --- MOBILE RESPONSIVE --- */
@media (max-width: 768px) {
    .sidebar {
        transform: translateX(-100%);
        width: 280px;
    }

    .sidebar.mobile-open {
        transform: translateX(0);
    }

    /* Overlay для мобильного меню */
    .mobile-overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.7);
        z-index: 99;
    }

    .mobile-overlay.active {
        display: block;
    }

    .main-content {
        margin-left: 0;
    }

    .header {
        padding: 0 15px;
        height: 60px;
        justify-content: space-between;
    }

    .mobile-menu-btn {
        display: flex;
    }

    .search-box {
        width: 100%;
        max-width: 200px;
    }

    .search-box input {
        font-size: 12px;
        padding: 8px 12px;
    }

    .header-actions {
        gap: 8px;
    }

    .btn {
        height: 36px;
        padding: 0 16px;
        font-size: 11px;
    }

    .hero-banner {
        margin: 15px;
        padding: 30px 20px;
        min-height: 300px;
        background-size: cover;
        background-position: center;
    }

    .hero-content {
        max-width: 100%;
    }

    .hero-content h1 {
        font-size: 32px;
        margin-bottom: 15px;
    }

    .hero-content p {
        font-size: 14px;
        margin-bottom: 20px;
    }

    .hero-badge {
        font-size: 10px;
        margin-bottom: 10px;
    }

    .cta-pill {
        padding: 14px 30px;
        font-size: 12px;
    }

    .betting-block {
        padding: 0 15px 30px;
    }

    .block-header h2 {
        font-size: 12px;
    }

    .show-all-link {
        font-size: 10px;
    }

    .event-card {
        min-width: 240px;
        padding: 15px;
    }

    .card-header {
        font-size: 10px;
    }

    .team-row {
        font-size: 13px;
    }

    .container {
        padding: 0 15px 40px;
    }

    .seo-box {
        padding: 25px 20px;
    }

    .seo-box h2 {
        font-size: 22px;
        margin-bottom: 15px;
    }

    .seo-box h3 {
        font-size: 18px;
        margin-top: 20px;
        margin-bottom: 15px;
    }

    .seo-box table {
        font-size: 12px;
        margin: 20px 0;
    }

    .seo-box table td {
        padding: 10px;
    }

    .seo-box ul, .seo-box ol {
        padding-left: 20px;
    }

    .footer {
        padding: 40px 15px 30px;
    }

    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
        margin-bottom: 40px;
    }

    .footer-bottom {
        padding-top: 30px;
    }

    .pay-methods {
        font-size: 11px;
        margin-bottom: 20px;
    }

    .footer-disclaimer {
        font-size: 11px;
        margin-bottom: 15px;
    }

    .footer-copyright {
        font-size: 11px;
    }
}

@media (max-width: 480px) {
    .header {
        padding: 0 10px;
    }

    .mobile-menu-btn {
        display: flex;
    }

    .search-box {
        display: none;
    }

    .header-actions {
        width: 100%;
        justify-content: flex-end;
    }

    .btn {
        padding: 0 12px;
        font-size: 10px;
    }

    .hero-banner {
        margin: 10px;
        padding: 25px 15px;
        min-height: 250px;
    }

    .hero-content h1 {
        font-size: 24px;
    }

    .hero-content p {
        font-size: 13px;
    }

    .cta-pill {
        padding: 12px 25px;
        font-size: 11px;
    }

    .betting-block {
        padding: 0 10px 20px;
    }

    .event-card {
        min-width: 220px;
        padding: 12px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .seo-box {
        padding: 20px 15px;
    }

    .seo-box h2 {
        font-size: 18px;
    }

    .seo-box h3 {
        font-size: 16px;
        margin-top: 15px;
        margin-bottom: 12px;
    }

    .seo-box table {
        font-size: 11px;
        display: block;
        overflow-x: auto;
    }

    .seo-box table td {
        padding: 8px;
        min-width: 100px;
    }

    .seo-box ul, .seo-box ol {
        padding-left: 18px;
    }
}
