/*
Theme Name: Kostko.by - Футбольный Центр Беларуси
Author: PBN Creative
Description: Динамичный дизайн в стиле спортивного медиа для белорусского футбола.
Version: 1.0.0
*/

:root {
    /* Football Pitch Palette */
    --primary: #2D5A27;        /* Pitch Green */
    --secondary: #1F2937;      /* Stadium Grey */
    --accent: #FACC15;         /* Referee Yellow */
    --bg-light: #F3F4F6;
    --white: #FFFFFF;
    --text-main: #111827;
    --text-muted: #6B7280;
    --border: #E5E7EB;
    
    --container-width: 1260px;
    --content-width: 900px;
    --transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
    font-family: 'Inter', -apple-system, sans-serif;
    background: var(--bg-light);
    color: var(--text-main);
    line-height: 1.75;
    padding-top: 85px;
}

h1, h2, h3, h4 {
    font-family: 'Montserrat', sans-serif;
    text-transform: uppercase;
    font-weight: 900;
    letter-spacing: -0.01em;
    line-height: 1.1;
}

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

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

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

/* Header - Stadium Style */
.site-header {
    background: var(--white);
    border-bottom: 1px solid var(--border);
    padding: 1.2rem 0;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
}

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

.logo {
    font-size: 1.8rem;
    font-weight: 900;
    color: var(--primary);
    flex-shrink: 0;
    letter-spacing: -1px;
}

.logo span {
    background: var(--primary);
    color: var(--white);
    padding: 0.2rem 0.6rem;
    margin-left: 4px;
    border-radius: 4px;
}

.main-nav ul {
    display: flex;
    gap: 3.5rem;
    list-style: none;
}

.main-nav a {
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--secondary);
    text-transform: uppercase;
}

.main-nav a:hover {
    color: var(--primary);
}

/* Hamburger */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
}

.nav-toggle span {
    width: 28px;
    height: 3px;
    background: var(--primary);
}

/* Hero - Option D (Split-screen 50/50) */
.hero-football {
    display: flex;
    min-height: 550px;
    margin-bottom: 5rem;
    background: var(--secondary);
    overflow: hidden;
}

.hero-content-side {
    flex: 1;
    padding: 6rem 4rem;
    background: linear-gradient(135deg, var(--primary) 0%, #1a3d17 100%);
    color: var(--white);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.hero-content-side h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    margin-bottom: 1.5rem;
}

.hero-content-side h1 span {
    color: var(--accent);
}

.hero-content-side p {
    font-size: 1.2rem;
    color: rgba(255,255,255,0.85);
    max-width: 500px;
}

.hero-image-side {
    flex: 1;
    background: url('banner.jpg') center/cover no-repeat;
    position: relative;
}

.hero-image-side::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, rgba(26,61,23,0.8), transparent);
}

/* Feature Blocks - Tactical Cards */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 2.5rem;
    margin-bottom: 6rem;
}

.f-card {
    background: var(--white);
    padding: 3rem;
    border-radius: 12px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
    border: 1px solid var(--border);
}

.f-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

.f-card h3 {
    font-size: 1.4rem;
    margin-bottom: 1.2rem;
    color: var(--primary);
}

.f-card p {
    font-size: 0.95rem;
    color: var(--text-muted);
}

/* Post Cards - Match Center Style */
.section-header {
    margin-bottom: 3.5rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.section-header h2 {
    font-size: 2.5rem;
    white-space: nowrap;
}

.header-line {
    height: 4px;
    background: var(--border);
    flex-grow: 1;
    position: relative;
}

.header-line::after {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 100px;
    height: 100%;
    background: var(--primary);
}

.football-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 3rem;
    margin-bottom: 5rem;
}

.football-card {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    transition: var(--transition);
}

.football-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.08);
}

.football-thumb {
    height: 240px;
    position: relative;
}

.football-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.football-cat {
    position: absolute;
    bottom: 1.5rem;
    left: 1.5rem;
    background: var(--accent);
    color: var(--secondary);
    padding: 0.4rem 1.2rem;
    font-weight: 800;
    font-size: 0.75rem;
    border-radius: 20px;
}

.football-content {
    padding: 2.5rem;
}

.football-content h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    height: 3.3em;
    overflow: hidden;
}

.football-btn {
    display: inline-flex;
    align-items: center;
    color: var(--primary);
    font-weight: 800;
    text-transform: uppercase;
    font-size: 0.85rem;
    gap: 0.5rem;
}

/* Single Post - Academy Style */
.post-main {
    max-width: var(--content-width);
    margin: 4rem auto;
    background: var(--white);
    padding: 5rem;
    border-radius: 16px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.02);
}

.post-header {
    margin-bottom: 4rem;
    border-bottom: 2px solid var(--border);
    padding-bottom: 3rem;
}

.post-header h1 {
    font-size: 3.2rem;
    margin-bottom: 1.5rem;
}

.post-info {
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    font-size: 0.9rem;
}

.post-body-text {
    font-size: 1.15rem;
}

.post-body-text p {
    margin-bottom: 2.5rem;
}

.post-body-text h2, .post-body-text h3 {
    margin-top: 4.5rem;
    margin-bottom: 1.5rem;
    color: var(--primary);
}

/* Football Lists */
.post-body-text ul {
    list-style: none;
    margin: 3.5rem 0;
    padding: 3rem;
    background: var(--bg-light);
    border-radius: 12px;
}

.post-body-text li {
    position: relative;
    padding-left: 3.5rem;
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.post-body-text li::before {
    content: '⚽';
    position: absolute;
    left: 0;
    top: 0;
    font-size: 1.5rem;
}

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

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 6rem;
    margin-bottom: 5rem;
}

.footer-logo {
    font-size: 2.2rem;
    font-weight: 900;
    margin-bottom: 2rem;
}

.footer-logo span {
    color: var(--accent);
}

.footer-nav ul {
    list-style: none;
}

.footer-nav li {
    margin-bottom: 1.2rem;
}

.footer-nav a {
    color: #9CA3AF;
    font-weight: 600;
}

.footer-nav a:hover {
    color: var(--accent);
}

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

/* Pagination */
.pagination-container {
    display: flex;
    justify-content: center;
    margin: 5rem 0;
}

.pagination-list {
    display: flex;
    gap: 0.8rem;
    list-style: none;
}

.pagination-list a, .pagination-list span {
    padding: 1rem 1.5rem;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 8px;
    font-weight: 800;
}

.pagination-list .is-active, .pagination-list a:hover {
    background: var(--primary);
    color: var(--white);
    border-color: var(--primary);
}

/* Responsive */
@media (max-width: 1024px) {
    .header-inner { gap: 2rem; }
    .hero-football { flex-direction: column; }
}

@media (max-width: 768px) {
    .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;
        box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    }
    .main-nav ul { flex-direction: column; gap: 1.5rem; }
    .feature-grid, .football-grid, .footer-grid { grid-template-columns: 1fr; }
    .post-main { padding: 2.5rem; }
}
