/*
Theme Name: NewsPress Pro
Theme URI: https://newspresspro.com
Author: NewsPress Team
Author URI: https://newspresspro.com
Description: A lightning-fast, SEO-optimized WordPress theme designed specifically for news websites, blogs, and online magazines. Features include mobile-first responsive design, schema markup integration, lazy loading, AMP compatibility, and Core Web Vitals optimization.
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: newspress-pro
Tags: news, blog, magazine, seo, responsive, mobile-first, fast-loading, amp, schema-markup, accessibility-ready, translation-ready
*/

/* ============================================
   CSS VARIABLES & BASE STYLES
   ============================================ */
:root {
    /* Colors */
    --primary-color: #1a73e8;
    --primary-dark: #1557b0;
    --secondary-color: #34a853;
    --accent-color: #ea4335;
    --text-primary: #202124;
    --text-secondary: #5f6368;
    --text-light: #9aa0a6;
    --bg-white: #ffffff;
    --bg-light: #f8f9fa;
    --bg-dark: #1a1a2e;
    --border-color: #dadce0;
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.1);
    --shadow-md: 0 4px 6px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 25px rgba(0,0,0,0.15);
    
    /* Typography */
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-heading: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-size-xs: 0.75rem;
    --font-size-sm: 0.875rem;
    --font-size-base: 1rem;
    --font-size-lg: 1.125rem;
    --font-size-xl: 1.25rem;
    --font-size-2xl: 1.5rem;
    --font-size-3xl: 1.875rem;
    --font-size-4xl: 2.25rem;
    --line-height-tight: 1.25;
    --line-height-normal: 1.5;
    --line-height-relaxed: 1.75;
    
    /* Spacing */
    --space-1: 0.25rem;
    --space-2: 0.5rem;
    --space-3: 0.75rem;
    --space-4: 1rem;
    --space-5: 1.25rem;
    --space-6: 1.5rem;
    --space-8: 2rem;
    --space-10: 2.5rem;
    --space-12: 3rem;
    --space-16: 4rem;
    
    /* Layout */
    --container-max: 1280px;
    --container-narrow: 768px;
    --header-height: 70px;
    --border-radius: 8px;
    --border-radius-lg: 12px;
    
    /* Transitions */
    --transition-fast: 150ms ease;
    --transition-normal: 250ms ease;
}

/* ============================================
   RESET & BASE
   ============================================ */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-primary);
    font-size: var(--font-size-base);
    line-height: var(--line-height-normal);
    color: var(--text-primary);
    background-color: var(--bg-white);
    overflow-x: hidden;
}

img, picture, video, canvas, svg {
    display: block;
    max-width: 100%;
    height: auto;
}

input, button, textarea, select {
    font: inherit;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--primary-dark);
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: var(--line-height-tight);
    color: var(--text-primary);
}

h1 { font-size: var(--font-size-4xl); }
h2 { font-size: var(--font-size-3xl); }
h3 { font-size: var(--font-size-2xl); }
h4 { font-size: var(--font-size-xl); }
h5 { font-size: var(--font-size-lg); }
h6 { font-size: var(--font-size-base); }

p {
    margin-bottom: var(--space-4);
}

ul, ol {
    margin-left: var(--space-6);
    margin-bottom: var(--space-4);
}

/* ============================================
   UTILITY CLASSES
   ============================================ */
.container {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--space-4);
}

.container-narrow {
    max-width: var(--container-narrow);
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Lazy loading */
.lazyload,
.lazyloading {
    opacity: 0;
}

.lazyloaded {
    opacity: 1;
    transition: opacity var(--transition-normal);
}

/* ============================================
   HEADER
   ============================================ */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: var(--bg-white);
    border-bottom: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    height: var(--header-height);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}

.site-branding {
    display: flex;
    align-items: center;
    gap: var(--space-3);
}

.site-logo {
    font-size: var(--font-size-2xl);
    font-weight: 800;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: var(--space-2);
}

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

.site-description {
    font-size: var(--font-size-sm);
    color: var(--text-secondary);
    display: none;
}

/* Breaking News Ticker */
.breaking-news {
    background: var(--accent-color);
    color: var(--bg-white);
    padding: var(--space-2) 0;
    font-size: var(--font-size-sm);
    overflow: hidden;
}

