/*
Theme Name: FJD.by - Хоккейная Аналитика Беларуси
Author: PBN Creative
Description: Строгий, "ледяной" дизайн для хоккейного портала.
Version: 1.0.0
*/

:root {
    /* Ice Hockey Palette */
    --primary: #00529B;        /* Ice Blue */
    --secondary: #E31837;      /* Power Red */
    --accent: #CCDCEB;         /* Frost White */
    --white: #FFFFFF;
    --dark: #1A1C20;           /* Puck Black */
    --text-main: #1A1C20;
    --text-muted: #5F6368;
    --border: #D1D5DB;
    
    --container-width: 1240px;
    --content-width: 900px;
    --transition: all 0.3s ease;
}

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

body {
    font-family: 'Inter', -apple-system, sans-serif;
    background: #F0F2F5;
    color: var(--text-main);
    line-height: 1.7;
    padding-top: 90px;
}

h1, h2, h3, h4 {
    font-family: 'Oswald', sans-serif;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0.02em;
    line-height: 1.2;
}

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 - Rink Style */
.site-header {
    background: var(--white);
    border-bottom: 4px solid var(--primary);
    padding: 1.3rem 0;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

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

.logo {
    font-size: 2.2rem;
    font-weight: 900;
    color: var(--primary);
    flex-shrink: 0;
    display: flex;
    align-items: baseline;
}

.logo span {
    color: var(--secondary);
    font-size: 1.5rem;
    margin-left: 2px;
}

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

.main-nav a {
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--text-main);
    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 C (Centered Text, Banner Below) */
.hero-hockey {
    background: var(--primary);
    background: linear-gradient(180deg, var(--primary) 0%, #003D73 100%);
    color: var(--white);
    padding: 6rem 0 0;
    text-align: center;
    margin-bottom: 6rem;
    position: relative;
    overflow: hidden;
}

.hero-hockey::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(255,255,255,0.1) 0%, transparent 70%);
}

.hero-content {
    max-width: 800px;
    margin: 0 auto 4rem;
    position: relative;
    z-index: 2;
}

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

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

.hero-content p {
    font-size: 1.3rem;
    color: var(--accent);
    line-height: 1.6;
}

.hero-banner {
    max-width: 1000px;
    margin: 0 auto;
    border-radius: 12px 12px 0 0;
    overflow: hidden;
    box-shadow: 0 -10px 40px rgba(0,0,0,0.2);
    position: relative;
    z-index: 3;
    transform: translateY(20px);
}

/* Info Grid - Power Play Style */
.info-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 2rem;
    margin-bottom: 7rem;
}

.info-card {
    background: var(--white);
    padding: 3rem;
    border-radius: 8px;
    border-top: 6px solid var(--primary);
    box-shadow: 0 10px 25px rgba(0,0,0,0.03);
    transition: var(--transition);
}

.info-card:hover {
    transform: translateY(-8px);
    border-top-color: var(--secondary);
}

.info-card h3 {
    font-size: 1.6rem;
    margin-bottom: 1.5rem;
    color: var(--primary);
}

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

/* Post Cards - Rink Layout */
.section-header {
    margin-bottom: 4rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.section-header h2 {
    font-size: 2.8rem;
    position: relative;
    padding-left: 1.5rem;
}

.section-header h2::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.5rem;
    bottom: 0.5rem;
    width: 8px;
    background: var(--secondary);
}

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

.hockey-card {
    background: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.hockey-card:hover {
    transform: scale(1.03);
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
}

.hockey-thumb {
    height: 220px;
    position: relative;
}

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

.hockey-cat {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: var(--secondary);
    color: var(--white);
    padding: 0.4rem 1rem;
    font-weight: 700;
    font-size: 0.75rem;
    border-radius: 4px;
}

.hockey-content {
    padding: 2rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.hockey-content h3 {
    font-size: 1.3rem;
    margin-bottom: 1.2rem;
    line-height: 1.4;
}

.hockey-content p {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

.hockey-btn {
    margin-top: auto;
    color: var(--primary);
    font-weight: 800;
    text-transform: uppercase;
    font-size: 0.85rem;
}

/* Single Post - Focus Mode */
.post-wrapper {
    max-width: var(--content-width);
    margin: 4rem auto;
    background: var(--white);
    padding: 5rem;
    border-radius: 12px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.05);
}

.post-header {
    text-align: center;
    margin-bottom: 4rem;
}

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

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

.post-content-body {
    font-size: 1.15rem;
    color: var(--text-main);
}

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

.post-content-body h2, .post-content-body h3 {
    margin-top: 5rem;
    margin-bottom: 2rem;
    border-bottom: 3px solid var(--accent);
    padding-bottom: 1rem;
}

/* Custom Lists */
.post-content-body ul {
    list-style: none;
    margin: 3.5rem 0;
    padding: 3rem;
    background: #F8FAFC;
    border-radius: 12px;
}

.post-content-body li {
    position: relative;
    padding-left: 3.5rem;
    margin-bottom: 1.5rem;
}

.post-content-body li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.4rem;
    width: 35px;
    height: 35px;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="%2300529B" stroke-width="3" stroke-linecap="round" stroke-linejoin="round"><polyline points="20 6 9 17 4 12"></polyline></svg>') no-repeat center;
    background-size: contain;
}

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

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

.footer-logo {
    font-size: 3rem;
    font-weight: 900;
    margin-bottom: 2rem;
    color: var(--white);
}

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

.footer-nav h4 {
    margin-bottom: 2rem;
    font-size: 1.2rem;
    color: var(--accent);
}

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

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

.footer-nav a {
    color: #CBD5E0;
}

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

.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: #718096;
}

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

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

.pagination-list a, .pagination-list span {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 50%;
    font-weight: 800;
    font-size: 1.1rem;
}

.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-content { padding: 0 2rem; }
}

@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; }
    .info-grid, .hockey-grid, .footer-grid { grid-template-columns: 1fr; }
    .hero-hockey { padding-top: 4rem; }
    .post-wrapper { padding: 2.5rem; }
    .post-header h1 { font-size: 2.5rem; }
}
