/*
Theme Name: Crimson Reporters
Theme URI: https://crimsonreporters.com
Author: Crimson Reporters Team
Author URI: https://crimsonreporters.com
Description: A modern news theme by CrimsonReporters. Read news, stay informed.
Version: 1.0.0
License: GPL v2 or later
Text Domain: crimson-reporters
Tags: news, blog, two-columns, right-sidebar, custom-header, custom-menu, featured-images, threaded-comments
*/

:root {
    --primary-color: #8B0000;
    --secondary-color: #FF6B6B;
    --dark-color: #1a1a1a;
    --light-color: #f8f9fa;
    --text-color: #333;
    --border-color: #dee2e6;
    --success-color: #28a745;
    --warning-color: #ffc107;
    --danger-color: #dc3545;
    --card-shadow: 0 2px 8px rgba(0,0,0,0.1);
    --header-bg: #fff;
    --footer-bg: #1a1a1a;
    --category-tech: #17a2b8;
    --category-politics: #8B0000;
    --category-business: #28a745;
    --category-sports: #ffc107;
    --category-entertainment: #6f42c1;
    --transition: all 0.3s ease;
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--light-color);
    width: 100%;
    overflow-x: hidden;
}

.container-wrapper {
    width: 100%;
    overflow-x: hidden;
}

/* Header Styles */
.site-header {
    background-color: var(--header-bg);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    border-bottom: 3px solid var(--primary-color);
    width: 100%;
}

.header-top {
    background-color: var(--dark-color);
    color: white;
    padding: 8px 0;
    font-size: 14px;
}

.header-top-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.date-time {
    display: flex;
    align-items: center;
    gap: 10px;
}

.breaking-news {
    background-color: var(--secondary-color);
    color: white;
    padding: 4px 12px;
    border-radius: 3px;
    font-weight: 600;
    animation: blink 1s infinite;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

.header-main {
    padding: 15px 0;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

/* Logo Styles */
.site-branding {
    display: flex;
    align-items: center;
    gap: 15px;
}

.site-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.site-logo i {
    font-size: 32px;
    color: var(--primary-color);
}

.site-title {
    font-size: 28px;
    font-weight: 800;
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: -1px;
}

.site-description {
    font-size: 12px;
    color: #666;
    font-weight: 500;
    border-left: 2px solid #ddd;
    padding-left: 10px;
}

/* Search Styles */
.search-box {
    position: relative;
    max-width: 400px;
    width: 100%;
    margin: 0 20px;
}

.search-box input {
    width: 100%;
    padding: 12px 45px 12px 15px;
    border: 2px solid var(--border-color);
    border-radius: 4px;
    font-size: 14px;
    transition: var(--transition);
}

.search-box input:focus {
    outline: none;
    border-color: var(--primary-color);
}

.search-btn {
    position: absolute;
    right: 0;
    top: 0;
    height: 100%;
    background: none;
    border: none;
    padding: 0 15px;
    color: #666;
    cursor: pointer;
    font-size: 18px;
}

/* Navigation Styles */
.main-nav {
    background-color: var(--primary-color);
    padding: 0;
    width: 100%;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.main-navigation {
    display: flex;
    list-style: none;
    width: 100%;
}

.main-navigation li {
    list-style: none;
}

.main-navigation a {
    color: white;
    text-decoration: none;
    padding: 15px 20px;
    font-weight: 600;
    font-size: 15px;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.main-navigation a:hover,
.main-navigation .current-menu-item a {
    background-color: rgba(255,255,255,0.1);
    color: white;
}

/* Main Container */
.main-container {
    max-width: 1200px;
    margin: 30px auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 30px;
    min-height: 600px;
    width: 100%;
}

@media (max-width: 992px) {
    .main-container {
        grid-template-columns: 1fr;
    }
}

.content-area {
    min-height: 500px;
    width: 100%;
    overflow: hidden;
}

/* Section Headers */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--primary-color);
    width: 100%;
}

.section-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--dark-color);
    text-transform: uppercase;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -17px;
    left: 0;
    width: 60px;
    height: 3px;
    background-color: var(--secondary-color);
}

