/*
Theme Name: NewSpare
Theme URI: https://newspare.com
Author: NewSpare
Author URI: https://newspare.com
Description: A professional news agency WordPress theme - Your Trusted Source for Breaking News and In-Depth Analysis
Version: 1.0
License: GPL v2 or later
Text Domain: newspare
*/

/* ========== CORE STYLES FOR NEWSPARE ========== */

:root {
    --primary: #1a237e;
    --accent: #cc0000;
    --text: #333;
    --light: #f5f5f5;
    --border: #e0e0e0;
    --white: #ffffff;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--text);
    background: var(--white);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.site-header {
    background: var(--white);
    border-bottom: 3px solid var(--primary);
}

.header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
}

.site-title {
    font-size: 36px;
    font-weight: 800;
    margin: 0;
}

.site-title a {
    color: var(--primary);
    text-decoration: none;
}

.site-description {
    color: #666;
    font-size: 14px;
    margin-top: 5px;
}

.subscribe-btn {
    background: var(--accent);
    color: white;
    padding: 10px 25px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    display: inline-block;
}

.subscribe-btn:hover {
    background: #990000;
}

/* Navigation */
.main-navigation {
    border-top: 1px solid var(--border);
    padding: 15px 0;
}

.primary-menu {
    list-style: none;
    display: flex;
    gap: 30px;
}

.primary-menu a {
    color: var(--text);
    text-decoration: none;
    font-weight: 500;
    text-transform: uppercase;
    font-size: 14px;
}

.primary-menu a:hover {
    color: var(--accent);
}

/* Hero Article */
.hero-article {
    margin-bottom: 30px;
    border-radius: 8px;
    overflow: hidden;
    background: var(--light);
}

.hero-image img {
    width: 100%;
    height: 400px;
    object-fit: cover;
}

.hero-content {
    padding: 30px;
}

.hero-title {
    font-size: 32px;
    margin: 10px 0;
}

.hero-title a {
    color: var(--text);
    text-decoration: none;
}

.hero-title a:hover {
    color: var(--accent);
}

.hero-excerpt {
    color: #666;
    font-size: 16px;
    margin-bottom: 15px;
}

/* Category Label */
.category-label {
    display: inline-block;
    background: var(--accent);
    color: white;
    padding: 4px 12px;
    border-radius: 3px;
    font-size: 12px;
    text-transform: uppercase;
    font-weight: 600;
}

/* Content Grid */
.content-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
    margin: 30px 0;
}

/* News Cards */
.news-card {
    display: flex;
    gap: 20px;
    padding: 20px;
    border-bottom: 1px solid var(--border);
    transition: background 0.3s;
}

.news-card:hover {
    background: var(--light);
}

.card-image {
    flex: 0 0 250px;
}

.card-image img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 4px;
}

.card-content {
    flex: 1;
}

.card-title {
    font-size: 20px;
    margin: 10px 0;
}

.card-title a {
    color: var(--text);
    text-decoration: none;
}

.card-title a:hover {
    color: var(--accent);
}

.card-excerpt {
    color: #666;
    margin-bottom: 10px;
}

.card-meta {
    font-size: 14px;
    color: #888;
}

/* Sidebar */
.sidebar .widget {
    background: var(--light);
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.widget-title {
    font-size: 18px;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--accent);
}

.sidebar ul {
    list-style: none;
}

.sidebar ul li {
    padding: 8px 0;
    border-bottom: 1px solid var(--border);
}

.sidebar ul li a {
    color: var(--text);
    text-decoration: none;
}

.sidebar ul li a:hover {
    color: var(--accent);
}

/* Single Article */
.article-header {
    margin: 30px 0;
}

.article-title {
    font-size: 36px;
    margin: 15px 0;
    line-height: 1.2;
}

.article-meta {
    color: #666;
    font-size: 14px;
    margin: 15px 0;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--border);
}

.featured-image img {
    width: 100%;
    border-radius: 8px;
    margin-bottom: 30px;
}

.article-content {
    font-size: 18px;
    line-height: 1.8;
}

.article-content p {
    margin-bottom: 20px;
}

/* Footer */
.site-footer {
    background: var(--primary);
    color: white;
    padding: 40px 0 20px;
    margin-top: 60px;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
    margin-bottom: 30px;
}

.footer-info h3 {
    color: white;
    margin-bottom: 10px;
}

.footer-info p {
    color: #ccc;
}

.footer-menu {
    list-style: none;
}

.footer-menu li {
    margin-bottom: 10px;
}

.footer-menu a {
    color: #ccc;
    text-decoration: none;
}

.footer-menu a:hover {
    color: white;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 20px;
    text-align: center;
    color: #ccc;
}

/* Pagination */
.pagination {
    text-align: center;
    margin: 30px 0;
}

.pagination .page-numbers {
    padding: 8px 15px;
    margin: 0 5px;
    border: 1px solid var(--border);
    border-radius: 4px;
    color: var(--text);
    text-decoration: none;
}

.pagination .current {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

/* Welcome Message */
.welcome-message {
    background: var(--light);
    padding: 40px;
    text-align: center;
    border-radius: 8px;
    margin: 30px 0;
    border: 2px dashed var(--border);
}

.welcome-message h2 {
    color: var(--primary);
    margin-bottom: 10px;
}

/* Responsive */
@media (max-width: 768px) {
    .content-grid {
        grid-template-columns: 1fr;
    }
    
    .news-card {
        flex-direction: column;
    }
    
    .card-image {
        flex: none;
    }
    
    .header-top {
        flex-direction: column;
        text-align: center;
    }
    
    .primary-menu {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .hero-title {
        font-size: 24px;
    }
    
    .article-title {
        font-size: 28px;
    }
}