/* WakeWx - Grounded, Earthy, Humanistic Design */
/* 
 * BACKUP: Original styles saved in styles.css.backup
 * To revert: Copy styles.css.backup to styles.css
 */

:root {
    /* Earthy, Natural Color Palette - Bolder */
    --cream: #faf8f3;
    --warm-white: #fefcf8;
    --soft-beige: #f5f1e8;
    --light-sand: #ede8dd;
    
    /* Earth Tones - Deeper & Richer */
    --earth-brown: #6b5d4f;
    --warm-brown: #8b7355;
    --soft-brown: #a0826d;
    --muted-brown: #5a4d42;
    --deep-brown: #4a3f35;
    
    /* Natural Greens - Stronger */
    --sage-green: #7a8b6b;
    --moss-green: #6b7a5a;
    --soft-green: #9aab88;
    --forest-green: #4a5a3a;
    
    /* Sky Blues - More Vibrant */
    --sky-blue: #6b8fa3;
    --soft-blue: #8fa8b8;
    --dusty-blue: #5a7a8b;
    --deep-sky: #4a6a7a;
    
    /* Accent Colors - Bolder & Warmer */
    --terracotta: #b8654a;
    --warm-orange: #c97d60;
    --soft-coral: #d48a6a;
    --rust: #a8553a;
    
    /* Status Colors */
    --success-green: #6b8e5a;
    
    /* Text Colors - Higher Contrast */
    --text-dark: #2a241f;
    --text-medium: #4a3f35;
    --text-light: #6b5d4f;
    --text-muted: #7a6d5f;
    
    /* Backgrounds */
    --bg-primary: var(--cream);
    --bg-secondary: var(--warm-white);
    --bg-card: var(--warm-white);
    --bg-section: var(--soft-beige);
    
    /* Borders & Shadows - Stronger */
    --border-color: rgba(107, 93, 79, 0.35);
    --border-strong: rgba(107, 93, 79, 0.5);
    --shadow-soft: 0 3px 12px rgba(42, 36, 31, 0.12);
    --shadow-medium: 0 6px 20px rgba(42, 36, 31, 0.18);
    --shadow-strong: 0 10px 30px rgba(42, 36, 31, 0.25);
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
    background: var(--bg-primary);
    color: var(--text-dark);
    line-height: 1.7;
    overflow-x: hidden;
    font-size: 16px;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Georgia', 'Times New Roman', serif;
    font-weight: 600;
    color: var(--text-dark);
    line-height: 1.3;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
}

.container-wide {
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 40px;
}

/* Navigation - Simple & Clean */
/* Weather Alert Banner */
#weatherAlertBanner {
    position: sticky;
    top: 0;
    z-index: 1001;
    width: 100%;
}

.navbar {
    background: var(--warm-white);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 2px solid var(--border-strong);
    box-shadow: var(--shadow-medium);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 1.25rem 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--deep-brown);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-family: 'Georgia', serif;
}

.logo img {
    height: 36px;
    width: auto;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-menu a {
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.2s ease;
    position: relative;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--deep-brown);
    transition: width 0.3s ease;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: var(--deep-brown);
    font-weight: 600;
}

.nav-menu a:hover::after,
.nav-menu a.active::after {
    width: 100%;
}

/* Hero Section - Warm & Welcoming */
.hero {
    position: relative;
    min-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-section);
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.hero-background img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.85;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(250, 248, 243, 0.15), rgba(250, 248, 243, 0.4));
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 3rem 2rem;
    max-width: 700px;
}

.hero-greeting {
    font-size: 1.1rem;
    color: var(--text-dark);
    margin-bottom: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 600;
    text-shadow: 0 2px 8px rgba(255, 255, 255, 0.8);
}

.hero h1 {
    font-size: 7rem;
    font-weight: 700;
    margin-bottom: 1.25rem;;
    letter-spacing: -2px;
    text-shadow: 0 2px 12px rgba(255, 255, 255, 0.9);
    line-height: 1.1;
}

.hero-tagline {
    font-size: 3rem;
    color: var(--text-dark);
    margin-bottom: 1.75rem;
    font-weight: 500;
    font-style: italic;
    text-shadow: 0 2px 8px rgba(255, 255, 255, 0.8);
}

.hero-description {
    font-size: 1.2rem;
    color: var(--text-dark);
    line-height: 1.8;
    max-width: 600px;
    margin: 0 auto;
    font-weight: 500;
    text-shadow: 0 1px 6px rgba(255, 255, 255, 0.8);
}

