/* VAVADA — современный цепляющий дизайн: тёмная тема, неон, стекло, анимации */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;500;600;700;800&display=swap');

:root {
    --bg: #0c0c12;
    --bg-elevated: #14141f;
    --bg-card: rgba(20, 20, 31, 0.85);
    --accent: #00d4aa;
    --accent-dim: rgba(0, 212, 170, 0.25);
    --accent-glow: rgba(0, 212, 170, 0.4);
    --gold: #ffc857;
    --gold-dim: rgba(255, 200, 87, 0.2);
    --danger: #ff4757;
    --danger-dim: rgba(255, 71, 87, 0.25);
    --text: #f0f0f5;
    --text-muted: #8a8a9a;
    --border: rgba(255, 255, 255, 0.06);
    --overlay: rgba(0, 0, 0, 0.75);
    --radius: 14px;
    --radius-sm: 10px;
    --shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    --shadow-glow: 0 0 40px var(--accent-glow);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg);
    color: var(--text);
    min-height: 100vh;
    background-image:
        radial-gradient(ellipse 120% 80% at 50% -20%, rgba(0, 212, 170, 0.08) 0%, transparent 50%),
        radial-gradient(ellipse 80% 50% at 100% 50%, rgba(255, 200, 87, 0.04) 0%, transparent 50%);
}

/* Header — стекло + неон */
.header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    padding: 14px 24px;
    box-shadow: var(--shadow);
}

.header-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.header-h1 {
    margin: 0;
    padding: 0;
    font-size: 0;
    line-height: 0;
    font-weight: inherit;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.logo {
    display: block;
    transition: transform 0.2s ease;
}

.logo:hover {
    transform: scale(1.02);
}

.logo-img {
    display: block;
    height: 36px;
    width: auto;
    object-fit: contain;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.btn,
a.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.btn {
    padding: 12px 22px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 13px;
    cursor: pointer;
    border: none;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-family: inherit;
    transition: transform 0.15s ease, box-shadow 0.2s ease;
}

.btn:active {
    transform: scale(0.98);
}

.btn-outline {
    background: transparent;
    color: var(--text);
    border: 1px solid var(--border);
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--accent-dim);
    color: var(--accent);
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent) 0%, #00a884 100%);
    color: var(--bg);
    box-shadow: 0 4px 20px var(--accent-dim);
}

.btn-primary:hover {
    box-shadow: 0 6px 28px var(--accent-glow);
}

.btn-icon {
    width: 44px;
    height: 44px;
    padding: 0;
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-muted);
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
}

.btn-icon:hover {
    color: var(--accent);
    border-color: var(--accent-dim);
}

.icon-placeholder {
    font-size: 18px;
}

/* Promo Slider — 2560×380, выходит за края слева и справа */
.promo-slider {
    width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    margin-bottom: 0;
    overflow: hidden;
}

.promo-slider-track {
    position: relative;
    width: 100%;
    padding-bottom: 14.84375%;
    overflow: hidden;
}

.promo-slide {
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.6s ease;
}

.promo-slide.promo-slide-active {
    opacity: 1;
    pointer-events: auto;
    z-index: 1;
}

.promo-slide img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: center;
}

.promo-slide-text {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 14px 24px;
    font-weight: 700;
    font-size: clamp(14px, 2vw, 20px);
    text-align: center;
    letter-spacing: 0.02em;
    background: rgba(0, 0, 0, 0.65);
    text-transform: uppercase;
}

.promo-slide-text-gold {
    color: #ffd700;
    background: rgba(26, 31, 113, 0.9);
}

.promo-slide-text-white {
    color: #fff;
    background: rgba(50, 20, 80, 0.9);
}

.promo-slide-text-yellow {
    color: #ffec8b;
    background: rgba(50, 20, 80, 0.9);
}

