/**
 * NAPA TRIBUNE - MAIN STYLESHEET
 * Editorial news design - clean, professional, trustworthy
 */

/* =============================================================================
   CSS CUSTOM PROPERTIES (Variables)
   ========================================================================== */
:root {
    /* Colors */
    --color-primary: #1a1a1a;
    --color-secondary: #2d2d2d;
    --color-accent: #c41e3a;
    --color-accent-dark: #a01830;
    --color-background: #ffffff;
    --color-background-alt: #f5f5f5;
    --color-background-dark: #1a1a1a;
    --color-text: #1a1a1a;
    --color-text-secondary: #555555;
    --color-text-muted: #888888;
    --color-text-inverse: #ffffff;
    --color-border: #e0e0e0;
    --color-border-dark: #333333;
    
    /* Typography */
    --font-serif: 'Merriweather', Georgia, 'Times New Roman', serif;
    --font-sans: 'Source Sans Pro', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    
    /* Font Sizes */
    --text-xs: 0.75rem;
    --text-sm: 0.875rem;
    --text-base: 1rem;
    --text-lg: 1.125rem;
    --text-xl: 1.25rem;
    --text-2xl: 1.5rem;
    --text-3xl: 1.875rem;
    --text-4xl: 2.25rem;
    --text-5xl: 3rem;
    
    /* Line Heights */
    --leading-tight: 1.25;
    --leading-normal: 1.5;
    --leading-relaxed: 1.625;
    
    /* 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;
    --space-20: 5rem;
    
    /* Layout */
    --container-max: 1280px;
    --container-narrow: 720px;
    --header-height: 64px;
    --header-height-mobile: 56px;
    
    /* Transitions */
    --transition-fast: 150ms ease;
    --transition-normal: 250ms ease;
    --transition-slow: 350ms ease;
    
    /* Shadows */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
    
    /* Z-index scale */
    --z-dropdown: 100;
    --z-sticky: 200;
    --z-modal: 300;
    --z-overlay: 400;
}

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

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

body {
    font-family: var(--font-sans);
    font-size: var(--text-base);
    line-height: var(--leading-normal);
    color: var(--color-text);
    background-color: var(--color-background);
    min-height: 100vh;
}

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

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

a {
    color: inherit;
    text-decoration: none;
}

ul, ol {
    list-style: none;
}

/* =============================================================================
   UTILITY CLASSES
   ========================================================================== */
.container {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding-left: var(--space-4);
    padding-right: 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;
}

.skip-link {
    position: absolute;
    top: -100%;
    left: 50%;
    transform: translateX(-50%);
    background: var(--color-primary);
    color: var(--color-text-inverse);
    padding: var(--space-3) var(--space-6);
    z-index: 9999;
    transition: top var(--transition-fast);
}

.skip-link:focus {
    top: var(--space-2);
}

/* =============================================================================
   ICONS
   ========================================================================== */
.icon {
    display: inline-block;
    width: 1em;
    height: 1em;
    vertical-align: middle;
    flex-shrink: 0;
}

/* =============================================================================
   TOP BAR
   ========================================================================== */
.top-bar {
    background-color: var(--color-primary);
    color: var(--color-text-inverse);
    font-size: var(--text-sm);
    padding: var(--space-2) 0;
    border-bottom: 1px solid var(--color-border-dark);
}

.top-bar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-4);
}

.top-bar__left {
    display: flex;
    align-items: center;
    gap: var(--space-4);
}

.top-bar__date {
    font-weight: 600;
}

.top-bar__time {
    color: var(--color-text-muted);
}

.top-bar__center {
    display: none;
}

@media (min-width: 768px) {
    .top-bar__center {
        display: block;
    }
}

.top-bar__link {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    color: var(--color-text-inverse);
    opacity: 0.8;
    transition: opacity var(--transition-fast);
}

.top-bar__link:hover {
    opacity: 1;
}

