/* Home Screen Dynamic Background Styles */

/* Weather Widget */
#home-weather-widget {
    padding: 0 16px;
    margin-top: 8px;
    margin-bottom: 8px;
}

.weather-widget-content {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 16px;
    padding: 10px 14px;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.weather-current {
    display: flex;
    align-items: center;
    gap: 10px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    margin-bottom: 8px;
}

.weather-current-icon svg {
    filter: drop-shadow(1px 1px 3px rgba(0,0,0,0.4)) drop-shadow(0 0 6px rgba(0,0,0,0.2));
}

.weather-current-info {
    flex: 1;
}

.weather-current-temp {
    font-size: 24px;
    font-weight: 700;
    color: white;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.6), 0 0 8px rgba(0,0,0,0.3);
    line-height: 1;
}

.weather-current-desc {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.95);
    text-shadow: 1px 1px 2px rgba(0,0,0,0.6), 0 0 6px rgba(0,0,0,0.3);
    margin-top: 2px;
}

.weather-location {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.8);
    text-shadow: 1px 1px 2px rgba(0,0,0,0.6), 0 0 6px rgba(0,0,0,0.3);
    margin-top: 2px;
}

.weather-precip {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    color: rgba(255, 255, 255, 0.95);
    text-shadow: 1px 1px 2px rgba(0,0,0,0.6), 0 0 6px rgba(0,0,0,0.3);
}

.weather-precip svg {
    stroke: #60A5FA;
    fill: rgba(96, 165, 250, 0.3);
    filter: drop-shadow(1px 1px 2px rgba(0,0,0,0.4));
}

.weather-precip span {
    font-size: 12px;
    font-weight: 600;
}

.weather-forecast {
    display: flex;
    justify-content: space-evenly;
}

.weather-forecast-day {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}

.weather-forecast-name {
    font-size: 13px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.95);
    text-shadow: 1px 1px 2px rgba(0,0,0,0.6), 0 0 6px rgba(0,0,0,0.3);
}

.weather-forecast-icon svg {
    filter: drop-shadow(1px 1px 2px rgba(0,0,0,0.4));
}

.weather-forecast-temps {
    display: flex;
    gap: 4px;
    font-size: 13px;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.6), 0 0 6px rgba(0,0,0,0.3);
}

.weather-high {
    color: white;
    font-weight: 600;
}

.weather-low {
    color: rgba(255, 255, 255, 0.8);
}

/* Ensure logo stays above weather icon */
#home-logo {
    position: relative;
    z-index: 2;
}

/* Adjust the underlay gradient for dynamic backgrounds */
#home-logo-underlay {
    background: linear-gradient(to bottom, rgba(0,0,0,0.15) 0%, transparent 100%) !important;
}

/* Rain animation overlay (optional enhancement) */
.weather-rain-overlay {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 1;
    background: repeating-linear-gradient(
        transparent 0px,
        transparent 4px,
        rgba(255, 255, 255, 0.03) 4px,
        rgba(255, 255, 255, 0.03) 5px
    );
    animation: rainFall 0.5s linear infinite;
}

@keyframes rainFall {
    0% {
        background-position: 0 0;
    }
    100% {
        background-position: 0 20px;
    }
}

/* Stars overlay for night time (optional) */
.weather-stars-overlay {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 1;
    background-image: 
        radial-gradient(1px 1px at 20px 30px, white, transparent),
        radial-gradient(1px 1px at 40px 70px, rgba(255,255,255,0.8), transparent),
        radial-gradient(1px 1px at 50px 160px, rgba(255,255,255,0.6), transparent),
        radial-gradient(1px 1px at 90px 40px, white, transparent),
        radial-gradient(1px 1px at 130px 80px, rgba(255,255,255,0.7), transparent),
        radial-gradient(1px 1px at 160px 120px, white, transparent),
        radial-gradient(1px 1px at 200px 50px, rgba(255,255,255,0.5), transparent),
        radial-gradient(1px 1px at 250px 90px, white, transparent),
        radial-gradient(1px 1px at 280px 140px, rgba(255,255,255,0.8), transparent),
        radial-gradient(1px 1px at 320px 30px, white, transparent);
    background-size: 350px 200px;
    animation: twinkle 4s ease-in-out infinite alternate;
}

@keyframes twinkle {
    0% { opacity: 0.3; }
    100% { opacity: 0.6; }
}
