/*  ===== Global Styles =====  */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    min-height: 100%;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    font-family: Arial, sans-serif;
    background: #f0f0f0 linear-gradient(135deg, #e6d3c3 0%, #f5f5f5 100%);
    background-attachment: fixed;
    color: #333;
    line-height: 1.6;
}

/* ===== Header Styles ===== */
header {
    background: linear-gradient(to bottom, #72370e, #8b4513);
    color: white;
    padding: 30px 20px;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

header h1 {
    font-size: 2.2em;
    margin-bottom: 5px;
}

.mainheader {
    font-family: 'Press Start 2P', monospace;
    font-size: 2.2rem;
    color: #ffffff;
    margin: 10px 0 5px 0;
    letter-spacing: 1px;
    text-transform: uppercase;
    text-shadow:
        2px 2px 0 #5c2c09,
        4px 4px 0 rgba(0, 0, 0, 0.3);
}

.subheader {
    font-family: 'Press Start 2P', cursive, monospace;
    color: #fce9c9;
    margin: 10px 0 5px 0;
    font-size: 0.85rem;
    letter-spacing: 1px;
    text-shadow: 1px 1px 0 #5c2c09;
}

/* ===== Navigation Styles ===== */
nav {
    background-color: #5c2c09;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

nav a {
    color: #fce9c9;
    text-decoration: none;
    padding: 14px 24px;
    display: inline-block;
    font-weight: bold;
    border-right: 1px solid rgba(255, 255, 255, 0.08);
    transition: all 0.2s ease;
}

nav a:hover {
    background-color: #72370e;
    color: #ffffff;
    text-decoration: none;
}

nav a.active {
    background-color: #8b4513;
    color: #ffffff;
    border-bottom: 3px solid #daa520;
}

/* ===== Container Styles ===== */
.container {
    width: 95%;
    max-width: 1140px;
    margin: 25px auto;
    background-color: #ffffff;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    flex: 1 0 auto;
}

/* ===== Typography & Titles ===== */
h2 {
    color: #8b4513;
    margin: 10px 0 15px 0;
    border-bottom: 3px solid #daa520;
    padding-bottom: 8px;
    font-size: 1.6em;
}

h3, h4 {
    color: #a0522d;
    margin: 10px 0;
}

p {
    margin: 10px 0 15px 0;
}

/* ===== Edition / Game Player Section ===== */
.edition-section {
    background-color: #faf6f0;
    padding: 20px;
    border-radius: 10px;
    margin: 15px 0 20px 0;
    border-left: 5px solid #daa520;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.edition-section iframe {
    max-width: 100%;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    margin-top: 15px;
}

/* ===== Social Links Cards ===== */
.social-links {
    background-color: #fcfcfc;
    padding: 20px;
    border-radius: 10px;
    margin: 20px 0;
    border: 1px solid #eee;
    box-shadow: 0 2px 8px rgba(0,0,0,0.03);
}

.social-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 15px;
    margin-top: 15px;
}

.social-card {
    background-color: #faf6f0;
    padding: 15px;
    border-radius: 8px;
    border: 1px solid #e8dec8;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.social-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(139, 69, 19, 0.12);
}

.social-card h4 {
    margin: 0 0 5px 0;
}

.social-card p {
    margin: 0;
    font-size: 0.9em;
    color: #666;
}

/* ===== Contact Info ===== */
.contact-info {
    background-color: #fff8dc;
    padding: 18px;
    border-radius: 8px;
    margin: 20px 0;
    text-align: center;
    border: 1px dashed #daa520;
}

/* ===== Buttons & Links ===== */
a {
    color: #8b4513;
    text-decoration: none;
    font-weight: bold;
}

a:hover {
    text-decoration: underline;
}

.download-btn, .button-link {
    display: inline-block;
    background-color: #8b4513;
    color: white !important;
    padding: 12px 26px;
    border-radius: 6px;
    text-decoration: none;
    margin: 10px 0;
    font-weight: bold;
    box-shadow: 0 3px 6px rgba(0,0,0,0.15);
    transition: all 0.2s ease;
}

.download-btn:hover, .button-link:hover {
    background-color: #a0522d;
    transform: translateY(-2px);
    box-shadow: 0 5px 12px rgba(0,0,0,0.2);
    text-decoration: none;
}

/* ===== Footer ===== */
footer {
    background-color: #5c2c09;
    color: #fce9c9;
    text-align: center;
    padding: 20px;
    margin-top: auto;
}

footer p {
    margin: 4px 0;
    font-size: 0.9em;
}

/* ============================================
   ПК АДАПТАЦИЯ (DESKTOP GRID LAYOUT)
   ============================================ */

/* Планшеты (от 600px) — карточки соцсетей в ряды */
@media (min-width: 600px) {
    .social-grid {
        grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    }
}

/* Компьютеры и ноутбуки (от 992px) — двухколоночный ПК-макет */
@media (min-width: 992px) {
    .container {
        padding: 35px;
    }

    .mainheader {
        font-size: 3rem;
    }

    /* Двухколоночная структура ПК сайта */
    .desktop-layout {
        display: grid;
        grid-template-columns: 1fr 360px; /* Слева игра (гибкая), справа сайдбар (360px) */
        gap: 30px;
        align-items: start;
    }

    /* В сайдбаре соцсети становятся колонкой */
    .desktop-layout .social-grid {
        grid-template-columns: 1fr;
    }

    .desktop-layout .social-links,
    .desktop-layout .contact-info {
        margin: 0 0 20px 0;
    }
}