.top-bar__right {
    display: flex;
    align-items: center;
}

.top-bar__weather {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    color: var(--color-text-inverse);
    padding: var(--space-1) var(--space-3);
    border-radius: 4px;
    transition: background-color var(--transition-fast);
}

.top-bar__weather:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.weather-icon {
    width: 18px;
    height: 18px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.weather-icon--sun { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M12 7c-2.76 0-5 2.24-5 5s2.24 5 5 5 5-2.24 5-5-2.24-5-5-5zM2 13h2c.55 0 1-.45 1-1s-.45-1-1-1H2c-.55 0-1 .45-1 1s.45 1 1 1zm18 0h2c.55 0 1-.45 1-1s-.45-1-1-1h-2c-.55 0-1 .45-1 1s.45 1 1 1zM11 2v2c0 .55.45 1 1 1s1-.45 1-1V2c0-.55-.45-1-1-1s-1 .45-1 1zm0 18v2c0 .55.45 1 1 1s1-.45 1-1v-2c0-.55-.45-1-1-1s-1 .45-1 1zM5.99 4.58a.996.996 0 00-1.41 0 .996.996 0 000 1.41l1.06 1.06c.39.39 1.03.39 1.41 0s.39-1.03 0-1.41L5.99 4.58zm12.37 12.37a.996.996 0 00-1.41 0 .996.996 0 000 1.41l1.06 1.06c.39.39 1.03.39 1.41 0 .39-.39.39-1.03 0-1.41l-1.06-1.06zm1.06-10.96a.996.996 0 000-1.41.996.996 0 00-1.41 0l-1.06 1.06c-.39.39-.39 1.03 0 1.41s1.03.39 1.41 0l1.06-1.06zM7.05 18.36a.996.996 0 000 1.41.996.996 0 001.41 0l1.06-1.06c.39-.39.39-1.03 0-1.41s-1.03-.39-1.41 0l-1.06 1.06z'/%3E%3C/svg%3E"); }
.weather-icon--cloud { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M19.35 10.04C18.67 6.59 15.64 4 12 4 9.11 4 6.6 5.64 5.35 8.04 2.34 8.36 0 10.91 0 14c0 3.31 2.69 6 6 6h13c2.76 0 5-2.24 5-5 0-2.64-2.05-4.78-4.64-4.96z'/%3E%3C/svg%3E"); }
.weather-icon--rain { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M19.35 10.04C18.67 6.59 15.64 4 12 4 9.11 4 6.6 5.64 5.35 8.04 2.34 8.36 0 10.91 0 14c0 3.31 2.69 6 6 6h13c2.76 0 5-2.24 5-5 0-2.64-2.05-4.78-4.64-4.96zM9 13v4h2v-4H9zm4 0v4h2v-4h-2z'/%3E%3C/svg%3E"); }
.weather-icon--snow { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M19.35 10.04C18.67 6.59 15.64 4 12 4 9.11 4 6.6 5.64 5.35 8.04 2.34 8.36 0 10.91 0 14c0 3.31 2.69 6 6 6h13c2.76 0 5-2.24 5-5 0-2.64-2.05-4.78-4.64-4.96z'/%3E%3C/svg%3E"); }
.weather-icon--thunder { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M7 2v11h3v9l7-12h-4l4-8z'/%3E%3C/svg%3E"); }
.weather-icon--fog { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M19.35 10.04C18.67 6.59 15.64 4 12 4 9.11 4 6.6 5.64 5.35 8.04 2.34 8.36 0 10.91 0 14c0 3.31 2.69 6 6 6h13c2.76 0 5-2.24 5-5 0-2.64-2.05-4.78-4.64-4.96z'/%3E%3C/svg%3E"); }

.weather-temp {
    font-weight: 700;
}

.weather-condition {
    display: none;
    color: var(--color-text-muted);
}

@media (min-width: 640px) {
    .weather-condition {
        display: inline;
    }
}

/* =============================================================================
   BREAKING NEWS TICKER
   ========================================================================== */
.breaking-ticker {
    background-color: var(--color-accent);
    color: var(--color-text-inverse);
    font-size: var(--text-sm);
    padding: var(--space-2) 0;
    overflow: hidden;
}

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

.breaking-ticker__label {
    font-weight: 700;
    font-size: var(--text-xs);
    letter-spacing: 0.05em;
    text-transform: uppercase;
    white-space: nowrap;
    padding: var(--space-1) var(--space-2);
    background-color: rgba(0, 0, 0, 0.2);
    border-radius: 2px;
}

.breaking-ticker__content {
    flex: 1;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.ticker-loading {
    opacity: 0.8;
}

.ticker-item {
    display: inline;
}

.ticker-item + .ticker-item::before {
    content: "•";
    margin: 0 var(--space-3);
    opacity: 0.6;
}

.ticker-item a {
    color: var(--color-text-inverse);
    transition: opacity var(--transition-fast);
}

.ticker-item a:hover {
    opacity: 0.8;
    text-decoration: underline;
}

/* =============================================================================
   SITE HEADER
   ========================================================================== */
.site-header {
    background-color: var(--color-background);
    border-bottom: 1px solid var(--color-border);
    position: sticky;
    top: 0;
    z-index: var(--z-sticky);
    height: var(--header-height-mobile);
}

@media (min-width: 768px) {
    .site-header {
        height: var(--header-height);
    }
}

.site-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    gap: var(--space-4);
}

/* Mobile Menu Button */
.mobile-menu-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
}

@media (min-width: 1024px) {
    .mobile-menu-btn {
        display: none;
    }
}

.hamburger {
    display: block;
    width: 24px;
    height: 2px;
    background-color: var(--color-primary);
    position: relative;
    transition: background-color var(--transition-fast);
}

.hamburger::before,
.hamburger::after {
    content: '';
    position: absolute;
    width: 24px;
    height: 2px;
    background-color: var(--color-primary);
    transition: transform var(--transition-fast);
}

.hamburger::before {
    top: -7px;
}

.hamburger::after {
    top: 7px;
}

.mobile-menu-btn[aria-expanded="true"] .hamburger {
    background-color: transparent;
}

.mobile-menu-btn[aria-expanded="true"] .hamburger::before {
    transform: translateY(7px) rotate(45deg);
}

.mobile-menu-btn[aria-expanded="true"] .hamburger::after {
    transform: translateY(-7px) rotate(-45deg);
}

/* Site Logo */
.site-logo {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    font-family: var(--font-serif);
    font-weight: 900;
    color: var(--color-primary);
}

.site-logo__text {
    font-size: var(--text-xl);
    letter-spacing: 0.02em;
}

@media (min-width: 768px) {
    .site-logo__text {
        font-size: var(--text-2xl);
    }
}

.site-logo__divider {
    width: 1px;
    height: 24px;
    background-color: var(--color-border);
}

.site-logo__subtext {
    font-size: var(--text-lg);
    font-weight: 400;
    letter-spacing: 0.1em;
}

@media (min-width: 768px) {
    .site-logo__subtext {
        font-size: var(--text-xl);
    }
}

/* Main Navigation */
.main-nav {
    display: none;
    flex: 1;
}

@media (min-width: 1024px) {
    .main-nav {
        display: block;
    }
}

.main-nav__list {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-6);
}

.main-nav__link {
    font-size: var(--text-sm);
    font-weight: 600;
    color: var(--color-text);
    padding: var(--space-2) 0;
    position: relative;
    transition: color var(--transition-fast);
}

.main-nav__link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--color-accent);
    transition: width var(--transition-fast);
}

.main-nav__link:hover,
.main-nav__item.is-active .main-nav__link {
    color: var(--color-accent);
}

.main-nav__link:hover::after,
.main-nav__item.is-active .main-nav__link::after {
    width: 100%;
}

/* Header Actions */
.header-actions {
    display: flex;
    align-items: center;
    gap: var(--space-1);
}

.header-actions__btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    color: var(--color-text);
    border-radius: 4px;
    transition: background-color var(--transition-fast), color var(--transition-fast);
}

.header-actions__btn:hover {
    background-color: var(--color-background-alt);
    color: var(--color-accent);
}

/* =============================================================================
   MOBILE NAVIGATION OVERLAY
   ========================================================================== */
.mobile-nav-overlay {
    position: fixed;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: var(--z-overlay);
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--transition-normal), visibility var(--transition-normal);
}

.mobile-nav-overlay.is-active {
    opacity: 1;
    visibility: visible;
}

.mobile-nav {
    position: absolute;
    top: 0;
    left: 0;
    width: 85%;
    max-width: 320px;
    height: 100%;
    background-color: var(--color-background);
    transform: translateX(-100%);
    transition: transform var(--transition-normal);
    display: flex;
    flex-direction: column;
}

.mobile-nav-overlay.is-active .mobile-nav {
    transform: translateX(0);
}

.mobile-nav__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-4);
    border-bottom: 1px solid var(--color-border);
}

