/* 
   GpPlay ULTIMATE FRAMEWORK v9.0 
   Full Professional Edition
   Project: Gaming News SEO Portal
   Color Palette: Red (#e63946), White (#ffffff), Telegram Blue (#0088cc)
*/

/* --- ИМПОРТ ШРИФТОВ --- */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@700;800;900&family=Inter:wght@300;400;500;600;700;800&display=swap');

/* --- ПЕРЕМЕННЫЕ (Цвета, Тени, Анимации) --- */
:root {
    --primary: #e63946;         /* Глубокий красный */
    --primary-dark: #b91c1c;
    --tg-blue: #0088cc;        /* Фирменный Telegram */
    --dark: #111111;            /* Текст и акценты */
    --light: #ffffff;
    --bg-page: #f4f4f4;        /* Фон за пределами контента */
    --bg-card: #ffffff;
    --border: #e2e8f0;
    --text-main: #1a1a1b;
    --text-muted: #64748b;
    
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.05);
    --shadow-md: 0 10px 15px -3px rgba(0,0,0,0.1);
    --shadow-lg: 0 20px 25px -5px rgba(0,0,0,0.1), 0 10px 10px -5px rgba(0,0,0,0.04);
    
    --transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    --container-xl: 1200px;
    --radius-lg: 16px;
    --radius-md: 8px;
}

/* --- ГЛОБАЛЬНЫЙ СБРОС --- */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    background-color: var(--light);
    color: var(--text-main);
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
}

/* --- ВСПОМОГАТЕЛЬНЫЕ КЛАССЫ --- */
.container {
    max-width: var(--container-xl);
    margin: 0 auto;
    padding: 0 20px;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* --- КАСТОМНЫЙ СКРОЛЛБАР --- */
::-webkit-scrollbar {
    width: 10px;
}
::-webkit-scrollbar-track {
    background: var(--light);
}
::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 5px;
    border: 3px solid var(--light);
}
::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark);
}

/* --- 1. ШАПКА (GpPlay Red Header) --- */
header {
    background-color: var(--primary);
    height: 75px;
    position: sticky;
    top: 0;
    z-index: 2000;
    box-shadow: 0 4px 20px rgba(230, 57, 70, 0.4);
    display: flex;
    align-items: center;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo {
    font-family: 'Montserrat', sans-serif;
    font-weight: 900;
    font-size: 2.2rem;
    color: var(--light);
    text-transform: uppercase;
    letter-spacing: -2px;
}

.logo span {
    color: var(--dark);
    margin-left: 2px;
}

/* ВЫПАДАЮЩЕЕ МЕНЮ (Kebab Menu) */
.menu-wrapper {
    position: relative;
}

.menu-trigger {
    width: 45px;
    height: 45px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    gap: 5px;
    transition: var(--transition);
}

.menu-trigger span {
    width: 24px;
    height: 3px;
    background-color: var(--light);
    border-radius: 2px;
    transition: var(--transition);
}

.dropdown-menu {
    position: absolute;
    top: 60px;
    right: 0;
    background: var(--light);
    min-width: 240px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    display: flex;
    flex-direction: column;
    padding: 10px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(15px);
    transition: var(--transition);
    border: 1px solid var(--border);
}

.dropdown-menu.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu a {
    padding: 15px 25px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    font-size: 0.9rem;
    color: var(--dark);
    text-transform: uppercase;
    border-bottom: 1px solid #f1f1f1;
}

.dropdown-menu a:last-child {
    border-bottom: none;
}

.dropdown-menu a:hover {
    background-color: #fff1f2;
    color: var(--primary);
    padding-left: 30px;
}

/* --- 2. TELEGRAM BANNER (Blue) --- */
.tg-banner {
    background-color: var(--tg-blue);
    padding: 12px 0;
    color: var(--light);
    border-bottom: 1px solid rgba(0,0,0,0.1);
}

.tg-content {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
}

.tg-text {
    font-weight: 700;
    font-size: 0.95rem;
}

.tg-btn {
    background: var(--light);
    color: var(--tg-blue);
    padding: 6px 20px;
    border-radius: 50px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 900;
    font-size: 0.75rem;
    text-transform: uppercase;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.tg-btn:hover {
    transform: scale(1.05);
    background: #f0f9ff;
}

/* --- 3. TRENDING SCROLL (Top 5) --- */
.trending-wrap {
    padding: 40px 0 20px;
    background-color: var(--light);
}

.section-label {
    font-family: 'Montserrat', sans-serif;
    font-weight: 900;
    font-size: 0.8rem;
    color: var(--primary);
    margin-bottom: 20px;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 10px;
}

.section-label::after {
    content: '';
    height: 2px;
    flex-grow: 1;
    background: #eee;
}

.horizontal-scroll {
    display: flex;
    gap: 24px;
    overflow-x: auto;
    padding-bottom: 25px;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE */
    scroll-snap-type: x mandatory;
}

.horizontal-scroll::-webkit-scrollbar {
    display: none; /* Chrome/Safari */
}

.scroll-item {
    min-width: 340px;
    height: 210px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    position: relative;
    flex-shrink: 0;
    scroll-snap-align: start;
    box-shadow: var(--shadow-md);
}

.scroll-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s ease;
}

.scroll-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(0deg, rgba(0,0,0,0.85) 0%, transparent 70%);
    padding: 20px;
    display: flex;
    align-items: flex-end;
}