/* Quick Forecast Card - Natural & Approachable */
.quick-forecast {
    padding: 5rem 0;
    background: var(--bg-primary);
    position: relative;
    overflow: hidden;
}

.quick-forecast::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('images/sunset.jpg');
    background-size: cover;
    background-position: center;
    opacity: 0.08;
    z-index: 0;
}

.quick-forecast .container {
    position: relative;
    z-index: 1;
}

.forecast-card-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 2.5rem;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.forecast-image-side {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-medium);
    border: 2px solid var(--border-strong);
    height: 100%;
    min-height: 400px;
}

.forecast-image-side img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.forecast-image-side:hover img {
    transform: scale(1.05);
}

.forecast-card {
    background: var(--bg-card);
    border-radius: 12px;
    padding: 2.5rem;
    box-shadow: var(--shadow-medium);
    border: 2px solid var(--border-strong);
    transition: all 0.3s ease;
}

.forecast-card:hover {
    box-shadow: var(--shadow-strong);
    border-color: var(--earth-brown);
    transform: translateY(-2px);
}

.forecast-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--border-strong);
}

.forecast-header h2 {
    font-size: 2rem;
    font-weight: 600;
    color: var(--deep-brown);
}

.forecast-date {
    font-size: 0.9rem;
    color: var(--text-light);
}

.forecast-body {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.temp-display {
    display: flex;
    align-items: baseline;
    gap: 1rem;  
    margin-bottom: 0.5rem;
    flex-wrap: wrap;
}

.temp-large {
    font-size: 5rem;
    font-weight: 700;
    color: var(--deep-brown);
    font-family: 'Georgia', serif;
    line-height: 1;
    flex-shrink: 0;
}

.temp-range {
    font-size: 1.35rem;
    color: var(--text-dark);
    font-weight: 500;
    align-self: center;
    white-space: nowrap;
}

.temp-range[style*="display: none"] {
    display: none !important;
}

.condition-display {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin: 1rem 0;
    min-height: 3rem;
}

.condition-icon {
    font-size: 2.5rem;
    line-height: 1;
    flex-shrink: 0;
    min-width: 3rem;
    text-align: center;
}

.forecast-summary {
    font-size: 1.15rem;
    color: var(--text-dark);
    line-height: 1.7;
    flex: 1;
    font-weight: 500;
    margin: 0;
    word-wrap: break-word;
    overflow-wrap: break-word;
    min-width: 0; /* Allows flex item to shrink below content size */
}

.forecast-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 1.5rem;
    padding-top: 1.5rem;
    border-top: 2px solid var(--border-strong);
}

.detail-item {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.detail-item .label {
    font-size: 0.85rem;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 500;
}

.detail-item .value {
    font-size: 1.15rem;
    color: var(--text-dark);
    font-weight: 600;
}

.btn-forecast-link {
    display: inline-block;
    margin-top: 1rem;
    color: var(--deep-brown);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s ease;
    font-size: 1.05rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-forecast-link:hover {
    color: var(--forest-green);
}

/* Radar Snapshot - Subtle & Natural */
.radar-snapshot {
    padding: 5rem 0;
    background: var(--bg-section);
    position: relative;
    overflow: hidden;
}

.radar-snapshot::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 40%;
    height: 100%;
    background-image: url('images/sunset.jpg');
    background-size: cover;
    background-position: center;
    opacity: 0.1;
    z-index: 0;
}

#windyRadar {
    width: 100%;
    height: 100%;
    border: 0;

    /* Crops bottom ~60px (timeline area) */
    clip-path: inset(0px 0px 100px 0px);
}


.radar-snapshot .container {
    position: relative;
    z-index: 1;
}

.radar-snapshot h2 {
    margin-bottom: 2rem;
    text-align: center;
    font-size: 2.5rem;
    font-weight: 600;
    color: var(--deep-brown);
}

.radar-preview {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-medium);
    border: 2px solid var(--border-strong);
    background: var(--bg-card);
    transition: all 0.3s ease;
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
}

.radar-preview:hover {
    box-shadow: var(--shadow-strong);
    border-color: var(--deep-sky);
    transform: translateY(-2px);
}

.radar-image-container {
    position: relative;
    width: 100%;
    height: 500px;
    overflow: hidden;
    background: #1a1a2e;
    display: flex;
    align-items: center;
    justify-content: center;
}

.radar-image-wrapper {
    position: absolute;
    width: 100%;
    height: 100%;
    overflow: hidden;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #1a1a2e;
    z-index: 0;
}

