/* =====================================================
   WX Aeroccidente - Unified Responsive Stylesheet
   Mobile-First Design for Aviation Weather Data
   ===================================================== */

/* CSS Custom Properties (Variables) */
:root {
    /* Colors */
    --primary-color: #0f172a;
    --secondary-color: #3b82f6;
    --background-color: #f8fafc;
    --surface-color: #ffffff;
    --text-main: #1e293b;
    --text-muted: #64748b;
    --border-color: #e2e8f0;
    --hover-color: #f1f5f9;

    /* Flight Category Colors */
    --vfr-color: #22c55e;
    --mvfr-color: #3b82f6;
    --ifr-color: #ef4444;
    --lifr-color: #dc2626;

    /* Typography */
    --font-ui: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-mono: 'Courier New', Courier, monospace;

    /* Spacing */
    --spacing-xs: 4px;
    --spacing-sm: 8px;
    --spacing-md: 16px;
    --spacing-lg: 24px;

    /* Border Radius */
    --radius-sm: 4px;
    --radius-md: 8px;

    /* Shadows */
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* CSS Reset */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-ui);
    background-color: var(--background-color);
    color: var(--text-main);
    line-height: 1.5;
    min-height: 100vh;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.3;
    color: var(--primary-color);
    text-align: center;
}

h1 { font-size: 1.5rem; margin-bottom: var(--spacing-md); }
h2 { font-size: 1.25rem; margin: var(--spacing-md) 0; text-align: center; }
h3 { font-size: 1.1rem; margin: var(--spacing-sm) 0; }

p { margin-bottom: var(--spacing-sm); }

a {
    color: var(--secondary-color);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* =====================================================
   Header & Navigation
   ===================================================== */
.header {
    background: linear-gradient(135deg, var(--primary-color), #1e3a5f);
    color: var(--surface-color);
    padding: var(--spacing-sm);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow-md);
    width: 100%;
}

/* Unified container class for consistent width across all sections */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 var(--spacing-sm);
    width: 100%;
}

.header-content {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--spacing-sm);
    width: 100%;
}

.header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: 1400px;
}

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    max-width: 120px;
    height: auto;
    border-radius: var(--radius-sm);
}

.menu-toggle {
    display: block !important;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: var(--surface-color);
    font-size: 1.5rem;
    cursor: pointer;
    padding: var(--spacing-sm);
    min-width: 44px;
    min-height: 44px;
    border-radius: var(--radius-sm);
    transition: background-color 0.2s;
    z-index: 1001;
    position: relative;
}

.menu-toggle:hover {
    background: rgba(255, 255, 255, 0.2);
}

.menu-toggle .icon-open,
.menu-toggle .icon-close {
    display: none;
}

.menu-toggle .icon-open { display: block; }
.menu-toggle.active .icon-open { display: none; }
.menu-toggle.active .icon-close { display: block; }

.nav-menu {
    display: none !important;
    flex-direction: column;
    width: 100%;
    gap: var(--spacing-xs);
    text-align: center;
}

.nav-menu.active {
    display: flex !important;
}

.nav-menu a {
    color: var(--surface-color);
    padding: var(--spacing-sm) var(--spacing-md);
    border-radius: var(--radius-sm);
    font-size: 0.95rem;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s;
}

.nav-menu a:hover {
    background: rgba(255, 255, 255, 0.1);
    text-decoration: none;
}

.nav-menu a.active {
    background: var(--secondary-color);
    color: white;
}

.page-title {
    display: block;
    color: var(--surface-color);
    font-size: 1.25rem;
    text-align: center;
    margin: 0;
}

/* =====================================================
   Main Content Container
   ===================================================== */
.main-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: var(--spacing-sm);
    width: 100%;
}

/* =====================================================
   Grid Layout for Regions
   ===================================================== */
.grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-lg);
    margin-top: var(--spacing-md);
}

