/*
Theme Name: EkoMind Basketball Hub
Author: EkoMind Media Group
Description: Интеллектуальный баскетбольный инфо-портал. Глубокая аналитика, психология игры и экология спортивного мышления.
Version: 1.0.0
*/

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@600;700&family=Outfit:wght@300;400;700&display=swap');

:root {
    /* Zen Hardwood Palette (Organic & Sophisticated) */
    --primary: #ea580c;        /* Basketball Terracotta */
    --secondary: #1e293b;      /* Midnight Forest */
    --accent: #f5f5f4;         /* Soft Sand */
    --paper: #ffffff;
    --black: #0c0a09;
    --white: #FFFFFF;
    --text-main: #292524;
    --text-muted: #78716c;
    --border: #e7e5e4;
    
    --container-width: 1200px;
    --content-width: 850px;
    --transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);

    /* Adaptive Design Variables */
    --section-pad: clamp(5rem, 12vw, 12rem);
    --hero-pad: clamp(6rem, 15vw, 18rem);
    --block-radius: 12px; /* Rule 15: Geometry rotation (Rounded instead of sharp) */
}

/* Global Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    border-radius: 0; /* Default reset */
}

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

body {
    font-family: 'Outfit', sans-serif;
    background: var(--paper);
    color: var(--text-main);
    line-height: 1.8;
}

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

h1 { font-size: clamp(2.5rem, 8vw, 6.5rem); line-height: 1.05; color: var(--secondary); margin-bottom: 3rem; text-wrap: balance; hyphens: auto; }
h2 { font-size: clamp(2rem, 5vw, 4rem); line-height: 1.1; color: var(--secondary); }
h3 { font-size: clamp(1.5rem, 3.5vw, 2.8rem); line-height: 1.2; color: var(--secondary); }

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

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

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

/* Header - Rule 1 */
.site-header {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    padding: 2rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--border);
}

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

.logo {
    font-size: clamp(1rem, 4vw, 2.4rem);
    color: var(--secondary);
    display: flex;
    align-items: center;
    gap: 0.3rem;
    flex-shrink: 0;
    white-space: nowrap;
}
.logo span { color: var(--primary); font-style: italic; }

.main-nav ul { display: flex; gap: 3.5rem; list-style: none; }
.main-nav a { font-weight: 400; font-size: 0.95rem; color: var(--secondary); text-transform: lowercase; letter-spacing: 0.05em; }
.main-nav a:hover { color: var(--primary); }

/* Hamburger */
.nav-toggle {
    display: none; flex-direction: column; justify-content: center; gap: 5px; width: 28px; height: 28px;
    background: none; border: none; cursor: pointer;
}
.nav-toggle span { width: 100%; height: 1px; background: var(--secondary); display: block; }

/* Hero Section: Integrated Split (Architectural Rule) */
.hero-eko {
    padding: 0;
    background: var(--accent);
    margin-bottom: 8rem;
    overflow: hidden;
    min-height: 80vh;
    display: flex;
    align-items: stretch;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 0;
    width: 100%;
}

.hero-content {
    padding: clamp(4rem, 10vw, 10rem);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.hero-content h1 span { color: var(--primary); }
.hero-content p { font-size: 1.3rem; color: var(--text-muted); max-width: 600px; margin-bottom: 4rem; font-weight: 300; }

.hero-visual {
    position: relative;
    background: var(--secondary);
}
.hero-visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    box-shadow: none;
    transform: none;
    border-radius: 0;
}
.hero-visual::after {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(to right, var(--accent), transparent 20%);
}

.btn-eko {
    display: inline-block;
    padding: 1.4rem 4rem;
    background: var(--secondary);
    color: var(--white);
    font-weight: 700;
    border-radius: 50px; /* Rule 15: Soft geometry */
}
.btn-eko:hover { background: var(--primary); transform: translateY(-5px); box-shadow: 0 20px 40px rgba(234, 88, 12, 0.2); }

/* Zen Blocks */
.zen-blocks {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 4rem;
    margin-bottom: 12rem;
}

.zen-card {
    background: var(--white);
    padding: 5rem 4rem;
    border-radius: var(--block-radius);
    border: 1px solid var(--border);
    transition: var(--transition);
}
.zen-card:hover { border-color: var(--primary); transform: scale(1.02); }
.zen-card h3 { margin-bottom: 2rem; color: var(--primary); font-size: 2.2rem; }
.zen-card p { font-size: 1.15rem; color: var(--text-muted); font-weight: 300; }

/* Posts Grid - Rule 20 */
.section-intro { margin-bottom: 6rem; text-align: center; }
.section-intro h2 { font-size: 4rem; margin-bottom: 2rem; }

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

.post-card {
    display: flex;
    flex-direction: column;
    height: 100%;
}
.post-card .thumb { height: clamp(250px, 30vw, 450px); overflow: hidden; margin-bottom: 2.5rem; }
.post-card .thumb img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--block-radius); }
.post-card h3 { flex-grow: 1; margin-bottom: 2rem; font-size: 1.9rem; line-height: 1.3; }

.btn-more {
    font-family: 'Cormorant Garamond', serif;
    font-style: italic;
    font-size: 1.3rem;
    color: var(--primary);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}
.btn-more::after { content: '—'; }

/* Pagination */
.pagination { display: flex; justify-content: center; gap: 1.5rem; margin-top: 6rem; }
.pagination span, .pagination a {
    width: 55px; height: 55px; display: flex; align-items: center; justify-content: center;
    border-radius: 50%; border: 1px solid var(--border); font-weight: 700;
}
.pagination .current, .pagination a:hover { background: var(--secondary); color: var(--white); border-color: var(--secondary); }

/* Footer */
.site-footer {
    background: var(--secondary);
    color: var(--white);
    padding: 12rem 0 6rem;
}

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

.footer-logo { font-size: 4rem; color: var(--white); margin-bottom: 3rem; }
.footer-logo span { color: var(--primary); }

.footer-nav ul { list-style: none; }
.footer-nav li { margin-bottom: 2rem; }
.footer-nav a { color: var(--text-muted); font-size: 1.1rem; }
.footer-nav a:hover { color: var(--white); }

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

/* Single Post - Rule 7 */
.post-main { max-width: var(--content-width); margin: 10rem auto; }
.post-header { margin-bottom: 8rem; text-align: center; }
.post-meta { font-family: 'Cormorant Garamond'; font-style: italic; font-size: 1.4rem; color: var(--primary); display: block; margin-bottom: 3rem; }
.post-thumbnail { margin-bottom: 8rem; box-shadow: 0 60px 100px rgba(0,0,0,0.08); }

.post-content { font-size: 1.25rem; line-height: 2; color: var(--text-main); font-weight: 300; }
.post-content h2, .post-content h3 { margin: 6rem 0 3rem; color: var(--secondary); }
.post-content p { margin-bottom: 3rem; }

/* Responsive */
@media (max-width: 1024px) {
    .basketball-grid { grid-template-columns: repeat(2, 1fr); gap: 2.5rem; }
    .hero-grid { 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: 5rem 2rem; border-bottom: 1px solid var(--border);
    }
    .main-nav ul { flex-direction: column; gap: 3rem; align-items: center; }
    
    .hero-grid { grid-template-columns: 1fr; text-align: center; }
    .hero-visual { order: -1; }
    .hero-content p { margin-left: auto; margin-right: auto; }
    
    .basketball-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; gap: 6rem; }
    .footer-bottom { flex-direction: column; gap: 3rem; text-align: center; }
}