.radar-image-wrapper iframe {
    width: 100%;
    height: 100%;
    border: none;
    display: block;
    background: #1a1a2e;
}

.radar-image-container img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center center;
    display: block;
    background: #1a1a2e;
    opacity: 1;
    transition: opacity 0.3s ease;
}

.radar-image-container img:not([src]),
.radar-image-container img[src=""] {
    opacity: 0;
}

.radar-placeholder {
    width: 100%;
    height: 100%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.radar-placeholder svg {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
}

.radar-sweep {
    transform-origin: 400px 250px;
    animation: radarSweep 4s linear infinite;
}

@keyframes radarSweep {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.radar-placeholder-text {
    position: relative;
    z-index: 2;
    text-align: center;
    color: rgba(255, 255, 255, 0.8);
}

.radar-placeholder-text p {
    margin: 0.5rem 0;
    font-size: 1.1rem;
    font-weight: 500;
}

.radar-placeholder-text .radar-note {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
    font-weight: 400;
}

.radar-image-container img.error {
    opacity: 0.3;
    filter: none;
}

.radar-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent);
    padding: 1.5rem;
    z-index: 2;
}

.radar-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: white;
    font-size: 0.9rem;
}

.radar-bottom-bar {
    margin-top: -10px; /* optional, adjust for spacing */
    background: #0F1E45; /* Wake Deep Blue */
    box-shadow: 0 -2px 10px rgba(76, 169, 244, 0.15); /* WakeBlue glow */
    padding: 20px 0;
    display: flex;
    justify-content: center;   /* centers horizontally */
    align-items: center;        /* centers vertically */
    gap: 30px;                  /* space between text + button */
    border-radius: 0 0 20px 20px; /* match your card rounding */
}

.radar-location {
    font-weight: 700;
    font-size: 1.3rem;
    color: #EAF3FF;
    letter-spacing: 0.5px;
    padding: 10px 20px;
}

.btn.btn-outline {
    margin: 0; /* remove old positioning */
}



.radar-update {
    font-size: 0.85rem;
    opacity: 0.9;
}

.radar-preview .btn {
    position: absolute;
    bottom: 20px;
    right: 20px;
    z-index: 3;
    background: rgba(107, 93, 79, 0.9);
    backdrop-filter: blur(10px);
    border-color: rgba(255, 255, 255, 0.3);
    color: white;
}

.radar-preview .btn:hover {
    background: var(--deep-brown);
    border-color: var(--deep-brown);
    color: white;
}

.btn {
    padding: 0.875rem 1.75rem;
    border: 2px solid var(--deep-brown);
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    transition: all 0.2s ease;
    background: transparent;
    color: var(--deep-brown);
}

.btn:hover {
    background: var(--deep-brown);
    color: var(--warm-white);
    transform: translateY(-1px);
    box-shadow: var(--shadow-medium);
}

.btn-outline {
    background: transparent;
    color: var(--moss-green);
    border-color: var(--moss-green);
}

.btn-outline:hover {
    background: var(--moss-green);
    color: var(--warm-white);
}

/* Why WakeWx - Human & Approachable */
.why-wakewx {
    padding: 5rem 0;
    background: var(--bg-primary);
    position: relative;
    overflow: hidden;
}

.why-wakewx::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 35%;
    height: 100%;
    background-image: url('images/sunset.jpg');
    background-size: cover;
    background-position: center;
    opacity: 0.08;
    z-index: 0;
}

.why-wakewx .container {
    position: relative;
    z-index: 1;
}

.section-intro {
    text-align: center;
    margin-bottom: 3.5rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.why-wakewx h2 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--deep-brown);
}

.section-subtitle {
    font-size: 1.25rem;
    color: var(--text-dark);
    font-weight: 500;
    line-height: 1.7;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

.feature-card {
    background: var(--bg-card);
    padding: 0;
    border-radius: 12px;
    border: 2px solid var(--border-strong);
    box-shadow: var(--shadow-medium);
    transition: all 0.3s ease;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.feature-card:hover {
    box-shadow: var(--shadow-strong);
    transform: translateY(-4px);
    border-color: var(--earth-brown);
}

.feature-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    position: relative;
}

.feature-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.feature-card:hover .feature-image img {
    transform: scale(1.1);
}

.feature-card h3 {
    font-size: 1.75rem;
    font-weight: 600;
    margin-bottom: 1.25rem;
    color: var(--deep-brown);
    padding: 0 2.5rem;
    padding-top: 2rem;
}

.feature-card p {
    padding: 0 2.5rem;
    padding-bottom: 2.5rem;
}


/* Latest Updates - Clean & Readable */
.latest-updates {
    padding: 5rem 0;
    background: var(--bg-section);
    position: relative;
    overflow: hidden;
}

.latest-updates::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 30%;
    height: 100%;
    background-image: url('images/sunset.jpg');
    background-size: cover;
    background-position: center;
    opacity: 0.1;
    z-index: 0;
}

