/*
Theme Name: SportLive24
Theme URI: https://sportlive24.ru
Author: SportLive24 Team
Author URI: https://sportlive24.ru
Description: Modern sports news WordPress theme with full SEO optimization, Schema.org microdata, responsive mobile-first design, Russian interface and flexible Customizer settings for sportlive24.ru
Version: 1.2.4
Requires at least: 6.0
Tested up to: 6.4
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: sportlive24
Tags: news, sports, blog, responsive, seo-ready, microdata, custom-menu, featured-images, threaded-comments, translation-ready
*/

/* ===================================
   CSS Reset & Base Styles
   =================================== */

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

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
    line-height: 1.6;
    color: #1a1a1a;
    background-color: #f5f5f5;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

a {
    color: #0066FF;
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    color: #FF6B35;
}

/* ===================================
   Layout & Container
   =================================== */

.site-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
}

.content-wrapper {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 30px;
    margin-top: 30px;
}

/* ===================================
   Header Styles
   =================================== */

.site-header {
    background: #ffffff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-top {
    border-bottom: 1px solid #e5e5e5;
    padding: 10px 0;
    font-size: 14px;
    color: #666;
}

.header-main {
    padding: 15px 0;
}

.header-main-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.site-logo {
    max-width: 180px;
    flex-shrink: 0;
}

.site-logo img {
    width: 100%;
    height: auto;
}

.site-title {
    color: #0066FF;
    margin: 0;
    font-size: 24px;
    line-height: 1.2;
}

/* ===================================
   Navigation Menu
   =================================== */

.main-navigation {
    background: #0066FF;
}

.main-navigation ul {
    list-style: none;
    display: flex;
    justify-content: center;
    padding: 0;
    margin: 0;
}

.main-navigation li {
    position: relative;
}

.main-navigation a {
    display: block;
    padding: 15px 20px;
    color: #ffffff;
    font-weight: 500;
    text-transform: uppercase;
    font-size: 14px;
    letter-spacing: 0.5px;
}

.main-navigation a:hover,
.main-navigation .current-menu-item > a {
    background: #FF6B35;
    color: #ffffff;
}

/* Dropdown Menu */
.main-navigation .sub-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: #ffffff;
    min-width: 220px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
    flex-direction: column;
    z-index: 999;
}

.main-navigation li:hover > .sub-menu {
    display: flex;
}

.main-navigation .sub-menu a {
    color: #1a1a1a;
    padding: 12px 20px;
    border-bottom: 1px solid #f0f0f0;
}

.main-navigation .sub-menu a:hover {
    background: #f8f8f8;
    color: #0066FF;
    padding-left: 25px;
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    background: #0066FF;
    color: #ffffff;
    border: none;
    padding: 10px 20px;
    cursor: pointer;
    font-size: 18px;
}

/* ===================================
   Hero Slider
   =================================== */

.hero-slider {
    margin-top: 30px;
    border-radius: 10px;
    overflow: hidden;
    position: relative;
    height: 500px;
    background: #000;
}

.hero-slide {
    position: relative;
    height: 100%;
}

.hero-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.8;
}

.hero-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 40px;
    background: linear-gradient(transparent, rgba(0,0,0,0.9));
    color: #ffffff;
}

.hero-category {
    display: inline-block;
    background: #0066FF;
    color: #ffffff;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.hero-title {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 10px;
    line-height: 1.3;
}

.hero-title a {
    color: #ffffff;
}

.hero-title a:hover {
    color: #FF6B35;
}

.hero-meta {
    font-size: 14px;
    opacity: 0.9;
}

/* ===================================
   News Cards
   =================================== */

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

.news-card {
    background: #ffffff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.news-card-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.news-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.news-card:hover .news-card-image img {
    transform: scale(1.05);
}

.news-card-category {
    position: absolute;
    top: 15px;
    left: 15px;
    background: #0066FF;
    color: #ffffff;
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
}

.news-card-content {
    padding: 20px;
}

