/* style.css - Стили оформления сайта DBBet Casino в минималистичной палитре */

:root {
    --bg-deep: #0a0f1d;
    --bg-card: #141b2d;
    --bg-card-hover: #1e263d;
    --accent-pink: #ff335c; /* Фирменный розовый цвет официального сайта */
    --accent-pink-hover: #e11d48;
    --text-main: #f1f5f9;
    --text-mute: #94a3b8;
    --max-w: 1400px;
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --blur-header: rgba(10, 15, 29, 0.85);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: var(--bg-deep);
    color: var(--text-main);
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a {
    color: var(--accent-pink);
    text-decoration: none;
    transition: var(--transition-smooth);
}

a:hover {
    color: var(--text-main);
}

/* Шапка с эффектом размытия заднего плана */
.site-navigation {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: var(--blur-header);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    z-index: 1000;
    transition: var(--transition-smooth);
}

.navigation-wrap {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0 20px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.brand-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 24px;
    font-weight: 800;
    color: var(--text-main);
    letter-spacing: -0.5px;
}

.brand-logo span {
    color: var(--accent-pink);
}

.main-menu {
    display: flex;
    gap: 24px;
    list-style: none;
}

.main-menu a {
    color: var(--text-mute);
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.main-menu a:hover, .main-menu .current-tab {
    color: var(--accent-pink);
}

.user-auth-actions {
    display: flex;
    gap: 12px;
    align-items: center;
}

/* Кнопки авторизации */
.action-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 700;
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition-smooth);
    border: none;
}

/* Стиль обычных кнопок: серая обводка, при наведении темно-серый */
.btn-auth-signin, .btn-hero-action.btn-auth-signin, .btn-cta-large.btn-auth-signin {
    background: transparent;
    color: var(--text-main);
    border: 1.5px solid #4b5563; /* Серая обводка */
}

.btn-auth-signin:hover, .btn-hero-action.btn-auth-signin:hover, .btn-cta-large.btn-auth-signin:hover {
    background: #1f2937; /* Темно-серый цвет */
    border-color: #374151;
    box-shadow: none;
}

/* Розовая кнопка Регистрации */
.btn-auth-signup {
    background: var(--accent-pink);
    color: #fff;
}

.btn-auth-signup:hover {
    background: var(--accent-pink-hover);
    transform: translateY(-1px);
    box-shadow: 0 0 15px rgba(255, 51, 92, 0.4);
}

/* Главный баннер */
.hero-banner-custom {
    margin-top: 70px;
    background: radial-gradient(circle at 80% 20%, rgba(255, 51, 92, 0.08) 0%, rgba(10, 15, 29, 1) 70%), url('/images/grid-layer.svg');
    padding: 100px 0 80px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.hero-container-custom {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

.hero-text-content {
    flex: 1;
    max-width: 700px;
}

.hero-text-content h1 {
    font-size: 46px;
    line-height: 1.15;
    font-weight: 800;
    margin-bottom: 20px;
    color: var(--text-main);
    letter-spacing: -1px;
}

.hero-text-content p {
    color: var(--text-mute);
    font-size: 16px;
    margin-bottom: 30px;
}

.hero-actions-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}

.bonus-promobox {
    background: rgba(255, 255, 255, 0.03);
    border: 1px dashed #4b5563; /* Серая пунктирная обводка */
    padding: 10px 18px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.bonus-promocode-text {
    font-family: monospace;
    font-weight: 800;
    font-size: 18px;
    color: var(--accent-pink);
    letter-spacing: 1px;
}

/* Серая кнопка промокода */
.btn-copy-promo {
    background: transparent;
    color: var(--text-main);
    border: 1px solid #4b5563;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.btn-copy-promo:hover {
    background: #1f2937;
    border-color: #374151;
    color: var(--text-main);
}

.hero-graphics-column {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-illustration {
    max-width: 100%;
    height: auto;
    filter: drop-shadow(0 10px 30px rgba(255, 51, 92, 0.1));
    border-radius: 12px;
}

/* Хлебные крошки */
.breadcrumbs-wrapper {
    max-width: var(--max-w);
    margin: 30px auto 0 auto;
    padding: 0 20px;
}

.breadcrumbs-list {
    display: flex;
    align-items: center;
    gap: 8px;
    list-style: none;
    font-size: 14px;
    color: var(--text-mute);
}

.breadcrumbs-list a {
    color: var(--text-mute);
}

.breadcrumbs-list a:hover {
    color: var(--accent-pink);
}

/* Секции контента */
.section-main-layout {
    max-width: var(--max-w);
    margin: 50px auto;
    padding: 0 20px;
}

.section-main-layout h2 {
    font-size: 32px;
    font-weight: 800;
    margin-bottom: 24px;
    letter-spacing: -0.5px;
    color: var(--text-main);
}

.section-main-layout p {
    color: var(--text-mute);
    margin-bottom: 20px;
    font-size: 15px;
}

/* Сетки */
.lobby-catalog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
    margin: 40px 0;
}

.lobby-game-card {
    background: var(--bg-card);
    border-radius: 12px;
    overflow: hidden;
    transition: var(--transition-smooth);
    position: relative;
    cursor: pointer;
    border: 1px solid rgba(255, 255, 255, 0.03);
}

.lobby-game-card:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 51, 92, 0.3);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

.lobby-game-card img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    display: block;
}

