/* * MR.BIT Casino - Premium Light Theme
 * Mixed Style: Spribe (Clean/Airy) + Malina (Accents/Grids) + ESA (Structure)
 */

:root {
    --bg-body: #f4f6f9;
    --bg-panel: #ffffff;
    --accent-blue: #2e2691; /* Spribe Deep Blue */
    --accent-pink: #e50539; /* Malina Red/Pink */
    --accent-yellow: #ffb300;
    --text-dark: #1a1d20;
    --text-muted: #6c757d;
    --border-color: rgba(0, 0, 0, 0.08);
    --shadow-soft: 0 4px 15px rgba(0,0,0,0.04);
    --shadow-hover: 0 10px 25px rgba(46, 38, 145, 0.12);
    --sidebar-width: 260px;
    --header-height: 75px;
    --radius-lg: 24px;
    --radius-md: 16px;
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Rubik', sans-serif;
}

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

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

ul { list-style: none; }

/* ================= TYPOGRAPHY & LOGO ================= */
h1, h2, h3, h4, h5, h6 { font-weight: 800; line-height: 1.2; margin-bottom: 1rem; }

.brand-logo {
    font-size: 34px;
    font-weight: 900;
    color: var(--accent-blue);
    letter-spacing: -1px;
    text-transform: uppercase;
}
.brand-logo .dot { color: var(--accent-pink); }

.text-blue { color: var(--accent-blue); }
.text-pink { color: var(--accent-pink); }
.text-muted { color: var(--text-muted); }

/* ================= BUTTONS ================= */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 28px;
    border-radius: 30px;
    font-weight: 700;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    border: none;
    transition: var(--transition);
}

.btn-primary {
    background: linear-gradient(45deg, var(--accent-pink), #ff4d79);
    color: #ffffff !important;
    box-shadow: 0 6px 15px rgba(229, 5, 57, 0.25);
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(229, 5, 57, 0.35);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--accent-blue);
    color: var(--accent-blue);
}
.btn-outline:hover {
    background: var(--accent-blue);
    color: #ffffff;
}

/* ================= LAYOUT FIX ================= */
.app-container {
    display: block; /* Исправляем проблему с flexbox, из-за которой была черная дыра */
}

/* ================= SIDEBAR ================= */
.sidebar {
    width: var(--sidebar-width);
    background-color: var(--bg-panel);
    height: 100vh;
    position: fixed;
    top: 0; left: 0;
    z-index: 1000;
    border-right: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    transition: var(--transition);
}

.sidebar-logo {
    height: var(--header-height);
    display: flex;
    align-items: center;
    padding: 0 24px;
    border-bottom: 1px solid var(--border-color);
}

.sidebar-nav {
    padding: 20px 0;
    flex: 1;
    overflow-y: auto;
}

.nav-item {
    display: flex;
    align-items: center;
    padding: 14px 24px;
    color: var(--text-muted);
    font-weight: 600;
    border-left: 4px solid transparent;
}
.nav-item svg {
    margin-right: 15px;
    width: 22px;
    height: 22px;
    fill: currentColor;
}
.nav-item:hover, .nav-item.active {
    color: var(--accent-blue);
    background-color: rgba(46, 38, 145, 0.05);
    border-left-color: var(--accent-pink);
}

.sidebar-promo {
    padding: 20px;
    border-top: 1px solid var(--border-color);
}
.promo-card {
    background: linear-gradient(135deg, rgba(46, 38, 145, 0.05), rgba(229, 5, 57, 0.05));
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 20px;
    text-align: center;
}
.promo-card h4 { font-size: 15px; margin-bottom: 5px; color: var(--text-dark); }
.promo-card p { font-size: 13px; margin-bottom: 15px; color: var(--text-muted); }

/* ================= HEADER ================= */
.header {
    margin-left: var(--sidebar-width);
    height: var(--header-height);
    background-color: var(--bg-panel);
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 40px;
    position: sticky;
    top: 0;
    z-index: 999;
    box-shadow: 0 2px 10px rgba(0,0,0,0.02);
}

