/*
Theme Name: TosiBosi Football Hub
Author: TosiBosi Media Group
Description: Цифровой футбольный инфо-портал нового поколения. Аналитика данных, тактическая глубина и скорость будущего.
Version: 1.0.0
*/

@import url('https://fonts.googleapis.com/css2?family=Syne:wght@700;800&family=Plus+Jakarta+Sans:wght@400;500;700&display=swap');

:root {
    /* Digital Dataism Palette (Modern & High-Contrast) */
    --primary: #2563eb;        /* Electric Blue */
    --secondary: #bef264;      /* Neon Lime */
    --accent: #f8fafc;         /* Soft Cloud */
    --black: #0f172a;          /* Slate Dark */
    --white: #FFFFFF;
    --text-main: #1e293b;
    --text-muted: #64748b;
    --border: #e2e8f0;
    
    --container-width: 1300px;
    --content-width: 900px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);

    /* Adaptive Design Variables */
    --section-pad: clamp(4rem, 10vw, 10rem);
    --hero-pad: clamp(6rem, 12vw, 12rem);
    --block-border: 1px;
}

/* Global Reset - Rule 15: Sharp modern 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: 'Plus Jakarta Sans', sans-serif;
    background: var(--white);
    color: var(--text-main);
    line-height: 1.7;
}

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

h1 { font-size: clamp(2.5rem, 10vw, 8rem); line-height: 0.9; color: var(--black); margin-bottom: 3rem; text-wrap: balance; }
h2 { font-size: clamp(2rem, 6vw, 4.5rem); line-height: 1; color: var(--black); letter-spacing: -0.02em; }
h3 { font-size: clamp(1.5rem, 4vw, 2.5rem); line-height: 1.1; color: var(--black); }

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;
}

/* Header - Rule 1 */
.site-header {
    background: var(--white);
    border-bottom: 1px solid var(--border);
    padding: 2rem 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.2rem);
    color: var(--black);
    display: flex;
    align-items: center;
    gap: 0.2rem;
    flex-shrink: 0;
    white-space: nowrap;
    text-transform: uppercase;
}
.logo span { color: var(--primary); border-bottom: 4px solid var(--secondary); }

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

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

/* Hero Section: Centered + Floating (Option C) */
.hero-digital {
    padding: var(--hero-pad) 0;
    background: var(--black);
    color: var(--white);
    text-align: center;
    overflow: hidden;
    position: relative;
}

.hero-digital h1 { color: var(--white); margin-bottom: 4rem; }
.hero-digital h1 span { color: var(--secondary); }
.hero-digital p { font-size: 1.4rem; color: var(--text-muted); max-width: 800px; margin: 0 auto 5rem; }

.hero-visual-floating {
    max-width: 1000px;
    margin: 0 auto -10rem;
    position: relative;
    z-index: 2;
    transform: translateY(50px);
    transition: var(--transition);
}
.hero-visual-floating:hover { transform: translateY(20px); }
.hero-visual-floating img { border: 10px solid var(--white); box-shadow: 0 50px 100px rgba(0,0,0,0.5); }

.btn-digital {
    display: inline-block;
    padding: 1.5rem 4rem;
    background: var(--secondary);
    color: var(--black);
    font-weight: 800;
    font-family: 'Syne';
    text-transform: uppercase;
    letter-spacing: 0.1em;
}
.btn-digital:hover { background: var(--primary); color: var(--white); transform: scale(1.05); }

/* Data Blocks Section */
.data-lab-section {
    padding: 15rem 0 var(--section-pad);
    background: var(--accent);
}

.data-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 3rem;
}

.data-card {
    background: var(--white);
    padding: 4rem;
    border: 1px solid var(--border);
    transition: var(--transition);
}
.data-card:hover { border-color: var(--primary); box-shadow: 20px 20px 0 var(--secondary); }
.data-card h3 { margin-bottom: 2rem; color: var(--primary); }
.data-card p { font-size: 1.1rem; color: var(--text-muted); }

