/*
Theme Name: Watsigum Хоккей Hub
Author: Watsigum Media Group
Description: Элитный хоккейный портал Беларуси. История, тактика и аналитика чемпионатов.
Version: 1.0.0
*/

@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;700&family=Noto+Serif:wght@400;700&family=JetBrains+Mono:wght@400;700&display=swap');

:root {
    /* Belarus Forest & Ice Palette (Heritage & Modernity) */
    --primary: #007A33;        /* Forest Green */
    --secondary: #D22730;      /* BY Red */
    --accent: #E5E7EB;         /* Cool Grey Ice */
    --black: #111827;
    --white: #FFFFFF;
    --bg-main: #F9FAFB;
    --text-main: #1F2937;
    --text-muted: #6B7280;
    --border: #E5E7EB;
    --shadow-soft: 0 10px 30px -10px rgba(0, 0, 0, 0.1);
    
    --sidebar-width: 280px;
    --container-width: 1200px;
    --content-width: 850px;
    --transition: all 0.3s ease;

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

/* Global Reset - DNA V-A: Soft Minimalism (No borders, shadows) */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

article, section, .feature-card, .post-card-overlay, .btn-forest, input, textarea, .feature-card:hover, .post-card-overlay .thumb img, .acc-item {
    border-radius: 12px !important; /* Soft corners */
}

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

/* Fluid Typography - Rule 14 */
h1, h2, h3, .logo, .footer-logo {
    overflow-wrap: break-word;
    word-break: normal;
    hyphens: auto;
    font-family: 'Noto Serif', serif;
    font-weight: 700;
}

h1 { font-size: clamp(1.8rem, 8vw, 7.5rem); line-height: 1.05; color: var(--black); margin-bottom: 2rem; text-wrap: balance; word-break: keep-all; overflow-wrap: break-word; }
h2 { font-size: clamp(1.5rem, 6vw, 4rem); line-height: 1.1; color: var(--primary); }
h3 { font-size: clamp(1.2rem, 4vw, 2.2rem); line-height: 1.2; color: var(--black); }

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

img { max-width: 100%; height: auto; display: block; border: none; }

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

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

/* DNA D-D: Background SVG Pattern (Subtle grid/dots) */
.pattern-bg {
    background-image: radial-gradient(var(--border) 1px, transparent 1px);
    background-size: 40px 40px;
    opacity: 0.5;
}

/* DNA N-B: Fixed Sidebar Layout (Desktop) */
.layout-wrapper {
    display: flex;
    min-height: 100vh;
}

.site-header {
    width: var(--sidebar-width);
    height: 100vh;
    background: var(--white);
    position: fixed;
    top: 0; left: 0;
    z-index: 1000;
    border-right: 1px solid var(--border);
    padding: 4rem 2rem;
    display: flex;
    flex-direction: column;
}

.site-main {
    flex: 1;
    margin-left: var(--sidebar-width);
    width: calc(100% - var(--sidebar-width));
}

.logo {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 6rem;
    line-height: 1;
    border-radius: 0 !important;
}
.logo span { color: var(--secondary); border-bottom: 4px solid var(--primary); border-radius: 0 !important; }

.main-nav ul { list-style: none; display: flex; flex-direction: column; gap: 2rem; }
.main-nav a { 
    font-weight: 600; font-size: 1.1rem; color: var(--text-main); 
    display: block; padding: 0.5rem 0;
}
.main-nav a:hover { color: var(--primary); transform: translateX(10px); }

.nav-toggle { display: none; }

/* DNA H-C: Type-Only Hero */
.hero-watsigum {
    padding: var(--hero-pad) 0;
    text-align: center;
    background: var(--white);
    border-bottom: 1px solid var(--border);
}
.hero-watsigum .container { max-width: 1000px; }
.hero-watsigum p { font-size: 1.5rem; color: var(--text-muted); margin-bottom: 4rem; font-family: 'Noto Serif'; font-style: italic; }

.btn-forest {
    display: inline-block;
    padding: 1.5rem 4rem;
    background: var(--primary);
    color: var(--white);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    box-shadow: 0 10px 20px rgba(0, 122, 51, 0.2);
}
.btn-forest:hover { background: var(--secondary); box-shadow: 0 10px 20px rgba(210, 39, 48, 0.2); }

/* DNA U-F: Text Manifesto "History" */
.history-manifesto {
    padding: var(--section-pad) 0;
    background: var(--primary);
    color: var(--white);
    text-align: center;
}
.manifesto-text {
    font-family: 'Noto Serif';
    font-size: clamp(1.8rem, 5vw, 3.5rem);
    line-height: 1.4;
    max-width: 900px;
    margin: 0 auto;
}

/* DNA F-C: Accordion (Benefits) */
.hockey-accordion {
    padding: var(--section-pad) 0;
    background: var(--white);
}
.acc-item {
    margin-bottom: 2rem;
    border-bottom: 1px solid var(--border);
    padding-bottom: 2rem;
}
.acc-header {
    display: flex; justify-content: space-between; align-items: center; cursor: pointer;
    padding: 1rem 0;
}
.acc-header h3 { font-size: 2rem; color: var(--text-main); }
.acc-header::after { content: '+'; font-size: 2rem; color: var(--primary); font-weight: 700; }
.acc-content { padding-top: 1.5rem; color: var(--text-muted); font-size: 1.2rem; }

/* Posts Grid - DNA C-C: Overlay Cards */
.posts-section { padding: var(--section-pad) 0; }
.section-header { margin-bottom: 6rem; text-align: left; }

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

.post-card-overlay {
    position: relative;
    height: 500px;
    overflow: hidden;
    color: var(--white);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}
.post-card-overlay .thumb { position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: 1; }
.post-card-overlay .thumb img { width: 100%; height: 100%; object-fit: cover; border-radius: 8px !important; }
.post-card-overlay::after { 
    content: ''; position: absolute; bottom: 0; left: 0; width: 100%; height: 100%; 
    background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, transparent 60%); z-index: 2; 
}
.post-card-overlay .content { position: relative; z-index: 3; padding: 3rem; }
.post-card-overlay h3 { color: var(--white); margin-bottom: 1.5rem; font-size: 1.8rem; }
.post-card-overlay .btn-read { font-weight: 700; color: var(--white); border-bottom: 2px solid var(--primary); padding-bottom: 0.5rem; }

