/* ===== УНИКАЛЬНЫЙ ДИЗАЙН САЙТА ===== */

/* CSS переменные для цветовой схемы */
:root {
    /* Основные цвета */
    --primary-bg: linear-gradient(
        135deg,
        #0a0a0a 0%,
        #1a1a2e 50%,
        #16213e 100%
    );
    --secondary-bg: linear-gradient(
        135deg,
        #16213e 0%,
        #0f3460 50%,
        #533483 100%
    );
    --accent-gradient: linear-gradient(
        135deg,
        #ff6b6b 0%,
        #feca57 50%,
        #48dbfb 100%
    );
    --neon-blue: #00d4ff;
    --neon-purple: #b347ff;
    --neon-pink: #ff3366;
    --neon-green: #00ff88;
    --neon-yellow: #ffdd44;

    /* Текстовые цвета */
    --text-primary: #ffffff;
    --text-secondary: #b8b8b8;
    --text-accent: #00d4ff;

    /* Тени и эффекты */
    --shadow-neon: 0 0 20px rgba(0, 212, 255, 0.3);
    --shadow-purple: 0 0 20px rgba(179, 71, 255, 0.3);
    --shadow-pink: 0 0 20px rgba(255, 51, 102, 0.3);
    --shadow-soft: 0 8px 32px rgba(0, 0, 0, 0.3);
    --shadow-hover: 0 12px 40px rgba(0, 0, 0, 0.4);

    /* Радиусы */
    --radius-small: 8px;
    --radius-medium: 16px;
    --radius-large: 24px;
    --radius-xl: 32px;
}

/* ===== ОБЩИЕ СТИЛИ ===== */
* {
    box-sizing: border-box;
}

body {
    background: var(--primary-bg);
    color: var(--text-primary);
    font-family: 'Roboto', sans-serif;
    overflow-x: hidden;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(
            circle at 20% 80%,
            rgba(0, 212, 255, 0.1) 0%,
            transparent 50%
        ),
        radial-gradient(
            circle at 80% 20%,
            rgba(179, 71, 255, 0.1) 0%,
            transparent 50%
        ),
        radial-gradient(
            circle at 40% 40%,
            rgba(255, 51, 102, 0.05) 0%,
            transparent 50%
        );
    pointer-events: none;
    z-index: -1;
}

/* ===== TOPBAR ===== */
.topbar {
    background: linear-gradient(
        90deg,
        rgba(0, 0, 0, 0.9) 0%,
        rgba(26, 26, 46, 0.9) 100%
    );
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 212, 255, 0.2);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
    position: relative;
    overflow: hidden;
}

.topbar::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(0, 212, 255, 0.1),
        transparent
    );
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    0% {
        left: -100%;
    }
    100% {
        left: 100%;
    }
}

.topbar p {
    color: var(--text-secondary);
    text-shadow: 0 0 10px rgba(0, 212, 255, 0.3);
}

/* ===== HEADER ===== */
.header {
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(15px);
    border-bottom: 1px solid rgba(0, 212, 255, 0.2);
    box-shadow: var(--shadow-soft);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header__inner {
    padding: 1rem 0;
}

.header__logo img {
    filter: drop-shadow(0 0 10px rgba(0, 212, 255, 0.5));
    transition: all 0.3s ease;
}

.header__logo img:hover {
    filter: drop-shadow(0 0 20px rgba(0, 212, 255, 0.8));
    transform: scale(1.05);
}

.header__menu a {
    color: var(--text-primary);
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-small);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.header__menu a::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    transition: left 0.3s ease;
    z-index: -1;
}

.header__menu a:hover::before {
    left: 0;
}

.header__menu a:hover {
    color: #000;
    text-shadow: none;
    transform: translateY(-2px);
}

/* ===== КНОПКИ ===== */
.button {
    background: var(--accent-gradient);
    color: #000;
    border: none;
    padding: 0.75rem 2rem;
    border-radius: var(--radius-large);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-soft);
}

.button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.2),
        transparent
    );
    transition: left 0.5s ease;
}

.button:hover::before {
    left: 100%;
}

.button:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
    filter: brightness(1.1);
}

.button--alt {
    background: transparent;
    color: var(--neon-blue);
    border: 2px solid var(--neon-blue);
    box-shadow: var(--shadow-neon);
}