.breaking-news-inner {
    display: flex;
    align-items: center;
    gap: var(--space-4);
}

.breaking-label {
    background: rgba(255,255,255,0.2);
    padding: var(--space-1) var(--space-3);
    border-radius: var(--border-radius);
    font-weight: 600;
    text-transform: uppercase;
    font-size: var(--font-size-xs);
    white-space: nowrap;
}

.breaking-content {
    flex: 1;
    overflow: hidden;
}

.breaking-content a {
    color: var(--bg-white);
    white-space: nowrap;
}

/* ============================================
   NAVIGATION
   ============================================ */
.main-navigation {
    display: none;
}

.nav-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: var(--space-6);
}

.nav-menu a {
    color: var(--text-primary);
    font-weight: 500;
    font-size: var(--font-size-sm);
    padding: var(--space-2) 0;
    position: relative;
}

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

.nav-menu a:hover::after,
.nav-menu .current-menu-item a::after {
    width: 100%;
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: flex;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: var(--space-2);
}

.menu-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    transition: all var(--transition-fast);
}

/* Search Toggle */
.search-toggle {
    background: none;
    border: none;
    cursor: pointer;
    padding: var(--space-2);
    color: var(--text-primary);
}

.search-form {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg-white);
    padding: var(--space-4);
    border-bottom: 1px solid var(--border-color);
    box-shadow: var(--shadow-md);
}

.search-form.active {
    display: block;
}

.search-form input {
    width: 100%;
    padding: var(--space-3) var(--space-4);
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius);
    font-size: var(--font-size-base);
}

.search-form input:focus {
    outline: none;
    border-color: var(--primary-color);
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero-section {
    padding: var(--space-8) 0;
    background: var(--bg-light);
}

.hero-grid {
    display: grid;
    gap: var(--space-4);
}

.hero-main {
    position: relative;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    aspect-ratio: 16/9;
}

.hero-main img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: var(--space-6);
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
    color: var(--bg-white);
}

.hero-content .category {
    display: inline-block;
    background: var(--primary-color);
    color: var(--bg-white);
    padding: var(--space-1) var(--space-3);
    border-radius: var(--border-radius);
    font-size: var(--font-size-xs);
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: var(--space-3);
}

.hero-content h2 {
    color: var(--bg-white);
    font-size: var(--font-size-xl);
    margin-bottom: var(--space-2);
    line-height: var(--line-height-tight);
}

.hero-content .meta {
    font-size: var(--font-size-sm);
    opacity: 0.8;
}

.hero-sidebar {
    display: grid;
    gap: var(--space-4);
}

.hero-card {
    display: flex;
    gap: var(--space-3);
    background: var(--bg-white);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.hero-card img {
    width: 120px;
    height: 100px;
    object-fit: cover;
    flex-shrink: 0;
}

.hero-card-content {
    padding: var(--space-3);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.hero-card .category {
    font-size: var(--font-size-xs);
    color: var(--primary-color);
    font-weight: 600;
    text-transform: uppercase;
}

.hero-card h3 {
    font-size: var(--font-size-sm);
    margin: var(--space-1) 0;
    line-height: var(--line-height-tight);
}

.hero-card .meta {
    font-size: var(--font-size-xs);
    color: var(--text-light);
}

/* ============================================
   SECTION HEADERS
   ============================================ */
.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: var(--space-6);
    padding-bottom: var(--space-3);
    border-bottom: 2px solid var(--border-color);
}

.section-title {
    font-size: var(--font-size-xl);
    position: relative;
    padding-bottom: var(--space-3);
    margin-bottom: calc(-1 * var(--space-3) - 2px);
    border-bottom: 2px solid var(--primary-color);
}

.view-all {
    font-size: var(--font-size-sm);
    font-weight: 500;
    color: var(--primary-color);
}

/* ============================================
   NEWS GRID
   ============================================ */
.news-section {
    padding: var(--space-8) 0;
}

.news-grid {
    display: grid;
    gap: var(--space-6);
}

.news-card {
    background: var(--bg-white);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.news-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.news-card-image {
    position: relative;
    aspect-ratio: 16/10;
    overflow: hidden;
}

.news-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-normal);
}

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