/* Pagination - Watsigum Minimal Style */
.pagination { 
    display: flex; 
    justify-content: center; 
    align-items: center; 
    gap: 1.5rem; 
    margin: 8rem 0; 
}

.pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 45px;
    height: 45px;
    padding: 0 0.5rem;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--text-muted);
    transition: var(--transition);
}

.pagination a.page-numbers:hover {
    color: var(--primary);
    background: var(--white);
    box-shadow: var(--shadow-soft);
}

.pagination span.current {
    color: var(--white);
    background: var(--primary);
    box-shadow: 0 10px 20px rgba(0, 122, 51, 0.2);
}

.pagination .dots {
    color: var(--border);
    letter-spacing: 0.3em;
}

/* DNA FT-D: CTA Footer */
.site-footer {
    background: var(--black);
    color: var(--white);
    padding: 10rem 0 5rem;
    text-align: center;
}
.footer-cta { margin-bottom: 8rem; }
.footer-cta h2 { color: var(--white); font-size: 4rem; margin-bottom: 3rem; }

.footer-nav ul { list-style: none; display: flex; justify-content: center; gap: 4rem; margin-bottom: 6rem; }
.footer-nav a { font-weight: 600; color: var(--text-muted); font-size: 1.1rem; }
.footer-nav a:hover { color: var(--primary); }

.footer-bottom {
    padding-top: 4rem;
    border-top: 1px solid rgba(255,255,255,0.05);
    display: flex; justify-content: space-between; font-size: 0.8rem; color: var(--text-muted);
}

/* Rule 22: Content Styles */
.post-main { max-width: var(--content-width); margin: 6rem auto; }
.post-content h2, .post-content h3 { margin: 4rem 0 2rem; color: var(--primary); border-bottom: 2px solid var(--border); padding-bottom: 1rem; }
.post-content table { width: 100%; border-collapse: collapse; margin: 4rem 0; box-shadow: var(--shadow-soft); }
.post-content th { background: var(--primary); color: var(--white); padding: 1.5rem; text-align: left; }
.post-content td { padding: 1.5rem; border-bottom: 1px solid var(--border); }

/* Responsive */
@media (max-width: 1024px) {
    .layout-wrapper { display: block; }
    .site-header { 
        width: 100%; height: auto; position: sticky; 
        flex-direction: row; justify-content: space-between; align-items: center; 
        padding: 1.5rem 2rem; border-right: none; border-bottom: 1px solid var(--border);
    }
    .site-main { margin-left: 0 !important; width: 100% !important; flex: none !important; }
    .logo { margin-bottom: 0; font-size: 1.8rem; }
    .main-nav { display: none; }
    .main-nav.is-active {
        display: block; position: absolute; top: 100%; left: 0; width: 100%; background: var(--white); padding: 4rem 2rem; border-bottom: 1px solid var(--primary);
    }
    .main-nav ul { align-items: center; }
    .nav-toggle { 
        display: flex; flex-direction: column; gap: 6px; width: 30px; 
        background: none; border: none; cursor: pointer; 
    }
    .nav-toggle span { width: 100%; height: 2px; background: var(--black); }
    .watsigum-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .hero-watsigum { padding: 4rem 0; }
    .hero-watsigum h1 { font-size: clamp(1.8rem, 8vw, 3.5rem); }
    .hero-watsigum p { font-size: 1.1rem; margin-bottom: 3rem; }
    .watsigum-grid { grid-template-columns: 1fr; }
    .footer-nav ul { flex-direction: column; gap: 2rem; }
    .footer-bottom { flex-direction: column; gap: 3rem; text-align: center; }
}
