/* ================= ПЕРЕМЕННЫЕ И БАЗОВЫЕ СТИЛИ ================= */

/* Цветовая палитра сайта (киберпанк / неон) */
:root {
    --bg-dark: #0b0d17;       /* Темный фон страницы */
    --bg-card: #141626;       /* Фон карточек чуть светлее */
    --neon-blue: #00a2ff;     /* Голубой неон */
    --neon-purple: #803bef;   /* Фиолетовый неон */
    --text-main: #ffffff;     /* Белый текст */
    --text-gray: #a0a3bd;     /* Серый текст для подписей */
    --border-glow: #2a2d4a;   /* Цвет границ */
}

/* Сброс стандартных отступов браузера */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Общие настройки тела страницы */
body {
    font-family: 'Montserrat', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-main);
    line-height: 1.6;
}

/* Контейнер для ограничения ширины контента по центру */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Стили для ссылок */
a {
    text-decoration: none;
    color: inherit;
}


/* ================= СТИЛИ ШАПКИ (HEADER) ================= */

.main-header {
    padding: 15px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

/* Flexbox для распределения логотипа, меню и кнопок */
.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Логотип */
.logo-area {
    display: flex;
    flex-direction: column;
}

.logo-text {
    font-size: 24px;
    font-weight: 800;
    letter-spacing: 1px;
    /* Градиентная заливка текста */
    background: linear-gradient(135deg, #00a2ff 0%, #803bef 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1;
}

.logo-sub {
    font-size: 10px;
    color: var(--text-gray);
    letter-spacing: 2px;
    margin-top: 4px;
    font-weight: 600;
}

/* Меню навигации */
.nav-links {
    display: flex;
    list-style: none;
    gap: 25px;
}

.nav-links a {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-gray);
    transition: color 0.3s ease, text-shadow 0.3s ease;
    position: relative;
}

.nav-links a:hover {
    color: var(--text-main);
}

/* Активная ссылка (Главная) с неоновым подчеркиванием */
.nav-links a.active {
    color: var(--text-main);
}
.nav-links a.active::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--neon-blue);
    box-shadow: 0 0 8px var(--neon-blue);
}

/* Правая часть шапки */
.actions-area {
    display: flex;
    align-items: center;
    gap: 20px;
}

.icon-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-gray);
    transition: color 0.3s ease;
}

.icon-btn:hover {
    color: var(--text-main);
}

/* Кнопка Войти */
.btn-login {
    padding: 8px 24px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 700;
    background: linear-gradient(135deg, #00a2ff 0%, #803bef 100%);
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(0, 162, 255, 0.15);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-login:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(128, 59, 239, 0.3);
}


/* ================= СТИЛИ ГЛАВНОГО БАННЕРА (HERO) ================= */

.hero-section {
    padding: 60px 0 40px 0;
    position: relative;
    overflow: hidden;
}

.hero-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 40px;
}

.hero-content {
    flex: 1;
    max-width: 600px;
}

/* Бейджик GAMING & CODING */
.hero-badge {
    display: inline-block;
    padding: 6px 14px;
    background: rgba(0, 162, 255, 0.1);
    color: var(--neon-blue);
    border: 1px solid rgba(0, 162, 255, 0.2);
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: 24px;
}

/* Заголовок */
.hero-title {
    font-size: 48px;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 20px;
}

/* Градиентный текст для слов Создавай и Играй */
.gradient-text {
    background: linear-gradient(135deg, #00a2ff 0%, #803bef 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Подзаголовок */
.hero-desc {
    color: var(--text-gray);
    font-size: 16px;
    max-width: 480px;
    margin-bottom: 32px;
    line-height: 1.7;
}

/* Иконки категорий под текстом */
.hero-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 16px 24px;
    margin-bottom: 36px;
}

.tag-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-main);
}

.tag-icon {
    color: var(--neon-blue);
}

/* Кнопки призыва к действию */
.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 20px;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    padding: 14px 32px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 700;
    background: linear-gradient(135deg, #00a2ff 0%, #803bef 100%);
    color: #ffffff;
    box-shadow: 0 4px 20px rgba(0, 162, 255, 0.2);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(128, 59, 239, 0.35);
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    padding: 14px 24px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 700;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-glow);
    color: var(--text-main);
    transition: background 0.2s ease, border-color 0.2s ease;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--neon-blue);
}