.see-all {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: var(--transition);
}

.see-all:hover {
    color: var(--secondary-color);
}

/* Featured News */
.featured-news {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 25px;
    margin-bottom: 40px;
    width: 100%;
}

@media (max-width: 768px) {
    .featured-news {
        grid-template-columns: 1fr;
    }
}

.main-featured {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--card-shadow);
    width: 100%;
    height: 400px;
}

.main-featured img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.main-featured:hover img {
    transform: scale(1.05);
}

.featured-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
    padding: 30px;
    color: white;
    width: 100%;
}

.featured-category {
    display: inline-block;
    background-color: var(--secondary-color);
    color: white;
    padding: 5px 15px;
    border-radius: 3px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.featured-title {
    font-size: 28px;
    font-weight: 800;
    margin-bottom: 10px;
    line-height: 1.3;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
}

.featured-title a {
    color: white;
    text-decoration: none;
}

.featured-meta {
    display: flex;
    gap: 15px;
    font-size: 14px;
    opacity: 0.9;
    flex-wrap: wrap;
}

.side-featured {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.side-featured-item {
    display: flex;
    gap: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border-color);
}

.side-featured-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.side-featured-img {
    width: 120px;
    height: 80px;
    object-fit: cover;
    border-radius: 4px;
}

.side-featured-content {
    flex: 1;
    min-width: 0;
}

.side-featured-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 5px;
    line-height: 1.4;
}

.side-featured-title a {
    color: var(--dark-color);
    text-decoration: none;
}

.side-featured-title a:hover {
    color: var(--primary-color);
}

.side-featured-category {
    font-size: 11px;
    color: var(--primary-color);
    font-weight: 600;
    text-transform: uppercase;
}

/* News Grid */
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
    width: 100%;
}

@media (max-width: 768px) {
    .news-grid {
        grid-template-columns: 1fr;
    }
}

.news-card {
    background-color: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--card-shadow);
    transition: var(--transition);
    border: 1px solid var(--border-color);
    width: 100%;
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.news-media {
    position: relative;
    overflow: hidden;
    height: 200px;
}

.news-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.news-card:hover .news-image {
    transform: scale(1.1);
}

.news-category {
    position: absolute;
    top: 15px;
    left: 15px;
    background-color: rgba(139, 0, 0, 0.9);
    color: white;
    padding: 4px 12px;
    border-radius: 3px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 2;
}

.news-category a {
    color: white;
    text-decoration: none;
}

.news-content {
    padding: 20px;
}

.news-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 10px;
    line-height: 1.4;
    color: var(--dark-color);
}

.news-title a {
    color: var(--dark-color);
    text-decoration: none;
}

.news-title a:hover {
    color: var(--primary-color);
}

.news-excerpt {
    color: #666;
    font-size: 14px;
    margin-bottom: 15px;
    line-height: 1.5;
}

.news-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    color: #999;
    padding-top: 15px;
    border-top: 1px solid var(--border-color);
    flex-wrap: wrap;
}

.news-author {
    display: flex;
    align-items: center;
    gap: 5px;
}

/* Single Post Styles */
.single-post .news-header {
    margin-bottom: 30px;
}

.news-media-large {
    position: relative;
    margin-bottom: 20px;
    border-radius: 8px;
    overflow: hidden;
}

.news-media-large img {
    width: 100%;
    max-height: 500px;
    object-fit: contain;
    background: #000;
}

.news-title-main {
    font-size: 32px;
    font-weight: 800;
    margin-bottom: 15px;
    line-height: 1.3;
    color: var(--dark-color);
}

