/*
Theme Name: Tempo Editorial
Theme URI: https://example.com/tempo-editorial
Author: Manus
Author URI: https://manus.im
Description: A modern, minimalist SEO-optimized WordPress theme inspired by Tempo's editorial design. Features red accents, featured post slider, infinite scroll, and newsletter integration.
Version: 1.1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: tempo-editorial
Tags: news, editorial, minimalist, red, seo-friendly, infinite-scroll, featured-images, custom-colors
*/

/* Reset and Base Styles */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    line-height: 1.6;
    color: #1a1a1a;
    background-color: #ffffff;
}

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

a:hover {
    color: #e31e24;
}

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

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

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

/* Header */
.site-header {
    border-bottom: 1px solid #eee;
    padding: 15px 0;
    position: sticky;
    top: 0;
    background: #fff;
    z-index: 1000;
}

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

.site-logo {
    font-size: 1.8rem;
    font-weight: 900;
    color: #e31e24;
    text-transform: uppercase;
    letter-spacing: -1px;
}

.main-navigation ul {
    display: flex;
    list-style: none;
    gap: 25px;
}

.main-navigation a {
    font-weight: 600;
    font-size: 0.95rem;
    color: #333;
}

.main-navigation a:hover {
    color: #e31e24;
}

.header-actions .search-icon {
    font-size: 1.2rem;
    cursor: pointer;
}

/* Hero Slider */
.hero-slider {
    position: relative;
    margin: 20px 0 40px;
    border-radius: 12px;
    overflow: hidden;
    height: 500px;
}

.hero-slide {
    position: relative;
    height: 100%;
}

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

.hero-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 60px 40px 40px;
    background: linear-gradient(transparent, rgba(0,0,0,0.85));
    color: #fff;
}

.breaking-news-tag {
    background: #e31e24;
    color: #fff;
    padding: 4px 12px;
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    border-radius: 4px;
    display: inline-block;
    margin-bottom: 15px;
}

.hero-category {
    background: rgba(227, 30, 36, 0.9);
    color: #fff;
    padding: 2px 10px;
    font-size: 0.7rem;
    font-weight: 700;
    border-radius: 4px;
    margin-bottom: 10px;
    display: inline-block;
}

.hero-title {
    font-size: 2.5rem;
    margin-bottom: 15px;
    max-width: 800px;
}

.hero-excerpt {
    font-size: 1.1rem;
    opacity: 0.9;
    margin-bottom: 20px;
    max-width: 700px;
}

.hero-meta {
    font-size: 0.85rem;
    opacity: 0.8;
}

/* Content Layout */
.main-content-grid {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 40px;
}

@media (max-width: 992px) {
    .main-content-grid {
        grid-template-columns: 1fr;
    }
}

.section-title {
    font-size: 1.5rem;
    border-bottom: 3px solid #e31e24;
    display: inline-block;
    padding-bottom: 5px;
    margin-bottom: 25px;
}

/* Article List */
.article-card {
    display: flex;
    gap: 25px;
    margin-bottom: 35px;
    padding-bottom: 35px;
    border-bottom: 1px solid #f0f0f0;
}

.article-thumb {
    flex: 0 0 240px;
    height: 160px;
    border-radius: 8px;
    overflow: hidden;
}

.article-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.article-info {
    flex: 1;
}

.article-category {
    background: #e31e24;
    color: #fff;
    padding: 2px 8px;
    font-size: 0.65rem;
    font-weight: 700;
    border-radius: 4px;
    display: inline-block;
    margin-bottom: 8px;
}

.article-title {
    font-size: 1.3rem;
    margin-bottom: 10px;
    line-height: 1.3;
}

.article-excerpt {
    font-size: 0.95rem;
    color: #666;
    margin-bottom: 12px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.article-meta {
    font-size: 0.8rem;
    color: #999;
    text-transform: uppercase;
    font-weight: 600;
}

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

.widget-title-flex {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
}

.widget-title-flex i {
    color: #e31e24;
}

.newsletter-widget {
    border-left: 4px solid #e31e24;
}

.newsletter-form input {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    margin-bottom: 15px;
}

.newsletter-form button {
    width: 100%;
    padding: 12px;
    background: #e31e24;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-weight: 700;
    cursor: pointer;
}

.ad-space {
    background: #f9f9f9;
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    color: #999;
    font-size: 0.75rem;
}

/* Footer */
.site-footer {
    background: #fff;
    border-top: 1px solid #eee;
    padding: 60px 0 30px;
    margin-top: 60px;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    margin-bottom: 40px;
}

.footer-column h4 {
    font-size: 1rem;
    margin-bottom: 20px;
}

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

.footer-column li {
    margin-bottom: 10px;
    font-size: 0.9rem;
    color: #666;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 30px;
    border-top: 1px solid #f0f0f0;
    font-size: 0.85rem;
    color: #999;
}

.social-links {
    display: flex;
    gap: 15px;
}

/* Red Accent Classes */
.text-red { color: #e31e24; }
.bg-red { background-color: #e31e24; }
