/*
Theme Name: ScgisRussia Hockey Hub
Author: ScgisRussia Media Group
Description: Премиальный хоккейный хаб Казахстана. Аналитика КХЛ, НХЛ и разборы тактики «Барыса».
Version: 1.0.0
*/

@import url('https://fonts.googleapis.com/css2?family=Roboto+Condensed:wght@400;700&family=Inter:wght@400;600&family=JetBrains+Mono:wght@400;700&display=swap');

:root {
    /* Kazakhstan Ice Palette (Modern & Professional) */
    --primary: #00B5E2;        /* KZ Sky Blue */
    --secondary: #004085;      /* Deep Ice Navy */
    --accent: #FDB913;         /* KZ Gold */
    --black: #1B263B;
    --white: #FFFFFF;
    --bg-light: #F0F8FF;       /* Alice Blue / Ice */
    --text-main: #2C3E50;
    --text-muted: #7F8C8D;
    --border: #D1D9E6;
    
    --container-width: 1200px;
    --content-width: 900px;
    --transition: all 0.25s ease-in-out;

    /* Adaptive Design Variables */
    --section-pad: clamp(4rem, 10vw, 8rem);
    --hero-pad: clamp(6rem, 15vw, 12rem);
}

/* Global Reset - DNA V-B: Neobrutalism (Sharp Borders) */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    border-radius: 0 !important;
}

html, body {
    overflow-x: hidden;
    position: relative;
    width: 100%;
    max-width: 100%;
    background: var(--bg-light);
    color: var(--text-main);
    font-family: 'Inter', sans-serif;
    line-height: 1.7;
}

/* Fluid Typography - Rule 14 */
h1, h2, h3, .logo, .footer-logo {
    overflow-wrap: break-word;
    font-family: 'Roboto Condensed', sans-serif;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: -0.02em;
}

h1 { font-size: clamp(3rem, 10vw, 8rem); line-height: 0.85; color: var(--secondary); margin-bottom: 2rem; }
h2 { font-size: clamp(2rem, 6vw, 4.5rem); line-height: 0.9; color: var(--secondary); border-left: 12px solid var(--primary); padding-left: 2rem; }
h3 { font-size: clamp(1.4rem, 4vw, 2.2rem); line-height: 1.1; color: var(--secondary); }

.mono { font-family: 'JetBrains Mono', monospace; text-transform: uppercase; letter-spacing: 0.1em; font-size: 0.8rem; }

img { max-width: 100%; height: auto; display: block; border: 1px solid var(--border); }

a { text-decoration: none; color: inherit; transition: var(--transition); }

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 2rem;
}

/* DNA N-D: Centered Header */
.site-header {
    background: var(--white);
    padding: 2rem 0;
    position: relative;
    border-bottom: 3px solid var(--secondary);
    z-index: 1000;
}

.header-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}

.logo {
    font-size: clamp(2rem, 5vw, 4rem);
    color: var(--secondary);
    white-space: nowrap;
}
.logo span { color: var(--primary); }

.main-nav ul { 
    display: flex; 
    gap: 3.5rem; 
    list-style: none; 
    border-top: 1px solid var(--border);
    padding-top: 1.5rem;
}
.main-nav a { 
    font-weight: 700; 
    font-size: 0.9rem; 
    color: var(--secondary); 
    text-transform: uppercase;
}
.main-nav a:hover { color: var(--primary); }

/* Hamburger hidden by default, visible only on mobile (max-width: 768px) */
.nav-toggle { display: none; }

/* DNA H-D: Breakout / Asymmetric Hero */
.hero-scgis {
    padding: var(--hero-pad) 0;
    background: var(--white);
    position: relative;
    overflow: hidden;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 4rem;
    align-items: center;
}

.hero-image-breakout {
    position: relative;
    z-index: 2;
}
.hero-image-breakout img {
    width: 120%;
    margin-left: -10%;
    border: 15px solid var(--secondary);
    box-shadow: 20px 20px 0 var(--primary);
}

.btn-hockey {
    display: inline-block;
    padding: 1.2rem 3.5rem;
    background: var(--secondary);
    color: var(--white);
    font-weight: 700;
    text-transform: uppercase;
    border: 4px solid var(--secondary);
}
.btn-hockey:hover { background: var(--primary); border-color: var(--primary); }

/* DNA F-B: Cards in Grid (Benefits) */
.hockey-features {
    padding: var(--section-pad) 0;
    background: var(--secondary);
    color: var(--white);
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.feature-card {
    padding: 3rem;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    transition: var(--transition);
}
.feature-card:hover { 
    background: var(--white); 
    color: var(--secondary); 
    transform: translateY(-10px);
    border-color: var(--primary);
}
.feature-card h3 { color: var(--primary); margin-bottom: 1.5rem; }
.feature-card:hover h3 { color: var(--secondary); }

/* DNA U-E: Numerical Infographic */
.infographic-block {
    padding: 6rem 0;
    background: var(--white);
    border-bottom: 3px solid var(--secondary);
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    text-align: center;
    gap: 2rem;
}

.info-item strong { display: block; font-size: 5rem; font-family: 'Roboto Condensed'; color: var(--primary); line-height: 1; }
.info-item span { font-weight: 700; text-transform: uppercase; font-size: 0.8rem; color: var(--secondary); }

/* Posts Grid (Standard 3x3 with DNA C-A: Vertical Cards) */
.posts-section { padding: var(--section-pad) 0; background: var(--bg-light); }
.section-header { margin-bottom: 5rem; }

.hockey-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
    margin-bottom: 6rem;
}

