/* SkyCast - Weather Dashboard CSS */

/* Custom Properties - Light Theme */
:root {
    --bg-primary: #f8fafc;
    --bg-secondary: #ffffff;
    --bg-card: #ffffff;
    --accent-primary: #3b82f6;
    --accent-secondary: #8b5cf6;
    --text-primary: #1f2937;
    --text-secondary: #6b7280;
    --text-dim: #9ca3af;
    --border-color: rgba(0, 0, 0, 0.08);
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.12);
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
}

/* Dynamic Temperature Themes */
[data-temp-theme="freezing"] {
    --accent-primary: #06b6d4;
    --accent-secondary: #0891b2;
    --theme-glow: rgba(6, 182, 212, 0.2);
}

[data-temp-theme="cold"] {
    --accent-primary: #14b8a6;
    --accent-secondary: #0d9488;
    --theme-glow: rgba(20, 184, 166, 0.2);
}

[data-temp-theme="warm"] {
    --accent-primary: #f59e0b;
    --accent-secondary: #d97706;
    --theme-glow: rgba(245, 158, 11, 0.2);
}

[data-temp-theme="hot"] {
    --accent-primary: #ef4444;
    --accent-secondary: #dc2626;
    --theme-glow: rgba(239, 68, 68, 0.2);
}
/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Sora', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    overflow-x: hidden;
    transition: background 0.5s ease, color 0.3s ease;
}

/* Loading Screen */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #e0f2fe 0%, #f0f9ff 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 1;
    transition: opacity 0.5s ease;
}

.loading-screen.hidden {
    opacity: 0;
    pointer-events: none;
}

.loading-animation {
    text-align: center;
}

.weather-spinner {
    font-size: 64px;
    color: var(--accent-primary);
    animation: spin 2s linear infinite, pulse 1.5s ease-in-out infinite;
}

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

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.7; transform: scale(1.1); }
}

.loading-animation p {
    margin-top: 20px;
    font-size: 18px;
    color: var(--text-secondary);
    font-weight: 600;
}

/* Dashboard Wrapper */
.dashboard-wrapper {
    display: flex;
    min-height: 100vh;
    opacity: 0;
    animation: fadeIn 0.8s ease 0.2s forwards;
}

@keyframes fadeIn {
    to { opacity: 1; }
}

/* Sidebar */
.sidebar {
    width: 280px;
    background: var(--bg-secondary);
    border-right: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    padding: 30px 20px;
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.sidebar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, transparent 0%, var(--accent-primary) 100%);
    opacity: 0.03;
    pointer-events: none;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
    animation: slideInLeft 0.5s ease;
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.logo i {
    font-size: 32px;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.logo-text {
    font-family: 'Orbitron', monospace;
    font-size: 24px;
    font-weight: 900;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Navigation */
.nav-menu {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 30px;
}

.nav-btn {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px 20px;
    background: transparent;
    border: none;
    border-radius: 12px;
    color: var(--text-secondary);
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition-fast);
    position: relative;
    overflow: hidden;
}

.nav-btn::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 3px;
    height: 100%;
    background: var(--accent-primary);
    transform: scaleY(0);
    transition: transform var(--transition-fast);
}

.nav-btn:hover {
    background: rgba(59, 130, 246, 0.05);
    color: var(--text-primary);
    transform: translateX(5px);
}

.nav-btn.active {
    background: linear-gradient(90deg, rgba(59, 130, 246, 0.1) 0%, transparent 100%);
    color: var(--accent-primary);
    font-weight: 600;
}

.nav-btn.active::before {
    transform: scaleY(1);
}

.nav-btn i {
    font-size: 18px;
    width: 24px;
}

/* Favorites List in Sidebar */
.favorites-list {
    flex: 1;
    overflow-y: auto;
    margin-top: 20px;
}

.favorites-list h4 {
    color: var(--text-dim);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 15px;
    font-weight: 600;
}

#favoritesContainer {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.favorite-item {
    margin-bottom: 10px;
    border-radius: 10px;
    overflow: hidden;
    animation: slideInLeft 0.3s ease;
}