.mobile-nav__title {
    font-family: var(--font-serif);
    font-weight: 700;
    font-size: var(--text-lg);
}

.mobile-nav__close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--color-text);
}

.mobile-nav__menu {
    flex: 1;
    overflow-y: auto;
    padding: var(--space-4) 0;
}

.mobile-nav__list {
    display: flex;
    flex-direction: column;
}

.mobile-nav__link {
    display: block;
    padding: var(--space-3) var(--space-4);
    font-size: var(--text-lg);
    font-weight: 600;
    color: var(--color-text);
    transition: background-color var(--transition-fast);
}

.mobile-nav__link:hover {
    background-color: var(--color-background-alt);
    color: var(--color-accent);
}

.mobile-nav__footer {
    padding: var(--space-4);
    border-top: 1px solid var(--color-border);
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
}

.mobile-nav__footer-link {
    font-size: var(--text-sm);
    color: var(--color-text-secondary);
}

.mobile-nav__footer-link:hover {
    color: var(--color-accent);
}

/* =============================================================================
   MAIN CONTENT
   ========================================================================== */
.main-content {
    min-height: calc(100vh - var(--header-height) - 200px);
}

/* =============================================================================
   PAGE HEADER
   ========================================================================== */
.page-header {
    background-color: var(--color-background-alt);
    padding: var(--space-8) 0;
    border-bottom: 1px solid var(--color-border);
}