.region-title {
    background: linear-gradient(135deg, var(--primary-color), #1e3a5f);
    color: var(--surface-color);
    padding: var(--spacing-sm) var(--spacing-md);
    border-radius: var(--radius-md);
    margin-bottom: var(--spacing-sm);
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.region-container {
    background-color: var(--surface-color);
    border-radius: var(--radius-md);
    padding: var(--spacing-sm);
    box-shadow: var(--shadow-sm);
    margin-bottom: var(--spacing-md);
}

/* =====================================================
   Responsive Table Container
   ===================================================== */
.table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin-bottom: var(--spacing-md);
}

/* =====================================================
   Table Styles
   ===================================================== */
table {
    width: 100%;
    border-collapse: collapse;
    background-color: var(--surface-color);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    min-width: 300px;
}

thead {
    background-color: var(--primary-color);
    color: var(--surface-color);
}

th {
    padding: var(--spacing-sm) var(--spacing-md);
    text-align: center;
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

td {
    padding: var(--spacing-sm) var(--spacing-md);
    border-bottom: 1px solid var(--border-color);
    text-align: center;
    font-size: 0.9rem;
}

tbody tr {
    transition: background-color 0.15s;
}

tbody tr:hover {
    background-color: var(--hover-color);
}

tbody tr:nth-child(even) {
    background-color: #f8fafc;
}

tbody tr:nth-child(even):hover {
    background-color: var(--hover-color);
}

/* Table cell classes */
.tg-0pky, .tg-baqh {
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.8rem;
}

.tg-0lax {
    font-family: var(--font-mono);
    font-size: 0.85rem;
}

/* =====================================================
   METAR/TAF Display Styles
   ===================================================== */
.metar-display {
    background-color: #1e293b;
    color: #e2e8f0;
    padding: var(--spacing-md);
    border-radius: var(--radius-md);
    font-family: var(--font-mono);
    font-size: 0.85rem;
    line-height: 1.8;
    overflow-x: auto;
    white-space: pre-wrap;
    word-break: break-all;
    margin: var(--spacing-md) 0;
}

.taf-display {
    background-color: #0f172a;
    color: #fbbf24;
    padding: var(--spacing-md);
    border-radius: var(--radius-md);
    font-family: var(--font-mono);
    font-size: 0.8rem;
    line-height: 1.8;
    overflow-x: auto;
 /*   white-space: pre-wrap;*/
 /*   word-break: break-all;*/
    margin-top: var(--spacing-sm);
}

/* =====================================================
   Flight Category Badge Styles
   ===================================================== */
.flight-category {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 4px;
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
}

.flight-category.vfr {
    background-color: #22c55e;
    color: #ffffff;
}

.flight-category.mvfr {
    background-color: #3b82f6;
    color: #ffffff;
}

.flight-category.ifr {
    background-color: #ef4444;
    color: #ffffff;
}

.flight-category.lifr {
    background-color: #dc2626;
    color: #ffffff;
}

/* =====================================================
   Button Styles
   ===================================================== */
.btn {
    display: inline-block;
    padding: 10px 20px;
    background-color: var(--secondary-color);
    color: white;
    border-radius: var(--radius-sm);
    text-decoration: none;
    font-weight: 500;
    transition: background-color 0.2s;
}

.btn:hover {
    background-color: #2563eb;
    text-decoration: none;
}

/* =====================================================
   Footer
   ===================================================== */
.footer, .pied {
    background-color: var(--primary-color);
    color: var(--surface-color);
    padding: var(--spacing-lg) var(--spacing-md);
    text-align: center;
    margin-top: var(--spacing-lg);
}

.footer p, .pied p {
    margin: 0;
    font-size: 0.85rem;
    opacity: 0.9;
}

/* =====================================================
   MEDIA QUERIES - Tablet (≥768px)
   ===================================================== */
@media screen and (min-width: 768px) {
    .header-content {
        flex-direction: row;
        justify-content: space-between;
        flex-wrap: wrap;
    }

    .header-top {
        width: auto;
    }

    .menu-toggle {
        display: none !important;
    }

    .nav-menu {
        display: flex !important;
        flex-direction: row;
        width: auto;
        gap: var(--spacing-xs);
    }

    .nav-menu a {
        padding: var(--spacing-sm) var(--spacing-md);
    }

    .page-title {
        display: none;
    }

    h1 { font-size: 1.75rem; }
    h2 { font-size: 1.4rem; }

    .grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* =====================================================
   MEDIA QUERIES - Desktop (≥1024px)
   ===================================================== */
@media screen and (min-width: 1024px) {
    :root {
        --spacing-md: 20px;
        --spacing-lg: 30px;
    }

    h1 { font-size: 2rem; }

    .grid {
        grid-template-columns: repeat(3, 1fr);
    }

    table {
        font-size: 0.95rem;
    }

    th, td {
        padding: var(--spacing-sm) var(--spacing-md);
    }
}

/* =====================================================
   MEDIA QUERIES - Large Desktop (≥1280px)
   ===================================================== */
@media screen and (min-width: 1280px) {
    .grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* =====================================================
   Print Styles
   ===================================================== */
@media print {
    .header {
        position: relative;
    }

    .menu-toggle, .nav-menu {
        display: none !important;
    }

    table {
        box-shadow: none;
        border: 1px solid #ccc;
    }

    body {
        background: white;
    }
}

/* =====================================================
   Accessibility & Performance
   ===================================================== */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }

    html {
        scroll-behavior: auto;
    }
}

a:focus, button:focus {
    outline: 2px solid var(--secondary-color);
    outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    :root {
        --border-color: #000;
    }

    table {
        border-width: 2px;
    }
}

/* Legacy class support for backward compatibility */
.sizq, .scen, .sder, .iizq, .ider, .region-container {
    margin-bottom: var(--spacing-lg);
    background-color: var(--surface-color);
    border-radius: var(--radius-md);
    padding: var(--spacing-md);
    box-shadow: var(--shadow-sm);
}

/* =====================================================
   Region Title Styles - Consistent across all regions
   ===================================================== */
.region-title {
    background: linear-gradient(135deg, #1e3a5f 0%, #0f172a 100%);
    color: #ffffff;
    padding: 12px 20px;
    margin: 20px 0 15px 0;
    border-radius: 6px;
    font-size: 1.1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-align: left;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
}

/* Alternative region title style for consistency */
.scen, .sder, .iizq, .ider {
    background: linear-gradient(135deg, #1e3a5f 0%, #0f172a 100%);
    color: #ffffff;
    padding: 10px 15px;
    margin: 20px 0 10px 0;
    border-radius: 4px;
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.title {
    color: var(--surface-color);
    text-align: center;
    margin: var(--spacing-sm) 0;
}

/* =====================================================
   Decoded METAR Display Styles
   ===================================================== */
.decoded-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: var(--spacing-md);
    margin: var(--spacing-md) 0;
}

.decoded-item {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-radius: var(--radius-md);
    padding: var(--spacing-md);
    border: 1px solid var(--border-color);
    transition: transform 0.2s, box-shadow 0.2s;
}

.decoded-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.decoded-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-muted);
    margin-bottom: var(--spacing-xs);
    font-weight: 600;
}

.decoded-value {
    font-size: 0.95rem;
    color: var(--text-main);
    font-weight: 500;
    line-height: 1.4;
}

.decoded-value small {
    color: var(--text-muted);
    font-size: 0.85rem;
}

.decoded-value .gust {
    color: #dc2626;
    font-weight: 600;
}

.decoded-value .cavok {
    display: inline-block;
    background: #22c55e;
    color: white;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-left: 4px;
}

.cloud-tag, .weather-tag {
    display: inline-block;
    background: #e2e8f0;
    color: var(--text-main);
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 0.8rem;
    margin: 2px;
}

.weather-tag {
    background: #3b82f6;
    color: white;
}

/* Tablet and up - 3 columns */
@media screen and (min-width: 768px) {
    .decoded-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Desktop - 6 columns */
@media screen and (min-width: 1024px) {
    .decoded-grid {
        grid-template-columns: repeat(6, 1fr);
    }
}

/* =====================================================
   Legacy Page Support (sta.php, rut.php, route.php)
   ===================================================== */

/* Simple grid for station selection pages */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    grid-gap: 1rem;
    justify-content: center;
    padding: var(--spacing-md);
}

.grid > div {
    background: var(--surface-color);
    padding: 1.2rem;
    border-radius: var(--radius-md);
    gap: 15px 10px;
    box-shadow: var(--shadow-sm);
    transition: transform 0.2s, box-shadow 0.2s;
}

.grid > div:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* Header right navigation (legacy support) */
.header-right {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-xs);
    justify-content: center;
}

.header-right a {
    color: var(--surface-color);
    text-align: center;
    padding: var(--spacing-sm) var(--spacing-md);
    text-decoration: none;
    font-size: 1rem;
    line-height: 1.5;
    border-radius: var(--radius-sm);
    opacity: 0.9;
    transition: background-color 0.2s, opacity 0.2s;
}

.header-right a:hover {
    background-color: rgba(255, 255, 255, 0.2);
    opacity: 1;
    text-decoration: none;
}

.header-right a.active {
    background-color: var(--secondary-color);
    color: white;
    opacity: 1;
}

/* Title section (legacy support) */
.header .title {
    width: 100%;
    text-align: center;
    margin-top: var(--spacing-sm);
}

.header .title h1 {
    color: var(--surface-color);
    margin: var(--spacing-sm) 0;
    font-size: 1.25rem;
}

/* =====================================================
   Satellite Image Pages (anim.php, sat1-4.php)
   ===================================================== */

/* Satellite image container */
.satellite-container {
    max-width: 100%;
    overflow: hidden;
    margin: 0;
    padding: var(--spacing-sm);
}

.satellite-container figure {
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    overflow: hidden;
}

.satellite-container figure img {
    display: block;
    width: 100%;
    height: auto;
    max-width: 100%;
}

/* Wind map container */
.wind-container {
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    padding: var(--spacing-sm);
}

.wind-container #windy {
    width: 100%;
    height: 60vh;
    min-height: 400px;
    border-radius: var(--radius-md);
    overflow: hidden;
}

