/* * Seven Bet - Premium Casino Template
 * Design System: Windows 11 Fluent Design Inspired (Dark Mode Focus)
 */

:root {
    /* Windows 11 / Fluent Colors */
    --bg-base: #18181a;
    --bg-acrylic: rgba(32, 32, 34, 0.65);
    --bg-card: rgba(43, 43, 46, 0.7);
    --bg-card-hover: rgba(55, 55, 58, 0.8);
    
    /* Casino Brand Colors */
    --accent-primary: #0078D4; /* Fluent Blue */
    --accent-primary-hover: #1084ea;
    --accent-gradient: linear-gradient(135deg, #0078D4 0%, #7B32DD 100%);
    --accent-glow: rgba(123, 50, 221, 0.4);
    
    /* Text Colors */
    --text-main: #F3F3F3;
    --text-muted: #A0A0A5;
    
    /* Semantic Colors */
    --success: #1CC967;
    --success-bg: rgba(28, 201, 103, 0.1);
    --danger: #FF4D4D;
    --danger-bg: rgba(255, 77, 77, 0.1);
    
    /* Borders & Shadows */
    --border-light: rgba(255, 255, 255, 0.08);
    --border-accent: rgba(255, 255, 255, 0.15);
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --shadow-flyout: 0 16px 40px rgba(0, 0, 0, 0.5);
    --shadow-soft: 0 4px 12px rgba(0, 0, 0, 0.3);
    
    /* Typography */
    --font-family: 'Inter', system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

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

html, body {
    overflow-x: hidden; /* Глобальная защита от скролла */
    width: 100%; /* Исправлено с 100vw для предотвращения появления горизонтального скролла */
    max-width: 100%;
    position: relative;
}

body {
    font-family: var(--font-family);
    background-color: var(--bg-base);
    color: var(--text-main);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    /* Win 11 style subtle background blob for depth */
    background-image: radial-gradient(circle at 15% 50%, rgba(0, 120, 212, 0.05), transparent 25%),
                      radial-gradient(circle at 85% 30%, rgba(123, 50, 221, 0.05), transparent 25%);
    background-attachment: fixed;
}

a {
    color: var(--accent-primary);
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: var(--text-main);
}

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

ul {
    list-style: none;
}

.container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ================= Windows 11 Fluent Materials ================= */
.acrylic-panel {
    background: var(--bg-acrylic);
    backdrop-filter: blur(25px) saturate(150%);
    -webkit-backdrop-filter: blur(25px) saturate(150%);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft);
}

.acrylic-flyout {
    background: rgba(35, 35, 38, 0.85);
    backdrop-filter: blur(40px) saturate(180%);
    -webkit-backdrop-filter: blur(40px) saturate(180%);
    border: 1px solid var(--border-accent);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-flyout);
}

/* ================= Header & Navigation ================= */
.site-header {
    position: fixed;
    top: 15px;
    left: 20px;
    right: 20px;
    z-index: 1000;
    border-radius: var(--radius-md);
    padding: 12px 24px;
    transition: background 0.3s ease, box-shadow 0.3s ease;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0;
    width: 100%;
}

.logo img {
    height: 36px;
    width: auto;
}

.main-nav .nav-list {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Main Nav Links */
.nav-list > li > a:not(.nav-item-group a) {
    color: var(--text-main);
    font-size: 14px;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: background 0.2s;
    display: flex;
    align-items: center;
    gap: 6px;
}

.nav-list > li > a:hover:not(.nav-item-group a),
.nav-list li.active > a:not(.nav-item-group a) {
    background: var(--bg-card-hover);
}

/* Dual Hit-Area Container */
.nav-item-group {
    display: flex;
    align-items: center;
    border-radius: var(--radius-sm);
    transition: background 0.2s;
}

.nav-list li.has-dropdown:hover > .nav-item-group,
.nav-list li.active > .nav-item-group {
    background: var(--bg-card-hover);
}

.nav-item-group > a {
    color: var(--text-main);
    font-size: 14px;
    font-weight: 500;
    padding: 8px 8px 8px 16px;
    border-radius: var(--radius-sm) 0 0 var(--radius-sm);
    flex-grow: 1;
    transition: background 0.2s;
}

.nav-item-group > a:hover {
    background: rgba(255,255,255,0.05);
}

.mobile-drop-btn {
    padding: 8px 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    transition: background 0.2s;
}

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

/* Dropdown */
.has-dropdown {
    position: relative;
}

.arrow-down {
    border: solid var(--text-muted);
    border-width: 0 2px 2px 0;
    display: inline-block;
    padding: 2px;
    transform: rotate(45deg);
    margin-bottom: 2px;
}

.dropdown-menu {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    min-width: 200px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    padding: 8px;
}

.has-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu li a {
    padding: 10px 16px;
    width: 100%;
    border-radius: var(--radius-sm);
    display: block;
    color: var(--text-main);
}

.dropdown-menu li a:hover {
    background: rgba(255,255,255,0.05);
}

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

.mobile-toggle {
    display: none;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 8px;
    outline: none;
}

.mobile-toggle .bar {
    display: block;
    width: 26px;
    height: 3px;
    background-color: var(--text-main);
    margin: 5px 0;
    transition: 0.3s ease-in-out;
    border-radius: 3px;
}

/* ================= Buttons (Fluent UI Style) ================= */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 20px;
    font-size: 14px;
    font-weight: 600;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.2s ease;
    border: 1px solid transparent;
    text-align: center;
}