.news-card-category {
    position: absolute;
    top: var(--space-3);
    left: var(--space-3);
    background: var(--primary-color);
    color: var(--bg-white);
    padding: var(--space-1) var(--space-3);
    border-radius: var(--border-radius);
    font-size: var(--font-size-xs);
    font-weight: 600;
    text-transform: uppercase;
}

.news-card-content {
    padding: var(--space-4);
}

.news-card-title {
    font-size: var(--font-size-lg);
    margin-bottom: var(--space-2);
    line-height: var(--line-height-tight);
}

.news-card-title a {
    color: var(--text-primary);
}

.news-card-title a:hover {
    color: var(--primary-color);
}

.news-card-excerpt {
    font-size: var(--font-size-sm);
    color: var(--text-secondary);
    margin-bottom: var(--space-3);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-card-meta {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    font-size: var(--font-size-xs);
    color: var(--text-light);
}

.news-card-meta .author {
    display: flex;
    align-items: center;
    gap: var(--space-2);
}

.news-card-meta .author img {
    width: 24px;
    height: 24px;
    border-radius: 50%;
}

/* ============================================
   FEATURED POST (LARGE)
   ============================================ */
.featured-post {
    display: grid;
    gap: var(--space-6);
    margin-bottom: var(--space-8);
}

.featured-post-image {
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    aspect-ratio: 16/9;
}

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

.featured-post-content .category {
    display: inline-block;
    background: var(--primary-color);
    color: var(--bg-white);
    padding: var(--space-1) var(--space-3);
    border-radius: var(--border-radius);
    font-size: var(--font-size-xs);
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: var(--space-3);
}

.featured-post-content h2 {
    font-size: var(--font-size-2xl);
    margin-bottom: var(--space-3);
    line-height: var(--line-height-tight);
}

.featured-post-content .excerpt {
    color: var(--text-secondary);
    margin-bottom: var(--space-4);
}

.featured-post-content .meta {
    display: flex;
    align-items: center;
    gap: var(--space-4);
    font-size: var(--font-size-sm);
    color: var(--text-light);
}

/* ============================================
   SIDEBAR
   ============================================ */
.sidebar {
    display: grid;
    gap: var(--space-8);
}

.widget {
    background: var(--bg-white);
    border-radius: var(--border-radius);
    padding: var(--space-5);
    box-shadow: var(--shadow-sm);
}

.widget-title {
    font-size: var(--font-size-lg);
    margin-bottom: var(--space-4);
    padding-bottom: var(--space-3);
    border-bottom: 2px solid var(--border-color);
    position: relative;
}

.widget-title::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 50px;
    height: 2px;
    background: var(--primary-color);
}

/* Popular Posts Widget */
.popular-post {
    display: flex;
    gap: var(--space-3);
    padding: var(--space-3) 0;
    border-bottom: 1px solid var(--border-color);
}

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

.popular-post-number {
    font-size: var(--font-size-2xl);
    font-weight: 800;
    color: var(--border-color);
    line-height: 1;
    min-width: 30px;
}

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

.popular-post-title {
    font-size: var(--font-size-sm);
    font-weight: 600;
    line-height: var(--line-height-tight);
    margin-bottom: var(--space-1);
}

.popular-post-title a {
    color: var(--text-primary);
}

.popular-post-title a:hover {
    color: var(--primary-color);
}

.popular-post-meta {
    font-size: var(--font-size-xs);
    color: var(--text-light);
}

/* Categories Widget */
.widget_categories ul {
    list-style: none;
    margin: 0;
}

.widget_categories li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-2) 0;
    border-bottom: 1px solid var(--border-color);
}

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

.widget_categories a {
    color: var(--text-primary);
    font-size: var(--font-size-sm);
}

.widget_categories a:hover {
    color: var(--primary-color);
}

.widget_categories .count {
    background: var(--bg-light);
    color: var(--text-secondary);
    padding: var(--space-1) var(--space-2);
    border-radius: var(--border-radius);
    font-size: var(--font-size-xs);
    font-weight: 500;
}

/* Tags Widget */
.tagcloud {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2);
}

