/**
 * 1xBet EMD Modern Stylesheet
 * Mobile-First, High Performance, Responsive Design
 */

:root {
    --bg-dark: #0b1626;
    --bg-surface: #0e1d33;
    --bg-card: #132644;
    --bg-card-hover: #183157;
    --bg-input: #091322;
    --border-color: #1e3b68;
    --border-light: #2b5089;
    
    --primary: #0088cc;
    --primary-hover: #0099e6;
    --primary-glow: rgba(0, 136, 204, 0.35);
    
    --accent-green: #22c55e;
    --accent-green-hover: #16a34a;
    --accent-gold: #f59e0b;
    --accent-gold-hover: #d97706;
    --accent-red: #ef4444;
    
    --text-main: #f8fafc;
    --text-body: #cbd5e1;
    --text-muted: #8496b0;
    --text-dim: #5c6f8a;
    
    --font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --radius-full: 9999px;
    
    --container-max: 1200px;
    --shadow-card: 0 4px 20px rgba(0, 0, 0, 0.25);
    --shadow-glow: 0 0 25px rgba(0, 136, 204, 0.25);
    --transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

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

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

body {
    font-family: var(--font-family);
    background-color: var(--bg-dark);
    color: var(--text-body);
    line-height: 1.65;
    padding-bottom: 70px; /* Space for mobile bottom bar */
    -webkit-font-smoothing: antialiased;
}

@media (min-width: 992px) {
    body {
        padding-bottom: 0;
    }
}

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

a:hover {
    color: var(--primary-hover);
}

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

/* Typography */
h1, h2, h3, h4, h5, h6 {
    color: var(--text-main);
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 1rem;
}

h1 { font-size: 1.85rem; }
h2 { font-size: 1.5rem; margin-top: 2.2rem; }
h3 { font-size: 1.25rem; margin-top: 1.5rem; }

@media (min-width: 768px) {
    h1 { font-size: 2.4rem; }
    h2 { font-size: 1.85rem; }
    h3 { font-size: 1.4rem; }
}

p {
    margin-bottom: 1.2rem;
}

strong {
    color: var(--text-main);
}

/* Container */
.container {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 1rem;
}

/* Header & Navigation */
.site-header {
    background-color: var(--bg-surface);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
}

.top-bar {
    background: #07101c;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 0.82rem;
    padding: 0.4rem 0;
    color: var(--text-muted);
}

.top-bar-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-bar-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--accent-green);
    font-weight: 600;
}

.top-bar-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: var(--accent-green);
    box-shadow: 0 0 8px var(--accent-green);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(0.85); }
}

.header-main {
    padding: 0.75rem 0;
}

.header-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.logo-link {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.5rem;
    font-weight: 800;
    color: #fff;
    letter-spacing: -0.5px;
}

.logo-link img {
    height: 34px;
    width: auto;
}

