/* Base Styles */
:root {
    --primary-color: #0073aa;
    --accent-color: #e60000;
    --text-color: #333;
    --bg-color: #f9f9f9;
}

body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color: var(--text-color);
    background-color: var(--bg-color);
    line-height: 1.6;
}

img {
    max-width: 100%;
    height: auto;
}

.site-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.site-header {
    background: #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 999;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
}

.site-title {
    font-size: 24px;
    font-weight: 700;
    text-decoration: none;
    color: var(--text-color);
}

.main-navigation ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 20px;
}

.main-navigation a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    transition: color 0.3s;
}

.main-navigation a:hover {
    color: var(--primary-color);
}

/* Hero Section */
.hero-section {
    position: relative;
    height: 60vh;
    min-height: 400px;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
    transition: background-image 1s ease-in-out;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
}

.hero-content {
    position: relative;
    z-index: 10;
}

.hero-content h1 {
    font-size: 3rem;
    margin-bottom: 10px;
}

.hero-content p {
    font-size: 1.2rem;
}

/* News Ticker */
.news-ticker-container {
    display: flex;
    background: #111;
    color: #fff;
    height: 50px;
    align-items: center;
    overflow: hidden;
}

.ticker-label {
    background: var(--accent-color);
    padding: 0 20px;
    line-height: 50px;
    font-weight: bold;
    text-transform: uppercase;
    z-index: 2;
    white-space: nowrap;
}

.ticker-wrapper {
    flex: 1;
    overflow: hidden;
    position: relative;
    height: 100%;
}

.ticker-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    position: absolute;
    white-space: nowrap;
    line-height: 50px;
    animation: tickerAnim 25s linear infinite;
}

.ticker-list:hover {
    animation-play-state: paused;
}

.ticker-list li {
    padding: 0 30px;
}

.ticker-list a {
    color: #fff;
    text-decoration: none;
}

.ticker-list a:hover {
    text-decoration: underline;
}

@keyframes tickerAnim {
    0%   { transform: translateX(100vw); }
    100% { transform: translateX(-100%); }
}

/* Archive Grid (Latest Trends) */
.latest-trends-archive {
    padding: 40px 20px;
}

.page-title {
    text-align: center;
    margin-bottom: 40px;
}

.post-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.trend-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    transition: transform 0.3s;
}

.trend-card:hover {
    transform: translateY(-5px);
}

.trend-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

.trend-card-content {
    padding: 20px;
}

.trend-card .entry-title {
    font-size: 1.25rem;
    margin: 0 0 10px 0;
}

.trend-card .entry-title a {
    color: var(--text-color);
    text-decoration: none;
}

.trend-card .entry-meta {
    font-size: 0.85rem;
    color: #777;
    margin-bottom: 15px;
}

/* Single Post */
.single-post-container {
    padding: 40px 20px;
    max-width: 800px;
    background: #fff;
    margin-top: 40px;
    margin-bottom: 40px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    border-radius: 8px;
}

.single-post-thumbnail img {
    border-radius: 8px;
    margin-bottom: 30px;
    width: 100%;
}

.entry-header {
    margin-bottom: 30px;
    text-align: center;
}

/* Footer */
.site-footer {
    background: #222;
    color: #aaa;
    text-align: center;
    padding: 20px 0;
    margin-top: auto;
}

/* Responsive */
@media (max-width: 768px) {
    .header-inner {
        flex-direction: column;
        gap: 15px;
    }
    .hero-content h1 {
        font-size: 2rem;
    }
    .news-ticker-container {
        flex-direction: column;
        height: auto;
    }
    .ticker-label {
        width: 100%;
        text-align: center;
    }
    .ticker-wrapper {
        height: 40px;
        width: 100%;
    }
    .ticker-list {
        line-height: 40px;
    }
}