.tagcloud a {
    background: var(--bg-light);
    color: var(--text-secondary);
    padding: var(--space-1) var(--space-3);
    border-radius: var(--border-radius);
    font-size: var(--font-size-sm);
    transition: all var(--transition-fast);
}

.tagcloud a:hover {
    background: var(--primary-color);
    color: var(--bg-white);
}

/* Social Widget */
.social-links {
    display: flex;
    gap: var(--space-3);
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--bg-light);
    border-radius: 50%;
    color: var(--text-secondary);
    transition: all var(--transition-fast);
}

.social-links a:hover {
    background: var(--primary-color);
    color: var(--bg-white);
}

/* Newsletter Widget */
.newsletter-form {
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
}

.newsletter-form input {
    padding: var(--space-3) var(--space-4);
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius);
    font-size: var(--font-size-base);
}

.newsletter-form input:focus {
    outline: none;
    border-color: var(--primary-color);
}

.newsletter-form button {
    padding: var(--space-3) var(--space-4);
    background: var(--primary-color);
    color: var(--bg-white);
    border: none;
    border-radius: var(--border-radius);
    font-weight: 600;
    cursor: pointer;
    transition: background var(--transition-fast);
}

.newsletter-form button:hover {
    background: var(--primary-dark);
}

/* ============================================
   SINGLE POST
   ============================================ */
.single-post {
    padding: var(--space-8) 0;
}

.post-header {
    margin-bottom: var(--space-6);
}

.post-category {
    display: inline-block;
    background: var(--primary-color);
    color: var(--bg-white);
    padding: var(--space-1) var(--space-3);
    border-radius: var(--border-radius);
    font-size: var(--font-size-xs);
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: var(--space-3);
}

.post-title {
    font-size: var(--font-size-3xl);
    margin-bottom: var(--space-4);
    line-height: var(--line-height-tight);
}

.post-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--space-4);
    font-size: var(--font-size-sm);
    color: var(--text-secondary);
}

.post-meta .author {
    display: flex;
    align-items: center;
    gap: var(--space-2);
}

.post-meta .author img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
}

.post-featured-image {
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    margin-bottom: var(--space-6);
    aspect-ratio: 16/9;
}

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

.post-content {
    font-size: var(--font-size-lg);
    line-height: var(--line-height-relaxed);
}

.post-content h2 {
    font-size: var(--font-size-2xl);
    margin: var(--space-8) 0 var(--space-4);
}

.post-content h3 {
    font-size: var(--font-size-xl);
    margin: var(--space-6) 0 var(--space-3);
}

.post-content p {
    margin-bottom: var(--space-5);
}

.post-content blockquote {
    border-left: 4px solid var(--primary-color);
    padding-left: var(--space-5);
    margin: var(--space-6) 0;
    font-style: italic;
    color: var(--text-secondary);
}

.post-content img {
    border-radius: var(--border-radius);
    margin: var(--space-6) 0;
}

.post-content figcaption {
    text-align: center;
    font-size: var(--font-size-sm);
    color: var(--text-light);
    margin-top: var(--space-2);
}

/* Post Tags */
.post-tags {
    margin-top: var(--space-8);
    padding-top: var(--space-6);
    border-top: 1px solid var(--border-color);
}

.post-tags-label {
    font-weight: 600;
    margin-bottom: var(--space-3);
}

.post-tags-list {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2);
}

.post-tags-list a {
    background: var(--bg-light);
    color: var(--text-secondary);
    padding: var(--space-1) var(--space-3);
    border-radius: var(--border-radius);
    font-size: var(--font-size-sm);
}

.post-tags-list a:hover {
    background: var(--primary-color);
    color: var(--bg-white);
}

/* Post Share */
.post-share {
    margin-top: var(--space-6);
}

.post-share-label {
    font-weight: 600;
    margin-bottom: var(--space-3);
}

.post-share-buttons {
    display: flex;
    gap: var(--space-3);
}

.post-share-buttons a {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-2) var(--space-4);
    border-radius: var(--border-radius);
    font-size: var(--font-size-sm);
    font-weight: 500;
    color: var(--bg-white);
}

