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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background: #f5f6fa;
    min-height: 100vh;
}

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

/* Header Banner */
.banner {
    background: #e5e7eb;
    color: #374151;
    padding: 2rem 0;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.banner h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.1);
}

.subtitle {
    font-size: 1.1rem;
    opacity: 0.9;
    font-weight: 300;
}

/* Temperature Ticker */
.temp-ticker {
    background: #9ca3af;
    color: white;
    padding: 0.8rem 0;
    overflow: hidden;
    white-space: nowrap;
    border-bottom: 3px solid #6b7280;
}

.ticker-content {
    display: inline-block;
    animation: marquee 30s linear infinite;
}

.station-temp {
    display: inline-block;
    margin-right: 3rem;
    font-size: 1rem;
    background: rgba(107, 114, 128, 0.3);
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    border: 1px solid rgba(107, 114, 128, 0.4);
}

@keyframes marquee {
    0% { transform: translateX(100%); }
    100% { transform: translateX(-100%); }
}

/* Navigation */
.main-nav {
    background: white;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid #e5e7eb;
}

.nav-list {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    justify-content: center;
}

.nav-item {
    margin: 0 0.5rem;
}

.nav-link {
    display: block;
    padding: 0.75rem 1.5rem;
    text-decoration: none;
    color: #6b7280;
    font-weight: 500;
    text-align: center;
    transition: all 0.2s ease;
    border-radius: 6px;
    margin: 0.5rem 0;
    font-size: 0.9rem;
    position: relative;
}

.nav-link:hover {
    color: #374151;
    background: #f3f4f6;
}

.nav-link.active {
    color: #9ca3af;
    background: #f8fafc;
    font-weight: 600;
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 2px;
    background: #9ca3af;
    border-radius: 2px;
}

/* Main Content */
main {
    background: white;
    margin: 0;
    padding: 2rem;
    min-height: 500px;
}

.content-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

/* Weather Summary */
.weather-summary {
    grid-column: 1 / -1;
    background: linear-gradient(135deg, #9ca3af 0%, #6b7280 100%);
    color: white;
    padding: 1rem;
    border-radius: 6px;
    margin-bottom: 2rem;
}

.weather-summary h2 {
    margin-bottom: 0.75rem;
    font-size: 1.2rem;
}

.conditions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.condition-item {
    background: rgba(255,255,255,0.1);
    padding: 0.5rem;
    border-radius: 4px;
    text-align: center;
    backdrop-filter: blur(10px);
}

.condition-label {
    display: block;
    font-size: 0.75rem;
    opacity: 0.9;
    margin-bottom: 0.3rem;
}

.condition-value {
    display: block;
    font-size: 1rem;
    font-weight: 600;
}

/* Featured Stations */
.featured-stations h2,
.recent-updates h2,
.quick-stats h2 {
    color: #374151;
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
    border-bottom: 2px solid #9ca3af;
    padding-bottom: 0.5rem;
}

.stations-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
}

.station-card {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 1.5rem;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.station-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0,0,0,0.15);
}

.station-card h3 {
    color: #374151;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.station-temp-large {
    font-size: 2rem;
    font-weight: 700;
    color: #9ca3af;
    margin-bottom: 1rem;
}

.station-link {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: #9ca3af;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-size: 0.9rem;
    transition: background 0.3s ease;
}

.station-link:hover {
    background: #6b7280;
}

/* Recent Updates */
.updates-list {
    space-y: 1rem;
}

.update-item {
    display: flex;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 8px;
    margin-bottom: 0.5rem;
    border-left: 4px solid #9ca3af;
}

.update-time {
    font-weight: 600;
    color: #9ca3af;
    min-width: 120px;
    font-size: 0.9rem;
}

.update-text {
    color: #636e72;
}

/* Quick Stats */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.stat-item {
    text-align: center;
    padding: 1.5rem;
    background: linear-gradient(135deg, #00b894 0%, #00a085 100%);
    color: white;
    border-radius: 10px;
}

.stat-number {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.9rem;
    opacity: 0.9;
}

/* Footer */
.main-footer {
    background: #e5e7eb;
    color: #374151;
    padding: 2rem 0 1rem;
    margin-top: 2rem;
}

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

.footer-section h4 {
    color: #9ca3af;
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.footer-links {
    list-style: none;
}

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

.footer-links a {
    color: #6b7280;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #9ca3af;
}

.footer-bottom {
    border-top: 1px solid #d1d5db;
    padding-top: 1rem;
    text-align: center;
}

.disclaimer {
    background: #ef4444;
    color: white;
    padding: 1rem;
    border-radius: 5px;
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

.copyright {
    color: #9ca3af;
    font-size: 0.9rem;
}

/* Map Specific Styles */
.map-container {
    position: relative;
    width: 100%;
    height: 600px;
    background: #f8f9fa;
    border-radius: 10px;
    overflow: hidden;
    border: 2px solid #dee2e6;
}

.map-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #9ca3af 0%, #6b7280 100%);
    color: white;
    font-size: 1.2rem;
}

.station-marker {
    position: absolute;
    background: white;
    border: 3px solid #9ca3af;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.station-marker:hover {
    transform: scale(1.1);
    z-index: 10;
}

.station-popup {
    position: absolute;
    background: white;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 1rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    min-width: 200px;
    z-index: 20;
}

/* Station Directory Styles */
.stations-directory {
    display: grid;
    gap: 1rem;
}

.station-entry {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 10px;
    border-left: 4px solid #9ca3af;
    transition: all 0.3s ease;
}

.station-entry:hover {
    background: #e9ecef;
    transform: translateX(5px);
}

.station-header {
    display: flex;
    justify-content: between;
    align-items: center;
    margin-bottom: 1rem;
}

.station-name {
    font-size: 1.3rem;
    font-weight: 600;
    color: #374151;
}

.station-status {
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 500;
}

.status-online {
    background: #00b894;
    color: white;
}

.status-offline {
    background: #e17055;
    color: white;
}

/* Responsive Design */
@media (max-width: 768px) {
    .banner h1 {
        font-size: 2rem;
    }
    
    .content-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .conditions-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .nav-list {
        flex-direction: column;
    }
    
    .stations-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .ticker-content {
        animation-duration: 20s;
    }
}