.news-card-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 10px;
    line-height: 1.4;
}

.news-card-title a {
    color: #1a1a1a;
}

.news-card-title a:hover {
    color: #0066FF;
}

.news-card-excerpt {
    font-size: 14px;
    color: #666;
    margin-bottom: 15px;
    line-height: 1.6;
}

.news-card-meta {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 13px;
    color: #999;
    border-top: 1px solid #f0f0f0;
    padding-top: 15px;
}

.news-card-meta i {
    color: #FF6B35;
}

/* ===================================
   Sidebar Widgets
   =================================== */

.sidebar {
    position: sticky;
    top: 100px;
    align-self: start;
}

.widget {
    background: #ffffff;
    border-radius: 10px;
    padding: 25px;
    margin-bottom: 25px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.widget-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 3px solid #0066FF;
    color: #1a1a1a;
}

.widget ul {
    list-style: none;
}

.widget li {
    padding: 10px 0;
    border-bottom: 1px solid #f0f0f0;
}

.widget li:last-child {
    border-bottom: none;
}

.widget a {
    color: #333;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.widget a:hover {
    color: #0066FF;
    padding-left: 5px;
}

/* Popular Posts Widget */
.popular-post {
    display: flex;
    gap: 15px;
    padding: 15px 0;
    border-bottom: 1px solid #f0f0f0;
}

.popular-post:last-child {
    border-bottom: none;
}

.popular-post-image {
    width: 80px;
    height: 80px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
}

.popular-post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.popular-post-content {
    flex: 1;
}

.popular-post-title {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 5px;
    line-height: 1.4;
}

.popular-post-date {
    font-size: 12px;
    color: #999;
}

/* ===================================
   Single Post Styles
   =================================== */

.single-post-header {
    margin-bottom: 30px;
}

.single-post-category {
    display: inline-block;
    background: #0066FF;
    color: #ffffff;
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 15px;
}

.single-post-title {
    font-size: 36px;
    font-weight: 800;
    line-height: 1.3;
    margin-bottom: 20px;
    color: #1a1a1a;
}

.single-post-meta {
    display: flex;
    gap: 20px;
    padding: 15px 0;
    border-top: 2px solid #f0f0f0;
    border-bottom: 2px solid #f0f0f0;
    font-size: 14px;
    color: #666;
}

.single-post-meta i {
    color: #FF6B35;
    margin-right: 5px;
}

.single-post-image {
    margin: 30px 0;
    border-radius: 10px;
    overflow: hidden;
}

.single-post-content {
    background: #ffffff;
    padding: 40px;
    border-radius: 10px;
    line-height: 1.8;
    font-size: 17px;
}

.single-post-content p {
    margin-bottom: 20px;
}

.single-post-content h2,
.single-post-content h3 {
    margin: 30px 0 20px;
    color: #1a1a1a;
}

.single-post-content h2 {
    font-size: 28px;
}

.single-post-content h3 {
    font-size: 24px;
}

.single-post-content blockquote {
    border-left: 4px solid #0066FF;
    padding: 20px 30px;
    margin: 30px 0;
    background: #f8f8f8;
    font-style: italic;
}

/* ===================================
   Breadcrumbs
   =================================== */

.breadcrumbs {
    padding: 15px 0;
    font-size: 14px;
    color: #666;
}

.breadcrumbs a {
    color: #0066FF;
}

.breadcrumbs span {
    margin: 0 8px;
}

/* ===================================
   Pagination
   =================================== */

.pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin: 40px 0;
}

.pagination a,
.pagination span {
    display: inline-block;
    padding: 10px 18px;
    background: #ffffff;
    border-radius: 5px;
    color: #333;
    font-weight: 500;
    box-shadow: 0 2px 5px rgba(0,0,0,0.08);
}

.pagination a:hover,
.pagination .current {
    background: #0066FF;
    color: #ffffff;
}

/* ===================================
   Footer Styles
   =================================== */

.site-footer {
    background: #1a1a1a;
    color: #ffffff;
    margin-top: 60px;
}