.btn-large {
    padding: 14px 28px;
    font-size: 16px;
    border-radius: var(--radius-md);
}

.btn-small {
    padding: 6px 14px;
    font-size: 13px;
}

.btn-primary {
    background: var(--accent-gradient);
    color: #fff;
    box-shadow: 0 4px 15px var(--accent-glow);
    border-top: 1px solid rgba(255,255,255,0.2);
}

.btn-primary:hover {
    filter: brightness(1.1);
    color: #fff;
    transform: translateY(-1px);
}

.btn-secondary {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    color: var(--text-main);
}

.btn-secondary:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-accent);
}

/* ================= Layout & Pages ================= */
.page-wrapper {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    overflow-x: hidden;
    width: 100%;
}

.main-content {
    flex: 1;
    padding-top: 100px;
    padding-bottom: 60px;
}

section {
    max-width: 1240px;
    margin: 0 auto 40px;
    padding: 0 20px;
}

.section-title {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 24px;
    text-align: center;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* ================= Hero Section ================= */
.hero-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
    padding: 60px 40px;
    margin-top: 20px;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, var(--accent-glow) 0%, transparent 60%);
    pointer-events: none;
}

.badge {
    display: inline-block;
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    color: var(--accent-primary);
    margin-bottom: 16px;
}

.hero-content h1 {
    font-size: 48px;
    line-height: 1.1;
    margin-bottom: 20px;
    font-weight: 800;
}

.text-accent {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-content p {
    font-size: 18px;
    color: var(--text-muted);
    margin-bottom: 30px;
}

.hero-buttons {
    display: flex;
    gap: 16px;
}

.hero-image img {
    width: 100%;
    border-radius: var(--radius-md);
    transform: perspective(1000px) rotateY(-5deg) translateY(-5px);
    transition: transform 0.5s ease;
}

.hero-section:hover .hero-image img {
    transform: perspective(1000px) rotateY(0deg) translateY(0);
}

/* ================= Pros & Cons Cards ================= */
.pros-cons-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.card {
    padding: 30px;
    position: relative;
    overflow: hidden;
    background: var(--bg-card);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-light);
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
}

.pros-card::before { background: var(--success); }
.cons-card::before { background: var(--danger); }

.card h3 {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 20px;
    margin-bottom: 20px;
}

.icon-check {
    display: inline-block;
    width: 24px; height: 24px;
    background: var(--success-bg);
    border-radius: 50%;
    position: relative;
}
.icon-check::after {
    content: '✓';
    color: var(--success);
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    font-weight: bold;
}

.icon-cross {
    display: inline-block;
    width: 24px; height: 24px;
    background: var(--danger-bg);
    border-radius: 50%;
    position: relative;
}
.icon-cross::after {
    content: '✕';
    color: var(--danger);
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    font-weight: bold;
}

.card ul {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.card li {
    position: relative;
    padding-left: 24px;
    color: var(--text-main);
    font-size: 15px;
}

.card li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 8px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--border-accent);
}

.pros-card li::before { background: var(--success); }
.cons-card li::before { background: var(--danger); }

/* ================= Comparison Table ================= */
.table-responsive {
    width: 100%;
    overflow-x: auto;
    display: block;
    -webkit-overflow-scrolling: touch;
    padding: 1px; /* Защита от обрезания теней */
}

.win-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    min-width: 600px; /* Чтобы таблица скроллилась на мобилках */
}

.win-table th, 
.win-table td {
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-light);
}

.win-table th {
    font-size: 14px;
    color: var(--text-muted);
    font-weight: 600;
    background: rgba(0,0,0,0.2);
}

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

.win-table tbody tr {
    transition: background 0.2s;
}

.win-table tbody tr:hover {
    background: var(--bg-card-hover);
}

.table-logo {
    height: 24px;
    display: inline-block;
    vertical-align: middle;
    margin-right: 10px;
}

/* ================= SEO Text Block ================= */
.content-block {
    padding: 40px;
    font-size: 16px;
    color: #dedede;
    background: var(--bg-card);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-light);
}

.content-block h2 {
    font-size: 24px;
    margin-bottom: 20px;
    color: var(--text-main);
}

.content-block h3 {
    font-size: 20px;
    margin: 24px 0 16px;
    color: var(--text-main);
}