.scroll-item h3 {
    color: var(--light);
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    font-size: 1.1rem;
    line-height: 1.2;
}

.scroll-item:hover img {
    transform: scale(1.1);
}

/* --- 4. ОСНОВНАЯ СЕТКА ПОСТОВ --- */
.main-feed {
    padding: 40px 0 80px;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
    gap: 40px;
}

.post-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.post-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary);
}

.card-image-wrap {
    height: 230px;
    overflow: hidden;
}

.card-image-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.card-body {
    padding: 25px;
    flex-grow: 1;
}

.card-cat {
    color: var(--primary);
    font-family: 'Montserrat', sans-serif;
    font-weight: 900;
    font-size: 0.75rem;
    text-transform: uppercase;
    margin-bottom: 12px;
    display: block;
}

.card-title {
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    font-size: 1.4rem;
    line-height: 1.25;
    margin-bottom: 15px;
    color: var(--dark);
}

.card-excerpt {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 20px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* --- 5. СТРАНИЦА СТАТЬИ (SEO Magazine Layout) --- */
.article-wrap {
    max-width: 850px;
    margin: 60px auto 120px;
    padding: 0 20px;
}

.post-badge {
    display: inline-block;
    background: var(--primary);
    color: var(--light);
    padding: 6px 15px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 900;
    font-size: 0.8rem;
    text-transform: uppercase;
    margin-bottom: 25px;
    border-radius: 4px;
}

.article-title {
    font-family: 'Montserrat', sans-serif;
    font-weight: 900;
    font-size: clamp(2.2rem, 5vw, 4rem);
    line-height: 1.05;
    margin-bottom: 25px;
    letter-spacing: -2px;
    color: var(--dark);
}

.article-summary {
    font-size: 1.35rem;
    line-height: 1.5;
    color: var(--text-muted);
    margin-bottom: 40px;
    padding-left: 25px;
    border-left: 6px solid var(--primary);
    font-weight: 500;
}

.article-hero-img {
    width: 100%;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    margin-bottom: 40px;
    object-fit: cover;
    max-height: 500px;
}

/* МЕТРИКИ СТАТЬИ */
.article-metrics {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    padding: 20px 0;
    border-top: 2px solid var(--dark);
    border-bottom: 1px solid var(--border);
    margin-bottom: 50px;
    font-weight: 700;
    font-size: 0.9rem;
    color: #888;
}

.article-metrics span {
    display: flex;
    align-items: center;
    gap: 8px;
}

.article-metrics b {
    color: var(--dark);
}

/* КОНТЕНТ (H3, P, УМНАЯ ВЕРСТКА) */
.article-content {
    font-size: 1.25rem;
    line-height: 1.9;
    color: #222;
}

.article-content p {
    margin-bottom: 30px;
}

.article-content h3 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 900;
    font-size: 2rem;
    color: var(--primary);
    margin: 50px 0 25px;
    text-transform: uppercase;
    line-height: 1.2;
}