.favorite-item-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 15px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.favorite-item-content:hover {
    background: rgba(59, 130, 246, 0.05);
    border-color: var(--accent-primary);
    transform: translateX(3px);
    box-shadow: var(--shadow-sm);
}

.favorite-item-info {
    flex: 1;
    pointer-events: none;
}

.favorite-item-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
}

.favorite-item-temp {
    font-size: 12px;
    color: var(--text-secondary);
    margin-top: 2px;
}

.remove-favorite {
    background: transparent;
    border: none;
    color: var(--text-dim);
    cursor: pointer;
    padding: 6px 8px;
    border-radius: 6px;
    transition: all var(--transition-fast);
    opacity: 0.6;
}

.favorite-item-content:hover .remove-favorite {
    opacity: 1;
}

.remove-favorite:hover {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
    transform: scale(1.1);
}

.no-favorites-msg {
    text-align: center;
    color: var(--text-dim);
    font-size: 13px;
    padding: 20px 10px;
}

/* Sidebar Footer */
.sidebar-footer {
    margin-top: auto;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}

.icon-btn {
    width: 100%;
    padding: 15px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    color: var(--text-primary);
    font-size: 18px;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.icon-btn:hover {
    background: rgba(59, 130, 246, 0.05);
    border-color: var(--accent-primary);
    transform: scale(1.05);
}

/* Main Content */
.main-content {
    flex: 1;
    padding: 30px;
    overflow-y: auto;
    background: var(--bg-primary);
}

/* Top Bar */
.top-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 30px;
    gap: 20px;
    animation: slideDown 0.5s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Search Container */
.search-container {
    position: relative;
    flex: 1;
    max-width: 600px;
}

.search-box {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px 20px;
    background: var(--bg-card);
    border: 2px solid var(--border-color);
    border-radius: 16px;
    transition: all var(--transition-fast);
    box-shadow: var(--shadow-sm);
}

.search-box:focus-within {
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1);
}

.search-box i {
    color: var(--text-dim);
    font-size: 18px;
}

.search-box input {
    flex: 1;
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 16px;
    font-weight: 500;
    outline: none;
}

.search-box input::placeholder {
    color: var(--text-dim);
}

.search-btn {
    background: var(--accent-primary);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    color: white;
    cursor: pointer;
    transition: all var(--transition-fast);
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-btn:hover {
    background: var(--accent-secondary);
    transform: scale(1.1);
}

.search-suggestions {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    right: 0;
    background: var(--bg-card);
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
    max-height: 300px;
    overflow-y: auto;
    z-index: 100;
    opacity: 0;
    transform: translateY(-10px);
    pointer-events: none;
    transition: all var(--transition-fast);
}

.search-suggestions.active {
    opacity: 1;
    transform: translateY(0);
    pointer-events: all;
}

/* Top Actions */
.top-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.action-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    color: var(--text-primary);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.action-btn:hover {
    background: rgba(59, 130, 246, 0.05);
    border-color: var(--accent-primary);
    transform: translateY(-2px);
}

.action-btn i {
    font-size: 16px;
}

.share-btn {
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    border: none;
    color: white;
}

.share-btn:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 8px 20px rgba(59, 130, 246, 0.3);
}