.page-header__title {
    font-family: var(--font-serif);
    font-size: var(--text-3xl);
    font-weight: 900;
    color: var(--color-primary);
    margin-bottom: var(--space-2);
}

.page-header__description {
    font-size: var(--text-lg);
    color: var(--color-text-secondary);
    max-width: 600px;
}

/* =============================================================================
   SECTION STYLES
   ========================================================================== */
.section {
    padding: var(--space-8) 0;
}

.section--alt {
    background-color: var(--color-background-alt);
}

.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(--color-primary);
}

.section__title {
    font-family: var(--font-serif);
    font-size: var(--text-xl);
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.section__link {
    font-size: var(--text-sm);
    font-weight: 600;
    color: var(--color-accent);
    display: inline-flex;
    align-items: center;
    gap: var(--space-1);
}

.section__link:hover {
    text-decoration: underline;
}

/* =============================================================================
   STORY CARDS
   ========================================================================== */
.story-grid {
    display: grid;
    gap: var(--space-6);
}

.story-grid--2 {
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
}

.story-grid--3 {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}

.story-grid--4 {
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
}

.story-card {
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
}

.story-card__image {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background-color: var(--color-background-alt);
    border-radius: 4px;
}

.story-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.story-card:hover .story-card__image img {
    transform: scale(1.03);
}

.story-card__category {
    position: absolute;
    top: var(--space-2);
    left: var(--space-2);
    font-size: var(--text-xs);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: var(--space-1) var(--space-2);
    background-color: var(--color-accent);
    color: var(--color-text-inverse);
    border-radius: 2px;
}

.story-card__content {
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
}

.story-card__title {
    font-family: var(--font-serif);
    font-size: var(--text-lg);
    font-weight: 700;
    line-height: var(--leading-tight);
    color: var(--color-primary);
}

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

.story-card__excerpt {
    font-size: var(--text-sm);
    color: var(--color-text-secondary);
    line-height: var(--leading-relaxed);
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.story-card__meta {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    font-size: var(--text-xs);
    color: var(--color-text-muted);
}

.story-card__source {
    font-weight: 600;
    color: var(--color-text-secondary);
}

.story-card__time::before {
    content: "•";
    margin-right: var(--space-2);
}

/* Featured Story Card */
.story-card--featured .story-card__image {
    aspect-ratio: 16 / 9;
}

.story-card--featured .story-card__title {
    font-size: var(--text-xl);
}

/* Hero Story */
.hero-story {
    display: grid;
    gap: var(--space-6);
    margin-bottom: var(--space-8);
}

@media (min-width: 768px) {
    .hero-story {
        grid-template-columns: 1.2fr 1fr;
        align-items: start;
    }
}

.hero-story__image {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: 4px;
    background-color: var(--color-background-alt);
}

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

.hero-story__content {
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
}

.hero-story__category {
    display: inline-block;
    font-size: var(--text-xs);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--color-accent);
}

.hero-story__title {
    font-family: var(--font-serif);
    font-size: var(--text-2xl);
    font-weight: 900;
    line-height: var(--leading-tight);
    color: var(--color-primary);
}

@media (min-width: 768px) {
    .hero-story__title {
        font-size: var(--text-3xl);
    }
}

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

.hero-story__excerpt {
    font-size: var(--text-lg);
    color: var(--color-text-secondary);
    line-height: var(--leading-relaxed);
}

.hero-story__meta {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    font-size: var(--text-sm);
    color: var(--color-text-muted);
}

.hero-story__source {
    font-weight: 600;
    color: var(--color-text-secondary);
}

/* =============================================================================
   LATEST HEADLINES LIST
   ========================================================================== */
.headlines-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
}