/* Правая часть: место под графику */
.hero-image-wrapper {
    flex: 1;
    max-width: 500px;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Заглушка. Замените контент внутри на тег <img> позже */
.hero-image-placeholder {
    width: 100%;
    aspect-ratio: 4/3;
    background: linear-gradient(145deg, #141626, #0b0d17);
    border: 1px solid var(--border-glow);
    border-radius: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--text-gray);
    font-size: 14px;
    letter-spacing: 2px;
    box-shadow: inset 0 0 60px rgba(0, 162, 255, 0.05);
}

/* Нижний блок статистики */
.hero-stats {
    display: flex;
    justify-content: flex-start;
    gap: 60px;
    margin-top: 50px;
    padding: 20px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.stat-number {
    font-size: 28px;
    font-weight: 800;
    color: var(--text-main);
}

.stat-label {
    font-size: 13px;
    color: var(--text-gray);
    font-weight: 600;
    margin-top: 4px;
}


/* ================= АДАПТИВНОСТЬ ДЛЯ МОБИЛЬНЫХ УСТРОЙСТВ ================= */

@media (max-width: 992px) {
    /* Меняем баннер на вертикальный */
    .hero-container {
        flex-direction: column;
        text-align: center;
    }
    .hero-content {
        max-width: 100%;
    }
    .hero-desc {
        margin: 0 auto 32px auto;
    }
    .hero-tags {
        justify-content: center;
    }
    .hero-buttons {
        justify-content: center;
    }
    .hero-stats {
        justify-content: space-around;
        gap: 20px;
        flex-wrap: wrap;
    }
    /* Скрываем правую картинку на телефонах */
    .hero-image-wrapper {
        display: none; 
    }
}

/* ================= СТИЛИ ДЛЯ ПОПУЛЯРНЫХ РАЗДЕЛОВ ================= */

.popular-sections {
    padding: 40px 0 60px;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}
.section-header h2 {
    font-size: 22px;
    font-weight: 700;
}
.view-all {
    font-size: 14px;
    color: var(--text-gray);
    transition: color 0.3s ease;
}
.view-all:hover {
    color: var(--neon-blue);
}

.sections-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.section-card {
    display: flex;
    flex-direction: column;
    padding: 24px;
    background-color: var(--bg-card);
    border-radius: 12px;
    border: 1px solid var(--border-glow);
    transition: transform 0.3s ease, border-color 0.3s ease;
    text-decoration: none;
}
.section-card:hover {
    transform: translateY(-4px);
    border-color: rgba(255,255,255,0.1);
}

.card-icon {
    margin-bottom: 16px;
    color: #fff;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
}

/* Цвета для иконок разделов */
.card-windows .card-icon { background: rgba(0, 162, 255, 0.2); color: var(--neon-blue); }
.card-code .card-icon { background: rgba(128, 59, 239, 0.2); color: var(--neon-purple); }
.card-gaming .card-icon { background: rgba(255, 69, 0, 0.2); color: #ff4500; }
.card-ai .card-icon { background: rgba(255, 0, 150, 0.2); color: #ff0096; }
.card-pc .card-icon { background: rgba(0, 255, 180, 0.2); color: #00ffb4; }
.card-utility .card-icon { background: rgba(255, 215, 0, 0.2); color: #ffd700; }
.card-net .card-icon { background: rgba(0, 255, 255, 0.2); color: #00ffff; }
.card-programs .card-icon { background: rgba(255, 100, 100, 0.2); color: #ff6464; }

.card-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 4px;
}
.card-desc {
    font-size: 13px;
    color: var(--text-gray);
}

/* ================= СТИЛИ ДЛЯ ПОСЛЕДНИХ СТАТЕЙ И САЙДБАРА ================= */

.content-grid-section {
    padding-bottom: 60px;
}
.content-grid-container {
    display: grid;
    grid-template-columns: 2fr 1fr; /* 2 колонки на статьи, 1 на сайдбар */
    gap: 40px;
}

.articles-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.article-card {
    display: block;
    background-color: var(--bg-card);
    border-radius: 12px;
    border: 1px solid var(--border-glow);
    padding: 16px;
    text-decoration: none;
    transition: transform 0.3s ease;
}
.article-card:hover {
    transform: translateY(-4px);
}

.article-img {
    width: 100%;
    height: 100px;
    border-radius: 8px;
    margin-bottom: 14px;
    background-size: cover;
    background-position: center;
}

.article-info {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
}
.article-tag {
    font-size: 11px;
    font-weight: 600;
    color: var(--neon-blue);
    text-transform: uppercase;
}
.article-date {
    font-size: 11px;
    color: var(--text-gray);
}

.article-title {
    font-size: 15px;
    font-weight: 700;
    line-height: 1.3;
    color: var(--text-main);
    margin-bottom: 12px;
}

.article-meta {
    display: flex;
    gap: 16px;
    font-size: 12px;
    color: var(--text-gray);
}

/* Сайдбар */
.sidebar {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.subscribe-box {
    background-color: var(--bg-card);
    border: 1px solid var(--border-glow);
    border-radius: 12px;
    padding: 24px;
    position: relative;
    overflow: hidden;
}
.sub-header {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 8px;
}
.sub-desc {
    font-size: 13px;
    color: var(--text-gray);
    margin-bottom: 16px;
}
.sub-form {
    display: flex;
    gap: 8px;
}
.sub-form input {
    flex: 1;
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--border-glow);
    border-radius: 6px;
    padding: 10px 14px;
    color: #fff;
    font-family: inherit;
}
.sub-form input:focus {
    outline: none;
    border-color: var(--neon-blue);
}
.sub-form button {
    padding: 10px 16px;
    background: linear-gradient(135deg, #00a2ff, #803bef);
    border: none;
    border-radius: 6px;
    color: #fff;
    font-weight: bold;
    cursor: pointer;
    transition: opacity 0.3s ease;
}
.sub-form button:hover {
    opacity: 0.8;
}
.sub-note {
    font-size: 11px;
    color: var(--text-gray);
    margin-top: 12px;
}
.sub-envelope-deco {
    position: absolute;
    right: -10px;
    top: -10px;
    transform: rotate(15deg);
}

.popular-box {
    background-color: var(--bg-card);
    border: 1px solid var(--border-glow);
    border-radius: 12px;
    padding: 24px;
}

.popular-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.popular-item {
    display: flex;
    align-items: center;
    gap: 14px;
    text-decoration: none;
    padding-bottom: 14px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}
.popular-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}
.popular-num {
    font-size: 24px;
    font-weight: 800;
    color: rgba(255,255,255,0.08);
    min-width: 24px;
}
.popular-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-main);
    margin-bottom: 2px;
}
.popular-views {
    font-size: 12px;
    color: var(--text-gray);
}

/* ================= СТИЛИ ДЛЯ ПОДВАЛА ================= */

.main-footer {
    padding: 40px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    margin-top: 20px;
}
.footer-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 30px;
}

.footer-left {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.footer-copy {
    font-size: 13px;
    color: var(--text-gray);
}
.footer-links {
    display: flex;
    gap: 20px;
}
.footer-links a {
    font-size: 12px;
    color: var(--text-gray);
    transition: color 0.3s ease;
}
.footer-links a:hover {
    color: var(--text-main);
}

.footer-right {
    display: flex;
    align-items: center;
    gap: 20px;
}
.footer-social-label {
    font-size: 13px;
    color: var(--text-gray);
}
.social-icons {
    display: flex;
    gap: 10px;
}
.social-icon {
    color: var(--text-gray);
    font-size: 20px;
    transition: color 0.3s ease;
}
.social-icon:hover {
    color: var(--text-main);
}

/* ================= АДАПТИВНОСТЬ ДЛЯ ПЛАНШЕТОВ И ТЕЛЕФОНОВ ================= */

@media (max-width: 992px) {
    .sections-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .content-grid-container {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    .sections-grid {
        grid-template-columns: 1fr;
    }
    .articles-grid {
        grid-template-columns: 1fr;
    }
    .footer-container {
        flex-direction: column;
        text-align: center;
    }
    .footer-links {
        flex-wrap: wrap;
        justify-content: center;
    }
}