.header-search {
    display: flex;
    align-items: center;
    background: var(--bg-body);
    border-radius: 30px;
    padding: 10px 20px;
    width: 350px;
    border: 1px solid var(--border-color);
    transition: var(--transition);
}
.header-search:focus-within {
    border-color: var(--accent-blue);
    background: var(--bg-panel);
}
.header-search svg { width: 18px; height: 18px; fill: var(--text-muted); margin-right: 12px; }
.header-search input {
    background: transparent; border: none; color: var(--text-dark); outline: none; width: 100%; font-size: 14px;
}

.header-auth { display: flex; gap: 15px; align-items: center; }
.lang-switch { display: flex; align-items: center; gap: 6px; cursor: pointer; font-weight: 600; color: var(--text-dark); margin-right: 10px;}

/* ================= MAIN CONTENT AREA ================= */
.main-content {
    margin-left: var(--sidebar-width);
    min-height: calc(100vh - var(--header-height));
}

/* ================= SPRIBE STYLE HERO ================= */
.hero {
    background: linear-gradient(135deg, #ffffff 0%, #eef1f6 100%);
    border-radius: var(--radius-lg);
    padding: 60px;
    margin: 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: var(--shadow-soft);
    border: 1px solid #ffffff;
    position: relative;
    overflow: hidden;
}
.hero::before {
    content: '';
    position: absolute;
    top: -30%; right: -10%;
    width: 600px; height: 600px;
    background: radial-gradient(circle, rgba(229,5,57,0.06) 0%, rgba(255,255,255,0) 70%);
    border-radius: 50%;
    z-index: 0;
}
.hero-content { position: relative; z-index: 2; max-width: 550px; }
.hero-badge {
    display: inline-block;
    background: rgba(46, 38, 145, 0.1);
    color: var(--accent-blue);
    padding: 6px 16px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 13px;
    margin-bottom: 20px;
}
.hero-title { font-size: 48px; font-weight: 900; color: var(--text-dark); margin-bottom: 20px; line-height: 1.1; }
.hero-title span { color: var(--accent-pink); }
.hero-desc { font-size: 18px; color: var(--text-muted); margin-bottom: 30px; line-height: 1.6; }

/* === Girl Character in Hero === */
.hero-character {
    position: absolute;
    bottom: -15px; /* Слегка обрезаем снизу для эффекта присутствия */
    right: 32%; /* Идеально между текстом и карточками */
    width: auto;
    height: 105%; /* Чуть больше самого блока для объема */
    z-index: 1; /* Позади текста и карточек, но поверх фона */
    object-fit: contain;
    pointer-events: none; /* Чтобы не перекрывала клики по фону/кнопкам */
    animation: float 6s ease-in-out infinite; /* Эффект парения */
    drop-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-12px); }
    100% { transform: translateY(0px); }
}

.hero-visuals { position: relative; z-index: 2; display: flex; gap: 20px; }
.spribe-card {
    background: var(--bg-panel);
    border-radius: var(--radius-md);
    padding: 10px;
    box-shadow: var(--shadow-soft);
    width: 220px;
    transition: var(--transition);
    border: 1px solid var(--border-color);
}
.spribe-card:hover { transform: translateY(-10px); box-shadow: var(--shadow-hover); border-color: rgba(46, 38, 145, 0.3); }
.spribe-card img { width: 100%; height: 260px; object-fit: cover; border-radius: 12px; }
.spribe-card-info { padding: 15px 10px 5px; text-align: center; }
.spribe-card-info h5 { margin: 0; font-size: 16px; font-weight: 800; color: var(--text-dark); }
.spribe-card-info p { margin: 5px 0 0; font-size: 13px; color: var(--text-muted); }

/* ================= MALINA STYLE TICKER ================= */
.ticker-wrap {
    display: flex;
    align-items: center;
    background: var(--bg-panel);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    padding: 15px 0;
    margin: 0 0 40px;
    overflow: hidden;
    box-shadow: var(--shadow-soft);
}
.ticker-title {
    background: var(--bg-panel);
    padding: 0 30px;
    color: var(--accent-blue);
    font-weight: 800;
    display: flex; align-items: center; gap: 10px;
    z-index: 2; white-space: nowrap;
    border-right: 1px solid var(--border-color);
}
.ticker { display: flex; animation: ticker 35s linear infinite; gap: 20px; }
@keyframes ticker { 0% { transform: translateX(0); } 100% { transform: translateX(-100%); } }
.win-item {
    display: flex; align-items: center; gap: 12px;
    background: var(--bg-body);
    padding: 8px 16px; border-radius: 30px;
    border: 1px solid var(--border-color);
    white-space: nowrap;
}
.win-item img { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; }
.win-info p { margin: 0; font-size: 12px; color: var(--text-muted); line-height: 1.2; }
.win-info strong { color: var(--text-dark); font-size: 13px; }
.win-amount { color: var(--accent-pink); font-weight: 800; font-size: 14px; }

