/* ========================================
   WEATHER FORECAST WIDGET - 7 DAY
   ======================================== */

.weather-forecast-widget {
    position: fixed;
    right: 20px;
    top: 120px;
    width: 320px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    color: white;
    z-index: 9999;
    transition: all 0.3s ease;
    overflow: hidden;
    display: block !important;
}

.weather-forecast-widget.minimized {
    transform: translateX(280px);
}

.weather-forecast-widget.minimized .toggle-btn i {
    transform: rotate(180deg);
}

.weather-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background: rgba(0, 0, 0, 0.15);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.weather-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.toggle-btn {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.toggle-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

/* Current Weather */
.current-weather {
    padding: 20px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

.current-temp {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.current-temp i {
    font-size: 50px;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

.temp-display {
    display: flex;
    flex-direction: column;
}

.temp {
    font-size: 36px;
    font-weight: bold;
    line-height: 1;
}

.condition {
    font-size: 14px;
    opacity: 0.9;
    text-transform: capitalize;
    margin-top: 5px;
}

.weather-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.detail {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
}

.detail i {
    font-size: 16px;
    opacity: 0.8;
}

/* Forecast Days */
.forecast-days {
    padding: 15px;
    max-height: 400px;
    overflow-y: auto;
}

.forecast-days::-webkit-scrollbar {
    width: 6px;
}

.forecast-days::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
}

.forecast-days::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 10px;
}

.forecast-day {
    display: grid;
    grid-template-columns: 60px 50px 1fr auto;
    align-items: center;
    gap: 10px;
    padding: 12px;
    margin-bottom: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    transition: all 0.3s ease;
}

.forecast-day:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateX(5px);
}

.day-name {
    font-weight: 600;
    font-size: 14px;
}

.forecast-day > i {
    font-size: 28px;
    text-align: center;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.2));
}

.temp-range {
    display: flex;
    gap: 8px;
    font-size: 16px;
    font-weight: 500;
}

.temp-max {
    color: #fff;
}

.temp-min {
    opacity: 0.7;
}

.rain-prob {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    opacity: 0.9;
    background: rgba(255, 255, 255, 0.15);
    padding: 4px 8px;
    border-radius: 12px;
}

.rain-prob i {
    font-size: 11px;
}

.loading {
    text-align: center;
    padding: 20px;
    opacity: 0.7;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .weather-forecast-widget {
        width: 280px;
        right: 10px;
        top: 80px;
    }
    
    .weather-forecast-widget.minimized {
        transform: translateX(240px);
    }
    
    .current-temp i {
        font-size: 40px;
    }
    
    .temp {
        font-size: 28px;
    }
    
    .forecast-day {
        grid-template-columns: 50px 40px 1fr auto;
        padding: 10px;
    }
    
    .forecast-day > i {
        font-size: 24px;
    }
}

/* Animation */
@keyframes slideIn {
    from {
        transform: translateX(400px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.weather-forecast-widget {
    animation: slideIn 0.5s ease-out;
}

/* ========================================
   COMPACT 5-DAY WEATHER FORECAST (TOP BAR)
   ======================================== */

.weather-forecast-compact {
    display: inline-flex;
    gap: 12px;
    margin-left: 20px;
    padding: 8px 15px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    backdrop-filter: blur(10px);
}

.forecast-day-compact {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 6px 10px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
    cursor: pointer;
}

.forecast-day-compact:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
}

.forecast-day-compact .day-name {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    opacity: 0.8;
}

.forecast-day-compact .day-icon {
    font-size: 18px;
}

.forecast-day-compact .day-temp {
    font-size: 13px;
    font-weight: 600;
}

/* Hide on mobile */
@media (max-width: 768px) {
    .weather-forecast-compact {
        display: none;
    }
}

/* ========================================
   WEATHER TOP CENTER (HOMEPAGE)
   ======================================== */

.weather-top-center {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 15px;
    color: white;
    font-size: 14px;
    font-weight: 600;
}

.weather-top-center i {
    font-size: 18px;
    color: #FFD700;
}

/* ========================================
   WEATHER CARD (SIDEBAR ON HOMEPAGE)
   ======================================== */

.weather-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 12px;
    padding: 20px;
    color: white;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    margin-bottom: 20px;
}

.weather-card .weather-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding: 0;
    background: none;
    border: none;
}

.weather-card .weather-header h3 {
    font-size: 16px;
    font-weight: 600;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.weather-card .weather-header h3 i {
    font-size: 20px;
}

.weather-card .weather-header span {
    font-size: 24px;
    font-weight: 700;
}

.weather-forecast-sidebar {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.forecast-day-sidebar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    transition: all 0.3s ease;
}

.forecast-day-sidebar:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateX(5px);
}

.forecast-day-sidebar .day-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.forecast-day-sidebar .day-name {
    font-size: 13px;
    font-weight: 600;
    min-width: 50px;
}

.forecast-day-sidebar .day-icon {
    font-size: 20px;
}

.forecast-day-sidebar .day-temp {
    font-size: 16px;
    font-weight: 600;
    margin-left: auto;
}

