/*
Theme Name: OstrovSoli Boxing Hub
Author: OstrovSoli Media Group
Description: Элитный боксерский хаб. Глубокая аналитика, рейтинги WBC/WBA/IBF/WBO и разборы поединков от экспертов.
Version: 1.0.0
*/

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

:root {
    /* Ring Side Palette (Aggressive & Bold) */
    --primary: #b91c1c;        /* Boxing Red */
    --secondary: #111827;      /* Charcoal Black */
    --accent: #fbbf24;         /* Championship Gold */
    --black: #000000;
    --white: #FFFFFF;
    --text-main: #f3f4f6;
    --text-muted: #9ca3af;
    --border: #374151;
    
    --container-width: 1200px;
    --content-width: 850px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);

    /* Adaptive Design Variables */
    --section-pad: clamp(5rem, 12vw, 15rem);
    --hero-pad: clamp(8rem, 18vw, 25rem);
}

/* Global Reset - Rule 15: Sharp edges (Boxing style) */
* {
    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(--secondary);
    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;
    font-family: 'Bebas Neue', display;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--white);
}

h1 { font-size: clamp(3.5rem, 12vw, 9rem); line-height: 0.9; margin-bottom: 2rem; }
h2 { font-size: clamp(2.5rem, 8vw, 6rem); line-height: 0.9; color: var(--primary); }
h3 { font-size: clamp(1.8rem, 5vw, 3.5rem); line-height: 1; color: var(--accent); }

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

img { max-width: 100%; height: auto; display: block; filter: grayscale(20%); }

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

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

/* Page.php & Single.php Styles */
.site-main { padding-top: 100px; } /* Space for fixed header */

.post-main {
    max-width: var(--content-width);
    margin: 0 auto;
    padding: var(--section-pad) 0;
}

.post-header { margin-bottom: 4rem; }
.post-header h1 { color: var(--white); }
.post-meta { display: block; margin-bottom: 1.5rem; color: var(--primary); font-weight: 700; }

.post-thumbnail { margin-bottom: 4rem; border: 5px solid var(--primary); }
.post-thumbnail img { width: 100%; height: auto; object-fit: cover; }

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

.post-content h1, .post-content h2, .post-content h3, .post-content h4 {
    margin: 4rem 0 2rem;
    color: var(--accent);
}

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

.post-content ul, .post-content ol {
    margin: 2rem 0;
    padding-left: 2rem;
}

.post-content li { margin-bottom: 1rem; }

/* Table Styles for Posts */
.post-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 4rem 0;
    border: 1px solid var(--border);
}

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

.post-content th {
    background: var(--primary);
    color: var(--white);
    font-family: 'Bebas Neue';
    font-size: 1.4rem;
    letter-spacing: 0.05em;
}

.post-content tr:nth-child(even) {
    background: rgba(255, 255, 255, 0.03);
}

/* DNA N-C: Always Hamburger Header */
.site-header {
    background: rgba(17, 24, 39, 0.95);
    backdrop-filter: blur(10px);
    padding: 2rem 0;
    position: fixed;
    top: 0; width: 100%;
    z-index: 1000;
    border-bottom: 1px solid var(--border);
}

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

.logo {
    font-size: clamp(1.5rem, 5vw, 3rem);
    color: var(--white);
    flex-shrink: 0;
    white-space: nowrap;
}
.logo span { color: var(--primary); }

/* N-C: Hidden nav by default even on desktop */
.main-nav {
    display: none;
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100vh;
    background: var(--black);
    z-index: 999;
    padding: 10rem 2rem;
    align-items: center;
    justify-content: center;
    text-align: center;
}
.main-nav.is-active { display: flex; }
.main-nav ul { list-style: none; display: flex; flex-direction: column; gap: 3rem; }
.main-nav a { font-family: 'Bebas Neue'; font-size: 4rem; color: var(--white); transition: var(--primary); }
.main-nav a:hover { color: var(--primary); transform: skewX(-10deg); }

/* Always visible toggle */
.nav-toggle {
    display: flex; flex-direction: column; justify-content: center; gap: 8px; width: 40px; height: 40px;
    background: var(--primary); border: none; cursor: pointer; position: relative; z-index: 1001;
    padding: 10px;
}
.nav-toggle span { width: 100%; height: 2px; background: var(--white); display: block; transition: var(--transition); }
.nav-toggle.is-active span:nth-child(1) { transform: translateY(10px) rotate(45deg); }
.nav-toggle.is-active span:nth-child(2) { opacity: 0; }
.nav-toggle.is-active span:nth-child(3) { transform: translateY(-10px) rotate(-45deg); }

/* DNA H-B: Split-screen Hero 50/50 */
.hero-boxing {
    min-height: 100vh;
    display: flex;
    align-items: stretch;
    padding-top: 80px;
}
.hero-split { display: grid; grid-template-columns: 1fr 1fr; width: 100%; }
.hero-text { 
    display: flex; flex-direction: column; justify-content: center; 
    padding: 5rem; background: var(--secondary);
}
.hero-image { position: relative; overflow: hidden; }
.hero-image img { width: 100%; height: 100%; object-fit: cover; }
.hero-image::after { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: linear-gradient(to right, var(--secondary), transparent 30%); }

.btn-ring {
    display: inline-block;
    padding: 1.5rem 5rem;
    background: var(--primary);
    color: var(--white);
    font-family: 'Bebas Neue';
    font-size: 1.5rem;
    letter-spacing: 0.1em;
    border: 2px solid var(--primary);
}
.btn-ring:hover { background: transparent; color: var(--primary); }