.logo-badge {
    background: linear-gradient(135deg, var(--primary), #005599);
    padding: 2px 8px;
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Nav Menu Desktop */
.nav-menu {
    display: none;
    list-style: none;
    gap: 0.5rem;
    align-items: center;
}

@media (min-width: 992px) {
    .nav-menu {
        display: flex;
    }
}

.nav-link {
    display: block;
    padding: 0.5rem 0.85rem;
    color: var(--text-body);
    font-size: 0.92rem;
    font-weight: 600;
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

.nav-link:hover, .nav-link.active {
    color: #ffffff;
    background-color: var(--bg-card);
}

.nav-link.active {
    border-bottom: 2px solid var(--primary);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 0.65rem 1.25rem;
    font-size: 0.92rem;
    font-weight: 700;
    border-radius: var(--radius-md);
    cursor: pointer;
    border: none;
    text-align: center;
    transition: var(--transition);
    text-shadow: 0 1px 2px rgba(0,0,0,0.3);
    white-space: nowrap;
}

.btn-sm {
    padding: 0.45rem 0.85rem;
    font-size: 0.85rem;
}

.btn-lg {
    padding: 0.85rem 1.8rem;
    font-size: 1.05rem;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), #0066aa);
    color: #ffffff;
    box-shadow: 0 3px 12px var(--primary-glow);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--primary-hover), #0077cc);
    color: #ffffff;
    transform: translateY(-1px);
    box-shadow: 0 5px 18px rgba(0, 136, 204, 0.45);
}

.btn-success {
    background: linear-gradient(135deg, var(--accent-green), #15803d);
    color: #ffffff;
    box-shadow: 0 3px 12px rgba(34, 197, 94, 0.3);
}

.btn-success:hover {
    background: linear-gradient(135deg, var(--accent-green-hover), #166534);
    color: #ffffff;
    transform: translateY(-1px);
    box-shadow: 0 5px 18px rgba(34, 197, 94, 0.45);
}

.btn-gold {
    background: linear-gradient(135deg, var(--accent-gold), #b45309);
    color: #0b1626;
    font-weight: 800;
    text-shadow: none;
    box-shadow: 0 3px 12px rgba(245, 158, 11, 0.3);
}

.btn-gold:hover {
    background: linear-gradient(135deg, var(--accent-gold-hover), #92400e);
    color: #000;
    transform: translateY(-1px);
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--border-light);
    color: var(--text-main);
}

.btn-outline:hover {
    background: var(--bg-card);
    border-color: var(--primary);
    color: #fff;
}

.btn-icon {
    width: 38px;
    height: 38px;
    padding: 0;
    border-radius: var(--radius-sm);
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    color: #fff;
}

/* Mobile Burger Menu Button */
.burger-btn {
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 4px;
    width: 38px;
    height: 38px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    cursor: pointer;
}

@media (min-width: 992px) {
    .burger-btn {
        display: none;
    }
}

.burger-line {
    width: 20px;
    height: 2px;
    background-color: var(--text-main);
    transition: var(--transition);
}

/* Mobile Drawer */
.mobile-drawer {
    position: fixed;
    top: 0;
    left: -100%;
    width: 290px;
    max-width: 85%;
    height: 100vh;
    background-color: var(--bg-surface);
    border-right: 1px solid var(--border-color);
    z-index: 2000;
    padding: 1.5rem 1.25rem;
    display: flex;
    flex-direction: column;
    transition: left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 10px 0 30px rgba(0, 0, 0, 0.5);
    overflow-y: auto;
}

.mobile-drawer.open {
    left: 0;
}

.drawer-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    z-index: 1999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.drawer-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.drawer-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--border-color);
}

.drawer-close {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.5rem;
    cursor: pointer;
}

.drawer-nav {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    margin-bottom: 1.5rem;
}

.drawer-nav .nav-link {
    padding: 0.75rem 1rem;
    font-size: 1rem;
}

/* Layout Grid */
.main-wrapper {
    padding: 1.5rem 0 3rem;
}

.content-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

@media (min-width: 992px) {
    .content-grid {
        grid-template-columns: 1fr 340px;
    }
}

.content-main {
    min-width: 0;
}

/* Hero Section */
.hero-box {
    background: linear-gradient(135deg, #112644 0%, #0d1e38 100%);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: 1.75rem 1.25rem;
    margin-bottom: 2rem;
    box-shadow: var(--shadow-card);
    position: relative;
    overflow: hidden;
}

@media (min-width: 768px) {
    .hero-box {
        padding: 2.5rem 2rem;
    }
}

.hero-box::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, rgba(0, 136, 204, 0.15) 0%, rgba(0,0,0,0) 70%);
    pointer-events: none;
}

.hero-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(0, 136, 204, 0.15);
    border: 1px solid rgba(0, 136, 204, 0.35);
    color: var(--primary-hover);
    padding: 4px 12px;
    border-radius: var(--radius-full);
    font-size: 0.82rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.hero-title {
    margin-bottom: 0.85rem;
}

.hero-desc {
    color: var(--text-body);
    font-size: 1.05rem;
    max-width: 720px;
    margin-bottom: 1.5rem;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.hero-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: 0.75rem;
    padding-top: 1.25rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.hero-feature-item {
    display: flex;
    flex-direction: column;
}

.hero-feature-val {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--text-main);
}

.hero-feature-lbl {
    font-size: 0.78rem;
    color: var(--text-muted);
}

/* Breadcrumbs */
.breadcrumbs {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    font-size: 0.82rem;
    color: var(--text-muted);
    margin-bottom: 1.25rem;
}

.breadcrumbs a {
    color: var(--text-muted);
}

.breadcrumbs a:hover {
    color: var(--primary);
}

.breadcrumbs .sep {
    color: var(--text-dim);
}

.breadcrumbs .current {
    color: var(--text-body);
}

/* Article & Content */
.article-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    margin-bottom: 2rem;
    box-shadow: var(--shadow-card);
}

@media (min-width: 768px) {
    .article-card {
        padding: 2.25rem;
    }
}

.lead-text {
    font-size: 1.1rem;
    color: var(--text-main);
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

/* Key Data Table */
.data-table-wrapper {
    overflow-x: auto;
    margin: 1.5rem 0;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    background: var(--bg-card);
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    font-size: 0.92rem;
}

.data-table th, .data-table td {
    padding: 0.85rem 1rem;
    border-bottom: 1px solid var(--border-color);
}

.data-table th {
    background-color: #0f2038;
    color: var(--text-main);
    font-weight: 700;
}

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

.data-table tr:hover td {
    background-color: var(--bg-card-hover);
}

.data-table td:first-child {
    font-weight: 600;
    color: var(--text-main);
    width: 35%;
}

/* Step Cards */
.steps-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    margin: 1.5rem 0;
}

@media (min-width: 600px) {
    .steps-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.step-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 1.25rem;
    position: relative;
    transition: var(--transition);
}

.step-card:hover {
    border-color: var(--primary);
    transform: translateY(-2px);
}

.step-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, var(--primary), #005599);
    color: #fff;
    font-weight: 800;
    border-radius: 50%;
    margin-bottom: 0.75rem;
}

.step-title {
    font-size: 1.05rem;
    margin-bottom: 0.4rem;
}

.step-desc {
    font-size: 0.88rem;
    color: var(--text-muted);
    margin-bottom: 0;
}

