/*
Theme Name: NewsPro
Theme URI: https://example.com/newspro
Author: AI Studio
Author URI: https://ai.studio
Description: A fully responsive, modern, and SEO-optimized newspaper theme for WordPress.
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: newspro
Tags: news, newspaper, blog, magazine, responsive-layout, custom-logo, custom-menu, featured-images, post-formats, sticky-post, theme-options, translation-ready

This theme is built with modern CSS Grid and Flexbox.
*/

:root {
    --primary-color: #003366;
    --accent-color: #007bff;
    --text-color: #333;
    --bg-color: #ffffff;
    --border-color: #eeeeee;
    --font-main: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --font-heading: 'Playfair Display', serif;
}

body.dark-mode {
    --primary-color: #f8f9fa;
    --accent-color: #3399ff;
    --text-color: #e9ecef;
    --bg-color: #121212;
    --border-color: #333333;
}

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

body {
    font-family: var(--font-main);
    color: var(--text-color);
    background-color: var(--bg-color);
    line-height: 1.6;
    transition: background-color 0.3s, color 0.3s;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s;
}

a:hover {
    color: var(--accent-color);
}

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

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

/* Header */
.site-header {
    background: var(--bg-color);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.top-bar {
    background: var(--primary-color);
    color: #fff;
    padding: 8px 0;
    font-size: 14px;
}

.breaking-news {
    display: flex;
    align-items: center;
}

.breaking-label {
    background: var(--accent-color);
    padding: 2px 8px;
    margin-right: 15px;
    font-weight: bold;
    text-transform: uppercase;
}

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

.site-branding {
    display: flex;
    flex-direction: column;
    justify-content: center;
    flex-shrink: 0;
}

.site-logo img {
    max-height: 45px;
    width: auto;
    display: block;
}

.site-title {
    font-size: 2rem;
    font-weight: 900;
    margin: 0;
    line-height: 1;
    font-family: 'Georgia', serif;
    font-style: italic;
    letter-spacing: -1px;
}

.site-title a {
    color: var(--primary-color);
    text-decoration: none;
}

.site-description {
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    font-weight: 700;
    color: #888;
    margin: 2px 0 0;
}

.main-navigation {
    flex-grow: 1;
    display: flex;
    justify-content: flex-end;
}

.main-navigation ul {
    display: flex;
    list-style: none;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.main-navigation li {
    margin-left: 20px;
}

.main-navigation a {
    font-weight: 700;
    text-transform: uppercase;
    font-size: 13px;
    color: var(--primary-color);
    padding: 5px 0;
    display: block;
}

@media (max-width: 480px) {
    .site-title {
        font-size: 1.1rem;
    }
    
    .site-description {
        display: none;
    }
}

@media (max-width: 1023px) {
    .main-navigation {
        display: none;
    }
    
    .main-header {
        padding: 10px 0;
        gap: 10px;
    }
    
    .site-title {
        font-size: 1.35rem;
    }
    
    .site-description {
        font-size: 0.5rem;
        letter-spacing: 0.1em;
    }

    .btn-enews {
        display: none;
    }
}

/* Layout */
.site-content {
    padding: 40px 0;
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
}

@media (min-width: 1024px) {
    .site-content {
        grid-template-columns: 8fr 4fr;
    }
}

/* Posts */
.post-card {
    margin-bottom: 30px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 30px;
}

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

.post-thumbnail {
    margin-bottom: 15px;
    overflow: hidden;
    border-radius: 4px;
}

.post-thumbnail img {
    transition: transform 0.3s;
}

.post-card:hover .post-thumbnail img {
    transform: scale(1.05);
}

.post-category {
    color: var(--accent-color);
    font-size: 12px;
    font-weight: bold;
    text-transform: uppercase;
    margin-bottom: 5px;
    display: block;
}

.post-title {
    font-family: var(--font-heading);
    font-size: 24px;
    margin-bottom: 10px;
}

.post-title a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.2s;
}

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

.post-meta {
    font-size: 13px;
    color: #888;
    margin-bottom: 15px;
}

.post-meta a,
.author-link {
    color: var(--accent-color);
    font-weight: 700;
    text-decoration: none;
}

.author-link:hover {
    text-decoration: underline;
}

/* Breadcrumbs */
.breadcrumb {
    background: #f8f9fa;
    padding: 12px 0;
    font-size: 0.8rem;
    border-bottom: 1px solid #eee;
    margin-bottom: 30px;
}

.breadcrumb .container {
    display: flex;
    gap: 8px;
    color: #666;
    align-items: center;
}

.breadcrumb a {
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 600;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

.breadcrumb span {
    color: #999;
}

/* Sidebar Refinement */
.widget {
    background: #fff;
    padding: 25px;
    border: 1px solid #eee;
    margin-bottom: 30px;
    border-radius: 4px;
}

.widget-title {
    font-size: 1.1rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--primary-color);
    display: inline-block;
}

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

.widget ul li {
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f0;
    font-size: 0.95rem;
}

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

.widget ul li a {
    color: #333;
    text-decoration: none;
    transition: color 0.2s;
    display: block;
    line-height: 1.4;
    font-weight: 600;
}

.popular-post-item {
    display: flex;
    gap: 12px;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f0;
}

.popular-post-thumb {
    width: 60px;
    height: 60px;
    flex-shrink: 0;
    overflow: hidden;
    border-radius: 4px;
}

.popular-post-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.popular-post-item:hover .popular-post-thumb img {
    transform: scale(1.1);
}

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

.popular-post-title {
    font-size: 0.9rem;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 4px;
    display: block;
    color: #333;
}

.popular-post-item:hover .popular-post-title {
    color: var(--accent-color);
}

.popular-post-date {
    font-size: 0.75rem;
    color: #999;
}

/* Footer */
.site-footer {
    background: var(--primary-color);
    color: #fff;
    padding: 60px 0 20px;
    margin-top: 60px;
}

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

.footer-logo {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    font-weight: 900;
    font-style: italic;
    margin-bottom: 5px;
    letter-spacing: -1px;
    line-height: 1;
}

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

.footer-tagline {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: rgba(255,255,255,0.4);
    margin-bottom: 20px;
    font-weight: 700;
    display: block;
}

.footer-about {
    font-size: 0.9rem;
    color: rgba(255,255,255,0.7);
    line-height: 1.6;
}

.footer-column .widget-title {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #fff;
    margin-bottom: 25px;
    font-weight: 900;
    position: relative;
    padding-bottom: 10px;
}

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

.footer-column ul {
    list-style: none;
    padding: 0;
}

.footer-column ul li {
    margin-bottom: 12px;
    padding-left: 15px;
    position: relative;
}

.footer-column ul li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 4px;
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
    transition: all 0.2s;
}