.headline-item {
    display: flex;
    flex-direction: column;
    gap: var(--space-1);
    padding-bottom: var(--space-4);
    border-bottom: 1px solid var(--color-border);
}

.headline-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.headline-item__title {
    font-family: var(--font-serif);
    font-size: var(--text-base);
    font-weight: 700;
    line-height: var(--leading-tight);
}

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

.headline-item__meta {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    font-size: var(--text-xs);
    color: var(--color-text-muted);
}

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

.sidebar-widget {
    background-color: var(--color-background-alt);
    padding: var(--space-5);
    border-radius: 4px;
}

.sidebar-widget__title {
    font-family: var(--font-serif);
    font-size: var(--text-lg);
    font-weight: 700;
    margin-bottom: var(--space-4);
    padding-bottom: var(--space-2);
    border-bottom: 2px solid var(--color-primary);
}

/* =============================================================================
   WEATHER WIDGET
   ========================================================================== */
.weather-widget {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
    color: var(--color-text-inverse);
    padding: var(--space-6);
    border-radius: 8px;
}

.weather-widget__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: var(--space-4);
}

.weather-widget__location {
    font-size: var(--text-lg);
    font-weight: 700;
}

.weather-widget__updated {
    font-size: var(--text-xs);
    opacity: 0.7;
}

.weather-widget__current {
    display: flex;
    align-items: center;
    gap: var(--space-4);
    margin-bottom: var(--space-6);
}

.weather-widget__temp {
    font-size: var(--text-5xl);
    font-weight: 300;
    line-height: 1;
}

.weather-widget__condition {
    flex: 1;
}