.latest-updates .container {
    position: relative;
    z-index: 1;
}

.latest-updates h2 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--deep-brown);
}

.updates-list {
    display: grid;
    gap: 2rem;
    max-width: 1000px;
    margin: 3.5rem auto 0;
}

.update-card {
    background: var(--bg-card);
    border-radius: 12px;
    border: 2px solid var(--border-strong);
    border-left: 4px solid var(--forest-green);
    box-shadow: var(--shadow-medium);
    transition: all 0.3s ease;
    overflow: hidden;
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 0;
}

.update-card:nth-child(even) {
    border-left-color: var(--deep-sky);
    grid-template-columns: 1fr 300px;
}

.update-card:nth-child(even) .update-image {
    order: 2;
}

.update-card:nth-child(even) .update-content {
    order: 1;
}

.update-card:hover {
    box-shadow: var(--shadow-strong);
    transform: translateX(6px);
    border-color: var(--earth-brown);
}

.update-image {
    width: 100%;
    height: 100%;
    min-height: 200px;
    overflow: hidden;
    position: relative;
}

.update-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.update-card:hover .update-image img {
    transform: scale(1.1);
}

.update-content {
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
}

.update-content .update-date {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.update-content h3 {
    font-size: 1.75rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--deep-brown);
}

.update-content p {
    color: var(--text-dark);
    margin-bottom: 1.25rem;
    line-height: 1.8;
    font-weight: 400;
    font-size: 1.05rem;
    flex: 1;
}

.read-more {
    color: var(--deep-brown);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s ease;
    display: inline-block;
    font-size: 1rem;
}

.read-more:hover {
    color: var(--forest-green);
}

/* Footer - Simple & Grounded */
.footer {
    background: var(--warm-white);
    border-top: 2px solid var(--border-strong);
    padding: 3.5rem 0 2rem;
    margin-top: 4rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2.5rem;
    margin-bottom: 2.5rem;
}

.footer-section h4 {
    color: var(--deep-brown);
    margin-bottom: 1rem;
    font-size: 1.2rem;
    font-weight: 600;
    font-family: 'Georgia', serif;
}

.footer-section p {
    color: var(--text-medium);
    line-height: 1.7;
}

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

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: var(--text-medium);
    text-decoration: none;
    transition: color 0.2s ease;
    font-size: 0.95rem;
}

.footer-section a:hover {
    color: var(--deep-brown);
    font-weight: 500;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
    color: var(--text-light);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    font-size: 0.9rem;
}

.footer-bottom a {
    color: var(--deep-brown);
    text-decoration: none;
    font-weight: 500;
}