.news-meta-detail {
    display: flex;
    gap: 20px;
    color: #666;
    font-size: 14px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.article-content {
    margin-bottom: 40px;
    font-size: 18px;
    line-height: 1.8;
}

.article-content p {
    margin-bottom: 1.5em;
}

/* Social Sharing */
.social-sharing {
    margin: 30px 0;
    padding: 25px;
    background: #f8f9fa;
    border-radius: 8px;
    text-align: center;
}

.share-buttons {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 15px;
}

.share-btn {
    padding: 10px 20px;
    border-radius: 5px;
    border: none;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
    color: white;
    text-decoration: none;
    font-size: 14px;
}

.share-btn.telegram { background: #0088cc; }
.share-btn.twitter { background: #1da1f2; }
.share-btn.facebook { background: #1877f2; }
.share-btn.whatsapp { background: #25d366; }
.share-btn:hover {
    transform: translateY(-2px);
    opacity: 0.9;
}

/* Comments Section */
.comments-section {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 2px solid var(--border-color);
}

.comment-list {
    list-style: none;
    padding: 0;
}

.comment {
    padding: 20px;
    border-bottom: 1px solid var(--border-color);
    background: white;
    border-radius: 8px;
    margin-bottom: 15px;
}

.comment-author {
    font-weight: 600;
    margin-bottom: 5px;
}

.comment-meta {
    font-size: 12px;
    color: #666;
    margin-bottom: 10px;
}

.comment-content {
    font-size: 14px;
    line-height: 1.6;
}

/* Comment Form */
.comment-respond {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 30px;
}

.comment-form textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    margin-bottom: 10px;
    resize: vertical;
    font-family: inherit;
    font-size: 14px;
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"] {
    width: 100%;
    padding: 10px;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    margin-bottom: 10px;
}

.submit {
    background-color: var(--primary-color);
    color: white;
    padding: 10px 25px;
    border: none;
    border-radius: 5px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.submit:hover {
    background-color: #6d0000;
    transform: translateY(-2px);
}

/* Sidebar Styles */
.sidebar {
    background-color: white;
    border-radius: 8px;
    padding: 25px;
    box-shadow: var(--card-shadow);
    border: 1px solid var(--border-color);
    width: 100%;
}

.widget {
    margin-bottom: 30px;
    width: 100%;
}

.widget:last-child {
    margin-bottom: 0;
}

.widget-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--primary-color);
    color: var(--dark-color);
}

/* Trending List */
.trending-list {
    list-style: none;
    width: 100%;
}

.trending-item {
    display: flex;
    gap: 15px;
    padding: 15px 0;
    border-bottom: 1px solid var(--border-color);
}

.trending-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.trending-number {
    font-size: 24px;
    font-weight: 800;
    color: #ddd;
    min-width: 40px;
    flex-shrink: 0;
}

.trending-content {
    flex: 1;
    min-width: 0;
}

.trending-title {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 5px;
    line-height: 1.4;
}

.trending-title a {
    color: var(--dark-color);
    text-decoration: none;
}

.trending-title a:hover {
    color: var(--primary-color);
}

.trending-meta {
    font-size: 12px;
    color: #999;
}

/* Category List Widget */
.categories-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    width: 100%;
}

.cat-item {
    background-color: var(--light-color);
    padding: 12px;
    border-radius: 5px;
    text-align: center;
    font-weight: 600;
    transition: var(--transition);
    border: 1px solid var(--border-color);
}

.cat-item:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-2px);
}

.cat-item a {
    color: var(--dark-color);
    text-decoration: none;
}

.cat-item:hover a {
    color: white;
}

/* Footer Styles */
.site-footer {
    background-color: var(--footer-bg);
    color: white;
    padding: 50px 0 20px;
    margin-top: 60px;
    width: 100%;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    width: 100%;
}

.footer-widget h3 {
    font-size: 18px;
    margin-bottom: 20px;
    color: white;
    position: relative;
    padding-bottom: 10px;
}

.footer-widget h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background-color: var(--primary-color);
}

.footer-widget p {
    font-size: 14px;
    color: #bbb;
    line-height: 1.6;
}

.footer-widget ul {
    list-style: none;
}

.footer-widget ul li {
    margin-bottom: 10px;
}

.footer-widget ul li a {
    color: #bbb;
    text-decoration: none;
    transition: var(--transition);
    font-size: 14px;
}

.footer-widget ul li a:hover {
    color: white;
    padding-left: 5px;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-link {
    width: 40px;
    height: 40px;
    background-color: #333;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: var(--transition);
}

.social-link:hover {
    background-color: var(--primary-color);
    transform: translateY(-3px);
}

.site-info {
    text-align: center;
    padding-top: 30px;
    margin-top: 40px;
    border-top: 1px solid #333;
    color: #999;
    font-size: 14px;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin: 40px 0;
    flex-wrap: wrap;
}

.page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 5px;
    background-color: white;
    color: var(--text-color);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    border: 1px solid var(--border-color);
}