.share-facebook { background: #1877f2; }
.share-twitter { background: #1da1f2; }
.share-linkedin { background: #0077b5; }
.share-whatsapp { background: #25d366; }

/* Author Box */
.author-box {
    display: grid;
    gap: var(--space-4);
    margin-top: var(--space-8);
    padding: var(--space-6);
    background: var(--bg-light);
    border-radius: var(--border-radius-lg);
}

.author-box-avatar img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
}

.author-box-content h4 {
    margin-bottom: var(--space-2);
}

.author-box-content p {
    color: var(--text-secondary);
    font-size: var(--font-size-sm);
    margin-bottom: var(--space-3);
}

.author-box-social {
    display: flex;
    gap: var(--space-2);
}

.author-box-social a {
    color: var(--text-light);
}

.author-box-social a:hover {
    color: var(--primary-color);
}

/* Related Posts */
.related-posts {
    margin-top: var(--space-8);
}

.related-posts-title {
    font-size: var(--font-size-xl);
    margin-bottom: var(--space-5);
}

.related-posts-grid {
    display: grid;
    gap: var(--space-4);
}

/* Post Navigation */
.post-navigation {
    display: grid;
    gap: var(--space-4);
    margin-top: var(--space-8);
    padding-top: var(--space-6);
    border-top: 1px solid var(--border-color);
}

.nav-previous,
.nav-next {
    padding: var(--space-4);
    background: var(--bg-light);
    border-radius: var(--border-radius);
}

.nav-label {
    font-size: var(--font-size-xs);
    color: var(--text-light);
    text-transform: uppercase;
    margin-bottom: var(--space-1);
}

.nav-title {
    font-weight: 600;
    color: var(--text-primary);
}

.nav-title:hover {
    color: var(--primary-color);
}

/* ============================================
   COMMENTS
   ============================================ */
.comments-area {
    margin-top: var(--space-8);
    padding-top: var(--space-6);
    border-top: 1px solid var(--border-color);
}

.comments-title {
    font-size: var(--font-size-xl);
    margin-bottom: var(--space-5);
}

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

.comment {
    padding: var(--space-4) 0;
    border-bottom: 1px solid var(--border-color);
}

.comment-author {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    margin-bottom: var(--space-2);
}

.comment-author img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
}

.comment-author .fn {
    font-weight: 600;
}

.comment-metadata {
    font-size: var(--font-size-sm);
    color: var(--text-light);
    margin-bottom: var(--space-2);
}

.comment-content {
    color: var(--text-secondary);
}

.comment-reply-link {
    font-size: var(--font-size-sm);
    font-weight: 500;
}

/* Comment Form */
.comment-form {
    margin-top: var(--space-6);
}

.comment-form label {
    display: block;
    font-weight: 500;
    margin-bottom: var(--space-2);
}

.comment-form input,
.comment-form textarea {
    width: 100%;
    padding: var(--space-3) var(--space-4);
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius);
    margin-bottom: var(--space-4);
}

.comment-form input:focus,
.comment-form textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.comment-form-submit {
    padding: var(--space-3) var(--space-6);
    background: var(--primary-color);
    color: var(--bg-white);
    border: none;
    border-radius: var(--border-radius);
    font-weight: 600;
    cursor: pointer;
    transition: background var(--transition-fast);
}

.comment-form-submit:hover {
    background: var(--primary-dark);
}

/* ============================================
   PAGINATION
   ============================================ */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: var(--space-2);
    margin-top: var(--space-8);
}

.pagination a,
.pagination span {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 var(--space-3);
    border-radius: var(--border-radius);
    font-weight: 500;
}

.pagination a {
    background: var(--bg-light);
    color: var(--text-primary);
}

.pagination a:hover {
    background: var(--primary-color);
    color: var(--bg-white);
}

.pagination .current {
    background: var(--primary-color);
    color: var(--bg-white);
}

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
    background: var(--bg-dark);
    color: var(--bg-white);
    padding: var(--space-12) 0 var(--space-6);
}

.footer-widgets {
    display: grid;
    gap: var(--space-8);
    margin-bottom: var(--space-8);
}

.footer-widget h4 {
    color: var(--bg-white);
    font-size: var(--font-size-lg);
    margin-bottom: var(--space-4);
}

.footer-widget p,
.footer-widget a {
    color: rgba(255,255,255,0.7);
    font-size: var(--font-size-sm);
}

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

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

