/* Космическая тематика - Звездное небо и галактика */

/* Основные цвета сайта */
body {
    background: #0A0B1A; /* Глубокий космический фон */
    color: #E2E4F3; /* Звездный свет - текст */
}

/* Красивый градиентный фон для header с эффектом звездного поля */
.header {
    background: linear-gradient(to bottom, #0A0B1A 0%, #1C1E42 100%);
    position: relative;
    overflow: hidden;
}

/* Эффекты для заголовков */
h1, h2, h3, h4 {
    color: #8B6AFF; /* Пурпурно-голубой оттенок для заголовков */
    text-shadow: 0 0 10px rgba(139, 106, 255, 0.7); /* Свечение вокруг заголовков */
}

h1 {
    color: #E2E4F3; /* Заголовок h1 сделаем светлее */
    text-shadow: 0 0 15px rgba(226, 228, 243, 0.8);
}

/* Навигация */
.navbar {
    background-color: rgba(10, 11, 26, 0.8); /* Полупрозрачный космический фон */
    backdrop-filter: blur(5px); /* Эффект размытия */
}

.navbar a {
    color: #E2E4F3;
}

.navbar a:hover {
    color: #8B6AFF; /* Звездное свечение при наведении */
    text-shadow: 0 0 8px rgba(139, 106, 255, 0.7);
}

/* Линии гамбургер-меню */
.line {
    background: #8B6AFF;
}

.navbar .menu-items {
    background: rgba(10, 11, 26, 0.9);
    backdrop-filter: blur(10px);
}

/* Кнопки с космическим градиентом */
.catalog-btn, .feedback-btn {
    background: linear-gradient(135deg, #5438DC 0%, #8B6AFF 100%);
    color: #E2E4F3;
    border: none;
    box-shadow: 0 0 15px rgba(139, 106, 255, 0.5);
}

.catalog-btn:hover, .feedback-btn:hover {
    background: linear-gradient(135deg, #8B6AFF 0%, #5438DC 100%);
    box-shadow: 0 0 20px rgba(139, 106, 255, 0.7);
    transform: translateY(-2px);
}

/* Секция About */
.about {
    background: linear-gradient(to right, rgba(20, 21, 46, 0.7), rgba(10, 11, 26, 0.7));
    border-radius: 10px;
}

/* Формы ввода */
.feedback-field {
    background-color: rgba(20, 21, 46, 0.7);
    color: #E2E4F3;
    border: 1px solid #5438DC;
    box-shadow: inset 0 0 8px rgba(139, 106, 255, 0.3);
}

.feedback-field:focus {
    border-color: #8B6AFF;
    box-shadow: inset 0 0 12px rgba(139, 106, 255, 0.5);
}

/* Футер */
footer {
    background: linear-gradient(to top, #0A0B1A 0%, #1C1E42 100%);
}

footer a {
    color: #E2E4F3;
}

footer a:hover {
    color: #8B6AFF;
    text-shadow: 0 0 8px rgba(139, 106, 255, 0.7);
}

/* Специальные карточки и блоки */
.game-card, .category-card, .timeline-item {
    background: rgba(28, 30, 66, 0.6);
    border: 1px solid rgba(139, 106, 255, 0.3);
    box-shadow: 0 0 15px rgba(139, 106, 255, 0.2);
    transition: all 0.4s ease;
}

.game-card:hover, .category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 0 25px rgba(139, 106, 255, 0.4);
    border-color: rgba(139, 106, 255, 0.6);
}

/* Сетки */
.featured-grid, .stats-grid, .games-container, .category-grid, .timeline-grid {
    position: relative;
}

/* Эффект копирайта */
.copyright {
    color: #8B6AFF;
    text-shadow: 0 0 8px rgba(139, 106, 255, 0.5);
}

/* Контакты */
.contacts-link, .contacts-address {
    color: #E2E4F3;
    transition: all 0.4s ease;
}

.contacts-link:hover {
    color: #8B6AFF;
    text-shadow: 0 0 8px rgba(139, 106, 255, 0.7);
    transform: translateX(5px);
}

/* Космическая тематика - Звездное небо и галактика */

/* Основные цвета сайта */
body {
    background: #0A0B1A; /* Глубокий космический фон */
    color: #E2E4F3; /* Звездный свет - текст */
    position: relative;
    background-image:
        radial-gradient(1px 1px at 25% 30%, rgba(255, 255, 255, 0.7), transparent),
        radial-gradient(1px 1px at 50% 50%, rgba(255, 255, 255, 0.6), transparent),
        radial-gradient(2px 2px at 75% 20%, rgba(255, 255, 255, 0.5), transparent),
        radial-gradient(1px 1px at 20% 80%, rgba(255, 255, 255, 0.7), transparent);
    background-size: 1000px 1000px;
}

/* Красивый градиентный фон для header с эффектом звездного поля */
.header {
    background: linear-gradient(to bottom, #0A0B1A 0%, #1C1E42 100%);
    position: relative;
    overflow: hidden;
}

.header::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        radial-gradient(2px 2px at 10% 10%, rgba(255, 255, 255, 0.9), transparent),
        radial-gradient(2px 2px at 30% 20%, rgba(255, 255, 255, 0.8), transparent),
        radial-gradient(2px 2px at 50% 40%, rgba(255, 255, 255, 0.7), transparent),
        radial-gradient(3px 3px at 70% 30%, rgba(255, 255, 255, 0.8), transparent),
        radial-gradient(2px 2px at 90% 15%, rgba(255, 255, 255, 0.9), transparent);
    background-size: 800px 800px;
    z-index: 0;
    opacity: 0.6;
    animation: twinkle 8s infinite linear alternate;
}

/* Эффекты для заголовков */
h1, h2, h3, h4 {
    color: #8B6AFF; /* Пурпурно-голубой оттенок для заголовков */
    text-shadow: 0 0 10px rgba(139, 106, 255, 0.7); /* Свечение вокруг заголовков */
    position: relative;
    z-index: 1;
}

h1 {
    color: #E2E4F3; /* Заголовок h1 сделаем светлее */
    text-shadow: 0 0 15px rgba(226, 228, 243, 0.8);
    background: linear-gradient(90deg, #8B6AFF, #5438DC, #8B6AFF);
    background-size: 200% auto;
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    animation: gradientFlow 6s ease infinite;
}

/* Навигация */
.navbar {
    background-color: rgba(10, 11, 26, 0.8); /* Полупрозрачный космический фон */
    backdrop-filter: blur(5px); /* Эффект размытия */
}

.navbar a {
    color: #E2E4F3;
}

.navbar a:hover {
    color: #8B6AFF; /* Звездное свечение при наведении */
    text-shadow: 0 0 8px rgba(139, 106, 255, 0.7);
}

/* Линии гамбургер-меню */
.line {
    background: #8B6AFF;
}

.navbar .menu-items {
    background: rgba(10, 11, 26, 0.9);
    backdrop-filter: blur(10px);
}

/* Кнопки с космическим градиентом */
.catalog-btn, .feedback-btn {
    background: linear-gradient(135deg, #5438DC 0%, #8B6AFF 100%);
    color: #E2E4F3;
    border: none;
    box-shadow: 0 0 15px rgba(139, 106, 255, 0.5);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.catalog-btn::before, .feedback-btn::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: 0.5s;
    z-index: -1;
}

.catalog-btn:hover::before, .feedback-btn:hover::before {
    left: 100%;
}

.catalog-btn:hover, .feedback-btn:hover {
    background: linear-gradient(135deg, #8B6AFF 0%, #5438DC 100%);
    box-shadow: 0 0 20px rgba(139, 106, 255, 0.7), 0 0 40px rgba(139, 106, 255, 0.4);
    transform: translateY(-2px);
}

/* Секция About */
.about {
    background: linear-gradient(to right, rgba(20, 21, 46, 0.7), rgba(10, 11, 26, 0.7));
    border-radius: 10px;
}

/* Формы ввода */
.feedback-field {
    background-color: rgba(20, 21, 46, 0.7);
    color: #E2E4F3;
    border: 1px solid #5438DC;
    box-shadow: inset 0 0 8px rgba(139, 106, 255, 0.3);
}

.feedback-field:focus {
    border-color: #8B6AFF;
    box-shadow: inset 0 0 12px rgba(139, 106, 255, 0.5);
}

/* Футер */
footer {
    background: linear-gradient(to top, #0A0B1A 0%, #1C1E42 100%);
}

footer a {
    color: #E2E4F3;
}

footer a:hover {
    color: #8B6AFF;
    text-shadow: 0 0 8px rgba(139, 106, 255, 0.7);
}

/* Специальные карточки и блоки */
.game-card, .category-card, .timeline-item {
    background: rgba(28, 30, 66, 0.6);
    border: 1px solid rgba(139, 106, 255, 0.3);
    box-shadow: 0 0 15px rgba(139, 106, 255, 0.2);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.game-card::before, .category-card::before, .timeline-item::before {
    content: "";
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        to bottom right,
        rgba(139, 106, 255, 0) 0%,
        rgba(139, 106, 255, 0) 40%,
        rgba(139, 106, 255, 0.3) 50%,
        rgba(139, 106, 255, 0) 60%,
        rgba(139, 106, 255, 0) 100%
    );
    transform: rotate(45deg);
    transition: all 0.8s ease;
    z-index: 0;
    pointer-events: none;
}

.game-card:hover, .category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 0 25px rgba(139, 106, 255, 0.4);
    border-color: rgba(139, 106, 255, 0.6);
}

.game-card:hover::before, .category-card:hover::before {
    transform: rotate(45deg) translate(50%, 50%);
}

/* Сетки */
.featured-grid, .stats-grid, .games-container, .category-grid, .timeline-grid {
    position: relative;
}

/* Анимации для космических эффектов */
@keyframes twinkle {
    0% { opacity: 0.4; transform: scale(1); }
    50% { opacity: 0.8; transform: scale(1.05); }
    100% { opacity: 0.6; transform: scale(1); }
}

@keyframes gradientFlow {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes nebula {
    0% { background-position: 0% 0%; }
    100% { background-position: 100% 100%; }
}

/* Эффект туманности для отдельных областей */
.about, .info, .catalog-wrapper {
    position: relative;
}

.about::after, .info::after, .catalog-wrapper::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    opacity: 0.1;
    background-image:
        radial-gradient(circle at 30% 40%, rgba(139, 106, 255, 0.8), transparent 80%),
        radial-gradient(circle at 70% 60%, rgba(84, 56, 220, 0.8), transparent 80%);
    background-size: 200% 200%;
    background-position: 0% 0%;
    z-index: -1;
    animation: nebula 15s infinite alternate;
}

/* Эффект копирайта */
.copyright {
    color: #8B6AFF;
    text-shadow: 0 0 8px rgba(139, 106, 255, 0.5);
}

/* Контакты */
.contacts-link, .contacts-address {
    color: #E2E4F3;
    transition: all 0.4s ease;
}

.contacts-link:hover {
    color: #8B6AFF;
    text-shadow: 0 0 8px rgba(139, 106, 255, 0.7);
    transform: translateX(5px);
}