/* Station selection title */
.station-select-title {
    text-align: center;
    color: var(--primary-color);
    margin: var(--spacing-md) 0;
    font-size: 1.5rem;
}

/* =====================================================
   Responsive Adjustments
   ===================================================== */

/* Mobile-first responsive adjustments */
@media screen and (max-width: 600px) {
    .grid {
        grid-template-columns: 1fr;
        padding: var(--spacing-sm);
    }

    .grid > div {
        padding: var(--spacing-md);
    }

    .header-right {
        flex-direction: column;
        width: 100%;
    }

    .header-right a {
        width: 100%;
        text-align: center;
        padding: var(--spacing-md);
        font-size: 1.1rem;
    }

    .wind-container #windy {
        height: 50vh;
        min-height: 350px;
    }

    .satellite-container figure {
        width: 100%;
    }
}

@media screen and (min-width: 601px) and (max-width: 900px) {
    .grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .wind-container #windy {
        height: 55vh;
    }
}

/* =====================================================
   Route Page Styles (rut.php & route.php)
   ===================================================== */

/* Route Form Container */
.route-form-container {
    background-color: var(--surface-color);
    border-radius: var(--radius-md);
    padding: var(--spacing-lg);
    box-shadow: var(--shadow-sm);
    margin: var(--spacing-md) 0;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.route-form-container h2 {
    color: var(--primary-color);
    margin-bottom: var(--spacing-md);
    text-align: center;
}

.route-instructions {
    text-align: center;
    color: var(--text-muted);
    margin-bottom: var(--spacing-lg);
    font-size: 0.95rem;
}

/* Route Form */
.route-form {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.form-section {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-radius: var(--radius-md);
    padding: var(--spacing-md);
    border: 1px solid var(--border-color);
}

.form-section h3 {
    margin-bottom: var(--spacing-sm);
    color: var(--primary-color);
    font-size: 1rem;
}

.form-section select {
    width: 100%;
    padding: 12px 16px;
    font-size: 1rem;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-sm);
    background-color: var(--surface-color);
    color: var(--text-main);
    cursor: pointer;
    transition: border-color 0.2s, box-shadow 0.2s;
    min-height: 48px;
}

.form-section select:focus {
    outline: none;
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
}

.form-section select:hover {
    border-color: var(--secondary-color);
}

/* Form Actions */
.form-actions {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
    margin-top: var(--spacing-md);
}

@media screen and (min-width: 600px) {
    .form-actions {
        flex-direction: row;
        justify-content: center;
    }
}

/* Primary Button */
.btn-primary {
    display: inline-block;
    padding: 14px 28px;
    background: linear-gradient(135deg, var(--secondary-color), #2563eb);
    color: white;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    text-align: center;
    transition: background-color 0.2s, transform 0.2s, box-shadow 0.2s;
    min-height: 48px;
    min-width: 200px;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
    text-decoration: none;
}

.btn-primary:active {
    transform: translateY(0);
}

/* Secondary Button */
.btn-secondary {
    display: inline-block;
    padding: 14px 28px;
    background-color: var(--surface-color);
    color: var(--text-main);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    text-decoration: none;
    text-align: center;
    transition: background-color 0.2s, border-color 0.2s;
    min-height: 48px;
    min-width: 150px;
}

.btn-secondary:hover {
    background-color: var(--hover-color);
    border-color: var(--secondary-color);
    text-decoration: none;
}

/* Route Header */
.route-header {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
    background: linear-gradient(135deg, var(--primary-color), #1e3a5f);
    color: var(--surface-color);
    padding: var(--spacing-lg);
    border-radius: var(--radius-md);
    margin-bottom: var(--spacing-lg);
}

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

.route-info h2 {
    color: var(--surface-color);
    margin-bottom: var(--spacing-sm);
}

.route-stations {
    font-size: 1rem;
    margin-bottom: var(--spacing-xs);
}

.route-time {
    font-size: 0.85rem;
    opacity: 0.9;
}

.route-actions {
    display: flex;
    gap: var(--spacing-sm);
}

/* Route Grid */
.route-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-lg);
    margin-top: var(--spacing-md);
}

@media screen and (min-width: 768px) {
    .route-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media screen and (min-width: 1200px) {
    .route-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Route Card */
.route-card {
    background-color: var(--surface-color);
    border-radius: var(--radius-md);
    padding: var(--spacing-lg);
    box-shadow: var(--shadow-sm);
    border-left: 5px solid var(--border-color);
    transition: transform 0.2s, box-shadow 0.2s;
}

.route-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* Flight Category Border Colors */
.route-card.category-vfr {
    border-left-color: var(--vfr-color);
}

.route-card.category-mvfr {
    border-left-color: var(--mvfr-color);
}

.route-card.category-ifr {
    border-left-color: var(--ifr-color);
}

.route-card.category-lifr {
    border-left-color: var(--lifr-color);
}

.route-card h3 {
    color: var(--primary-color);
    margin-bottom: var(--spacing-sm);
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.route-card .station-name {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: var(--spacing-md);
}

/* Category Badge */
.category-badge {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: var(--spacing-sm) var(--spacing-md);
    border-radius: var(--radius-sm);
    margin-bottom: var(--spacing-md);
    min-width: 80px;
}

.category-label {
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.9;
    color: rgba(255, 255, 255, 0.9);
}

.category-value {
    font-size: 1.25rem;
    font-weight: 700;
    color: white;
}

/* Station Conditions */
.station-conditions {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-md);
    padding: var(--spacing-md);
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-radius: var(--radius-sm);
}

@media screen and (min-width: 480px) {
    .station-conditions {
        grid-template-columns: repeat(3, 1fr);
    }
}

.condition-item {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.condition-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-muted);
    font-weight: 600;
}

.condition-value {
    font-size: 0.95rem;
    color: var(--text-main);
    font-weight: 500;
}

/* METAR Raw Display */
.metar-raw {
    background-color: #1e293b;
    color: #e2e8f0;
    padding: var(--spacing-md);
    border-radius: var(--radius-sm);
    font-family: var(--font-mono);
    font-size: 0.8rem;
    line-height: 1.6;
    margin-bottom: var(--spacing-md);
    overflow-x: auto;
    white-space: pre-wrap;
    word-break: break-all;
}

.metar-raw strong {
    color: #fbbf24;
    display: block;
    margin-bottom: var(--spacing-xs);
}

/* TAF Section */
.taf-section {
    background-color: #0f172a;
    color: #fbbf24;
    padding: var(--spacing-md);
    border-radius: var(--radius-sm);
    font-family: var(--font-mono);
    font-size: 0.75rem;
    line-height: 1.6;
    overflow-x: auto;
    white-space: pre-wrap;
    word-break: break-all;
}

.taf-section strong {
    display: block;
    margin-bottom: var(--spacing-xs);
    color: #fbbf24;
}

.taf-section code {
    display: block;
    margin-bottom: var(--spacing-sm);
}

/* No Data Message */
.no-data {
    color: var(--text-muted);
    font-style: italic;
    text-align: center;
    padding: var(--spacing-lg);
}

/* Route Error */
.route-error {
    text-align: center;
    padding: var(--spacing-xl);
    background-color: var(--surface-color);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
}

.route-error h2 {
    color: #ef4444;
    margin-bottom: var(--spacing-md);
}

.route-error p {
    color: var(--text-muted);
    margin-bottom: var(--spacing-lg);
}

/* =====================================================
   Satellite Image Pages (anim.php, sat1-4.php)
   ===================================================== */

/* Satellite Navigation */
.sat-nav {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: var(--spacing-md);
    margin: var(--spacing-md) 0;
    flex-wrap: wrap;
}

.sat-page-info {
    font-size: 0.9rem;
    color: var(--text-muted);
    padding: var(--spacing-sm) var(--spacing-md);
    background: var(--hover-color);
    border-radius: var(--radius-sm);
}

/* Satellite Card */
.sat-card {
    background-color: var(--surface-color);
    border-radius: var(--radius-md);
    padding: var(--spacing-md);
    box-shadow: var(--shadow-sm);
    transition: transform 0.2s, box-shadow 0.2s;
    text-align: center;
}

.sat-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.sat-card h3 {
    color: var(--primary-color);
    font-size: 0.95rem;
    margin-bottom: var(--spacing-sm);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.sat-card figure {
    margin: var(--spacing-sm) 0;
    overflow: hidden;
    border-radius: var(--radius-sm);
}

.sat-card figure img {
    display: block;
    width: 100%;
    height: auto;
    max-width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: var(--radius-sm);
}

.sat-card figure a {
    display: block;
}

.sat-card figure a img {
    transition: transform 0.3s;
}

.sat-card figure a:hover img {
    transform: scale(1.05);
}

/* Satellite Info */
.sat-info {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xs);
    margin-top: var(--spacing-sm);
    padding-top: var(--spacing-sm);
    border-top: 1px solid var(--border-color);
}

.sat-band {
    font-weight: 600;
    color: var(--primary-color);
    font-size: 0.9rem;
}

.sat-wavelength {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* Mobile adjustments for satellite cards */
@media screen and (max-width: 600px) {
    .sat-card {
        padding: var(--spacing-sm);
    }

    .sat-card h3 {
        font-size: 0.85rem;
    }

    .sat-nav {
        gap: var(--spacing-sm);
    }

    .sat-nav a {
        padding: var(--spacing-sm) var(--spacing-md);
        font-size: 0.9rem;
    }
}

/* =====================================================
   Wind Page Styles (wind.php)
   ===================================================== */

.wind-page-header {
    text-align: center;
    padding: var(--spacing-lg) var(--spacing-md);
    margin-bottom: var(--spacing-md);
}

.wind-page-header h2 {
    color: var(--primary-color);
    margin-bottom: var(--spacing-xs);
    font-size: 1.5rem;
}

.wind-page-header p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.wind-container {
    width: 100%;
    height: calc(100vh - 250px);
    min-height: 400px;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.wind-container #windy {
    width: 100%;
    height: 100%;
}

@media screen and (max-width: 600px) {
    .wind-page-header h2 {
        font-size: 1.25rem;
    }

    .wind-container {
        height: 60vh;
        min-height: 300px;
    }
}