.weather-widget__condition-text {
    font-size: var(--text-lg);
    font-weight: 600;
}

.weather-widget__details {
    display: flex;
    gap: var(--space-4);
    font-size: var(--text-sm);
    opacity: 0.8;
}

.weather-widget__forecast {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: var(--space-2);
    padding-top: var(--space-4);
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.weather-forecast-day {
    text-align: center;
}

.weather-forecast-day__name {
    font-size: var(--text-xs);
    text-transform: uppercase;
    opacity: 0.8;
    margin-bottom: var(--space-1);
}

.weather-forecast-day__icon {
    width: 32px;
    height: 32px;
    margin: 0 auto var(--space-1);
}

.weather-forecast-day__temps {
    font-size: var(--text-xs);
}

.weather-forecast-day__high {
    font-weight: 600;
}

.weather-forecast-day__low {
    opacity: 0.7;
}

/* =============================================================================
   VIDEO SECTION
   ========================================================================== */
.video-grid {
    display: grid;
    gap: var(--space-6);
}

@media (min-width: 768px) {
    .video-grid {
        grid-template-columns: 1.5fr 1fr;
    }
}

.video-featured {
    position: relative;
    aspect-ratio: 16 / 9;
    background-color: var(--color-background-alt);
    border-radius: 4px;
    overflow: hidden;
}

.video-featured iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.video-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
}

.video-item {
    display: flex;
    gap: var(--space-3);
}

.video-item__thumb {
    width: 120px;
    aspect-ratio: 16 / 9;
    border-radius: 4px;
    overflow: hidden;
    background-color: var(--color-background-alt);
    flex-shrink: 0;
}

.video-item__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-item__content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: var(--space-1);
}

.video-item__title {
    font-family: var(--font-serif);
    font-size: var(--text-sm);
    font-weight: 700;
    line-height: var(--leading-tight);
}

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

.video-item__channel {
    font-size: var(--text-xs);
    color: var(--color-text-muted);
}

/* =============================================================================
   NEWSLETTER SECTION
   ========================================================================== */
.newsletter-section {
    background-color: var(--color-primary);
    color: var(--color-text-inverse);
    padding: var(--space-12) 0;
}

.newsletter-section__inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: var(--space-6);
}

@media (min-width: 768px) {
    .newsletter-section__inner {
        flex-direction: row;
        justify-content: space-between;
        text-align: left;
    }
}

.newsletter-section__title {
    font-family: var(--font-serif);
    font-size: var(--text-2xl);
    font-weight: 700;
    margin-bottom: var(--space-2);
}

.newsletter-section__text {
    font-size: var(--text-lg);
    opacity: 0.8;
}

.newsletter-form {
    width: 100%;
    max-width: 400px;
}

.newsletter-form__group {
    display: flex;
    gap: var(--space-2);
}

.newsletter-form__input {
    flex: 1;
    padding: var(--space-3) var(--space-4);
    border: none;
    border-radius: 4px;
    font-size: var(--text-base);
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--color-text-inverse);
}

.newsletter-form__input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.newsletter-form__btn {
    padding: var(--space-3) var(--space-6);
    background-color: var(--color-accent);
    color: var(--color-text-inverse);
    border: none;
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color var(--transition-fast);
}

.newsletter-form__btn:hover {
    background-color: var(--color-accent-dark);
}

.newsletter-form__note {
    font-size: var(--text-xs);
    opacity: 0.6;
    margin-top: var(--space-2);
}

.newsletter-form__note a {
    text-decoration: underline;
}

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

.site-footer__top {
    display: grid;
    gap: var(--space-10);
    margin-bottom: var(--space-10);
}

@media (min-width: 768px) {
    .site-footer__top {
        grid-template-columns: 1fr 2fr;
    }
}

.footer-brand {
    max-width: 280px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    font-family: var(--font-serif);
    font-weight: 900;
    color: var(--color-primary);
    margin-bottom: var(--space-3);
}