.footer-widget li {
    padding: var(--space-2) 0;
}

.footer-bottom {
    padding-top: var(--space-6);
    border-top: 1px solid rgba(255,255,255,0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-4);
    text-align: center;
}

.footer-copyright {
    font-size: var(--font-size-sm);
    color: rgba(255,255,255,0.5);
}

.footer-links {
    display: flex;
    gap: var(--space-4);
}

.footer-links a {
    font-size: var(--font-size-sm);
    color: rgba(255,255,255,0.5);
}

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

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: var(--space-6);
    right: var(--space-6);
    width: 48px;
    height: 48px;
    background: var(--primary-color);
    color: var(--bg-white);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-fast);
    z-index: 999;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: var(--primary-dark);
    transform: translateY(-4px);
}

/* ============================================
   ADS & SPONSORED CONTENT
   ============================================ */
.ad-slot {
    text-align: center;
    margin: var(--space-6) 0;
}

.ad-label {
    font-size: var(--font-size-xs);
    color: var(--text-light);
    text-transform: uppercase;
    margin-bottom: var(--space-2);
}

.ad-banner {
    display: inline-block;
    background: var(--bg-light);
    border: 1px dashed var(--border-color);
    padding: var(--space-8) var(--space-12);
    color: var(--text-light);
    font-size: var(--font-size-sm);
}

/* ============================================
   ACCESSIBILITY
   ============================================ */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* Focus styles */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* Skip link */
.skip-link {
    position: absolute;
    top: -100%;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary-color);
    color: var(--bg-white);
    padding: var(--space-3) var(--space-6);
    border-radius: 0 0 var(--border-radius) var(--border-radius);
    z-index: 10000;
    font-weight: 600;
}

.skip-link:focus {
    top: 0;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

/* Tablet (768px+) */
@media (min-width: 768px) {
    :root {
        --header-height: 80px;
    }
    
    .container {
        padding: 0 var(--space-6);
    }
    
    .site-description {
        display: block;
    }
    
    .main-navigation {
        display: block;
    }
    
    .menu-toggle {
        display: none;
    }
    
    .hero-content h2 {
        font-size: var(--font-size-2xl);
    }
    
    .news-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .featured-post {
        grid-template-columns: 1fr 1fr;
    }
    
    .related-posts-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .post-navigation {
        grid-template-columns: 1fr 1fr;
    }
    
    .footer-widgets {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-bottom {
        flex-direction: row;
        justify-content: space-between;
        text-align: left;
    }
}

/* Desktop (1024px+) */
@media (min-width: 1024px) {
    .hero-grid {
        grid-template-columns: 2fr 1fr;
    }
    
    .hero-sidebar {
        display: flex;
        flex-direction: column;
    }
    
    .news-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .content-area {
        display: grid;
        grid-template-columns: 1fr 350px;
        gap: var(--space-8);
    }
    
    .author-box {
        grid-template-columns: auto 1fr;
    }
    
    .related-posts-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .footer-widgets {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Large Desktop (1280px+) */
@media (min-width: 1280px) {
    .news-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* ============================================
   DARK MODE SUPPORT
   ============================================ */
@media (prefers-color-scheme: dark) {
    :root {
        --text-primary: #e8eaed;
        --text-secondary: #9aa0a6;
        --text-light: #5f6368;
        --bg-white: #202124;
        --bg-light: #303134;
        --bg-dark: #171717;
        --border-color: #3c4043;
    }
    
    .news-card,
    .widget {
        background: #292a2d;
    }
    
    .hero-card {
        background: #292a2d;
    }
    
    .tagcloud a,
    .post-tags-list a {
        background: #3c4043;
    }
}

/* ============================================
   PRINT STYLES
   ============================================ */
@media print {
    .site-header,
    .sidebar,
    .site-footer,
    .post-share,
    .post-navigation,
    .comments-area,
    .back-to-top,
    .ad-slot {
        display: none !important;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.5;
        color: #000;
        background: #fff;
    }
    
    .post-title {
        font-size: 24pt;
    }
    
    .post-content {
        font-size: 12pt;
    }
    
    a {
        color: #000;
        text-decoration: underline;
    }
    
    img {
        max-width: 100% !important;
    }
}