.post-card-vert {
    background: var(--white);
    border: 4px solid var(--secondary);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    height: 100%;
}
.post-card-vert:hover { transform: translate(-8px, -8px); box-shadow: 12px 12px 0 var(--primary); }

.post-card-vert .thumb { height: 280px; overflow: hidden; border-bottom: 4px solid var(--secondary); }
.post-card-vert .thumb img { width: 100%; height: 100%; object-fit: cover; border: none; }

.post-card-vert .content { padding: 2.5rem; flex-grow: 1; display: flex; flex-direction: column; }
.post-card-vert h3 { margin-bottom: 2rem; flex-grow: 1; font-size: 1.8rem; color: var(--secondary); }

.btn-read {
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.85rem;
    color: var(--primary);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}
.btn-read::after { content: '→'; }

/* Pagination (Customized for Hockey Hub) */
.pagination { display: flex; justify-content: center; gap: 0.5rem; margin-top: 6rem; }
.pagination .page-numbers {
    padding: 0.8rem 1.5rem;
    background: var(--white);
    border: 3px solid var(--secondary);
    font-weight: 700;
    color: var(--secondary);
    font-family: 'Roboto Condensed';
    font-size: 1.2rem;
}
.pagination span.current, .pagination a:hover { background: var(--primary); color: var(--white); border-color: var(--primary); }

/* DNA FT-B: Two-column Footer */
.site-footer {
    background: var(--secondary);
    color: var(--white);
    padding: 8rem 0 4rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(2rem, 5vw, 8rem);
    margin-bottom: 6rem;
}

.footer-logo { font-size: clamp(2rem, 6vw, 5rem); color: var(--primary); margin-bottom: 2rem; overflow-wrap: anywhere; }
.footer-logo span { color: var(--white); }
.footer-desc { font-size: 1.1rem; color: rgba(255,255,255,0.7); max-width: 600px; overflow-wrap: break-word; }

.footer-nav ul { list-style: none; display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem 3rem; }
.footer-nav a { font-weight: 700; font-size: 1.2rem; color: var(--white); text-transform: uppercase; }
.footer-nav a:hover { color: var(--primary); }

.footer-bottom {
    padding-top: 3rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    font-family: 'JetBrains Mono';
    color: rgba(255,255,255,0.4);
}

/* Rule 22: Content Protocol (Standardized for the Hub) */
.site-main { padding-top: 0; }

.post-main {
    max-width: var(--content-width);
    margin: 6rem auto;
}

.post-header { margin-bottom: 5rem; text-align: center; }
.post-meta { display: block; margin-bottom: 1.5rem; color: var(--primary); font-weight: 700; }

.post-thumbnail { margin-bottom: 5rem; border: 8px solid var(--secondary); }
.post-thumbnail img { width: 100%; height: auto; }

.post-content { 
    font-size: 1.2rem; 
    line-height: 1.8; 
    color: var(--text-main); 
}

.post-content h2, .post-content h3 {
    margin: 4rem 0 2rem;
    color: var(--secondary);
    border-left: 8px solid var(--primary);
    padding-left: 1.5rem;
}

.post-content p { margin-bottom: 2rem; }

.post-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 4rem 0;
    border: 3px solid var(--secondary);
    background: var(--white);
}

.post-content th, .post-content td {
    padding: 1.5rem;
    border: 1px solid var(--border);
    text-align: left;
}

.post-content th {
    background: var(--secondary);
    color: var(--white);
    font-family: 'Roboto Condensed';
    text-transform: uppercase;
}

.post-content tr:nth-child(even) { background: var(--bg-light); }

.post-content ul, .post-content ol { margin: 2rem 0; padding-left: 2rem; }
.post-content li { margin-bottom: 1rem; position: relative; }
.post-content ul li::before { content: '■'; color: var(--primary); position: absolute; left: -1.5rem; font-size: 0.8rem; top: 0.2rem; }

/* Responsive */
@media (max-width: 1024px) {
    .hero-grid { grid-template-columns: 1fr; text-align: center; }
    .hero-image-breakout img { width: 100%; margin-left: 0; }
    .hockey-grid { grid-template-columns: repeat(2, 1fr); }
    .info-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .site-header { padding: 1.5rem 0; }
    .header-inner { flex-direction: row; justify-content: space-between; }
    .main-nav { display: none; }
    .main-nav.is-active {
        display: block; position: absolute; top: 100%; left: 0; width: 100%; background: var(--white); padding: 3rem 2rem; border-bottom: 3px solid var(--secondary);
    }
    .main-nav ul { flex-direction: column; gap: 2rem; align-items: center; border: none; padding: 0; }
    .nav-toggle { display: flex; flex-direction: column; gap: 6px; width: 30px; background: none; border: none; cursor: pointer; }
    .nav-toggle span { width: 100%; height: 3px; background: var(--secondary); }
    
    .hockey-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; text-align: center; }
    .footer-nav ul { grid-template-columns: 1fr; gap: 1.5rem; }
    .footer-bottom { flex-direction: column; gap: 2rem; text-align: center; }
}