.footer-logo__text {
    font-size: var(--text-2xl);
}

.footer-logo__divider {
    width: 1px;
    height: 24px;
    background-color: var(--color-border);
}

.footer-logo__subtext {
    font-size: var(--text-xl);
    font-weight: 400;
    letter-spacing: 0.1em;
}

.footer-tagline {
    font-size: var(--text-sm);
    color: var(--color-text-secondary);
    margin-bottom: var(--space-4);
}

.footer-social {
    display: flex;
    gap: var(--space-3);
}

.footer-social__link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: var(--color-primary);
    color: var(--color-text-inverse);
    border-radius: 50%;
    transition: background-color var(--transition-fast), transform var(--transition-fast);
}

.footer-social__link:hover {
    background-color: var(--color-accent);
    transform: translateY(-2px);
}

.footer-nav {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-6);
}

@media (min-width: 640px) {
    .footer-nav {
        grid-template-columns: repeat(4, 1fr);
    }
}

.footer-nav__title {
    font-size: var(--text-sm);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: var(--space-4);
    color: var(--color-primary);
}

.footer-nav__list {
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
}

.footer-nav__list a {
    font-size: var(--text-sm);
    color: var(--color-text-secondary);
    transition: color var(--transition-fast);
}

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

.site-footer__bottom {
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
    padding-top: var(--space-6);
    border-top: 1px solid var(--color-border);
}

@media (min-width: 768px) {
    .site-footer__bottom {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }
}

.footer-copyright {
    font-size: var(--text-sm);
    color: var(--color-text-muted);
}

.footer-copyright p + p {
    margin-top: var(--space-1);
}

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

.footer-links a {
    font-size: var(--text-sm);
    color: var(--color-text-secondary);
}

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

/* =============================================================================
   COOKIE BANNER
   ========================================================================== */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: var(--color-primary);
    color: var(--color-text-inverse);
    padding: var(--space-4);
    z-index: 500;
    transform: translateY(100%);
    transition: transform var(--transition-normal);
}

.cookie-banner.is-visible {
    transform: translateY(0);
}

.cookie-banner__content {
    max-width: var(--container-max);
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
}

@media (min-width: 768px) {
    .cookie-banner__content {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }
}

.cookie-banner__content p {
    font-size: var(--text-sm);
}

.cookie-banner__content a {
    text-decoration: underline;
}

.cookie-banner__actions {
    display: flex;
    gap: var(--space-3);
    flex-shrink: 0;
}

.cookie-banner__btn {
    padding: var(--space-2) var(--space-4);
    border-radius: 4px;
    font-size: var(--text-sm);
    font-weight: 600;
    cursor: pointer;
    transition: background-color var(--transition-fast);
}

.cookie-banner__btn--accept {
    background-color: var(--color-accent);
    color: var(--color-text-inverse);
    border: none;
}

.cookie-banner__btn--accept:hover {
    background-color: var(--color-accent-dark);
}