/* КНОПКИ ЛАЙКОВ И ШАРИНГА */
.article-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 80px;
    padding: 35px 0;
    border-top: 2px solid var(--dark);
}

.btn-like {
    background: transparent;
    border: 3px solid var(--primary);
    color: var(--primary);
    padding: 14px 35px;
    border-radius: 50px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 900;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 12px;
}

.btn-like.active {
    background: var(--primary);
    color: var(--light);
}

.share-block {
    display: flex;
    align-items: center;
    gap: 20px;
}

.share-label {
    font-weight: 800;
    font-size: 0.8rem;
    color: #aaa;
    text-transform: uppercase;
}

.share-btn {
    font-weight: 900;
    font-size: 1rem;
    color: var(--dark);
    border-bottom: 3px solid var(--primary);
}

.share-btn:hover {
    color: var(--primary);
}

/* --- 6. СИСТЕМА КОММЕНТАРИЕВ --- */
.comments-section {
    margin-top: 80px;
    background-color: #f9f9f9;
    padding: 50px;
    border-radius: 30px;
}

.comments-section h3 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 900;
    font-size: 1.8rem;
    margin-bottom: 40px;
    text-transform: uppercase;
}

.comment-card {
    background: var(--light);
    padding: 25px;
    border-radius: var(--radius-md);
    margin-bottom: 25px;
    box-shadow: var(--shadow-sm);
    border-left: 5px solid var(--primary);
}

.comment-user {
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 10px;
    font-size: 0.95rem;
}

.comment-body {
    color: #444;
    font-size: 1rem;
}

/* ФОРМА КОММЕНТАРИЯ */
.comment-form {
    margin-top: 50px;
}

.comment-form textarea {
    width: 100%;
    height: 150px;
    padding: 20px;
    border-radius: var(--radius-md);
    border: 2px solid var(--border);
    font-family: inherit;
    font-size: 1rem;
    margin-bottom: 20px;
    resize: none;
}

.btn-send {
    background: var(--dark);
    color: var(--light);
    padding: 15px 40px;
    border: none;
    border-radius: 4px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    text-transform: uppercase;
    cursor: pointer;
    transition: var(--transition);
}

.btn-send:hover {
    background: var(--primary);
}

/* --- 7. ФУТЕР --- */
footer {
    background: var(--dark);
    color: var(--light);
    padding: 100px 0 50px;
    text-align: center;
}

footer .logo {
    font-size: 3.5rem;
    margin-bottom: 30px;
    display: inline-block;
}

.footer-copy {
    font-size: 0.85rem;
    color: #555;
    margin-top: 50px;
    border-top: 1px solid #222;
    padding-top: 30px;
}

/* --- 8. АДАПТИВНОСТЬ (Responsive Design) --- */

/* Планшеты (1024px) */
@media (max-width: 1024px) {
    .news-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .article-wrap {
        padding: 0 40px;
    }
}

/* Мобильные телефоны (768px) */
@media (max-width: 768px) {
    header {
        height: 65px;
    }
    .logo {
        font-size: 1.6rem;
    }
    .news-grid {
        grid-template-columns: 1fr;
    }
    .horizontal-scroll {
        gap: 15px;
    }
    .scroll-item {
        min-width: 280px;
        height: 180px;
    }
    .article-title {
        font-size: 2.2rem;
    }
    .article-metrics {
        gap: 15px;
        font-size: 0.8rem;
    }
    .article-actions {
        flex-direction: column;
        gap: 30px;
    }
    .comments-section {
        padding: 30px 20px;
    }
}

/* Маленькие смартфоны (480px) */
@media (max-width: 480px) {
    .logo { font-size: 1.4rem; }
    .tg-text { font-size: 0.8rem; }
    .tg-btn { padding: 4px 12px; font-size: 0.65rem; }
}

/* Большие ТВ экраны (2500px+) */
@media (min-width: 2000px) {
    .container {
        max-width: 1700px;
    }
    .news-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    body {
        font-size: 1.2rem;
    }
}