.content-block p {
    margin-bottom: 16px;
}

.content-block ul,
.content-block ol {
    margin-bottom: 20px;
    padding-left: 20px;
}

.content-block li {
    margin-bottom: 8px;
}

.content-block a {
    text-decoration: underline;
    text-decoration-color: var(--border-accent);
    text-underline-offset: 4px;
}

.content-block a:hover {
    text-decoration-color: var(--accent-primary);
}

/* ================= Footer ================= */
.site-footer {
    background: rgba(20, 20, 22, 0.8);
    border-top: 1px solid var(--border-light);
    padding: 60px 0 20px;
    margin-top: auto;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-logo {
    height: 32px;
    margin-bottom: 20px;
    opacity: 0.8;
}

.footer-desc {
    color: var(--text-muted);
    font-size: 14px;
    margin-bottom: 20px;
    max-width: 300px;
}

.age-warning {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    color: var(--text-muted);
    background: var(--bg-card);
    padding: 6px 12px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-light);
}

.age-icon {
    font-weight: 800;
    color: #fff;
    background: var(--danger);
    padding: 2px 6px;
    border-radius: 4px;
}

.footer-links h4 {
    font-size: 16px;
    margin-bottom: 16px;
    color: var(--text-main);
}

.footer-links ul {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-links a {
    color: var(--text-muted);
    font-size: 14px;
    transition: all 0.2s ease;
    display: inline-block;
}

.footer-links > ul > li > a:hover {
    color: var(--accent-primary);
    transform: translateX(4px);
}

/* Subtext Provider in footer */
.provider-subtext {
    color: var(--text-muted);
    font-size: 13px;
    margin-left: 4px;
}

.provider-subtext a {
    color: var(--text-muted);
    font-size: 13px;
    display: inline;
    text-decoration: underline;
    text-decoration-color: transparent;
}

.provider-subtext a:hover {
    color: var(--accent-primary);
    transform: none;
    text-decoration-color: var(--accent-primary);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 20px;
    border-top: 1px solid var(--border-light);
    font-size: 13px;
    color: var(--text-muted);
}

.payment-methods {
    display: flex;
    gap: 12px;
}

.payment-methods img {
    height: 24px;
    opacity: 0.6;
    transition: opacity 0.2s;
}

.payment-methods img:hover {
    opacity: 1;
}

/* ================= Responsive Design ================= */
@media (max-width: 992px) {
    .hero-section {
        grid-template-columns: 1fr;
        text-align: center;
        padding: 40px 20px;
    }
    .hero-content h1 {
        font-size: 36px;
    }
    .hero-buttons {
        justify-content: center;
    }
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

@media (max-width: 768px) {
    /* Фиксируем отступы безопасности для мобилок */
    .container {
        padding: 0 16px; 
    }
    
    section {
        padding: 0 16px;
    }

    .content-block {
        padding: 24px 16px; /* Больше никаких прилипающих краев текста */
    }

    .card {
        padding: 20px 16px;
    }

    .hero-section {
        padding: 30px 16px;
    }

    .site-header {
        position: fixed !important;
        top: 0 !important; 
        left: 0 !important; 
        right: 0 !important;
        border-radius: 0 !important;
        padding: 12px 16px !important;
        z-index: 9999 !important;
        background: rgba(25, 25, 28, 0.95) !important;
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        box-shadow: 0 4px 15px rgba(0,0,0,0.5) !important;
    }
    
    .main-content {
        padding-top: 80px; 
    }
    
    .mobile-toggle {
        display: block !important;
        z-index: 10000;
    }
    
    .header-actions {
        display: none !important; 
    }
    
    .main-nav {
        position: fixed;
        top: 60px;
        left: 0;
        width: 100%;
        height: calc(100vh - 60px);
        background: rgba(25, 25, 28, 0.98);
        backdrop-filter: blur(30px);
        -webkit-backdrop-filter: blur(30px);
        border-bottom: none;
        padding: 20px 16px;
        transform: translateY(-120%);
        transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
        z-index: 999;
        overflow-y: auto;
    }
    
    .main-nav.active {
        transform: translateY(0);
    }
    
    .nav-list {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }
    
    .nav-list li {
        width: 100%;
    }
    
    /* Sizing updates for dual hit-areas */
    .nav-item-group {
        width: 100%;
        justify-content: space-between;
    }

    .nav-list > li > a:not(.nav-item-group a),
    .nav-item-group > a {
        font-size: 16px;
        padding: 12px 16px;
    }

    .mobile-drop-btn {
        padding: 12px 20px;
    }
    
    .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        background: rgba(255,255,255,0.05);
        display: none;
        margin-top: 10px;
        border: none;
    }
    
    .has-dropdown.active .dropdown-menu {
        display: block;
    }
    
    .pros-cons-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }
}