.button--alt:hover {
    background: var(--neon-blue);
    color: #000;
    box-shadow: 0 0 30px rgba(0, 212, 255, 0.6);
}

/* ===== HERO СЕКЦИЯ ===== */
.hero {
    position: relative;
    overflow: hidden;
    padding: 4rem 0;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(
            circle at 30% 20%,
            rgba(0, 212, 255, 0.1) 0%,
            transparent 50%
        ),
        radial-gradient(
            circle at 70% 80%,
            rgba(179, 71, 255, 0.1) 0%,
            transparent 50%
        );
    pointer-events: none;
}

.hero__text p {
    font-size: 1.2rem;
    line-height: 1.6;
    color: var(--text-secondary);
    text-shadow: 0 0 10px rgba(0, 212, 255, 0.3);
}

.hero__text strong {
    color: var(--neon-blue);
    text-shadow: 0 0 10px rgba(0, 212, 255, 0.5);
}

/* ===== ФОРМЫ ===== */
.register-form {
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(0, 212, 255, 0.3);
    border-radius: var(--radius-xl);
    padding: 2rem;
    box-shadow: var(--shadow-soft);
    position: relative;
    overflow: hidden;
}

.register-form::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        45deg,
        transparent,
        rgba(0, 212, 255, 0.05),
        transparent
    );
    pointer-events: none;
}

.register-form-header {
    text-align: center;
    margin-bottom: 2rem;
    color: var(--neon-blue);
    text-shadow: 0 0 10px rgba(0, 212, 255, 0.5);
}

.form__field input {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(0, 212, 255, 0.3);
    border-radius: var(--radius-medium);
    padding: 1rem;
    color: var(--text-primary);
    font-size: 1rem;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.form__field input:focus {
    outline: none;
    border-color: var(--neon-blue);
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.3);
    background: rgba(255, 255, 255, 0.15);
}

.form__field input::placeholder {
    color: var(--text-secondary);
}

/* ===== КАРТОЧКИ ИГР ===== */
.game {
    text-decoration: none;
    color: inherit;
    display: block;
    transition: all 0.3s ease;
}

.game__wrapper {
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(0, 212, 255, 0.3);
    border-radius: var(--radius-large);
    overflow: hidden;
    position: relative;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-soft);
}

.game__wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        45deg,
        transparent,
        rgba(0, 212, 255, 0.1),
        transparent
    );
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
}

.game__wrapper:hover::before {
    opacity: 1;
}

.game__wrapper:hover {
    transform: translateY(-10px) scale(1.02);
    border-color: var(--neon-blue);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4), 0 0 30px rgba(0, 212, 255, 0.3);
}

.game__wrapper img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: all 0.3s ease;
    filter: brightness(0.8);
}

.game__wrapper:hover img {
    filter: brightness(1) saturate(1.2);
    transform: scale(1.05);
}

.play-game {
    position: absolute;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    background: var(--accent-gradient);
    border: none;
    padding: 0.75rem 2rem;
    border-radius: var(--radius-large);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    width: auto;
    min-width: 120px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

.play-game:hover {
    transform: translateX(-50%) translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
    filter: brightness(1.1);
}

/* Переопределяем стили из styles.min.css для правильного центрирования */
.game__wrapper .play-game {
    width: auto !important;
    min-width: 120px;
    max-width: 200px;
}

/* ===== СЕКЦИИ ===== */
.section {
    padding: 4rem 0;
    position: relative;
}

.main-features {
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
}

.main-features__single {
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(0, 212, 255, 0.2);
    border-radius: var(--radius-large);
    padding: 2rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.main-features__single::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        135deg,
        rgba(0, 212, 255, 0.05) 0%,
        rgba(179, 71, 255, 0.05) 100%
    );
    opacity: 0;
    transition: opacity 0.3s ease;
}

.main-features__single:hover::before {
    opacity: 1;
}

.main-features__single:hover {
    transform: translateY(-5px);
    border-color: var(--neon-blue);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}

.main-features__single-heading h2 {
    color: var(--neon-blue);
    text-shadow: 0 0 10px rgba(0, 212, 255, 0.3);
    margin-bottom: 1rem;
}