/* Posts Grid - Rule 20 */
.posts-section { padding: var(--section-pad) 0; }
.section-title { margin-bottom: 6rem; text-align: left; }
.section-title h2 { position: relative; display: inline-block; }
.section-title h2::after { content: ''; display: block; width: 100%; height: 8px; background: var(--secondary); position: absolute; bottom: 0; z-index: -1; }

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

.post-card {
    display: flex;
    flex-direction: column;
    height: 100%;
}
.post-card .thumb { height: 350px; overflow: hidden; margin-bottom: 2.5rem; position: relative; }
.post-card .thumb img { width: 100%; height: 100%; object-fit: cover; border: none; }
.post-card .thumb::after { content: 'АНАЛИЗ'; position: absolute; top: 20px; right: 20px; background: var(--secondary); color: var(--black); padding: 5px 15px; font-weight: 800; font-size: 0.7rem; font-family: 'Syne'; }
.post-card h3 { flex-grow: 1; margin-bottom: 2rem; font-size: 1.8rem; }

.btn-read {
    font-weight: 800;
    font-family: 'Syne';
    text-transform: uppercase;
    color: var(--primary);
    display: inline-flex;
    align-items: center;
    gap: 1rem;
}
.btn-read::after { content: '→'; font-size: 1.5rem; }

/* Pagination */
.pagination { display: flex; justify-content: flex-start; gap: 1rem; margin-top: 6rem; }
.pagination span, .pagination a {
    width: 60px; height: 60px; display: flex; align-items: center; justify-content: center;
    background: var(--white); border: 2px solid var(--black); font-family: 'Syne'; font-weight: 800;
}
.pagination .current, .pagination a:hover { background: var(--secondary); color: var(--black); border-color: var(--secondary); }

/* Footer */
.site-footer {
    background: var(--black);
    color: var(--white);
    padding: 10rem 0 5rem;
}

.footer-inner {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 12rem;
    margin-bottom: 8rem;
}

.footer-logo { font-size: clamp(2rem, 5vw, 4rem); color: var(--white); margin-bottom: 3rem; text-transform: uppercase; }
.footer-logo span { color: var(--secondary); }

.footer-nav ul { list-style: none; }
.footer-nav li { margin-bottom: 1.5rem; }
.footer-nav a { color: var(--text-muted); font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; }
.footer-nav a:hover { color: var(--secondary); }

.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;
    text-transform: uppercase;
    font-weight: 700;
    color: var(--text-muted);
}

/* Single Post - Rule 7 */
.post-main { max-width: var(--content-width); margin: 8rem auto; }
.post-header { margin-bottom: 6rem; text-align: left; }
.post-meta { font-family: 'Syne'; font-weight: 800; color: var(--primary); text-transform: uppercase; display: block; margin-bottom: 2rem; }
.post-thumbnail { margin-bottom: 6rem; border: 15px solid var(--accent); }

.post-content { font-size: 1.15rem; line-height: 1.9; color: var(--text-main); }
.post-content h2, .post-content h3 { margin: 5rem 0 2rem; color: var(--black); }
.post-content p { margin-bottom: 2.5rem; }

/* Responsive */
@media (max-width: 1024px) {
    .tosibosi-grid { grid-template-columns: repeat(2, 1fr); gap: 3rem; }
    .hero-visual-floating { margin: 0 auto -5rem; transform: translateY(30px); }
    .footer-inner { gap: 6rem; }
}

@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: 4rem 2rem; border-bottom: 5px solid var(--primary);
    }
    .main-nav ul { flex-direction: column; gap: 2rem; }
    .hero-digital p { font-size: 1.1rem; }
    .tosibosi-grid { grid-template-columns: 1fr; }
    .footer-inner { grid-template-columns: 1fr; gap: 5rem; }
    .footer-bottom { flex-direction: column; gap: 2rem; text-align: center; }
}