/* Error Banner */
.error-banner {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px 20px;
    background: linear-gradient(135deg, #ff6b6b 0%, #d32f2f 100%);
    border-radius: 12px;
    margin-bottom: 20px;
    color: white;
    animation: slideDown 0.3s ease;
}

.error-banner.hidden {
    display: none;
}

.error-banner i {
    font-size: 20px;
}

.close-error {
    margin-left: auto;
    background: none;
    border: none;
    color: white;
    font-size: 18px;
    cursor: pointer;
    padding: 5px 10px;
    opacity: 0.8;
    transition: opacity var(--transition-fast);
}

.close-error:hover {
    opacity: 1;
}

/* Loader */
.loader {
    text-align: center;
    padding: 40px;
    animation: fadeIn 0.3s ease;
}

.loader.hidden {
    display: none;
}

.spinner {
    width: 60px;
    height: 60px;
    margin: 0 auto 20px;
    border: 4px solid var(--border-color);
    border-top-color: var(--accent-primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* Content Sections */
.content-section {
    display: none;
    animation: fadeIn 0.5s ease;
}

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

/* Grid Container */
.grid-container {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 20px;
}

/* Card Base */
.card {
    background: var(--bg-card);
    border-radius: 24px;
    padding: 25px;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, transparent 0%, var(--theme-glow, rgba(59, 130, 246, 0.05)) 100%);
    opacity: 0;
    transition: opacity var(--transition-normal);
    pointer-events: none;
}

.card:hover::before {
    opacity: 1;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(59, 130, 246, 0.3);
}

.card h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 10px;
}

.card h3 i {
    color: var(--accent-primary);
}

/* Hero Weather Card */
.hero-card {
    grid-column: span 8;
    background: linear-gradient(135deg, var(--bg-card) 0%, rgba(59, 130, 246, 0.05) 100%);
    animation: scaleIn 0.5s ease;
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.hero-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 30px;
}

.location-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.location-info i {
    font-size: 24px;
    color: var(--accent-primary);
}

.location-info h2 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 5px;
    background: linear-gradient(135deg, var(--text-primary), var(--accent-primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

#currentDateTime {
    font-size: 14px;
    color: var(--text-secondary);
}

.favorite-btn {
    background: rgba(59, 130, 246, 0.05);
    border: 2px solid var(--border-color);
    border-radius: 12px;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.favorite-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--accent-primary);
    transform: rotate(72deg) scale(1.1);
}

.favorite-btn.active i {
    color: #ffd700;
}

.favorite-btn.active i::before {
    content: '\f005';
}

.favorite-btn i {
    font-size: 24px;
    color: var(--text-dim);
    transition: color var(--transition-fast);
}

/* Hero Body */
.hero-body {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 30px;
}

.temp-section {
    flex: 1;
}

.main-temp {
    font-family: 'Orbitron', monospace;
    font-size: 96px;
    font-weight: 900;
    line-height: 1;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 10px;
    animation: numberCount 0.8s ease;
}

@keyframes numberCount {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.temp-unit {
    font-size: 48px;
}

.weather-desc {
    font-size: 24px;
    font-weight: 600;
    color: var(--text-primary);
    text-transform: capitalize;
    margin-bottom: 10px;
}

.feels-like {
    font-size: 16px;
    color: var(--text-secondary);
}

.weather-visual {
    position: relative;
    width: 250px;
    height: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    animation: breathe 4s ease-in-out infinite;
}

@keyframes breathe {
    0%, 100% { 
        box-shadow: 0 0 40px rgba(59, 130, 246, 0.3),
                    inset 0 0 40px rgba(59, 130, 246, 0.1);
    }
    50% { 
        box-shadow: 0 0 80px rgba(59, 130, 246, 0.5),
                    inset 0 0 60px rgba(59, 130, 246, 0.2);
    }
}

.weather-icon {
    width: 200px;
    height: 200px;
    filter: drop-shadow(0 10px 30px var(--theme-glow));
    animation: float 3s ease-in-out infinite;
    object-fit: contain;
    position: relative;
    z-index: 2;
}

/* Font Awesome Icon Fallback */
.weather-icon-fallback {
    position: absolute;
    width: 200px;
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
    animation: float 3s ease-in-out infinite;
}

.weather-icon-fallback i {
    font-size: 150px;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 10px 30px var(--theme-glow));
    animation: iconPulse 2s ease-in-out infinite;
}

@keyframes iconPulse {
    0%, 100% { transform: scale(1); opacity: 0.9; }
    50% { transform: scale(1.05); opacity: 1; }
}

/* Fallback if icon doesn't load */
.weather-icon:not([src*="openweathermap"]) {
    display: none;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    25% { transform: translateY(-10px) rotate(-2deg); }
    50% { transform: translateY(-20px) rotate(0deg); }
    75% { transform: translateY(-10px) rotate(2deg); }
}

.weather-particles {
    position: absolute;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

/* Advisor Section */
.advisor-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-top: 20px;
}

.advisor-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 20px;
    display: flex;
    align-items: flex-start;
    gap: 15px;
    transition: all var(--transition-fast);
}