.page-numbers:hover {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.page-numbers.current {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

/* Mobile Menu */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    color: var(--primary-color);
    cursor: pointer;
}

.mobile-nav-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0,0,0,0.5);
    z-index: 998;
}

.mobile-nav-overlay.active {
    display: block;
}

/* Utility Classes */
.text-center { text-align: center; }
.hidden { display: none; }

/* Ad Styles */
.ad-container-wrapper {
    margin: 20px 0;
    padding: 15px 0;
    text-align: center;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
    background: #f8f9fa;
    border-radius: 4px;
    width: 100%;
}

.ad-container-wrapper .ad-iframe-container {
    display: flex;
    justify-content: center;
    align-items: center;
}

.ad-container-wrapper .ad-iframe-container.horizontal {
    min-height: 90px;
}

.ad-container-wrapper .ad-iframe-container.vertical {
    min-height: 250px;
}

.ad-container-wrapper iframe {
    border: none;
    max-width: 100%;
    display: block;
}

.ad-label {
    text-align: center;
    color: #999;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 5px 0;
    margin-bottom: 10px;
}

/* Ad slot in news grid */
.news-card.ad-slot {
    border: none !important;
    box-shadow: none !important;
    background: transparent !important;
    min-height: 200px;
    display: block !important;
    padding: 0 !important;
    overflow: visible !important;
}

.news-card.ad-slot:hover {
    transform: none !important;
}

.news-card.ad-slot .ad-container-wrapper {
    margin: 0;
    padding: 0;
    height: 100%;
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
}

.news-card.ad-slot .ad-iframe-container {
    height: 200px;
    width: 100%;
    min-height: 200px;
}

.news-card.ad-slot iframe {
    width: 100% !important;
    height: 200px !important;
}

/* Reading Progress Bar */
.reading-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: #f0f0f0;
    z-index: 1001;
}

.reading-progress-bar {
    height: 100%;
    background-color: var(--primary-color);
    width: 0%;
    transition: width 0.3s ease;
}

/* Responsive Styles */
@media (max-width: 1200px) {
    .header-container,
    .nav-container,
    .main-container,
    .footer-container {
        padding: 0 15px;
    }
}

@media (max-width: 992px) {
    .header-container {
        flex-wrap: wrap;
    }
    .search-box {
        order: 3;
        max-width: 100%;
        margin: 15px 0 0 0;
    }
}

@media (max-width: 768px) {
    .mobile-menu-btn {
        display: block;
    }
    .main-navigation {
        position: fixed;
        top: 0;
        left: -100%;
        width: 280px;
        height: 100vh;
        background-color: var(--primary-color);
        flex-direction: column;
        padding: 80px 20px 20px;
        transition: var(--transition);
        z-index: 999;
    }
    .main-navigation.active {
        left: 0;
    }
    .main-navigation a {
        padding: 15px;
        border-bottom: 1px solid rgba(255,255,255,0.1);
        width: 100%;
    }
    .main-featured {
        height: 300px;
    }
    .featured-title {
        font-size: 22px;
    }
    .section-title {
        font-size: 20px;
    }
    .footer-container {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    .news-title-main {
        font-size: 24px;
    }
    .ad-container-wrapper .ad-iframe-container.horizontal {
        min-height: 60px;
    }
    .ad-container-wrapper .ad-iframe-container.vertical {
        min-height: 250px;
    }
    .news-card.ad-slot {
        min-height: 200px;
    }
    .news-card.ad-slot .ad-iframe-container {
        height: 200px;
        min-height: 200px;
    }
    .news-card.ad-slot iframe {
        height: 200px !important;
    }
}

@media (max-width: 480px) {
    .header-top-container {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
    .site-title {
        font-size: 24px;
    }
    .site-description {
        font-size: 10px;
    }
    .featured-title {
        font-size: 20px;
    }
}