/* DNA D-A: Diagonal Sections */
.skewed-section {
    position: relative;
    padding: var(--section-pad) 0;
    margin: 5rem 0;
    background: var(--black);
}
.skewed-section::before {
    content: ''; position: absolute; top: -5vw; left: 0; width: 100%; height: 10vw;
    background: inherit; transform: skewY(-2deg); z-index: -1;
}

/* DNA F-A: Horizontal Stripes (Benefits) */
.boxing-benefits {
    background: var(--primary);
    color: var(--white);
    overflow: hidden;
}
.benefit-row {
    display: flex; align-items: center; gap: 4rem; padding: 4rem 0; border-bottom: 1px solid rgba(255,255,255,0.1);
}
.benefit-row:last-child { border-bottom: none; }
.benefit-num { font-family: 'Bebas Neue'; font-size: 8rem; line-height: 1; opacity: 0.3; flex-shrink: 0; }
.benefit-content h3 { color: var(--accent); margin-bottom: 1rem; }
.benefit-content p { font-size: 1.2rem; max-width: 800px; }

/* DNA U-A: Quote Block */
.boxing-quote {
    padding: var(--section-pad) 0;
    background: var(--secondary);
    text-align: center;
}
.quote-text {
    font-family: 'Bebas Neue';
    font-size: clamp(2rem, 6vw, 5rem);
    line-height: 1;
    color: var(--white);
    max-width: 1000px;
    margin: 0 auto;
    font-style: italic;
}
.quote-author {
    margin-top: 3rem;
    color: var(--primary);
    font-weight: 700;
}

/* Posts Grid (Standard 3x3) - Card DNA C-B: Horizontal */
.posts-section { padding: var(--section-pad) 0; background: var(--black); }
.section-header { margin-bottom: 6rem; border-left: 10px solid var(--primary); padding-left: 3rem; }

.boxing-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    margin-bottom: 6rem;
}

.post-card-horiz {
    display: grid;
    grid-template-columns: 350px 1fr;
    gap: 3rem;
    background: var(--secondary);
    border: 1px solid var(--border);
    transition: var(--transition);
}
.post-card-horiz:hover { border-color: var(--primary); transform: translateX(10px); }
.post-card-horiz .thumb { height: 250px; overflow: hidden; }
.post-card-horiz .thumb img { width: 100%; height: 100%; object-fit: cover; }
.post-card-horiz .content { padding: 2rem; display: flex; flex-direction: column; justify-content: center; }
.post-card-horiz h3 { font-size: 2.2rem; margin-bottom: 1.5rem; color: var(--white); }

.btn-more {
    color: var(--primary);
    font-family: 'Bebas Neue';
    font-size: 1.2rem;
    display: flex; align-items: center; gap: 0.5rem;
}
.btn-more::after { content: '»'; }

/* Pagination - Boxing Pro Style (Fix per Screenshot) */
.pagination { 
    display: flex; 
    justify-content: center; 
    align-items: center; 
    gap: 0.5rem; 
    margin: 10rem 0; 
}

.pagination .page-numbers {
    display: inline-block;
    padding: 0.5rem 1rem;
    font-family: 'Bebas Neue';
    font-size: 2.2rem;
    color: var(--white);
    transition: var(--transition);
    line-height: 1;
}

.pagination a.page-numbers:hover {
    color: var(--primary);
}

.pagination span.current {
    color: var(--primary);
    pointer-events: none;
}

.pagination .dots {
    color: var(--text-muted);
    padding: 0.5rem 0.2rem;
}

/* DNA FT-C: Three-column Footer */
.site-footer {
    background: var(--black);
    padding: 8rem 0 4rem;
    border-top: 1px solid var(--primary);
}
.footer-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: clamp(2rem, 5vw, 4rem); /* Rule 6: fluid gap */
    margin-bottom: 8rem;
}
.footer-logo { font-size: clamp(2rem, 6vw, 5rem); color: var(--white); margin-bottom: 2rem; overflow-wrap: anywhere; }
.footer-logo span { color: var(--primary); }
.footer-desc { color: var(--text-muted); font-size: 1rem; max-width: 100%; overflow-wrap: break-word; }

.footer-nav ul { list-style: none; }
.footer-nav li { margin-bottom: 1rem; }
.footer-nav a { color: var(--text-main); font-family: 'Bebas Neue'; font-size: 1.5rem; }
.footer-nav a:hover { color: var(--primary); }

.footer-title { color: var(--accent); font-family: 'Bebas Neue'; font-size: 2rem; margin-bottom: 2rem; }

.footer-bottom {
    padding-top: 3rem;
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* Single Post */
.post-main { max-width: var(--content-width); margin: 0 auto; }
.post-header { margin-bottom: 6rem; }
.post-thumbnail { margin-bottom: 6rem; border: 5px solid var(--primary); }
.post-content { font-size: 1.25rem; }
.post-content h2, .post-content h3 { margin: 4rem 0 2rem; color: var(--accent); }

/* Responsive */
@media (max-width: 1024px) {
    .hero-split { grid-template-columns: 1fr; }
    .hero-image { height: 400px; order: -1; }
    .hero-image::after { background: linear-gradient(to top, var(--secondary), transparent 50%); }
    .footer-grid { grid-template-columns: repeat(2, 1fr); }
    .post-card-horiz { grid-template-columns: 250px 1fr; }
}

@media (max-width: 768px) {
    .hero-text { padding: 3rem 2rem; }
    .post-card-horiz { grid-template-columns: 1fr; }
    .post-card-horiz .thumb { height: 200px; }
    .footer-grid { grid-template-columns: 1fr; }
    .benefit-row { flex-direction: column; text-align: center; gap: 1rem; }
    .benefit-num { font-size: 5rem; }
}