.game-badge-tag {
    position: absolute;
    top: 10px;
    left: 10px;
    background: var(--accent-pink);
    color: #fff;
    font-size: 11px;
    font-weight: 800;
    padding: 4px 8px;
    border-radius: 4px;
    text-transform: uppercase;
}

.game-card-info {
    padding: 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.game-card-title {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-main);
}

/* FAQ блок */
.faq-accordion-section {
    background: var(--bg-card);
    padding: 30px;
    border-radius: 16px;
    margin-top: 50px;
    border: 1px solid rgba(255, 255, 255, 0.02);
}

.faq-accordion-section h2 {
    font-size: 28px;
    margin-bottom: 20px;
}

.faq-item-details {
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding: 16px 0;
}

.faq-item-details:last-child {
    border-bottom: none;
}

.faq-item-details summary {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-main);
    cursor: pointer;
    outline: none;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-item-details summary::-webkit-details-marker {
    display: none;
}

.faq-item-details summary::after {
    content: "+";
    font-size: 20px;
    color: var(--accent-pink);
    font-weight: bold;
    transition: var(--transition-smooth);
}

.faq-item-details[open] summary::after {
    transform: rotate(45deg);
}

.faq-item-details p {
    margin-top: 12px;
    color: var(--text-mute);
    font-size: 14px;
    line-height: 1.6;
}

/* Инструкции HowTo */
.steps-instruction-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    margin: 45px 0;
}

.instruction-card-step {
    background: var(--bg-card);
    padding: 30px;
    border-radius: 12px;
    border-top: 3px solid #4b5563; /* Серый цвет шагов по умолчанию */
    position: relative;
}

.step-index-number {
    font-size: 48px;
    font-weight: 800;
    color: rgba(255, 51, 92, 0.05);
    position: absolute;
    top: 10px;
    right: 20px;
}

.instruction-card-step h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text-main);
}

/* Кнопка наверх */
#go-to-top-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: transparent;
    color: var(--text-main);
    border: 1.5px solid #4b5563; /* Серая обводка */
    width: 45px;
    height: 45px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 18px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-smooth);
    z-index: 999;
}

#go-to-top-btn.is-visible {
    opacity: 1;
    visibility: visible;
}

#go-to-top-btn:hover {
    transform: translateY(-3px);
    background: #1f2937; /* Темно-серый */
    border-color: #374151;
}

/* Бургер меню */
.mobile-hamburger-trigger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    border: none;
    background: transparent;
}

.mobile-hamburger-trigger span {
    display: block;
    width: 25px;
    height: 3px;
    background: var(--text-main);
    border-radius: 3px;
    transition: var(--transition-smooth);
}

/* ВЫНЕСЕННЫЕ СТИЛИ */

/* Подвал (footer.php) */
.site-footer {
    background-color: #060913;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding: 50px 0 30px 0;
    margin-top: 80px;
}

.footer-container {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.footer-top-row {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 30px;
}

.footer-brand-column {
    max-width: 350px;
}

.footer-brand-column h3 {
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 15px;
    color: var(--text-main);
}

.footer-brand-text {
    color: var(--text-mute);
    font-size: 14px;
}

.footer-links-row {
    display: flex;
    gap: 60px;
    flex-wrap: wrap;
}

.footer-column-title {
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--accent-pink);
    margin-bottom: 15px;
}

.footer-links-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
    font-size: 14px;
}

.footer-links-list a {
    color: var(--text-mute);
}

.footer-divider {
    border: none;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-bottom-row {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
    font-size: 12px;
    color: var(--text-mute);
}

/* Хелперы разметки страниц */
.btn-hero-action {
    padding: 14px 30px;
}

.promobox-label {
    color: var(--text-mute);
    font-size: 13px;
}

.game-card-play {
    color: var(--accent-pink);
    font-weight: bold;
}

.section-list-item {
    margin-left: 20px;
    margin-bottom: 10px;
    color: var(--text-mute);
}

.cta-block-centered {
    text-align: center;
    margin: 40px 0;
}

.btn-cta-large {
    padding: 15px 35px;
    font-size: 16px;
}

.instruction-card-step.step-pink {
    border-top-color: var(--accent-pink);
}

.crypto-list-container {
    background: var(--bg-card);
    padding: 25px;
    border-radius: 12px;
    font-size: 14px;
    line-height: 1.8;
    color: var(--text-mute);
    border: 1px solid rgba(255, 255, 255, 0.03);
}

@media (max-width: 1024px) {
    .main-menu {
        display: none;
    }
    .mobile-hamburger-trigger {
        display: flex;
    }
    .hero-container-custom {
        flex-direction: column;
        text-align: center;
    }
    .hero-text-content h1 {
        font-size: 32px;
    }
    .hero-actions-row {
        justify-content: center;
    }
    .main-menu.is-mobile-open {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 70px;
        left: 0;
        right: 0;
        background: var(--bg-deep);
        padding: 20px;
        border-bottom: 1px solid rgba(255,255,255,0.05);
        align-items: center;
    }
}