.footer-column ul li:hover::before {
    background: var(--accent-color);
    transform: translateY(-50%) scale(1.5);
}

.footer-column ul li a {
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s;
}

.footer-column ul li a:hover {
    color: #fff;
}

.newsletter-form {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.newsletter-form input {
    flex-grow: 1;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    padding: 12px 15px;
    border-radius: 4px;
    color: #fff;
    font-size: 0.85rem;
    outline: none;
    transition: all 0.2s;
}

.newsletter-form input:focus {
    background: rgba(255,255,255,0.1);
    border-color: var(--accent-color);
}

.newsletter-form button {
    background: var(--accent-color);
    color: #fff;
    border: none;
    padding: 12px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 700;
    font-size: 0.85rem;
    transition: all 0.2s;
}

.newsletter-form button:hover {
    background: #fff;
    color: var(--primary-color);
    transform: translateY(-2px);
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.05);
    padding: 30px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.75rem;
    color: rgba(255,255,255,0.4);
    font-weight: 500;
}

.footer-bottom-links {
    display: flex;
    gap: 20px;
}

.footer-bottom-links a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s;
}

.footer-bottom-links a:hover {
    color: #fff;
}

@media (max-width: 768px) {
    .footer-bottom {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-shrink: 0;
}

@media (max-width: 480px) {
    .header-actions {
        gap: 8px;
    }
    
    .dark-mode-toggle,
    .side-menu-trigger {
        width: 38px;
        height: 38px;
        font-size: 16px;
    }
}

.btn-enews {
    background: var(--accent-color);
    color: #fff;
    padding: 12px 24px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 12px rgba(0,123,255,0.3);
    transition: all 0.3s ease;
}

.btn-enews:hover {
    background: var(--primary-color);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0,51,102,0.4);
}

.dark-mode-toggle,
.side-menu-trigger {
    cursor: pointer;
    background: #f8f9fa;
    border: 1px solid var(--border-color);
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    font-size: 18px;
    color: var(--primary-color);
    transition: all 0.2s;
}

.dark-mode-toggle:hover,
.side-menu-trigger:hover {
    background: var(--primary-color);
    color: #fff;
    border-color: var(--primary-color);
}

/* Side Drawer */
.side-drawer {
    position: fixed;
    top: 0;
    left: -300px;
    width: 300px;
    height: 100%;
    background: var(--bg-color);
    box-shadow: 2px 0 10px rgba(0,0,0,0.1);
    z-index: 2000;
    transition: left 0.3s ease;
    padding: 40px 20px;
}

.side-drawer.active {
    left: 0;
}

.drawer-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 1999;
    display: none;
}

.drawer-overlay.active {
    display: block;
}
