/* ==========================================================================
   1. ОБЩИЕ НАСТРОЙКИ И СБРОС СТИЛЕЙ
   ========================================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

:root {
    --bg-dark: #0b0c10;
    --bg-card: #1f2833;
    --primary-neon: #66fcf1;
    --secondary-neon: #45f3ff;
    --text-main: #c5c6c7;
    --text-light: #ffffff;
    --btn-apple: #111111;
    --btn-google: #a4c639;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    line-height: 1.6;
    padding-bottom: 60px;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

/* ==========================================================================
   2. ШАПКА САЙТА (HEADER)
   ========================================================================== */
header {
    background-color: #11141a;
    border-bottom: 2px solid var(--primary-neon);
    padding: 20px 0;
    margin-bottom: 40px;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 24px;
    font-weight: bold;
    color: var(--text-light);
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.logo:hover {
    color: var(--primary-neon);
}

nav a {
    color: var(--text-main);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

nav a:hover {
    color: var(--primary-neon);
}

/* ==========================================================================
   3. ГЛАВНАЯ СТРАНИЦА (INDEX.PHP)
   ========================================================================== */
/* Новый гибкий блок приветствия с картинкой */
.studio-intro {
    margin-bottom: 50px;
    background: linear-gradient(135deg, #1f2833 0%, #0b0c10 100%);
    border-radius: 12px;
    border: 1px solid #2d3748;
    display: flex;
    align-items: center;
    overflow: hidden; /* Закругляет края картинки внутри блока */
    gap: 40px;
    padding-right: 40px;
}

/* Контейнер для заставки в приветствии: увеличена высота под формат заставки */
.intro-visual {
    width: 300px;
    min-width: 300px;
    height: 430px; 
    background-color: #050508; /* Более глубокий черный фон для подложки картинки */
    border-right: 1px solid #2d3748;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Изменено на contain, чтобы заставка вмещалась полностью и не срезалась */
.featured-splash {
    width: 100%;
    height: 100%;
    object-fit: contain; 
}

/* Текст приветствия справа от картинки */
.intro-text {
    flex-grow: 1;
}

.studio-intro h1 {
    font-size: 3rem;
    color: var(--text-light);
    margin-bottom: 15px;
    text-shadow: 0 0 10px rgba(102, 252, 241, 0.3);
}

.studio-intro p {
    font-size: 1.2rem;
    color: var(--text-main);
    max-width: 600px;
}

/* Сетка карточек игр */
.games-grid h2 {
    color: var(--text-light);
    margin-bottom: 25px;
    font-size: 2rem;
    border-left: 4px solid var(--primary-neon);
    padding-left: 15px;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

/* Чистая текстовая карточка */
.game-card {
    background-color: var(--bg-card);
    border-radius: 12px;
    border: 1px solid #2d3748;
    display: flex;
    flex-direction: column;
    height: 100%; /* Гарантирует одинаковую высоту всех карточек в ряду */
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.game-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-neon);
    box-shadow: 0 8px 25px rgba(102, 252, 241, 0.15);
}

.game-card-content {
    padding: 30px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.game-card h3 {
    color: var(--text-light);
    font-size: 1.5rem;
    margin-bottom: 12px;
}

.game-card p {
    font-size: 1rem;
    color: #a0aec0;
    margin-bottom: 25px;
    line-height: 1.5;
    flex-grow: 1; /* Выталкивает кнопку и плашку вниз */
}

.card-meta {
    margin-bottom: 20px;
    margin-top: auto; /* Прижимает блок мета-информации к нижнему краю */
}

.badge {
    background-color: #0b0c10;
    color: var(--primary-neon);
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: bold;
    text-transform: uppercase;
    border: 1px solid rgba(102, 252, 241, 0.2);
    display: inline-block;
}

/* Кнопки в карточках */
.btn-more {
    display: block;
    text-align: center;
    background-color: #2d3748;
    color: var(--text-light);
    text-decoration: none;
    font-weight: bold;
    padding: 12px;
    border-radius: 6px;
    font-size: 0.95rem;
    margin-top: 10px;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.btn-more:hover {
    background-color: var(--primary-neon);
    color: var(--bg-dark);
}

/* ==========================================================================
   4. СТРАНИЦА ИГРЫ (GAME.PHP) - КАНАЛЫ ВИДЕО И ОПИСАНИЕ
   ========================================================================== */
.game-hero {
    background: linear-gradient(rgba(11, 12, 16, 0.85), rgba(11, 12, 16, 0.98));
    padding: 40px;
    border-radius: 12px;
    border: 1px solid #2d3748;
    margin-bottom: 40px;
}

/* Делаем Hero-блок двухколоночным: левая часть шире, правая подстраивается */
.game-hero-content {
    display: flex;
    gap: 40px;
    align-items: center;
    justify-content: space-between;
}

/* Левая секция: постер + тексты + кнопки скачивания */
.game-hero-main-info {
    display: flex;
    gap: 30px;
    align-items: flex-start;
    flex: 1;
}

.main-game-icon {
    width: 150px;
    min-width: 150px;
    height: 235px;
    border-radius: 14px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.5);
    border: 3px solid var(--primary-neon);
    object-fit: cover;
    background-color: #0b0c10;
}

.game-header-info {
    flex-grow: 1;
}

.game-header-info h1 {
    font-size: 2.5rem;
    color: var(--text-light);
    margin-bottom: 10px;
    line-height: 1.2;
}

.short-description {
    font-size: 1.1rem;
    color: #a0aec0;
    margin-bottom: 25px;
}

/* Правая секция: Широкий горизонтальный баннер 16:9 в стиле Google Play */
.game-video-container {
    flex: 1.2; /* Даем видео чуть больше пространства по ширине */
    max-width: 550px; /* Увеличили ширину, чтобы видео дышало как в маркете */
    width: 100%;
    margin: 0;
}

.video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* Горизонтальные пропорции 16:9 для эффекта кинотеатра */
    height: 0;
    overflow: hidden;
    border-radius: 12px;
    border: 1px solid #2d3748;
    box-shadow: 0 10px 30px rgba(0,0,0,0.7);
    background-color: #0b0c10;
}

/* Поддержка стандартного iframe на случай, если YouTube оживет */
.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    z-index: 2;
}

/* Кнопки скачивания магазинов */
.download-badges {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none;
    color: var(--text-light);
    font-weight: bold;
    font-size: 1rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn:hover {
    transform: scale(1.02);
}

.btn-google {
    background-color: #24292e;
    border: 2px solid var(--btn-google);
    box-shadow: 0 0 10px rgba(164, 198, 57, 0.2);
}

.btn-google:hover {
    box-shadow: 0 0 15px rgba(164, 198, 57, 0.5);
}

.btn-apple {
    background-color: #24292e;
    border: 2px solid var(--text-light);
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.1);
}

.btn-apple:hover {
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.4);
}

/* Галерея скриншотов геймплея */
.game-screenshots {
    margin: 40px 0;
}

.game-screenshots h2 {
    color: var(--text-light);
    margin-bottom: 20px;
}

.screenshots-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
}

.screenshot-item {
    width: 100%;
    aspect-ratio: 9/16;
    object-fit: contain; /* Скриншот вмещается полностью без срезания верха */
    background-color: #11141a;
    border-radius: 8px;
    border: 1px solid #2d3748;
    transition: transform 0.2s ease;
}

.screenshot-item:hover {
    transform: scale(1.03);
    border-color: var(--primary-neon);
}

/* Описание и списки фич */
.game-details h2, .game-details h3 {
    color: var(--text-light);
    margin: 30px 0 15px 0;
}

.full-description {
    font-size: 1.1rem;
    margin-bottom: 30px;
}

.features-list {
    list-style: none;
    margin-bottom: 40px;
}

.features-list li {
    position: relative;
    padding-left: 25px;
    margin-bottom: 12px;
}

.features-list li::before {
    content: "⚡";
    position: absolute;
    left: 0;
    color: var(--primary-neon);
}

/* Блок Premium функций */
.premium-block {
    background-color: #1a1525;
    border: 1px solid #7928ca;
    border-radius: 10px;
    padding: 30px;
    margin-top: 40px;
    box-shadow: 0 0 20px rgba(121, 40, 202, 0.15);
}

.premium-block h3 {
    margin-top: 0 !important;
    color: #ff007f !important;
    font-size: 1.6rem;
}

.premium-list {
    list-style: none;
    margin-bottom: 20px;
}

.premium-list li {
    position: relative;
    padding-left: 25px;
    margin-bottom: 12px;
}

.premium-list li::before {
    content: "💎";
    position: absolute;
    left: 0;
}

.premium-note {
    font-weight: bold;
    color: var(--primary-neon);
    margin-top: 15px;
}

/* Форма техподдержки */
.support-section {
    background-color: var(--bg-card);
    border: 1px solid #2d3748;
    border-radius: 10px;
    padding: 30px;
    margin-top: 50px;
}

.support-form {
    margin-top: 20px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    color: var(--text-light);
    margin-bottom: 8px;
    font-weight: 600;
}

.form-group input, .form-group textarea {
    width: 100%;
    padding: 12px;
    background-color: var(--bg-dark);
    border: 1px solid #4a5568;
    border-radius: 6px;
    color: var(--text-light);
    font-size: 1rem;
}

.form-group input:focus, .form-group textarea:focus {
    outline: none;
    border-color: var(--primary-neon);
    box-shadow: 0 0 8px rgba(102, 252, 241, 0.2);
}

.btn-submit {
    background-color: var(--primary-neon);
    color: var(--bg-dark);
    border: none;
    padding: 12px 30px;
    font-size: 1rem;
    font-weight: bold;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.btn-submit:hover {
    background-color: var(--secondary-neon);
}

.alert {
    padding: 15px;
    border-radius: 6px;
    margin-bottom: 20px;
    font-weight: 600;
}

.alert-success {
    background-color: rgba(39, 174, 96, 0.2);
    color: #2ecc71;
    border: 1px solid #27ae60;
}

.alert-danger {
    background-color: rgba(192, 41, 43, 0.2);
    color: #e74c3c;
    border: 1px solid #c0392b;
}
/* ==========================================================================
   5. ПОЛИТИКА КОНФИДЕНЦИАЛЬНОСТИ (PRIVACY.PHP)
   ========================================================================== */
.privacy-container h1 {
    color: var(--text-light);
    font-size: 2.5rem;
    margin-bottom: 5px;
}

.last-updated {
    color: #718096;
    margin-bottom: 40px;
}

.privacy-section {
    margin-bottom: 30px;
}

.privacy-section h2 {
    color: var(--text-light);
    margin-bottom: 15px;
    font-size: 1.5rem;
}

.privacy-section ul {
    margin-left: 25px;
    margin-top: 15px;
    margin-bottom: 15px;
    list-style-type: disc;
}

.privacy-section li {
    margin-bottom: 10px;
    padding-left: 5px;
    color: var(--text-main);
}

/* ==========================================================================
   6. БЛОК КОНТАКТОВ НА ГЛАВНОЙ (INDEX.PHP)
   ========================================================================== */
.studio-contacts {
    margin-top: 60px;
    margin-bottom: 20px;
}

.studio-contacts h2 {
    color: var(--text-light);
    margin-bottom: 25px;
    font-size: 2rem;
    border-left: 4px solid var(--primary-neon);
    padding-left: 15px;
}

.contacts-card {
    background-color: var(--bg-card);
    border: 1px solid #2d3748;
    border-radius: 12px;
    padding: 30px;
    text-align: center;
}

.contacts-card p {
    font-size: 1.1rem;
    color: #a0aec0;
    margin-bottom: 25px;
}

.email-block {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    background-color: #0b0c10;
    padding: 15px 30px;
    border-radius: 8px;
    border: 1px solid rgba(102, 252, 241, 0.2);
    margin: 0 auto;
}

.email-label {
    font-weight: 600;
    color: var(--text-light);
}

.email-link {
    color: var(--primary-neon) !important; /* Исправлено: принудительный яркий неоновый цвет */
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1rem;
    transition: color 0.2s ease, text-shadow 0.2s ease;
}

.email-link:hover {
    color: var(--secondary-neon) !important;
    text-shadow: 0 0 8px rgba(102, 252, 241, 0.6);
}

/* ==========================================================================
   7. ПОДВАЛ САЙТА (FOOTER) И МОБИЛЬНАЯ АДАПТАЦИЯ (@MEDIA)
   ========================================================================== */
footer {
    text-align: center;
    padding: 30px 0;
    color: #4a5568;
    border-top: 1px solid #1f2833;
    margin-top: 60px;
}

/* Настройки для мобильных устройств (ширина экрана менее 768px) */
@media (max-width: 768px) {
    /* Мобильная адаптация интро-блока на главной */
    .studio-intro {
        flex-direction: column;
        padding: 0 0 30px 0;
        text-align: center;
        gap: 20px;
        padding-right: 0;
    }
    
    .intro-visual {
        width: 100%;
        min-width: 100%;
        height: 280px;
        border-right: none;
        border-bottom: 1px solid #2d3748;
    }
    
    .intro-text {
        padding: 0 20px;
    }

    .studio-intro h1 {
        font-size: 2rem;
    }
    
    /* Вертикальное перестроение Hero-блока игры на смартфонах */
    .game-hero-content {
        flex-direction: column;
        gap: 30px;
        text-align: center;
    }

    .game-hero-main-info {
        flex-direction: column;
        align-items: center;
        gap: 20px;
        width: 100%;
    }
    
    .main-game-icon {
        width: 120px;
        height: 188px;
    }
    
    .game-header-info h1 {
        font-size: 2rem;
    }
    
    .download-badges {
        flex-direction: column;
    }
    
    .btn {
        width: 100%;
        justify-content: center;
    }

    /* Видео на мобилках растягивается во всю ширину с вертикальными пропорциями */
    .game-video-container {
        max-width: 100%;
    }

    .video-wrapper {
        padding-bottom: 140%; 
    }

    /* Мобильные контакты */
    .email-block {
        flex-direction: column;
        width: 100%;
        padding: 15px;
        gap: 8px;
    }
    .email-link {
        font-size: 1rem;
        word-break: break-all;
    }
}
/* Эффект наведения на вынесенную кнопку закрытия видео */
.close-modal-btn:hover {
    color: var(--primary-neon) !important; /* Окрашивает крестик в бирюзовый цвет */
    transform: scale(1.1); /* Слегка увеличивает кнопку */
    text-shadow: 0 0 15px rgba(102, 252, 241, 0.8); /* Добавляет сочное неоновое свечение */
}
/* Under Development Badge */
.under-development-badge {
    display: inline-block;
    background: linear-gradient(135deg, #1a1a2e, #16213e);
    color: #ffd700;
    padding: 14px 28px;
    border-radius: 8px;
    font-weight: bold;
    font-size: 1.1rem;
    border: 2px solid #ffd700;
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.15);
    letter-spacing: 1px;
    text-transform: uppercase;
    animation: pulse-gold 2s ease-in-out infinite;
}

@keyframes pulse-gold {
    0%, 100% {
        box-shadow: 0 0 20px rgba(255, 215, 0, 0.15);
    }
    50% {
        box-shadow: 0 0 40px rgba(255, 215, 0, 0.4);
    }
}