.main-features__single-text {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ===== FAQ ===== */
.faq__q {
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(0, 212, 255, 0.2);
    border-radius: var(--radius-medium);
    padding: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.faq__q::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(0, 212, 255, 0.1),
        transparent
    );
    opacity: 0;
    transition: opacity 0.3s ease;
}

.faq__q:hover::before {
    opacity: 1;
}

.faq__q:hover {
    border-color: var(--neon-blue);
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.2);
}

.faq__q svg {
    transition: transform 0.3s ease;
}

.faq__q.active svg {
    transform: rotate(45deg);
}

.faq__a {
    background: rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 212, 255, 0.1);
    border-top: none;
    border-radius: 0 0 var(--radius-medium) var(--radius-medium);
    padding: 1.5rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ===== FOOTER ===== */
.footer {
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(15px);
    border-top: 1px solid rgba(0, 212, 255, 0.2);
    padding: 3rem 0 1rem;
}

.footer__text {
    color: var(--text-secondary);
    text-align: center;
    margin: 2rem 0;
}

.footer__copyright {
    text-align: center;
    color: var(--text-secondary);
    border-top: 1px solid rgba(0, 212, 255, 0.1);
    padding-top: 1rem;
    margin-top: 2rem;
}

/* ===== POPUP ОКНА ===== */
.overlay {
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
}

.signup-popup {
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(0, 212, 255, 0.3);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-soft);
}

.signup-popup__content {
    padding: 2rem;
}

.popup-form input {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(0, 212, 255, 0.3);
    border-radius: var(--radius-medium);
    padding: 1rem;
    color: var(--text-primary);
    transition: all 0.3s ease;
}

.popup-form input:focus {
    border-color: var(--neon-blue);
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.3);
}

/* ===== COOKIE BANNER ===== */
#cookie-banner {
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(0, 212, 255, 0.3);
    border-radius: var(--radius-large);
    box-shadow: var(--shadow-soft);
    position: fixed;
    bottom: 2rem;
    left: 2rem;
    right: 2rem;
    z-index: 10000;
    animation: slideUp 0.5s ease;
}

@keyframes slideUp {
    from {
        transform: translateY(100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.cookie-inner {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
}

.cookie-text h2 {
    color: var(--neon-blue);
    margin: 0 0 0.5rem 0;
    text-shadow: 0 0 10px rgba(0, 212, 255, 0.3);
}

.cookie-text p {
    color: var(--text-secondary);
    margin: 0;
    line-height: 1.5;
}

.cookie-buttons {
    display: flex;
    gap: 1rem;
    margin-left: auto;
}

#accept-btn {
    background: var(--accent-gradient);
    color: #000;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-medium);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

#accept-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.more-info-btn {
    color: var(--neon-blue);
    text-decoration: none;
    padding: 0.75rem 1.5rem;
    border: 1px solid var(--neon-blue);
    border-radius: var(--radius-medium);
    transition: all 0.3s ease;
}

.more-info-btn:hover {
    background: var(--neon-blue);
    color: #000;
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.3);
}

/* ===== АДАПТИВНОСТЬ ===== */
@media (max-width: 768px) {
    .hero {
        padding: 2rem 0;
    }

    .register-form {
        padding: 1.5rem;
    }

    .game__wrapper {
        margin-bottom: 1rem;
    }

    .cookie-inner {
        flex-direction: column;
        text-align: center;
    }

    .cookie-buttons {
        margin-left: 0;
        justify-content: center;
    }

    #cookie-banner {
        left: 1rem;
        right: 1rem;
        bottom: 1rem;
    }
}

/* ===== ДОПОЛНИТЕЛЬНЫЕ АНИМАЦИИ ===== */
@keyframes pulse {
    0%,
    100% {
        box-shadow: 0 0 20px rgba(0, 212, 255, 0.3);
    }
    50% {
        box-shadow: 0 0 30px rgba(0, 212, 255, 0.6);
    }
}

@keyframes float {
    0%,
    100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

.floating {
    animation: float 3s ease-in-out infinite;
}

.pulsing {
    animation: pulse 2s ease-in-out infinite;
}

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.3);
}

::-webkit-scrollbar-thumb {
    background: var(--accent-gradient);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--neon-blue);
}
