/*
Theme Name: Modern News Pro
Theme URI: https://example.com/modern-news-pro
Author: Your Name
Author URI: https://example.com
Description: Modern, SEO optimized, full-width headline news theme with stunning visuals. Perfect for news websites with category and tag support. High SEO score, responsive design, and beautiful typography.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: modern-news-pro
Tags: news, blog, magazine, responsive, seo, modern, featured, custom-header, custom-menu, featured-images, translation-ready

Modern News Pro is a modern, SEO-optimized WordPress theme designed specifically for news websites.
*/

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background: #f5f5f5;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header Styles */
.site-header {
    background: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

.site-header.sticky {
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
}

.header-top {
    background: #1a1a1a;
    color: #fff;
    padding: 10px 0;
    font-size: 14px;
}

.header-top .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-main {
    padding: 20px 0;
}

.header-main .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.site-logo {
    font-size: 32px;
    font-weight: bold;
    color: #e74c3c;
}

.site-description {
    font-size: 14px;
    color: #666;
    margin-top: 5px;
}

.main-navigation ul {
    list-style: none;
    display: flex;
    gap: 30px;
}

.main-navigation a {
    color: #333;
    font-weight: 500;
    padding: 5px 0;
    border-bottom: 2px solid transparent;
}

.main-navigation a:hover {
    color: #e74c3c;
    border-bottom-color: #e74c3c;
}

/* Main Hero Section - Full Width Headline */
.hero-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    padding: 80px 0;
    margin-bottom: 40px;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.3);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.hero-category {
    display: inline-block;
    background: #e74c3c;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 15px;
}

.hero-title {
    font-size: 48px;
    font-weight: bold;
    line-height: 1.2;
    margin-bottom: 20px;
}

.hero-excerpt {
    font-size: 20px;
    line-height: 1.6;
    opacity: 0.9;
    margin-bottom: 25px;
}

.hero-meta {
    display: flex;
    gap: 20px;
    font-size: 14px;
    opacity: 0.8;
}

/* Featured Posts Section */
.featured-section {
    margin: 60px 0;
}

.section-title {
    font-size: 32px;
    font-weight: bold;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 3px solid #e74c3c;
    display: inline-block;
}

.featured-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

.featured-post {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.featured-post:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.featured-post-thumbnail {
    position: relative;
    overflow: hidden;
    height: 250px;
}

.featured-post-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.featured-post:hover .featured-post-thumbnail img {
    transform: scale(1.1);
}

.featured-post-category {
    position: absolute;
    top: 15px;
    left: 15px;
    background: #e74c3c;
    color: #fff;
    padding: 5px 12px;
    border-radius: 5px;
    font-size: 12px;
    text-transform: uppercase;
}

.featured-post-content {
    padding: 20px;
}

.featured-post-title {
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 10px;
    line-height: 1.4;
}

.featured-post-title a {
    color: #333;
}

.featured-post-title a:hover {
    color: #e74c3c;
}

.featured-post-meta {
    display: flex;
    gap: 15px;
    font-size: 13px;
    color: #666;
    margin-top: 10px;
}

/* Main Content Area */
.main-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
    margin: 60px 0;
}

.posts-list {
    background: #fff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.post-item {
    display: flex;
    gap: 20px;
    padding: 20px 0;
    border-bottom: 1px solid #eee;
}

.post-item:last-child {
    border-bottom: none;
}

.post-thumbnail-small {
    width: 200px;
    height: 150px;
    flex-shrink: 0;
    border-radius: 8px;
    overflow: hidden;
}

.post-thumbnail-small img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.post-content-small h3 {
    font-size: 18px;
    margin-bottom: 10px;
}

.post-content-small h3 a {
    color: #333;
}

.post-content-small h3 a:hover {
    color: #e74c3c;
}

.post-meta-small {
    display: flex;
    gap: 15px;
    font-size: 12px;
    color: #666;
    margin-top: 8px;
}