/* Alert / Callout Box */
.callout {
    background: rgba(0, 136, 204, 0.08);
    border-left: 4px solid var(--primary);
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    padding: 1rem 1.25rem;
    margin: 1.5rem 0;
}

.callout-warning {
    background: rgba(245, 158, 11, 0.08);
    border-left-color: var(--accent-gold);
}

.callout-success {
    background: rgba(34, 197, 94, 0.08);
    border-left-color: var(--accent-green);
}

.callout-title {
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 0.35rem;
}

.callout p:last-child {
    margin-bottom: 0;
}

/* Reusable CTA Banner */
.cta-banner {
    background: linear-gradient(135deg, #163259 0%, #0c1c33 100%);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: 1.75rem 1.25rem;
    margin: 2rem 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

@media (min-width: 768px) {
    .cta-banner {
        padding: 2.25rem 2rem;
        display: flex;
        align-items: center;
        justify-content: space-between;
        text-align: left;
    }
}

.cta-banner-content {
    margin-bottom: 1.25rem;
}

@media (min-width: 768px) {
    .cta-banner-content {
        margin-bottom: 0;
        max-width: 65%;
    }
}

.cta-banner-title {
    font-size: 1.35rem;
    margin-bottom: 0.4rem;
}

.cta-banner-desc {
    color: var(--text-body);
    font-size: 0.95rem;
    margin-bottom: 0;
}

/* FAQ Accordion */
.faq-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin: 1.5rem 0;
}

.faq-item {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: var(--transition);
}

.faq-item.active {
    border-color: var(--border-light);
}

.faq-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.25rem;
    cursor: pointer;
    user-select: none;
}

.faq-question {
    font-size: 1.02rem;
    font-weight: 700;
    color: var(--text-main);
    margin: 0;
    padding-right: 1rem;
}

.faq-icon {
    font-size: 1.25rem;
    color: var(--primary);
    transition: transform 0.25s ease;
}

.faq-item.active .faq-icon {
    transform: rotate(180deg);
}

.faq-body {
    display: none;
    padding: 0 1.25rem 1.25rem;
    color: var(--text-body);
    font-size: 0.94rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    margin-top: 0.5rem;
    padding-top: 0.85rem;
}

.faq-item.active .faq-body {
    display: block;
}

/* Sidebar Widgets */
.sidebar {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.widget {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 1.25rem;
    box-shadow: var(--shadow-card);
}

.widget-title {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 8px;
}

.promo-badge-box {
    background: var(--bg-card);
    border: 1px dashed var(--border-light);
    border-radius: var(--radius-md);
    padding: 0.85rem;
    text-align: center;
    margin: 0.85rem 0;
}

.promo-code-text {
    font-family: monospace;
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--accent-gold);
    letter-spacing: 2px;
}

.copy-promo-btn {
    background: none;
    border: none;
    color: var(--primary);
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    margin-top: 4px;
    display: inline-block;
}

.quick-links-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.quick-link-item a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.6rem 0.85rem;
    background: var(--bg-card);
    border-radius: var(--radius-sm);
    color: var(--text-body);
    font-size: 0.9rem;
    font-weight: 600;
}

.quick-link-item a:hover {
    background: var(--bg-card-hover);
    color: #fff;
    border-left: 3px solid var(--primary);
}

/* Image Figures */
.content-figure {
    margin: 1.5rem 0;
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid var(--border-color);
    background: var(--bg-card);
}

.content-figure figcaption {
    padding: 0.65rem 1rem;
    font-size: 0.82rem;
    color: var(--text-muted);
    text-align: center;
    background: #0d1e35;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

/* Footer */
.site-footer {
    background-color: #071220;
    border-top: 1px solid var(--border-color);
    padding: 3rem 0 1.5rem;
    font-size: 0.88rem;
    color: var(--text-muted);
}

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

@media (min-width: 576px) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 992px) {
    .footer-grid {
        grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
    }
}

.footer-col-title {
    color: var(--text-main);
    font-size: 1rem;
    margin-bottom: 1rem;
}

.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer-links a {
    color: var(--text-muted);
}

.footer-links a:hover {
    color: var(--primary-hover);
}

.footer-disclaimer {
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 1.25rem;
    margin-bottom: 2rem;
    font-size: 0.8rem;
    line-height: 1.6;
}

.age-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border: 2px solid var(--accent-red);
    color: var(--accent-red);
    font-weight: 800;
    border-radius: 50%;
    margin-right: 8px;
    vertical-align: middle;
}

.footer-bottom {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
    justify-content: space-between;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 0.8rem;
}

@media (min-width: 768px) {
    .footer-bottom {
        flex-direction: row;
    }
}

/* Mobile Bottom Sticky Bar */
.mobile-bottom-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: #081424;
    border-top: 1px solid var(--border-light);
    padding: 0.6rem 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    z-index: 999;
    box-shadow: 0 -4px 15px rgba(0, 0, 0, 0.6);
}

@media (min-width: 992px) {
    .mobile-bottom-bar {
        display: none;
    }
}

.mobile-bottom-bar .btn {
    flex: 1;
    padding: 0.65rem 0.5rem;
    font-size: 0.88rem;
}
