/*
Theme Name: LenMikhailova.by - Мир Тенниса
Author: PBN Creative
Description: Элегантный и энергичный дизайн для теннисного портала Беларуси.
Version: 1.0.0
*/

:root {
    /* Tennis Court Palette */
    --primary: #E95420;        /* Clay Court Orange */
    --secondary: #2E7D32;      /* Grass Court Green */
    --accent: #C1FF00;         /* Tennis Ball Yellow */
    --white: #FFFFFF;
    --bg-light: #F8F9FA;
    --dark: #1A1A1B;
    --text-main: #2C3E50;
    --text-muted: #7F8C8D;
    --border: #E0E4E8;
    
    --container-width: 1280px;
    --content-width: 900px;
    --transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

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

body {
    font-family: 'Space Grotesk', sans-serif;
    background: var(--bg-light);
    color: var(--text-main);
    line-height: 1.8;
    padding-top: 100px;
}

h1, h2, h3, h4 {
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: -0.02em;
    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 - Court Line Style */
.site-header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 2px solid var(--primary);
    padding: 1.5rem 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.6rem;
    font-weight: 800;
    color: var(--dark);
    text-transform: uppercase;
    letter-spacing: 2px;
}

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

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

.main-nav a {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--dark);
    position: relative;
}

.main-nav a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: var(--transition);
}

.main-nav a:hover::after {
    width: 100%;
}

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

.nav-toggle span {
    width: 30px;
    height: 2px;
    background: var(--dark);
    transition: var(--transition);
}

/* Hero - Option E (Text Overlay on Background) */
.hero-tennis {
    height: 700px;
    background: url('banner.jpg') center/cover no-repeat;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    margin-bottom: 6rem;
    color: var(--white);
    clip-path: polygon(0 0, 100% 0, 100% 92%, 0 100%);
}

.hero-tennis::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    padding: 0 2rem;
}

.hero-content h1 {
    font-size: clamp(3rem, 7vw, 5.5rem);
    margin-bottom: 2rem;
    text-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

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

.hero-content p {
    font-size: 1.4rem;
    font-weight: 500;
    color: rgba(255,255,255,0.9);
    margin-bottom: 3.5rem;
}

/* Feature Grid - Match Point Cards */
.tennis-features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
    margin-bottom: 8rem;
}

.t-feature-card {
    background: var(--white);
    padding: 3.5rem;
    border-radius: 20px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.05);
    border: 1px solid var(--border);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.t-feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100px;
    height: 100px;
    background: var(--accent);
    opacity: 0.1;
    border-radius: 0 0 0 100%;
    transition: var(--transition);
}

.t-feature-card:hover {
    transform: translateY(-12px);
    border-color: var(--primary);
}

.t-feature-card:hover::before {
    width: 100%;
    height: 100%;
    border-radius: 0;
}

.t-feature-card h3 {
    font-size: 1.6rem;
    margin-bottom: 1.5rem;
    color: var(--dark);
    position: relative;
}

.t-feature-card p {
    font-size: 1rem;
    color: var(--text-muted);
    position: relative;
}

/* Post Grid - Grand Slam Style */
.section-title {
    margin-bottom: 5rem;
    text-align: center;
}

.section-title h2 {
    font-size: 3rem;
    display: inline-block;
    position: relative;
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 20%;
    right: 20%;
    height: 6px;
    background: var(--accent);
}

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

.news-card {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    transition: var(--transition);
}

.news-card:hover {
    box-shadow: 0 30px 60px rgba(0,0,0,0.1);
}

.news-thumb {
    height: 250px;
    position: relative;
    overflow: hidden;
}

.news-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.news-card:hover .news-thumb img {
    transform: scale(1.1);
}

.news-cat {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: var(--primary);
    color: var(--white);
    padding: 0.5rem 1.2rem;
    font-weight: 700;
    font-size: 0.8rem;
    border-radius: 4px;
}

.news-body {
    padding: 2.5rem;
}

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

.news-btn {
    font-weight: 800;
    color: var(--primary);
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 1px;
}

/* Single Post - Focus Court */
.post-container {
    max-width: var(--content-width);
    margin: 5rem auto;
    background: var(--white);
    padding: 6rem;
    border-radius: 24px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.02);
}

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

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

.post-info {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 2px;
}

.post-body {
    font-size: 1.2rem;
}

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

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

/* Tennis Lists */
.post-body ul {
    list-style: none;
    margin: 4rem 0;
    padding: 4rem;
    background: #F1F8E9;
    border-radius: 16px;
}

.post-body li {
    position: relative;
    padding-left: 4rem;
    margin-bottom: 2rem;
    font-weight: 500;
}

.post-body li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 30px;
    height: 30px;
    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="%23E95420" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round"><circle cx="12" cy="12" r="10"></circle><line x1="2" y1="12" x2="22" y2="12"></line><path d="M12 2a15.3 15.3 0 0 1 4 10 15.3 15.3 0 0 1-4 10 15.3 15.3 0 0 1-4-10 15.3 15.3 0 0 1 4-10z"></path></svg>') no-repeat center;
    background-size: contain;
}

/* Footer */
.site-footer {
    background: var(--dark);
    color: var(--white);
    padding: 8rem 0 4rem;
    margin-top: 8rem;
}

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

.footer-logo {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 2.5rem;
}

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

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

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

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

.footer-nav a {
    color: #BDC3C7;
    font-weight: 500;
}

.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;
    align-items: center;
    font-size: 0.95rem;
    color: #7F8C8D;
}

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

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

.pagination-list a, .pagination-list span {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--white);
    border-radius: 50%;
    font-weight: 700;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

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

/* Responsive */
@media (max-width: 1024px) {
    .header-inner { gap: 2rem; }
    .hero-tennis { height: 600px; }
    .tennis-features, .news-grid { grid-template-columns: repeat(2, 1fr); }
}

@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 20px 40px rgba(0,0,0,0.1);
    }
    .main-nav ul { flex-direction: column; gap: 2rem; }
    .tennis-features, .news-grid, .footer-inner { grid-template-columns: 1fr; }
    .hero-content h1 { font-size: 3rem; }
    .post-container { padding: 3rem; }
}