.footer-widgets {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    padding: 60px 0;
}

.footer-widget h3 {
    color: #ffffff;
    margin-bottom: 20px;
    font-size: 18px;
}

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

.footer-widget li {
    padding: 8px 0;
}

.footer-widget a {
    color: #ccc;
}

.footer-widget a:hover {
    color: #FF6B35;
}

.footer-bottom {
    border-top: 1px solid #333;
    padding: 20px 0;
    text-align: center;
    font-size: 14px;
    color: #999;
}

/* ===================================
   Responsive Design
   =================================== */

@media screen and (max-width: 1024px) {
    .content-wrapper {
        grid-template-columns: 1fr;
    }
    
    .sidebar {
        position: static;
    }
}

@media screen and (max-width: 768px) {
    .menu-toggle {
        display: block;
    }
    
    .main-navigation ul {
        display: none;
        flex-direction: column;
    }
    
    .main-navigation.toggled ul {
        display: flex;
    }
    
    .main-navigation .sub-menu {
        position: static;
        box-shadow: none;
        background: rgba(0,0,0,0.1);
    }
    
    /* Мобильная шапка */
    .header-main {
        padding: 12px 0;
    }
    
    .header-main-content {
        flex-wrap: wrap;
        gap: 12px;
    }
    
    .site-logo {
        max-width: 140px;
    }
    
    .site-logo img {
        max-height: 45px;
        width: auto;
    }
    
    .site-title {
        font-size: 20px;
    }
    
    /* Мобильный поиск */
    .header-search {
        flex: 1 1 100%;
        max-width: 100%;
        order: 3;
    }
    
    .header-search input[type="search"] {
        font-size: 16px;
        padding: 12px;
    }
    
    .header-search button {
        padding: 12px 18px;
    }
    
    .hero-slider {
        height: 350px;
    }
    
    .hero-title {
        font-size: 24px;
        line-height: 1.3;
    }
    
    .single-post-title {
        font-size: 28px;
        line-height: 1.3;
    }
    
    .single-post-content {
        padding: 25px;
        font-size: 16px;
        line-height: 1.7;
    }
    
    .news-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    /* Touch targets */
    button, .btn, a.button {
        min-height: 44px;
        min-width: 44px;
        padding: 12px 20px;
    }
    
    /* Mobile tables */
    table {
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    /* Mobile images */
    img {
        height: auto;
        max-width: 100%;
    }
}

@media screen and (max-width: 480px) {
    .site-container {
        padding: 0 15px;
    }
    
    .hero-content {
        padding: 20px;
    }
    
    .single-post-content {
        padding: 20px;
        font-size: 17px; /* Better readability on small screens */
        line-height: 1.8;
    }
    
    /* Smaller headlines for mobile */
    .hero-title {
        font-size: 20px;
    }
    
    .single-post-title {
        font-size: 24px;
    }
    
    .widget-title {
        font-size: 18px;
    }
    
    /* Mobile-friendly forms */
    input[type="text"],
    input[type="email"],
    input[type="search"],
    textarea {
        font-size: 16px; /* Prevents zoom on iOS */
        padding: 12px;
    }
    
    /* Mobile navigation */
    .main-navigation li {
        padding: 15px 20px;
        border-bottom: 1px solid #eee;
    }
    
    /* Mobile footer */
    .footer-widgets {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    /* Mobile breadcrumbs */
    .breadcrumbs {
        font-size: 13px;
        overflow-x: auto;
        white-space: nowrap;
        -webkit-overflow-scrolling: touch;
    }
    
    /* Mobile post meta */
    .post-meta {
        flex-direction: column;
        gap: 10px;
        font-size: 13px;
    }
    
    /* Mobile comments */
    .comment-content {
        font-size: 15px;
        line-height: 1.7;
    }
}

/* ===================================
   Utility Classes
   =================================== */

.text-center {
    text-align: center;
}

.mt-30 {
    margin-top: 30px;
}

.mb-30 {
    margin-bottom: 30px;
}

.hidden {
    display: none;
}

/* Lazy Load Placeholder */
img[data-src] {
    background: #f0f0f0;
    min-height: 200px;
}
/* Additional styles for enhanced components */

.author-header {
    background: #ffffff;
    padding: 40px;
    border-radius: 10px;
    margin-bottom: 30px;
    display: flex;
    gap: 30px;
    align-items: center;
}

.author-avatar-large img {
    border-radius: 50%;
    border: 4px solid #0066FF;
}

.author-info {
    flex: 1;
}

.author-title {
    font-size: 32px;
    margin-bottom: 15px;
}

.author-bio {
    color: #666;
    line-height: 1.6;
    margin-bottom: 15px;
}

.author-meta span {
    font-size: 14px;
    color: #999;
}

.author-posts-title {
    font-size: 24px;
    margin: 30px 0 20px;
    padding-bottom: 15px;
    border-bottom: 3px solid #0066FF;
}

/* Archive Header Styles */
.archive-header {
    background: #ffffff;
    padding: 40px;
    border-radius: 10px;
    margin-bottom: 30px;
}

.archive-title {
    font-size: 36px;
    color: #1a1a1a;
    margin-bottom: 15px;
}

.archive-description {
    color: #666;
    line-height: 1.6;
    font-size: 16px;
}

/* Search Header */
.search-header {
    background: #ffffff;
    padding: 40px;
    border-radius: 10px;
    margin-bottom: 30px;
}

.search-title {
    font-size: 32px;
    margin-bottom: 10px;
}

.search-title span {
    color: #0066FF;
}

.search-results-count {
    color: #666;
    font-size: 16px;
}

/* No Results / No Posts */
.no-results,
.no-posts {
    background: #ffffff;
    padding: 60px 40px;
    border-radius: 10px;
    text-align: center;
}

.no-results h2,
.no-posts h2 {
    font-size: 28px;
    margin-bottom: 15px;
}

.no-results p,
.no-posts p {
    color: #666;
    font-size: 16px;
    margin-bottom: 25px;
}

.search-form-again,
.search-form-404 {
    max-width: 500px;
    margin: 30px auto;
}

.button {
    display: inline-block;
    padding: 12px 30px;
    background: #0066FF;
    color: #ffffff;
    border-radius: 5px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.button:hover {
    background: #FF6B35;
    color: #ffffff;
    transform: translateY(-2px);
}

/* 404 Error Page */
.error-404 {
    background: #ffffff;
    padding: 80px 40px;
    border-radius: 10px;
    text-align: center;
}

.recent-posts-404 {
    margin-top: 50px;
}

.recent-posts-404 h3 {
    font-size: 24px;
    margin-bottom: 30px;
}

/* Social Share Buttons */
.social-share {
    background: #f8f8f8;
    padding: 25px;
    border-radius: 10px;
    margin: 30px 0;
}

.social-share h4 {
    font-size: 18px;
    margin-bottom: 15px;
}

.social-share a {
    display: inline-block;
    padding: 10px 20px;
    margin: 5px;
    border-radius: 5px;
    color: #ffffff;
    font-weight: 600;
    transition: all 0.3s ease;
}

.social-share a:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.share-vk {
    background: #4C75A3;
}

.share-telegram {
    background: #0088CC;
}

.share-twitter {
    background: #1DA1F2;
}

.share-facebook {
    background: #1877F2;
}

/* Author Bio in Single Post */
.author-bio {
    background: #f8f8f8;
    padding: 30px;
    border-radius: 10px;
    margin: 40px 0;
    display: flex;
    gap: 20px;
}

.author-avatar {
    flex-shrink: 0;
}

.author-avatar img {
    border-radius: 50%;
}

.author-info h4 {
    font-size: 20px;
    margin-bottom: 10px;
}

.author-info p {
    color: #666;
    line-height: 1.6;
    margin-bottom: 15px;
}

.author-info a {
    color: #0066FF;
    font-weight: 600;
}

/* Post Tags */
.post-tags {
    padding: 20px 0;
    margin: 30px 0;
    border-top: 1px solid #e5e5e5;
    border-bottom: 1px solid #e5e5e5;
}

.post-tags i {
    color: #FF6B35;
    margin-right: 10px;
}

.post-tags a {
    display: inline-block;
    background: #f0f0f0;
    padding: 5px 15px;
    border-radius: 15px;
    margin: 5px;
    font-size: 14px;
    color: #333;
}

.post-tags a:hover {
    background: #0066FF;
    color: #ffffff;
}

/* Related Posts */
.related-posts {
    margin-top: 50px;
}

.related-posts h3 {
    font-size: 28px;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 3px solid #0066FF;
}

/* Comments Area */
.comments-area {
    background: #ffffff;
    padding: 40px;
    border-radius: 10px;
    margin-top: 50px;
}

.comments-title {
    font-size: 24px;
    margin-bottom: 30px;
}

.comment-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.comment-list li {
    padding: 20px 0;
    border-bottom: 1px solid #e5e5e5;
}

.comment-body {
    display: flex;
    gap: 20px;
}

.comment-author img {
    border-radius: 50%;
}

.comment-content p {
    color: #666;
    line-height: 1.6;
}

.comment-form-comment textarea,
.comment-form-author input,
.comment-form-email input,
.comment-form-url input {
    width: 100%;
    padding: 12px;
    border: 1px solid #e5e5e5;
    border-radius: 5px;
    font-family: inherit;
    font-size: 14px;
}

.comment-form-comment textarea {
    min-height: 150px;
}

.form-submit input[type="submit"] {
    background: #0066FF;
    color: #ffffff;
    padding: 12px 30px;
    border: none;
    border-radius: 5px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.form-submit input[type="submit"]:hover {
    background: #FF6B35;
}

/* Page Header */
.page-header {
    margin-bottom: 30px;
}

.page-title {
    font-size: 36px;
    margin-bottom: 20px;
}

.page-content {
    background: #ffffff;
    padding: 40px;
    border-radius: 10px;
    line-height: 1.8;
}

.page-image {
    margin: 30px 0;
    border-radius: 10px;
    overflow: hidden;
}

/* Search Form Styles */
.search-form {
    display: flex;
    gap: 10px;
    max-width: 500px;
}

.search-field {
    flex: 1;
    padding: 12px 20px;
    border: 2px solid #e5e5e5;
    border-radius: 5px;
    font-size: 14px;
}

.search-submit {
    padding: 12px 25px;
    background: #0066FF;
    color: #ffffff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.search-submit:hover {
    background: #FF6B35;
}

.header-search {
    flex: 1;
    max-width: 400px;
    min-width: 200px;
}

.header-search form {
    display: flex;
    width: 100%;
}

.header-search input[type="search"] {
    flex: 1;
    padding: 10px 12px;
    border: 1px solid #e5e5e5;
    border-radius: 5px 0 0 5px;
    font-size: 15px;
    min-width: 0;
}

.header-search button {
    padding: 10px 16px;
    background: #0066FF;
    color: #ffffff;
    border: none;
    border-radius: 0 5px 5px 0;
    cursor: pointer;
    flex-shrink: 0;
    transition: background 0.3s ease;
}

.header-search button:hover {
    background: #FF6B35;
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: #0066FF;
    color: #ffffff;
    border-radius: 50%;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    cursor: pointer;
    z-index: 999;
    transition: all 0.3s ease;
}

.back-to-top:hover {
    background: #FF6B35;
    transform: translateY(-5px);
}

/* Loading State */
body:not(.loaded) {
    opacity: 0;
}

body.loaded {
    opacity: 1;
    transition: opacity 0.3s ease;
}

/* Screen Reader Text */
.screen-reader-text {
    clip: rect(1px, 1px, 1px, 1px);
    position: absolute !important;
    height: 1px;
    width: 1px;
    overflow: hidden;
}