/* Sidebar */
.sidebar {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.widget {
    background: #fff;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.widget-title {
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #e74c3c;
}

.widget ul {
    list-style: none;
}

.widget ul li {
    padding: 10px 0;
    border-bottom: 1px solid #eee;
}

.widget ul li:last-child {
    border-bottom: none;
}

.widget ul li a {
    color: #333;
}

.widget ul li a:hover {
    color: #e74c3c;
    padding-left: 5px;
}

/* Single Post */
.single-post-header {
    background: #fff;
    padding: 40px 0;
    margin-bottom: 30px;
}

.single-post-title {
    font-size: 42px;
    font-weight: bold;
    line-height: 1.2;
    margin-bottom: 20px;
}

.single-post-meta {
    display: flex;
    gap: 20px;
    color: #666;
    font-size: 14px;
}

.single-post-featured-image {
    margin: 30px 0;
    border-radius: 10px;
    overflow: hidden;
}

.single-post-featured-image img {
    width: 100%;
    height: auto;
}

.post-content {
    background: #fff;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    line-height: 1.8;
    font-size: 16px;
}

.post-content h2 {
    font-size: 28px;
    margin: 30px 0 15px;
    color: #333;
}

.post-content h3 {
    font-size: 24px;
    margin: 25px 0 12px;
}

.post-content p {
    margin-bottom: 20px;
}

.post-content img {
    border-radius: 8px;
    margin: 20px 0;
}

.post-tags {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 2px solid #eee;
}

.post-tags a {
    display: inline-block;
    background: #f0f0f0;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 13px;
    margin: 5px 5px 5px 0;
    color: #333;
}

.post-tags a:hover {
    background: #e74c3c;
    color: #fff;
}

/* Footer */
.site-footer {
    background: #1a1a1a;
    color: #fff;
    padding: 60px 0 20px;
    margin-top: 80px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-widget h3 {
    font-size: 20px;
    margin-bottom: 20px;
    color: #e74c3c;
}

.footer-widget ul {
    list-style: none;
}

.footer-widget ul li {
    padding: 8px 0;
}

.footer-widget ul li a {
    color: #ccc;
}

.footer-widget ul li a:hover {
    color: #e74c3c;
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid #333;
    color: #999;
}

/* Category and Tag Pages */
.archive-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    padding: 60px 0;
    text-align: center;
    margin-bottom: 40px;
}

.archive-title {
    font-size: 42px;
    font-weight: bold;
    margin-bottom: 10px;
}

.archive-description {
    font-size: 18px;
    opacity: 0.9;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin: 40px 0;
}

.pagination a,
.pagination span {
    display: inline-block;
    padding: 10px 15px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 5px;
    color: #333;
}

.pagination a:hover,
.pagination .current {
    background: #e74c3c;
    color: #fff;
    border-color: #e74c3c;
}

/* Mobile Menu */
.menu-toggle {
    display: none;
    flex-direction: column;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.menu-toggle span {
    width: 25px;
    height: 3px;
    background: #333;
    margin: 3px 0;
    transition: 0.3s;
}

.menu-toggle.active span:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -6px);
}

/* Breadcrumbs */
.breadcrumbs {
    font-size: 14px;
    color: #666;
    margin-bottom: 20px;
}

.breadcrumbs a {
    color: #e74c3c;
}

.breadcrumbs a:hover {
    text-decoration: underline;
}

/* Tag Cloud Widget */
.tagcloud a {
    display: inline-block;
    padding: 5px 12px;
    margin: 5px 5px 5px 0;
    background: #f0f0f0;
    border-radius: 20px;
    font-size: 13px !important;
    color: #333;
    transition: all 0.3s ease;
}

.tagcloud a:hover {
    background: #e74c3c;
    color: #fff;
}

/* Search Form */
.search-form {
    display: flex;
    gap: 10px;
    margin: 20px 0;
}

.search-field {
    flex: 1;
    padding: 12px 15px;
    border: 2px solid #ddd;
    border-radius: 5px;
    font-size: 14px;
}

.search-field:focus {
    outline: none;
    border-color: #e74c3c;
}

.search-submit {
    padding: 12px 25px;
    background: #e74c3c;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: background 0.3s ease;
}

.search-submit:hover {
    background: #c0392b;
}

.screen-reader-text {
    clip: rect(1px, 1px, 1px, 1px);
    position: absolute !important;
    height: 1px;
    width: 1px;
    overflow: hidden;
}

/* Responsive Design */
@media (max-width: 968px) {
    .main-content {
        grid-template-columns: 1fr;
    }
    
    .hero-title {
        font-size: 36px;
    }
    
    .featured-grid {
        grid-template-columns: 1fr;
    }
    
    .menu-toggle {
        display: flex;
    }
    
    .main-navigation {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #fff;
        box-shadow: 0 5px 15px rgba(0,0,0,0.1);
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
    }
    
    .main-navigation.mobile-menu-open {
        max-height: 500px;
    }
    
    .main-navigation ul {
        flex-direction: column;
        gap: 0;
        padding: 20px;
    }
    
    .main-navigation ul li {
        padding: 10px 0;
        border-bottom: 1px solid #eee;
    }
    
    .post-item {
        flex-direction: column;
    }
    
    .post-thumbnail-small {
        width: 100%;
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 28px;
    }
    
    .hero-excerpt {
        font-size: 16px;
    }
    
    .single-post-title {
        font-size: 32px;
    }
    
    .section-title {
        font-size: 24px;
    }
}