.advisor-card:hover {
    background: rgba(59, 130, 246, 0.05);
    transform: translateX(5px);
}

.advisor-card i {
    font-size: 28px;
    color: var(--accent-primary);
}

.advisor-card h4 {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 5px;
}

.advisor-card p {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.4;
}

/* AQI Card */
.aqi-card {
    grid-column: span 4;
    animation: scaleIn 0.5s ease 0.1s backwards;
}

.aqi-display {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.aqi-gauge {
    position: relative;
    width: 100%;
    max-width: 200px;
    margin: 0 auto;
}

.gauge-svg {
    width: 100%;
    height: auto;
}

.gauge-bg {
    fill: none;
    stroke: var(--border-color);
    stroke-width: 12;
    stroke-linecap: round;
}

.gauge-fill {
    fill: none;
    stroke: var(--accent-primary);
    stroke-width: 12;
    stroke-linecap: round;
    stroke-dasharray: 251.2;
    stroke-dashoffset: 251.2;
    transition: stroke-dashoffset 1s ease, stroke 0.5s ease;
}

.aqi-value {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
}

#aqiValue {
    font-size: 48px;
    font-weight: 900;
    font-family: 'Orbitron', monospace;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

#aqiLabel {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-secondary);
    margin-top: 5px;
}

.aqi-details {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.aqi-metric {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 15px;
    text-align: center;
    transition: all var(--transition-fast);
}

.aqi-metric:hover {
    background: rgba(59, 130, 246, 0.05);
    transform: scale(1.05);
}

.metric-label {
    display: block;
    font-size: 12px;
    color: var(--text-dim);
    margin-bottom: 8px;
    font-weight: 600;
}

.metric-value {
    display: block;
    font-size: 20px;
    font-weight: 700;
    color: var(--accent-primary);
}

/* Highlights Card */
.highlights-card {
    grid-column: span 8;
    animation: scaleIn 0.5s ease 0.2s backwards;
}

.highlights-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}

.highlight-item {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 20px;
    display: flex;
    align-items: flex-start;
    gap: 15px;
    transition: all var(--transition-fast);
}

.highlight-item:hover {
    background: rgba(59, 130, 246, 0.05);
    transform: translateY(-5px);
}

.highlight-item i {
    font-size: 28px;
    color: var(--accent-primary);
    margin-top: 5px;
}

.highlight-content {
    flex: 1;
}

.highlight-label {
    display: block;
    font-size: 13px;
    color: var(--text-dim);
    margin-bottom: 8px;
    font-weight: 600;
}

.highlight-value {
    display: block;
    font-size: 24px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 10px;
}

.progress-bar, .uv-bar {
    width: 100%;
    height: 6px;
    background: var(--border-color);
    border-radius: 3px;
    overflow: hidden;
    margin-top: 10px;
}

.progress-fill, .uv-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--accent-primary), var(--accent-secondary));
    border-radius: 3px;
    transition: width 0.8s ease;
}

.wind-direction {
    margin-top: 10px;
}

#windArrow {
    font-size: 24px;
    color: var(--accent-primary);
    transition: transform 0.5s ease;
}

/* Chart Card */
.chart-card {
    grid-column: span 8;
    animation: scaleIn 0.5s ease 0.3s backwards;
}

#temperatureChart {
    max-height: 250px;
}

/* Sun & Moon Card */
.sun-moon-card {
    grid-column: span 4;
    animation: scaleIn 0.5s ease 0.4s backwards;
}

.sun-section, .moon-section {
    margin-bottom: 30px;
}

.sun-section:last-child, .moon-section:last-child {
    margin-bottom: 0;
}

.sun-times {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-top: 15px;
}

.time-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.time-item i {
    font-size: 20px;
    color: var(--accent-primary);
}

.time-label {
    display: block;
    font-size: 12px;
    color: var(--text-dim);
    font-weight: 600;
}

.time-value {
    display: block;
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
}

.sun-arc {
    flex: 1;
    height: 60px;
    position: relative;
    display: flex;
    align-items: flex-end;
}

