/*
Theme Name: Cheranev Hockey Hub
Author: Cheranev Media Group
Description: Современный хоккейный инфо-портал. Скорость, сталь и ледяная аналитика мирового хоккея.
Version: 1.0.0
*/

@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@300;500;700&family=Roboto:wght@400;700&display=swap');

:root {
    /* Cold Steel Palette (Industrial & Neon) */
    --primary: #0f172a;        /* Deep Slate */
    --secondary: #ff3e3e;      /* Neon Red */
    --accent: #f8fafc;         /* Ice White */
    --ice: #cbd5e1;           /* Metallic Blue */
    --black: #000000;
    --white: #FFFFFF;
    --text-main: #1e293b;
    --text-muted: #64748b;
    --border: #0f172a;         /* Sharp thick borders */
    
    --container-width: 1400px;
    --content-width: 900px;
    --transition: all 0.2s ease-out;

    /* Adaptive Design Variables */
    --section-pad: clamp(4rem, 10vw, 10rem);
    --hero-pad: 0px; /* Split screen often full height */
    --block-border: 4px;
}

/* Global Reset - Rule 15: Sharp edges */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    border-radius: 0 !important;
}

html, body {
    overflow-x: hidden;
    position: relative;
    width: 100%;
    max-width: 100%;
}

body {
    font-family: 'Roboto', sans-serif;
    background: var(--white);
    color: var(--text-main);
    line-height: 1.6;
}

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

h1 { font-size: clamp(2.5rem, 8vw, 7rem); line-height: 0.9; color: var(--primary); word-break: break-word; text-wrap: balance; }
h2 { font-size: clamp(2rem, 5vw, 4rem); line-height: 1; color: var(--primary); }
h3 { font-size: clamp(1.2rem, 3vw, 2.2rem); line-height: 1.1; color: var(--primary); }

img { max-width: 100%; height: auto; display: block; filter: grayscale(100%) contrast(110%); transition: var(--transition); }
img:hover { filter: grayscale(0%) contrast(100%); }

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

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

/* Header */
.site-header {
    background: var(--white);
    border-bottom: var(--block-border) solid var(--primary);
    padding: 1.5rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 4rem;
}

.logo {
    font-size: clamp(1rem, 4vw, 2.5rem);
    color: var(--primary);
    display: flex;
    gap: 0.5rem;
    flex-shrink: 0;
    white-space: nowrap;
}
.logo span { background: var(--secondary); color: var(--white); padding: 0 10px; }

.main-nav ul { display: flex; gap: 3.5rem; list-style: none; }
.main-nav a { font-weight: 700; font-size: 1rem; color: var(--primary); position: relative; }
.main-nav a::after { content: ''; position: absolute; bottom: -5px; left: 0; width: 0; height: 3px; background: var(--secondary); transition: var(--transition); }
.main-nav a:hover::after { width: 100%; }

/* Hamburger */
.nav-toggle {
    display: none; flex-direction: column; gap: 8px; width: 35px; background: none; border: none; cursor: pointer;
}
.nav-toggle span { width: 100%; height: 4px; background: var(--primary); }

/* Hero Section: Split Screen (Option D) */
.hero-hockey {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 90vh;
    border-bottom: var(--block-border) solid var(--primary);
}

.hero-visual {
    background: var(--primary);
    overflow: hidden;
    position: relative;
}
.hero-visual img { width: 100%; height: 100%; object-fit: cover; opacity: 0.7; }

.hero-content {
    padding: clamp(2rem, 10vw, 8rem);
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: var(--accent);
    border-left: var(--block-border) solid var(--primary);
}

.btn-steel {
    display: inline-block;
    padding: 1.5rem 4rem;
    background: var(--primary);
    color: var(--white);
    font-family: 'Space Grotesk';
    font-weight: 700;
    text-transform: uppercase;
    border: var(--block-border) solid var(--primary);
    margin-top: 3rem;
    align-self: flex-start;
}
.btn-steel:hover { background: var(--secondary); border-color: var(--secondary); transform: translate(5px, -5px); box-shadow: -5px 5px 0 var(--primary); }

/* Evergreen Blocks */
.hockey-stats-bar {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    background: var(--primary);
    color: var(--white);
    border-bottom: var(--block-border) solid var(--primary);
}

.stat-card {
    padding: 4rem;
    border-right: 1px solid rgba(255,255,255,0.1);
}
.stat-card strong { display: block; font-size: 3.5rem; font-family: 'Space Grotesk'; color: var(--secondary); line-height: 1; margin-bottom: 1rem; }
.stat-card span { text-transform: uppercase; font-weight: 700; letter-spacing: 0.1em; font-size: 0.8rem; }

/* Grid Section */
.posts-section { padding: var(--section-pad) 0; }
.section-header {
    border-left: 15px solid var(--secondary);
    padding-left: 2rem;
    margin-bottom: 6rem;
}

.hockey-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--block-border);
    background: var(--primary);
    border: var(--block-border) solid var(--primary);
}

.post-card {
    background: var(--white);
    padding: 3rem;
    display: flex;
    flex-direction: column;
    height: 100%;
}
.post-card .thumb { height: 300px; overflow: hidden; margin-bottom: 2rem; border: 1px solid var(--primary); }
.post-card .thumb img { width: 100%; height: 100%; object-fit: cover; }
.post-card h3 { margin-bottom: 2.5rem; flex-grow: 1; }

.btn-link {
    font-weight: 700;
    text-transform: uppercase;
    color: var(--secondary);
    display: flex;
    align-items: center;
    gap: 10px;
}
.btn-link::before { content: '>'; }

/* Footer */
.site-footer {
    background: var(--primary);
    color: var(--white);
    padding: 8rem 0 4rem;
}

.footer-inner {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 10rem;
    margin-bottom: 6rem;
}

.footer-logo { font-size: 4rem; margin-bottom: 2rem; }
.footer-logo span { color: var(--secondary); }

.footer-nav ul { list-style: none; }
.footer-nav li { margin-bottom: 1rem; border-bottom: 1px solid rgba(255,255,255,0.05); padding-bottom: 1rem; }
.footer-nav a:hover { color: var(--secondary); padding-left: 10px; }

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 4rem;
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    font-weight: 300;
}

/* Pagination */
.pagination { display: flex; justify-content: center; gap: 5px; margin-top: 6rem; }
.pagination a, .pagination span {
    padding: 1rem 2rem; background: var(--white); border: 2px solid var(--primary); font-weight: 700;
}
.pagination .current, .pagination a:hover { background: var(--secondary); color: var(--white); border-color: var(--secondary); }

/* Responsive */
@media (max-width: 1024px) {
    .hero-hockey { grid-template-columns: 1fr; min-height: auto; }
    .hero-visual { height: 400px; }
    .hero-content { border-left: none; border-top: var(--block-border) solid var(--primary); }
    .hockey-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-inner { gap: 4rem; }
}

@media (max-width: 768px) {
    .header-inner { gap: 1rem; }
    .nav-toggle { display: flex; }
    .main-nav { display: none; }
    .main-nav.is-active {
        display: block; position: absolute; top: 100%; left: 0; width: 100%; background: var(--white); padding: 3rem;
        border-bottom: var(--block-border) solid var(--primary);
    }
    .main-nav ul { flex-direction: column; gap: 2rem; }
    .hockey-grid { grid-template-columns: 1fr; }
    .footer-inner { grid-template-columns: 1fr; }
    .footer-bottom { flex-direction: column; gap: 2rem; text-align: center; }
}