.footer-logo {
    height: 50px;
    width: auto;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.footer-logo:hover {
    opacity: 1;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-menu {
        flex-direction: column;
        gap: 1rem;
        display: none; /* You may want to add a mobile menu toggle */
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .hero-tagline {
        font-size: 1.25rem;
    }
    
    .temp-large {
        font-size: 3.5rem;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .forecast-details {
        grid-template-columns: 1fr;
    }
    
    .container,
    .container-wide {
        padding: 0 20px;
    }
    
    .forecast-card-wrapper {
        grid-template-columns: 1fr;
    }
    
    .forecast-image-side {
        min-height: 250px;
        order: 2;
    }
    
    .forecast-card {
        order: 1;
        padding: 2rem;
    }
    
    .feature-card {
        padding: 0;
    }
    
    .feature-card h3,
    .feature-card p {
        padding: 0 2rem;
    }
    
    .feature-card h3 {
        padding-top: 2rem;
    }
    
    .feature-card p {
        padding-bottom: 2rem;
    }
    
    .update-card {
        grid-template-columns: 1fr;
    }
    
    .update-card:nth-child(even) {
        grid-template-columns: 1fr;
    }
    
    .update-card:nth-child(even) .update-image,
    .update-card:nth-child(even) .update-content {
        order: 0;
    }
    
    .update-image {
        min-height: 200px;
    }
    
    .update-content {
        padding: 2rem;
    }
    
    .radar-image-container {
        height: 350px;
    }
    
    .radar-preview .btn {
        position: relative;
        bottom: auto;
        right: auto;
        margin: 1rem auto 0;
        display: block;
        width: fit-content;
    }
    
    .radar-info {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .quick-forecast::before,
    .radar-snapshot::before,
    .why-wakewx::before,
    .latest-updates::after {
        display: none;
    }
}

/* Keep existing styles for other pages (forecast, radar, etc.) */
/* These will be updated if you decide to redesign the entire site */

/* Forecast Page Styles */
.forecast-tabs {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 1rem;
    overflow-x: auto;
}

.tab-button {
    padding: 0.75rem 1.5rem;
    background: transparent;
    border: none;
    color: var(--text-medium);
    font-size: 1rem;
    font-weight: 400;
    cursor: pointer;
    position: relative;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.tab-button::after {
    content: '';
    position: absolute;
    bottom: -1rem;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--earth-brown);
    transition: width 0.3s ease;
}

.tab-button.active {
    color: var(--earth-brown);
}

.tab-button.active::after {
    width: 100%;
}

.tab-button:hover {
    color: var(--earth-brown);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

.conditions-card {
    background: var(--bg-card);
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 2rem;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-soft);
}

/* Fix for 7-day outlook overflow */
#7day .conditions-card {
    overflow: visible;
}

.forecast-day-item {
    position: relative;
    overflow: visible;
}

.forecast-day-item .day-commentary {
    overflow: visible;
}

.hourly-forecast {
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    padding: 1rem 0;
    scroll-behavior: smooth;
}

.hourly-item {
    min-width: 100px;
    text-align: center;
    padding: 1rem;
    background: var(--bg-card);
    border-radius: 8px;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.hourly-item:hover {
    box-shadow: var(--shadow-soft);
}

.confidence-meter {
    margin-top: 2rem;
    padding: 1.5rem;
    background: var(--bg-card);
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

.meter-bar {
    height: 24px;
    background: var(--bg-section);
    border-radius: 12px;
    overflow: hidden;
    margin-top: 1rem;
    position: relative;
}

.meter-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--sage-green), var(--sky-blue));
    border-radius: 12px;
    transition: width 1s ease;
}

/* Radar Page */
.map-container {
    background: var(--bg-card);
    border-radius: 12px;
    padding: 1rem;
    margin-bottom: 2rem;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-soft);
}

.map-placeholder {
    width: 100%;
    height: 500px;
    background: var(--bg-section);
    border-radius: 8px;
    position: relative;
    overflow: hidden;
}

.storm-tracker {
    background: var(--bg-card);
    padding: 2rem;
    border-radius: 12px;
    border: 2px solid var(--terracotta);
    margin-top: 2rem;
}

/* Alerts Page */
.alert-card {
    background: var(--bg-card);
    padding: 2rem;
    border-radius: 12px;
    margin-bottom: 1.5rem;
    border-left: 3px solid var(--terracotta);
    box-shadow: var(--shadow-soft);
}

.alert-card.warning {
    border-left-color: var(--warm-orange);
}

.alert-card.info {
    border-left-color: var(--sky-blue);
}

/* School Closings */
.probability-display {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.probability-card {
    background: var(--bg-card);
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-soft);
    transition: all 0.3s ease;
}

.probability-card:hover {
    box-shadow: var(--shadow-medium);
}

.probability-value {
    font-size: 3rem;
    font-weight: 300;
    margin: 1rem 0;
    font-family: 'Georgia', serif;
    color: var(--earth-brown);
}

/* Blog */
.blog-post {
    background: var(--bg-card);
    padding: 2rem;
    border-radius: 12px;
    margin-bottom: 2rem;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-soft);
    transition: all 0.3s ease;
}

.blog-post:hover {
    box-shadow: var(--shadow-medium);
}

/* Contact Form */
.contact-form {
    max-width: 600px;
    margin: 0 auto;
    background: var(--bg-card);
    padding: 2.5rem;
    border-radius: 12px;
    box-shadow: var(--shadow-medium);
    border: 1px solid var(--border-color);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
    font-weight: 500;
    font-size: 0.95rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    color: var(--text-dark);
    font-size: 1rem;
    transition: all 0.3s ease;
    font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--earth-brown);
    box-shadow: 0 0 0 3px rgba(139, 115, 85, 0.1);
}

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

.btn-primary {
    background: var(--earth-brown);
    color: var(--warm-white);
    border-color: var(--earth-brown);
}

.btn-primary:hover {
    background: var(--muted-brown);
    border-color: var(--muted-brown);
}
