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

/* Theme Variables */
:root {
    /* Classic 90s Weather Channel Theme (Default) */
    --bg-primary: linear-gradient(135deg, #0066cc 0%, #003399 50%, #004499 100%);
    --bg-header: linear-gradient(90deg, #0066cc 0%, #004499 50%, #0066cc 100%);
    --bg-footer: linear-gradient(90deg, #003366 0%, #004499 50%, #003366 100%);
    --bg-ticker: linear-gradient(90deg, #0066cc 0%, #004499 50%, #0066cc 100%);
    --bg-progress: linear-gradient(90deg, #ffdd00 0%, #ff8800 50%, #ffdd00 100%);
    --bg-card: linear-gradient(135deg, rgba(255, 255, 255, 0.15) 0%, rgba(255, 255, 255, 0.05) 100%);
    --bg-alert: linear-gradient(135deg, rgba(255, 0, 0, 0.2) 0%, rgba(139, 0, 0, 0.2) 100%);
    
    --accent-primary: #ffdd00;
    --accent-secondary: #ffffff;
    --text-primary: #ffffff;
    --text-secondary: #ccddff;
    --text-tertiary: #aaccff;
    --text-accent: #ffdd00;
    
    --border-primary: #ffdd00;
    --border-card: rgba(255, 221, 0, 0.3);
    --border-alert: #ff4444;
    
    --shadow-glow: rgba(255, 221, 0, 0.2);
    --shadow-dark: rgba(0, 0, 0, 0.3);
}

[data-theme="vaporwave"] {
    /* Vaporwave Theme */
    --bg-primary: linear-gradient(135deg, #2a1b5e 0%, #4a2c85 50%, #2a5298 100%);
    --bg-header: linear-gradient(90deg, #4a2c85 0%, #2a5298 50%, #4a2c85 100%);
    --bg-footer: linear-gradient(90deg, #2a1b5e 0%, #4a2c85 50%, #2a1b5e 100%);
    --bg-ticker: linear-gradient(90deg, #4a2c85 0%, #2a5298 50%, #4a2c85 100%);
    --bg-progress: linear-gradient(90deg, #ff66cc 0%, #cc44aa 50%, #ff66cc 100%);
    --bg-card: linear-gradient(135deg, rgba(255, 255, 255, 0.15) 0%, rgba(255, 255, 255, 0.05) 100%);
    --bg-alert: linear-gradient(135deg, rgba(255, 0, 0, 0.2) 0%, rgba(139, 0, 0, 0.2) 100%);
    
    --accent-primary: #ff66cc;
    --accent-secondary: #ffffff;
    --text-primary: #ffffff;
    --text-secondary: #ddccff;
    --text-tertiary: #ccaaff;
    --text-accent: #ff66cc;
    
    --border-primary: #ff66cc;
    --border-card: rgba(255, 102, 204, 0.3);
    --border-alert: #ff4444;
    
    --shadow-glow: rgba(255, 102, 204, 0.2);
    --shadow-dark: rgba(0, 0, 0, 0.3);
}

[data-theme="rose"] {
    /* Rose Gold Theme */
    --bg-primary: linear-gradient(135deg, #5c2e35 0%, #7d3e48 50%, #9e4e5b 100%);
    --bg-header: linear-gradient(90deg, #7d3e48 0%, #9e4e5b 50%, #7d3e48 100%);
    --bg-footer: linear-gradient(90deg, #5c2e35 0%, #7d3e48 50%, #5c2e35 100%);
    --bg-ticker: linear-gradient(90deg, #7d3e48 0%, #9e4e5b 50%, #7d3e48 100%);
    --bg-progress: linear-gradient(90deg, #E5A4A0 0%, #DA8B88 50%, #E5A4A0 100%);
    --bg-card: linear-gradient(135deg, rgba(255, 255, 255, 0.15) 0%, rgba(255, 255, 255, 0.05) 100%);
    --bg-alert: linear-gradient(135deg, rgba(255, 0, 0, 0.2) 0%, rgba(139, 0, 0, 0.2) 100%);
    
    --accent-primary: #E5A4A0;
    --accent-secondary: #ffffff;
    --text-primary: #ffffff;
    --text-secondary: #F5D8E0;
    --text-tertiary: #E8C4CF;
    --text-accent: #E5A4A0;
    
    --border-primary: #E5A4A0;
    --border-card: rgba(229, 164, 160, 0.3);
    --border-alert: #ff4444;
    
    --shadow-glow: rgba(229, 164, 160, 0.2);
    --shadow-dark: rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] {
    /* Dark Theme */
    --bg-primary: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 50%, #1f1f1f 100%);
    --bg-header: linear-gradient(90deg, #2d2d2d 0%, #3a3a3a 50%, #2d2d2d 100%);
    --bg-footer: linear-gradient(90deg, #1a1a1a 0%, #2d2d2d 50%, #1a1a1a 100%);
    --bg-ticker: linear-gradient(90deg, #2d2d2d 0%, #3a3a3a 50%, #2d2d2d 100%);
    --bg-progress: linear-gradient(90deg, #666666 0%, #888888 50%, #666666 100%);
    --bg-card: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.03) 100%);
    --bg-alert: linear-gradient(135deg, rgba(255, 0, 0, 0.2) 0%, rgba(139, 0, 0, 0.2) 100%);
    
    --accent-primary: #888888;
    --accent-secondary: #ffffff;
    --text-primary: #ffffff;
    --text-secondary: #cccccc;
    --text-tertiary: #aaaaaa;
    --text-accent: #888888;
    
    --border-primary: #888888;
    --border-card: rgba(136, 136, 136, 0.3);
    --border-alert: #ff4444;
    
    --shadow-glow: rgba(136, 136, 136, 0.2);
    --shadow-dark: rgba(0, 0, 0, 0.5);
}

body {
    font-family: 'Rajdhani', sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    overflow: hidden;
    height: 100vh;
    position: relative;
}

.scanlines {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 2px,
        rgba(255, 255, 255, 0.02) 2px,
        rgba(255, 255, 255, 0.02) 4px
    );
    pointer-events: none;
    z-index: 1000;
}

.vignette {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(ellipse at center, transparent 60%, rgba(0, 0, 0, 0.3) 100%);
    pointer-events: none;
    z-index: 999;
}

.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 30px;
    background: var(--bg-header);
    border-bottom: 3px solid var(--border-primary);
    position: relative;
    z-index: 100;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

.header-controls {
    display: flex;
    align-items: center;
    gap: 20px;
}

.location-search-btn {
    background: rgba(255, 102, 204, 0.2);
    border: 2px solid rgba(255, 102, 204, 0.5);
    color: var(--text-accent);
    padding: 8px 16px;
    border-radius: 6px;
    font-family: 'Rajdhani', sans-serif;
    font-weight: 500;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
}

.location-search-btn:hover {
    background: rgba(255, 102, 204, 0.3);
    border-color: var(--border-primary);
    transform: translateY(-1px);
}

.theme-selector {
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid var(--border-card);
    color: var(--text-primary);
    padding: 6px 12px;
    border-radius: 6px;
    font-family: 'Rajdhani', sans-serif;
    font-weight: 500;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
}

.theme-selector:hover {
    border-color: var(--border-primary);
    background: rgba(255, 255, 255, 0.15);
}

.theme-selector:focus {
    outline: none;
    border-color: var(--accent-primary);
}

.theme-selector option {
    background: #2d2d2d;
    color: #ffffff;
}

.units-toggle-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid var(--border-card);
    color: var(--text-primary);
    padding: 6px 12px;
    border-radius: 6px;
    font-family: 'Rajdhani', sans-serif;
    font-weight: 500;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
    margin-right: 10px;
}

.units-toggle-btn:hover {
    border-color: var(--border-primary);
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-1px);
}

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

/* Ticker Left Controls */
.ticker-left-controls {
    display: flex;
    align-items: center;
    gap: 8px;
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 100;
    background: linear-gradient(90deg, var(--bg-footer) 0%, var(--bg-footer) 70%, transparent 100%);
    padding-right: 30px;
}

.ticker-theme-selector {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid var(--border-card);
    color: var(--text-primary);
    padding: 3px 6px;
    border-radius: 3px;
    font-family: 'Rajdhani', sans-serif;
    font-weight: 500;
    font-size: 0.75rem;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
    height: 24px;
}

.ticker-theme-selector:hover,
.ticker-theme-selector:focus {
    border-color: var(--border-primary);
    background: rgba(255, 255, 255, 0.15);
    outline: none;
}

.ticker-theme-selector option {
    background: #2d2d2d;
    color: #ffffff;
}

.ticker-units-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid var(--border-card);
    color: var(--text-primary);
    padding: 3px 8px;
    border-radius: 3px;
    font-family: 'Rajdhani', sans-serif;
    font-weight: 500;
    font-size: 0.75rem;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
    height: 24px;
    min-width: 60px;
}

.ticker-units-btn:hover {
    border-color: var(--border-primary);
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-1px);
}

/* Music Controls Styling */
.music-controls {
    display: flex;
    align-items: center;
    gap: 6px;
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 100;
    background: linear-gradient(270deg, var(--bg-footer) 0%, var(--bg-footer) 70%, transparent 100%);
    padding-left: 30px;
}

.music-toggle-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid var(--border-card);
    color: var(--text-primary);
    padding: 6px 10px;
    border-radius: 6px;
    font-family: 'Rajdhani', sans-serif;
    font-weight: 500;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
    min-width: 36px;
    height: 32px;
    position: relative;
    animation: subtleAttention 3s ease-in-out infinite;
}

.music-toggle-btn:hover {
    border-color: var(--border-primary);
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.15);
    box-shadow: 0 4px 12px var(--shadow-glow);
    animation: none;
}

.music-toggle-btn.playing {
    background: linear-gradient(135deg, var(--accent-primary), var(--border-primary));
    border-color: var(--border-primary);
    box-shadow: 0 2px 8px var(--shadow-glow);
    animation: none;
}

.music-toggle-btn.loading {
    animation: musicPulse 1.5s infinite;
}

/* SVG Icon Styling */
.music-toggle-btn svg {
    display: block;
    margin: 0 auto;
    transition: all 0.3s ease;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.3));
}

.music-toggle-btn:hover svg {
    filter: drop-shadow(0 0 4px var(--shadow-glow));
}

.music-toggle-btn.playing svg {
    filter: drop-shadow(0 0 6px var(--accent-primary));
}

/* Icon-specific adjustments */
.play-icon, .pause-icon {
    width: 10px;
    height: 10px;
}


.music-toggle-btn:disabled {
    cursor: not-allowed;
    opacity: 0.5 !important;
}

.music-toggle-btn:disabled:hover {
    transform: none;
    border-color: var(--border-card);
    background: rgba(255, 255, 255, 0.1);
}

@keyframes musicPulse {
    0%, 100% { 
        box-shadow: 0 0 5px var(--shadow-glow);
        opacity: 0.8;
    }
    50% { 
        box-shadow: 0 0 15px var(--shadow-glow);
        opacity: 1;
    }
}

@keyframes subtleAttention {
    0%, 100% { 
        border-color: var(--border-card);
        box-shadow: 0 0 0 rgba(255, 221, 0, 0);
    }
    50% { 
        border-color: rgba(255, 221, 0, 0.6);
        box-shadow: 0 0 8px rgba(255, 221, 0, 0.3);
    }
}










.logo h1 {
    font-family: 'Orbitron', monospace;
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--text-primary);
    text-shadow: 2px 2px 4px var(--shadow-dark);
    letter-spacing: 2px;
}

.tagline {
    font-size: 0.8rem;
    color: var(--text-accent);
    text-align: center;
    margin-top: 3px;
    letter-spacing: 1px;
    font-weight: 500;
}

    .current-time {
        font-size: 1.2rem;
        min-width: 130px;
        max-width: 220px;
        padding: 6px 10px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

.main-content {
    height: calc(100vh - 140px);
    display: flex;
    flex-direction: column;
}

.weather-slideshow {
    flex: 1;
    position: relative;
    overflow: hidden;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 30px 40px;
    opacity: 0;
    transform: translateX(100%);
    transition: all 0.6s ease-in-out;
}

.slide.active {
    opacity: 1;
    transform: translateX(0);
}

.slide-header {
    text-align: center;
    margin-bottom: 25px;
}

.slide-header h2 {
    font-family: 'Orbitron', monospace;
    font-size: 1.8rem;
    color: var(--text-accent);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    margin-bottom: 8px;
    letter-spacing: 1px;
    font-weight: 600;
}

.location {
    font-size: 1.1rem;
    color: var(--text-primary);
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
    font-weight: 500;
}

.weather-display {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 40px;
    align-items: center;
    max-width: 1000px;
    margin: 0 auto;
}

.temperature-display {
    text-align: center;
}

.temp {
    font-family: 'Orbitron', monospace;
    font-size: 5.5rem;
    font-weight: 700;
    color: var(--text-accent);
    text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.5);
    display: block;
}

.feels-like {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-top: 8px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.weather-icon img {
    width: 100px;
    height: 100px;
    filter: drop-shadow(2px 2px 4px rgba(0, 0, 0, 0.3));
}

.conditions {
    text-align: center;
}

.condition {
    font-size: 1.3rem;
    color: var(--text-primary);
    text-transform: uppercase;
    margin-bottom: 15px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
    font-weight: 500;
}

.details {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.detail {
    font-size: 1rem;
    color: var(--text-secondary);
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.forecast-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 15px;
    max-width: 1200px;
    margin: 0 auto;
}

.forecast-day {
    background: var(--bg-card);
    border: 2px solid var(--border-card);
    border-radius: 8px;
    padding: 15px;
    text-align: center;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
}

.forecast-day:hover {
    transform: translateY(-2px);
    border-color: var(--border-primary);
    box-shadow: 0 4px 12px var(--shadow-glow);
}

.forecast-day-name {
    font-size: 1.1rem;
    color: var(--text-accent);
    margin-bottom: 8px;
    text-transform: uppercase;
    font-weight: 600;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.forecast-temps {
    font-family: 'Orbitron', monospace;
    font-size: 1.3rem;
    color: var(--text-primary);
    margin: 8px 0;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.forecast-condition {
    font-size: 0.85rem;
    color: var(--text-secondary);
    text-transform: capitalize;
}

.forecast-details {
    margin-top: 8px;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.forecast-detail {
    font-size: 0.75rem;
    color: var(--text-tertiary);
    display: flex;
    align-items: center;
    gap: 4px;
}

/* Hourly Forecast Styles */
.hourly-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    max-width: 1200px;
    margin: 0 auto;
}

.hourly-item {
    background: var(--bg-card);
    border: 2px solid var(--border-card);
    border-radius: 8px;
    padding: 15px;
    text-align: center;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
}

.hourly-item:hover {
    transform: translateY(-2px);
    border-color: var(--border-primary);
    box-shadow: 0 4px 12px var(--shadow-glow);
}

.hourly-time {
    font-size: 1.1rem;
    color: var(--text-accent);
    margin-bottom: 8px;
    text-transform: uppercase;
    font-weight: 600;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.hourly-icon {
    width: 50px;
    height: 50px;
    margin: 5px 0;
}

.hourly-temp {
    font-family: 'Orbitron', monospace;
    font-size: 1.4rem;
    color: var(--text-primary);
    margin: 8px 0;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.hourly-description {
    font-size: 0.8rem;
    color: var(--text-secondary);
    text-transform: capitalize;
    margin-bottom: 8px;
}

.hourly-details {
    display: flex;
    justify-content: space-between;
    margin-top: 8px;
}

.hourly-detail {
    font-size: 0.75rem;
    color: var(--text-tertiary);
    display: flex;
    align-items: center;
    gap: 2px;
}

.alerts-container {
    max-width: 1000px;
    margin: 0 auto;
}

.alert-item {
    background: var(--bg-alert);
    border: 2px solid var(--border-alert);
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 15px;
    animation: alertPulse 3s infinite;
    backdrop-filter: blur(5px);
}

@keyframes alertPulse {
    0%, 100% { border-color: var(--border-alert); }
    50% { border-color: var(--border-primary); }
}

.alert-title {
    font-size: 1.2rem;
    color: var(--text-accent);
    margin-bottom: 8px;
    text-transform: uppercase;
    font-weight: 600;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.alert-description {
    color: var(--text-primary);
    line-height: 1.4;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.no-alerts {
    text-align: center;
    font-size: 1.3rem;
    color: var(--text-secondary);
    opacity: 0.8;
    font-style: italic;
}

.world-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    max-width: 1400px;
    margin: 0 auto;
}

.world-city {
    background: var(--bg-card);
    border: 2px solid var(--border-card);
    border-radius: 8px;
    padding: 15px;
    text-align: center;
    backdrop-filter: blur(5px);
    transition: all 0.3s ease;
}

.world-city:hover {
    border-color: var(--border-primary);
    transform: translateY(-2px);
}

.city-name {
    font-size: 1.1rem;
    color: var(--text-primary);
    margin-bottom: 8px;
    font-weight: 500;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.city-temp {
    font-family: 'Orbitron', monospace;
    font-size: 1.6rem;
    color: var(--text-accent);
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.city-details {
    margin-top: 8px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.city-condition {
    font-size: 0.8rem;
    color: var(--text-secondary);
    text-transform: capitalize;
}

.city-wind {
    font-size: 0.75rem;
    color: var(--text-tertiary);
}

/* Radar Styles */
.radar-container {
    max-width: 1200px;
    margin: 0 auto;
    height: calc(100vh - 300px);
    display: flex;
    flex-direction: column;
}

.radar-header-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 10px;
}

.radar-station-info {
    font-size: 1.1rem;
    color: var(--text-accent);
    font-weight: 600;
    text-transform: uppercase;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.radar-update-info {
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-style: italic;
}

.radar-image-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 8px;
    padding: 10px;
}

.radar-image {
    max-width: 100%;
    max-height: calc(100vh - 350px);
    height: auto;
    border-radius: 6px;
    box-shadow: 0 4px 15px var(--shadow-glow);
    flex: 1;
    object-fit: contain;
}



.no-radar {
    text-align: center;
    font-size: 1.3rem;
    color: var(--text-secondary);
    opacity: 0.8;
    font-style: italic;
    padding: 40px 20px;
}

.radar-loading {
    text-align: center;
    font-size: 1.2rem;
    color: var(--text-secondary);
    padding: 40px 20px;
}

.progress-bar {
    height: 6px;
    background: rgba(0, 0, 0, 0.3);
    position: relative;
    margin: 15px 30px;
    border-radius: 3px;
    overflow: hidden;
}

.progress-indicator {
    height: 100%;
    background: var(--bg-progress);
    width: 0%;
    transition: width 0.5s ease;
    border-radius: 3px;
}

.ticker {
    background: var(--bg-footer);
    border-top: 2px solid var(--border-primary);
    height: 35px;
    overflow: hidden;
    position: relative;
    display: flex;
    align-items: center;
}

.ticker-content {
    position: absolute;
    white-space: nowrap;
    animation: scroll 25s linear infinite;
    line-height: 35px;
    color: var(--text-primary);
    font-size: 0.95rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
    z-index: 1;
}

@keyframes scroll {
    0% { 
        transform: translateX(calc(100vw - 70px)); 
    }
    100% { 
        transform: translateX(calc(-100% - 70px)); 
    }
}

.footer {
    background: var(--bg-ticker);
    border-top: 2px solid var(--border-primary);
    padding: 8px 70px;
    text-align: center;
}

.footer-text {
    color: var(--text-primary);
    font-size: 0.85rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.info-toggle-link {
    color: var(--accent-primary);
    cursor: pointer;
    text-decoration: underline;
    transition: color 0.2s;
}

.info-toggle-link:hover {
    color: var(--text-primary);
    text-shadow: 0 0 8px var(--accent-primary);
}


.hidden {
    display: none !important;
}

/* Search Modal Styles */
.search-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 2000;
}

.search-modal.active {
    display: flex;
}

.search-modal-content {
    background: var(--bg-primary);
    border: 3px solid var(--border-primary);
    border-radius: 12px;
    padding: 30px;
    max-width: 500px;
    width: 90%;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.search-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.search-header h3 {
    font-family: 'Orbitron', monospace;
    color: var(--text-accent);
    margin: 0;
    font-size: 1.4rem;
}

.search-close {
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 2rem;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.search-close:hover {
    background: rgba(255, 102, 204, 0.2);
}

.search-body input {
    width: 100%;
    padding: 12px 16px;
    font-size: 1.1rem;
    font-family: 'Rajdhani', sans-serif;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid var(--border-card);
    border-radius: 6px;
    color: var(--text-primary);
    margin-bottom: 10px;
    box-sizing: border-box;
}

.search-body input:focus {
    outline: none;
    border-color: var(--border-primary);
    background: rgba(255, 255, 255, 0.15);
}

.search-body input::placeholder {
    color: var(--text-secondary);
}

.search-examples {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 20px;
    text-align: center;
}

.location-options {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 20px;
    gap: 10px;
}

.find-location-btn {
    background: linear-gradient(135deg, var(--accent-primary), var(--border-primary));
    color: var(--text-primary);
    border: 2px solid var(--border-primary);
    padding: 12px 24px;
    font-family: 'Rajdhani', sans-serif;
    font-weight: 600;
    font-size: 1rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
    min-width: 180px;
}

.find-location-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px var(--shadow-glow);
}

.find-location-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.location-divider {
    display: flex;
    align-items: center;
    width: 100%;
    margin: 10px 0;
}

.location-divider::before,
.location-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border-card);
}

.location-divider span {
    padding: 0 15px;
    font-size: 0.9rem;
    color: var(--text-tertiary);
    font-style: italic;
}

.search-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.search-buttons button {
    padding: 10px 20px;
    font-family: 'Rajdhani', sans-serif;
    font-weight: 500;
    font-size: 1rem;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 100px;
}

#search-submit {
    background: linear-gradient(135deg, var(--accent-primary) 0%, var(--text-accent) 100%);
    border: none;
    color: var(--text-primary);
}

#search-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 102, 204, 0.3);
}

#search-cancel {
    background: transparent;
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: var(--text-primary);
}

#search-cancel:hover {
    border-color: rgba(255, 255, 255, 0.6);
    background: rgba(255, 255, 255, 0.1);
}

@media (max-width: 768px) {
    .weather-display {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .forecast-grid, .world-grid, .hourly-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .radar-header {
        flex-direction: column;
        text-align: center;
        gap: 5px;
    }
    
.radar-header-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}

.radar-station-info {
    font-size: 1rem;
    color: var(--text-accent);
    font-weight: 600;
    text-transform: uppercase;
}

.radar-update-info {
    font-size: 0.8rem;
    color: var(--text-secondary);
    font-style: italic;
}

.radar-legend {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-top: 10px;
}
    
    .legend-item {
        font-size: 0.8rem;
    }
    
    .location-options {
        margin-bottom: 15px;
    }
    
    .find-location-btn {
        font-size: 0.9rem;
        padding: 10px 20px;
        min-width: 160px;
    }
    
    .header-controls {
        flex-direction: column;
        gap: 10px;
        align-items: flex-end;
    }
    
    .music-controls {
        gap: 4px;
        right: 10px;
    }
    
    .music-toggle-btn {
        font-size: 0.8rem;
        padding: 3px 6px;
        min-width: 28px;
        height: 24px;
    }
    
    
    
    .ticker-content {
        animation: scroll-mobile 25s linear infinite;
    }
    
    @keyframes scroll-mobile {
        0% { 
            transform: translateX(calc(100vw - 70px)); 
        }
        100% { 
            transform: translateX(calc(-100% - 70px)); 
        }
    }
    
    .ticker-left-controls {
        gap: 6px;
        left: 10px;
    }
    
    .ticker-theme-selector,
    .ticker-units-btn {
        font-size: 0.7rem;
        padding: 2px 4px;
        height: 20px;
        min-width: 50px;
    }
    
    .location-search-btn {
        font-size: 0.8rem;
        padding: 6px 12px;
    }
    
    .search-modal-content {
        padding: 20px;
        margin: 10px;
    }
    
    .temp {
        font-size: 4rem;
    }
    
    .logo h1 {
        font-size: 1.6rem;
    }
    
    .header {
        padding: 12px 20px;
    }
    
    .slide {
        padding: 20px 25px;
    }
}

/* About Modal Styles */
.about-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 1000;
    backdrop-filter: blur(5px);
}

.about-modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.about-modal-content {
    background: var(--bg-primary);
    border: 2px solid var(--border-primary);
    border-radius: 8px;
    box-shadow: 0 0 20px var(--shadow-glow);
    max-width: 600px;
    width: 90%;
    height: auto;
    overflow: hidden;
    animation: modalFadeIn 0.3s ease-out;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.about-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    border-bottom: 1px solid var(--border-primary);
    background: var(--bg-header);
}

.about-header h3 {
    color: var(--text-primary);
    font-family: 'Orbitron', monospace;
    font-size: 18px;
    margin: 0;
}

.about-close {
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 24px;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background-color 0.2s;
}

.about-close:hover {
    background: rgba(255, 255, 255, 0.1);
}

.about-body {
    padding: 20px;
}

.about-tabs {
    display: flex;
    gap: 5px;
    margin-bottom: 20px;
    border-bottom: 1px solid var(--border-primary);
}

.about-tab {
    background: none;
    border: 1px solid var(--border-primary);
    color: var(--text-secondary);
    padding: 8px 16px;
    cursor: pointer;
    border-radius: 4px 4px 0 0;
    font-family: 'Rajdhani', sans-serif;
    font-size: 14px;
    transition: all 0.2s;
}

.about-tab.active {
    background: var(--accent-primary);
    color: #000;
    border-bottom-color: var(--accent-primary);
}

.about-tab:hover {
    background: rgba(255, 255, 255, 0.1);
}

.about-section {
    display: none;
}

.about-section.active {
    display: block;
}

.about-section h4 {
    color: var(--text-primary);
    font-family: 'Orbitron', monospace;
    font-size: 16px;
    margin-bottom: 15px;
    border-bottom: 1px solid var(--border-primary);
    padding-bottom: 5px;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 10px;
}

.info-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px;
    background: var(--bg-card);
    border: 1px solid var(--border-card);
    border-radius: 4px;
}

.info-label {
    color: var(--text-secondary);
    font-family: 'Rajdhani', sans-serif;
    font-size: 14px;
}

.info-value {
    color: var(--text-primary);
    font-family: 'Orbitron', monospace;
    font-size: 14px;
    font-weight: bold;
}

.api-docs-link {
    color: var(--accent-primary);
    text-decoration: none;
    font-weight: bold;
    transition: color 0.2s;
}

.api-docs-link:hover {
    color: var(--text-primary);
    text-decoration: underline;
}

.info-toggle-btn {
    background: none;
    border: 1px solid var(--border-primary);
    color: var(--text-primary);
    padding: 4px 8px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.2s;
    margin-left: 8px;
}

.info-toggle-btn:hover {
    background: var(--accent-primary);
    color: #000;
}

/* Mobile responsive for about modal */
@media (max-width: 768px) {
    .about-modal-content {
        width: 95%;
        max-height: 90vh;
    }

    .about-header {
        padding: 10px 15px;
    }

    .about-body {
        padding: 15px;
    }

    .about-tabs {
        flex-wrap: wrap;
    }

    .about-tab {
        padding: 6px 12px;
        font-size: 12px;
    }

    .info-grid {
        grid-template-columns: 1fr;
    }

    .info-item {
        padding: 6px 10px;
    }

    .info-label, .info-value {
        font-size: 12px;
    }
}