/* ================= GAMES GRID ================= */
.section { padding: 0 40px 50px; max-width: 1600px; margin: 0 auto; }
.section-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 30px; }
.section-title { font-size: 26px; font-weight: 900; color: var(--text-dark); display: flex; align-items: center; gap: 12px; }
.section-title svg { fill: var(--accent-blue); width: 30px; height: 30px; }

.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
}
.game-card {
    background: var(--bg-panel);
    border-radius: var(--radius-md);
    padding: 8px;
    box-shadow: var(--shadow-soft);
    border: 1px solid var(--border-color);
    transition: var(--transition);
    position: relative;
    cursor: pointer;
}
.game-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-hover); border-color: rgba(46, 38, 145, 0.3); }
.game-card-img { position: relative; border-radius: 12px; overflow: hidden; padding-top: 100%; }
.game-card-img img { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; }
.game-overlay {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(255,255,255,0.85); backdrop-filter: blur(4px);
    display: flex; flex-direction: column; justify-content: center; align-items: center;
    opacity: 0; transition: var(--transition);
}
.game-card:hover .game-overlay { opacity: 1; }
.play-btn {
    width: 60px; height: 60px;
    background: var(--accent-blue);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 5px 15px rgba(46, 38, 145, 0.3);
    margin-bottom: 10px;
}
.play-btn svg { fill: #ffffff; width: 24px; height: 24px; margin-left: 4px; }
.game-info { padding: 15px 5px 5px; text-align: center; }
.game-title { font-weight: 800; font-size: 15px; color: var(--text-dark); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.game-provider { font-size: 12px; color: var(--text-muted); margin-top: 4px; font-weight: 600; }

.live-badge {
    position: absolute; top: 10px; left: 10px;
    background: var(--accent-pink); color: #fff;
    font-size: 11px; font-weight: 800; padding: 4px 10px;
    border-radius: 12px; z-index: 2;
    box-shadow: 0 2px 8px rgba(229, 5, 57, 0.4);
}

/* ================= ESA STYLE FEATURES ================= */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 30px;
}
.feature-box {
    background: var(--bg-panel);
    padding: 40px 30px;
    border-radius: var(--radius-lg);
    text-align: center;
    box-shadow: var(--shadow-soft);
    border: 1px solid var(--border-color);
    transition: var(--transition);
}
.feature-box:hover { transform: translateY(-5px); box-shadow: var(--shadow-hover); border-color: rgba(46, 38, 145, 0.2); }
.feature-icon {
    width: 70px; height: 70px;
    background: rgba(229, 5, 57, 0.08);
    color: var(--accent-pink);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 20px;
}
.feature-icon svg { width: 32px; height: 32px; stroke: currentColor; fill: none; stroke-width: 2; }
.feature-box h3 { font-size: 20px; font-weight: 800; color: var(--text-dark); margin-bottom: 15px; }
.feature-box p { color: var(--text-muted); font-size: 15px; line-height: 1.5; }

/* ================= SEO ARTICLE ================= */
.seo-article {
    background: var(--bg-panel);
    padding: 50px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft);
    border: 1px solid var(--border-color);
    margin: 0 40px 40px;
}
.seo-article h2 { color: var(--accent-blue); font-size: 32px; font-weight: 900; margin-bottom: 25px; }
.seo-article h3 { color: var(--text-dark); font-size: 22px; font-weight: 800; margin: 30px 0 15px; }
.seo-article p { color: var(--text-muted); font-size: 16px; margin-bottom: 15px; line-height: 1.7; }
.seo-article ul { color: var(--text-muted); margin-bottom: 20px; padding-left: 20px; }
.seo-article li { margin-bottom: 8px; }
.seo-article li strong { color: var(--text-dark); }