.sun-arc::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--border-color);
    border-radius: 1px;
}

.sun-progress {
    width: 100%;
    height: 100%;
    position: relative;
}

.sun-progress::after {
    content: '☀️';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    font-size: 24px;
    animation: sunRise 2s ease;
}

@keyframes sunRise {
    from {
        bottom: 0;
        opacity: 0;
    }
    to {
        bottom: var(--sun-position, 0);
        opacity: 1;
    }
}

.moon-display {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-top: 15px;
}

.moon-icon {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(59, 130, 246, 0.05);
    border-radius: 50%;
    font-size: 48px;
    color: var(--accent-primary);
    animation: moonGlow 3s ease-in-out infinite;
}

@keyframes moonGlow {
    0%, 100% { box-shadow: 0 0 20px rgba(59, 130, 246, 0.3); }
    50% { box-shadow: 0 0 40px rgba(59, 130, 246, 0.6); }
}

.moon-info {
    flex: 1;
}

.moon-phase-name {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 10px;
}

.moon-times {
    display: flex;
    gap: 15px;
    font-size: 13px;
    color: var(--text-secondary);
}

/* Hourly Card */
.hourly-card {
    grid-column: span 12;
    animation: scaleIn 0.5s ease 0.5s backwards;
}

.hourly-scroll {
    display: flex;
    gap: 15px;
    overflow-x: auto;
    padding: 10px 0;
    scrollbar-width: thin;
    scrollbar-color: var(--accent-primary) var(--bg-primary);
}

.hourly-scroll::-webkit-scrollbar {
    height: 8px;
}

.hourly-scroll::-webkit-scrollbar-track {
    background: var(--bg-primary);
    border-radius: 4px;
}

.hourly-scroll::-webkit-scrollbar-thumb {
    background: var(--accent-primary);
    border-radius: 4px;
}

.hourly-item {
    min-width: 100px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 20px 15px;
    text-align: center;
    transition: all var(--transition-fast);
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hourly-item:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-5px);
}

.hourly-time {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 10px;
}

.hourly-icon {
    width: 50px;
    height: 50px;
    margin: 10px auto;
}

.hourly-icon-container {
    position: relative;
    width: 50px;
    height: 50px;
    margin: 10px auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hourly-icon-img {
    width: 50px;
    height: 50px;
    object-fit: contain;
}

.hourly-icon-fa {
    position: absolute;
    width: 50px;
    height: 50px;
    display: none;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1), rgba(124, 58, 237, 0.1));
    border-radius: 50%;
}

.hourly-icon-fa i {
    font-size: 28px;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hourly-temp {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
}

/* Map Section */
.map-container {
    width: 100%;
    height: calc(100vh - 160px);
    animation: scaleIn 0.5s ease;
}

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

.map-layers {
    display: flex;
    gap: 10px;
}

.layer-btn {
    padding: 10px 20px;
    background: rgba(59, 130, 246, 0.05);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-fast);
    display: flex;
    align-items: center;
    gap: 8px;
}

.layer-btn:hover {
    background: rgba(255, 255, 255, 0.08);
}

.layer-btn.active {
    background: var(--accent-primary);
    color: white;
    border-color: var(--accent-primary);
}

#weatherMap {
    width: 100%;
    height: calc(100% - 80px);
    border-radius: 16px;
    overflow: hidden;
}

/* Extended Forecast */
.forecast-container {
    animation: scaleIn 0.5s ease;
}

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

.forecast-day {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 25px;
    text-align: center;
    transition: all var(--transition-fast);
    animation: slideUp 0.3s ease;
}

.forecast-day:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.forecast-date {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 5px;
}

.forecast-weekday {
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 15px;
}

.forecast-icon {
    width: 80px;
    height: 80px;
    margin: 15px auto;
}

.forecast-temps {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 15px;
}

.forecast-high {
    font-size: 24px;
    font-weight: 700;
    color: var(--accent-primary);
}

.forecast-low {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-dim);
}

.forecast-desc {
    font-size: 14px;
    color: var(--text-secondary);
    margin-top: 10px;
    text-transform: capitalize;
}