.cookie-banner__btn--settings {
    background-color: transparent;
    color: var(--color-text-inverse);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.cookie-banner__btn--settings:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

/* =============================================================================
   AD SLOTS
   ========================================================================== */
.ad-slot {
    background-color: var(--color-background-alt);
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 90px;
    border-radius: 4px;
}

.ad-slot--leaderboard {
    width: 100%;
    max-width: 728px;
    margin: 0 auto var(--space-8);
    min-height: 90px;
}

.ad-slot--sidebar {
    min-height: 250px;
}

.ad-slot--in-feed {
    min-height: 250px;
    margin: var(--space-6) 0;
}

/* =============================================================================
   CONTENT PAGES
   ========================================================================== */
.content-page {
    padding: var(--space-8) 0;
}

.content-page__header {
    margin-bottom: var(--space-8);
}

.content-page__title {
    font-family: var(--font-serif);
    font-size: var(--text-3xl);
    font-weight: 900;
    margin-bottom: var(--space-4);
}

.content-page__content {
    font-size: var(--text-lg);
    line-height: var(--leading-relaxed);
    color: var(--color-text-secondary);
}

.content-page__content h2 {
    font-family: var(--font-serif);
    font-size: var(--text-2xl);
    font-weight: 700;
    color: var(--color-primary);
    margin: var(--space-8) 0 var(--space-4);
}

.content-page__content h3 {
    font-family: var(--font-serif);
    font-size: var(--text-xl);
    font-weight: 700;
    color: var(--color-primary);
    margin: var(--space-6) 0 var(--space-3);
}

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

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

.content-page__content ul {
    list-style-type: disc;
}

.content-page__content ol {
    list-style-type: decimal;
}

.content-page__content li {
    margin-bottom: var(--space-2);
}

.content-page__content a {
    color: var(--color-accent);
    text-decoration: underline;
}

.content-page__content a:hover {
    color: var(--color-accent-dark);
}

/* =============================================================================
   SEARCH PAGE
   ========================================================================== */
.search-form {
    display: flex;
    gap: var(--space-2);
    margin-bottom: var(--space-8);
}

.search-form__input {
    flex: 1;
    padding: var(--space-4);
    border: 2px solid var(--color-border);
    border-radius: 4px;
    font-size: var(--text-lg);
    transition: border-color var(--transition-fast);
}

.search-form__input:focus {
    outline: none;
    border-color: var(--color-accent);
}

.search-form__btn {
    padding: var(--space-4) var(--space-8);
    background-color: var(--color-accent);
    color: var(--color-text-inverse);
    border: none;
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color var(--transition-fast);
}

.search-form__btn:hover {
    background-color: var(--color-accent-dark);
}

.search-results__count {
    font-size: var(--text-sm);
    color: var(--color-text-muted);
    margin-bottom: var(--space-6);
}

/* =============================================================================
   CONTACT FORM
   ========================================================================== */
.contact-form {
    max-width: 600px;
}

.form-group {
    margin-bottom: var(--space-5);
}

.form-label {
    display: block;
    font-size: var(--text-sm);
    font-weight: 600;
    margin-bottom: var(--space-2);
    color: var(--color-primary);
}

.form-input,
.form-textarea,
.form-select {
    width: 100%;
    padding: var(--space-3) var(--space-4);
    border: 1px solid var(--color-border);
    border-radius: 4px;
    font-size: var(--text-base);
    transition: border-color var(--transition-fast);
}

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

.form-textarea {
    min-height: 150px;
    resize: vertical;
}

.form-btn {
    padding: var(--space-3) var(--space-8);
    background-color: var(--color-accent);
    color: var(--color-text-inverse);
    border: none;
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color var(--transition-fast);
}

.form-btn:hover {
    background-color: var(--color-accent-dark);
}

/* =============================================================================
   TWO COLUMN LAYOUT
   ========================================================================== */
.two-column {
    display: grid;
    gap: var(--space-8);
}

@media (min-width: 1024px) {
    .two-column {
        grid-template-columns: 2fr 1fr;
    }
}

/* =============================================================================
   LOADING STATES
   ========================================================================== */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

.skeleton {
    background: linear-gradient(90deg, var(--color-background-alt) 25%, var(--color-border) 50%, var(--color-background-alt) 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite;
}

@keyframes skeleton-loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

/* =============================================================================
   PRINT STYLES
   ========================================================================== */
@media print {
    .top-bar,
    .breaking-ticker,
    .site-header,
    .mobile-nav-overlay,
    .newsletter-section,
    .site-footer,
    .cookie-banner,
    .ad-slot {
        display: none !important;
    }
    
    .main-content {
        min-height: auto;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.5;
    }
    
    a {
        text-decoration: underline;
    }
    
    a[href]::after {
        content: " (" attr(href) ")";
        font-size: 90%;
        opacity: 0.7;
    }
}