/* Main Nav — оформленные кнопки */
.main-nav {
    background: var(--bg-elevated);
    padding: 14px 24px;
    margin-bottom: 24px;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.nav-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.nav-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 600;
    font-size: 13px;
    padding: 12px 20px;
    border-radius: var(--radius-sm);
    border: 1px solid transparent;
    transition: color 0.2s, background 0.2s, border-color 0.2s, box-shadow 0.2s;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.nav-link:hover {
    color: var(--text);
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.nav-link.active {
    color: var(--accent);
    background: var(--accent-dim);
    border-color: rgba(0, 212, 170, 0.3);
    box-shadow: 0 0 0 1px rgba(0, 212, 170, 0.2), 0 4px 16px rgba(0, 212, 170, 0.15);
}

.nav-icon {
    width: 22px;
    height: 22px;
    flex-shrink: 0;
    opacity: 0.9;
}

.nav-link:hover .nav-icon,
.nav-link.active .nav-icon {
    opacity: 1;
}

.nav-link.active .nav-icon {
    filter: drop-shadow(0 0 6px var(--accent-glow));
}

/* Game Grid */
.game-grid-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px 48px;
}

.game-grid {
    display: grid;
    gap: 20px;
}

.game-grid-5x7 {
    grid-template-columns: repeat(5, 1fr);
}

.game-tile {
    background: var(--bg-elevated);
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.game-tile:hover {
    transform: translateY(-6px) scale(1.02);
    box-shadow: var(--shadow), 0 0 0 1px var(--accent-dim);
    border-color: transparent;
}

.game-thumb {
    position: relative;
    overflow: hidden;
}

.game-thumb img {
    width: 100%;
    height: auto;
    display: block;
    vertical-align: bottom;
    transition: transform 0.4s ease;
}

.game-tile:hover .game-thumb img {
    transform: scale(1.08);
}

/* Затемнение и кнопки при наведении */
.game-overlay {
    position: absolute;
    inset: 0;
    background: var(--overlay);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.game-tile:hover .game-overlay {
    opacity: 1;
}

.btn-slot,
a.btn-slot {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.btn-slot {
    padding: 12px 28px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 13px;
    cursor: pointer;
    border: none;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    font-family: inherit;
    min-width: 130px;
    transition: transform 0.15s ease, box-shadow 0.2s ease;
}

.btn-slot:hover {
    transform: scale(1.06);
}

.btn-play {
    background: linear-gradient(135deg, var(--accent) 0%, #00a884 100%);
    color: var(--bg);
    box-shadow: 0 4px 16px var(--accent-dim);
}

.btn-play:hover {
    box-shadow: 0 6px 24px var(--accent-glow);
}

.btn-demo {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-demo:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.3);
}

.badge {
    position: absolute;
    top: 10px;
    padding: 5px 10px;
    border-radius: 8px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.badge-new {
    left: 10px;
    background: var(--danger);
    color: #fff;
    box-shadow: 0 2px 12px var(--danger-dim);
}

.badge-rtp {
    right: 10px;
    background: linear-gradient(135deg, var(--gold) 0%, #e6a800 100%);
    color: var(--bg);
    box-shadow: 0 2px 12px var(--gold-dim);
}

.game-title {
    margin: 0;
    padding: 12px 14px;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.35;
    color: var(--text);
}

.load-more-wrap {
    text-align: center;
    margin-top: 40px;
}

.btn-load-more {
    background: linear-gradient(135deg, var(--accent) 0%, #00a884 100%);
    color: var(--bg);
    padding: 16px 56px;
    font-size: 15px;
    border-radius: var(--radius-sm);
    border: none;
    cursor: pointer;
    font-weight: 700;
    font-family: inherit;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    box-shadow: 0 4px 24px var(--accent-dim);
    transition: transform 0.15s ease, box-shadow 0.2s ease;
}

.btn-load-more:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 32px var(--accent-glow);
}

/* Footer */
.footer {
    background: var(--bg-elevated);
    border-top: 1px solid var(--border);
    padding: 40px 24px 28px;
    text-align: center;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px 28px;
    margin-bottom: 28px;
}

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: var(--accent);
}

.footer-apps {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-bottom: 24px;
}

.app-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text);
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: border-color 0.2s, color 0.2s;
}

.app-badge:hover {
    border-color: var(--accent-dim);
    color: var(--accent);
}

.footer-icon {
    display: block;
    color: currentColor;
    transition: transform 0.2s, color 0.2s;
}

.app-badge-icon {
    width: 28px;
    height: 28px;
    object-fit: contain;
    flex-shrink: 0;
}

.app-badge:hover .footer-icon,
.social-icon:hover .footer-icon {
    color: var(--accent);
}

.footer-social {
    display: flex;
    justify-content: center;
    gap: 14px;
    margin-bottom: 24px;
}

.social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: var(--radius-sm);
    background: var(--bg-card);
    border: 1px solid var(--border);
    color: var(--text-muted);
    transition: transform 0.2s, border-color 0.2s, color 0.2s;
}

.social-icon:hover {
    border-color: var(--accent-dim);
    color: var(--accent);
    transform: scale(1.08);
}

.social-icon .footer-icon {
    width: 24px;
    height: 24px;
}

.footer-payments {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
}

.payment-icon-img {
    width: 48px;
    height: 32px;
    object-fit: contain;
    border-radius: 6px;
    opacity: 0.9;
}

.payment-icon-img:hover {
    opacity: 1;
}

.footer-disclaimer {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 14px;
    max-width: 600px;
    margin: 0 auto 24px;
    padding: 16px 20px;
    background: rgba(255, 71, 87, 0.08);
    border: 1px solid rgba(255, 71, 87, 0.2);
    border-radius: var(--radius-sm);
}

.disclaimer-icon {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
}

.disclaimer-text {
    margin: 0;
    font-size: 13px;
    line-height: 1.5;
    color: var(--text-muted);
    text-align: left;
}

.footer-copy {
    margin: 0;
    font-size: 12px;
    color: var(--text-muted);
}

@media (max-width: 900px) {
    .game-grid-5x7 {
        grid-template-columns: repeat(3, 1fr);
        gap: 14px;
    }
}

@media (max-width: 768px) {
    .promo-slider {
        width: 100%;
        margin-left: 0;
        margin-right: 0;
    }

    .promo-slider-track {
        padding-bottom: 45%;
    }

    .promo-slide img {
        object-fit: cover;
        object-position: center;
    }
}

@media (max-width: 600px) {
    .header-inner {
        flex-direction: column;
        align-items: center;
        gap: 14px;
    }

    .header-actions {
        justify-content: center;
    }

    .game-grid-5x7 {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .game-tile:hover {
        transform: translateY(-4px);
    }
}