/* ================= FAQ ================= */
.faq-list { display: flex; flex-direction: column; gap: 15px; }
.faq-item {
    background: var(--bg-panel);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-soft);
}
.faq-question {
    padding: 20px 25px; font-weight: 700; color: var(--text-dark);
    display: flex; justify-content: space-between; align-items: center; cursor: pointer;
}
.faq-question svg { fill: var(--accent-blue); transition: transform 0.3s; }
.faq-answer {
    padding: 0 25px 20px; color: var(--text-muted); font-size: 15px; line-height: 1.6;
    border-top: 1px solid var(--border-color); margin-top: 5px; padding-top: 20px; display: none;
}

/* ================= FOOTER ================= */
.footer { background: var(--bg-panel); padding: 60px 40px 20px; border-top: 1px solid var(--border-color); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.footer-desc { color: var(--text-muted); font-size: 15px; margin-top: 20px; line-height: 1.6; }
.footer-title { font-size: 18px; margin-bottom: 20px; color: var(--text-dark); font-weight: 800; }
.footer-links li { margin-bottom: 12px; }
.footer-links a { color: var(--text-muted); font-size: 15px; font-weight: 500; }
.footer-links a:hover { color: var(--accent-pink); }
.providers-bar { display: flex; flex-wrap: wrap; gap: 20px; justify-content: center; padding: 30px 0; border-top: 1px solid var(--border-color); border-bottom: 1px solid var(--border-color); margin-bottom: 30px; }
.providers-bar span { color: var(--text-muted); font-weight: 800; font-size: 16px; opacity: 0.4; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; color: var(--text-muted); font-size: 13px; }
.footer-badges { display: flex; gap: 10px; }
.badge { padding: 6px 12px; border: 1px solid var(--border-color); border-radius: 6px; font-weight: 600; }
.age-badge { background: var(--accent-pink); color: #fff; border: none; }

/* ================= MOBILE ADAPTIVE ================= */
.mobile-header-bar { display: none; }
.bottom-nav { display: none; }

@media (max-width: 1200px) {
    .hero-character { right: 25%; opacity: 0.8; height: 95%; }
}

@media (max-width: 1024px) {
    .sidebar { transform: translateX(-100%); z-index: 1001; }
    .sidebar.active { transform: translateX(0); }
    .main-content { margin-left: 0; padding-bottom: 70px; }
    
    .header { display: none; } /* Скрываем десктопную шапку */
    
    .mobile-header-bar {
        display: flex; justify-content: space-between; align-items: center;
        padding: 15px 20px; background: var(--bg-panel);
        position: sticky; top: 0; z-index: 999;
        border-bottom: 1px solid var(--border-color);
        box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    }
    .burger-btn { background: none; border: none; color: var(--text-dark); cursor: pointer; }
    .burger-btn svg { width: 30px; height: 30px; fill: currentColor; }

    /* Bottom Navigation App Style */
    .bottom-nav {
        display: flex; justify-content: space-around; align-items: center;
        position: fixed; bottom: 0; left: 0; width: 100%; height: 70px;
        background: var(--bg-panel); border-top: 1px solid var(--border-color);
        z-index: 1000; box-shadow: 0 -2px 10px rgba(0,0,0,0.05);
    }
    .bottom-nav-item {
        display: flex; flex-direction: column; align-items: center; gap: 5px;
        color: var(--text-muted); font-size: 10px; text-transform: uppercase; font-weight: 700;
    }
    .bottom-nav-item svg { width: 24px; height: 24px; fill: currentColor; }
    .bottom-nav-item.active { color: var(--accent-blue); }
    .bottom-nav-item.center-btn {
        background: var(--accent-pink); color: #fff;
        width: 56px; height: 56px; border-radius: 50%;
        justify-content: center; transform: translateY(-20px);
        box-shadow: 0 5px 15px rgba(229, 5, 57, 0.4);
    }

    .hero { flex-direction: column; padding: 40px 20px; margin: 20px 15px; text-align: center; }
    .hero-visuals { display: none; }
    .hero-character { display: none; /* Прячем девушку на мобильных, чтобы не перекрывать контент */ }
    
    .section { padding: 0 15px 30px; }
    .games-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .seo-article { margin: 0 15px 30px; padding: 30px 20px; }
    .footer { padding: 40px 20px 80px; }
    .footer-grid { grid-template-columns: 1fr; gap: 30px; text-align: center; }
}

.mobile-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.5); backdrop-filter: blur(3px); z-index: 1000;
    display: none;
}
.mobile-overlay.active { display: block; }