/* Favorites Grid */
.favorites-container {
    animation: scaleIn 0.5s ease;
}

.favorites-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.favorite-card {
    position: relative;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 20px;
    transition: all var(--transition-normal);
    cursor: pointer;
    overflow: hidden;
}

.favorite-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--accent-primary);
}

.remove-favorite-card {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(239, 68, 68, 0.1);
    border: none;
    color: #ef4444;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
    opacity: 0;
    z-index: 10;
}

.favorite-card:hover .remove-favorite-card {
    opacity: 1;
}

.remove-favorite-card:hover {
    background: #ef4444;
    color: white;
    transform: scale(1.1) rotate(90deg);
}

.favorite-card-content {
    text-align: center;
    pointer-events: none;
}

.favorite-card h4 {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 15px;
}

.favorite-card img {
    width: 100px;
    height: 100px;
    margin: 10px auto;
    display: block;
}

.favorite-card-temp {
    font-size: 36px;
    font-weight: 900;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.empty-state {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    color: var(--text-dim);
}

.empty-state i {
    font-size: 64px;
    margin-bottom: 20px;
    opacity: 0.3;
}

.empty-state p {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 10px;
}

.empty-state small {
    font-size: 14px;
}

/* Modal */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--transition-normal);
}

.modal.active {
    opacity: 1;
    pointer-events: all;
}

.modal.hidden {
    display: none;
}

.modal-content {
    background: var(--bg-card);
    border-radius: 24px;
    padding: 40px;
    max-width: 700px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    border: 1px solid var(--border-color);
    animation: modalSlideUp 0.4s ease;
}

@keyframes modalSlideUp {
    from {
        opacity: 0;
        transform: translateY(50px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: var(--text-primary);
    font-size: 24px;
    cursor: pointer;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
    z-index: 10;
}

.modal-close:hover {
    background: rgba(255, 107, 107, 0.2);
    color: #ff6b6b;
    transform: rotate(90deg);
}

.modal h3 {
    font-size: 28px;
    margin-bottom: 25px;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 12px;
}

.modal h3 i {
    color: var(--accent-primary);
}

.share-preview {
    background: var(--bg-primary);
    border-radius: 20px;
    padding: 0;
    margin-bottom: 25px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.btn-primary {
    width: 100%;
    padding: 18px;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    border: none;
    border-radius: 14px;
    color: white;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all var(--transition-fast);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.btn-primary:hover:not(:disabled) {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(59, 130, 246, 0.4);
}

.btn-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.btn-primary i {
    font-size: 18px;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .grid-container {
        grid-template-columns: repeat(8, 1fr);
    }
    
    .hero-card {
        grid-column: span 8;
    }
    
    .highlights-card {
        grid-column: span 8;
    }
    
    .chart-card {
        grid-column: span 8;
    }
}

@media (max-width: 768px) {
    .sidebar {
        width: 80px;
        padding: 20px 10px;
    }
    
    .logo-text,
    .nav-btn span,
    .favorites-list {
        display: none;
    }
    
    .main-content {
        padding: 20px;
    }
    
    .top-bar {
        flex-direction: column;
        gap: 15px;
    }
    
    .search-container {
        max-width: 100%;
    }
    
    .top-actions {
        width: 100%;
        justify-content: space-between;
    }
    
    .action-btn span {
        display: none;
    }
    
    .grid-container {
        grid-template-columns: 1fr;
    }
    
    .hero-card,
    .aqi-card,
    .highlights-card,
    .chart-card,
    .sun-moon-card,
    .hourly-card {
        grid-column: span 1;
    }
    
    .hero-body {
        flex-direction: column;
        text-align: center;
    }
    
    .main-temp {
        font-size: 64px;
    }
    
    .highlights-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .advisor-section {
        grid-template-columns: 1fr;
    }
}

/* Utility Classes */
.hidden {
    display: none !important;
}

/* Success Message Animations */
@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(100px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideOutRight {
    from {
        opacity: 1;
        transform: translateX(0);
    }
    to {
        opacity: 0;
        transform: translateX(100px);
    }
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
    background: var(--accent-primary);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent-secondary);
}