/* Weather Widget CSS - Clean and Minimal */

.weather-widget-container {
    font-family: inherit;
}

.weather-widget-card {
    position: relative;
    overflow: hidden;
}

.weather-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.weather-location {
    display: flex;
    align-items: center;
    gap: 8px;
}

.weather-refresh {
    background: none;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.weather-buttons {
    display: flex;
    gap: 8px;
}

.weather-clear-cache {
    background: none;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.weather-main {
    text-align: center;
    padding: 40px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    
    box-sizing: border-box;
}

.weather-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: visible;   /* ✅ let icons breathe outside */
    margin: 0 auto;
}

.weather-icon-elementor {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.weather-icon-elementor i {
    font-size: inherit;
    color: inherit;
    line-height: 1;
}

.weather-icon-svg {
    width: 100%;
    height: 100%;
    display: block;
}

/* Weather icon layered styling - Clean and Simple */
.weather-icon-layered {
    position: relative;
    width: 80px;
    height: 80px;
    overflow: visible;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
}

.weather-icon-layered i {
    position: absolute;
    line-height: 1;
}

/* Base cloud - always white, always centered */
.weather-icon-layered .cloud {
    font-size: 64px;
    color: #FFFFFF !important;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
}

/* 🌧 Heavy Rain = 3 drops - MAXIMUM SPECIFICITY */
.weather-symbols-showcase .weather-symbol-item .weather-icon-layered.rain .rain,
.weather-icon-layered.rain .rain {
    font-size: 28px !important;
    color: #42A5F5 !important;
    top: 78% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    z-index: 3 !important;
    position: absolute !important;
}

.weather-symbols-showcase .weather-symbol-item .weather-icon-layered.rain .rain::before,
.weather-icon-layered.rain .rain::before {
    content: "\f043" !important;
    font-family: "Font Awesome 5 Free" !important;
    font-weight: 900 !important;
    position: absolute !important;
    font-size: 20px !important;
    color: #42A5F5 !important;
    left: -22px !important;
    top: 4px !important;
    z-index: 3 !important;
    display: block !important;
}

.weather-symbols-showcase .weather-symbol-item .weather-icon-layered.rain .rain::after,
.weather-icon-layered.rain .rain::after {
    content: "\f043" !important;
    font-family: "Font Awesome 5 Free" !important;
    font-weight: 900 !important;
    position: absolute !important;
    font-size: 16px !important;
    color: #42A5F5 !important;
    left: 22px !important;
    top: 8px !important;
    z-index: 3 !important;
    display: block !important;
}


/* ❄️ Snow = 3 flakes: big center, medium left, small right */
.weather-icon-layered .snow {
    font-size: 24px;
    color: #E3F2FD !important;
    top: 78%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 3;
}

.weather-icon-layered .snow::before {
    content: "\f2dc";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    position: absolute;
    font-size: 18px;
    color: #E3F2FD !important;
    left: -22px;
    top: 4px;
    z-index: 3;
}

.weather-icon-layered .snow::after {
    content: "\f2dc";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    position: absolute;
    font-size: 14px;
    color: #E3F2FD !important;
    left: 22px;
    top: 8px;
    z-index: 3;
}

/* ⚡ Lightning - yellow, front of cloud */
.weather-icon-layered .lightning {
    font-size: 32px;
    color: #FFD54F !important;
    top: 82%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 3;
}

/* 💨 Wind - light gray, top-left */
.weather-icon-layered .wind {
    font-size: 32px;
    color: #E0E0E0 !important;
    top: 20%;
    left: 20%;
    transform: translate(-50%, -50%);
    z-index: 4;
}

/* ☀️ Sun - always orange, always behind cloud when present */
.weather-icon-layered .sun {
    font-size: 48px;
    color: #FFA726 !important;
    top: 25%;
    left: 30%;
    transform: translate(-50%, -50%);
    z-index: 1;
}

.weather-icon-layered.clear .sun {
    font-size: 80px;
    top: 50%;
    left: 50%;
    z-index: 2;
}

/* 🌙 Moon - always blue #2656c9, always behind cloud when present */
.weather-icon-layered .moon {
    font-size: 48px !important;
    color: #2656c9 !important;
    top: 25% !important;
    left: 30% !important;
    transform: translate(-50%, -50%) !important;
    z-index: 1 !important;
    position: absolute !important;
}

.weather-icon-layered.clear-night .moon {
    font-size: 80px;
    top: 50%;
    left: 50%;
    z-index: 2;
}

/* All night weather with moon - moon always top-left behind cloud */
.weather-icon-layered.rain-night .moon,
.weather-icon-layered.snow-night .moon,
.weather-icon-layered.drizzle-night .moon,
.weather-icon-layered.thunderstorm-night .moon {
    font-size: 36px !important;
    color: #2656c9 !important;
    top: 25% !important;
    left: 25% !important;
    z-index: 1 !important;
    position: absolute !important;
}

/* 🌫️ Atmospheric conditions - centered, light gray */
.weather-icon-layered .mist,
.weather-icon-layered .fog,
.weather-icon-layered .haze {
    font-size: 48px;
    color: #E0E0E0 !important;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
}

.weather-details {
    display: grid;
    gap: 15px;
}

.weather-detail {
    text-align: center;
    transition: all 0.3s ease;
}

.weather-detail-label {
    display: block;
}

.weather-detail-value {
    display: block;
}

.weather-marketing-message {
    text-align: center;
    font-style: italic;
    margin-top: 15px;
    padding: 10px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    border-left: 3px solid #FFA726;
    font-size: 0.9em;
    line-height: 1.4;
}

.weather-loading-content {
    text-align: center;
}

.weather-spinner {
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.weather-error {
    color: #ff6b6b;
    text-align: center;
    padding: 16px;
    background: rgba(255, 107, 107, 0.1);
    border-radius: 8px;
    margin-top: 20px;
}

/* Animation Keyframes */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes float {
    0%, 100% { 
        transform: translateY(0px); 
    }
    50% { 
        transform: translateY(-8px); 
    }
}

@keyframes bounce-gentle {
    0%, 100% { 
        transform: translateY(0px); 
    }
    50% { 
        transform: translateY(-4px); 
    }
}

@keyframes fade-in {
    0% { 
        opacity: 0; 
        transform: translateY(10px) scale(0.95); 
    }
    100% { 
        opacity: 1; 
        transform: translateY(0px) scale(1); 
    }
}

/* Animation Classes */
.animate-float {
    animation: float 3s infinite;
}

.animate-bounce-gentle {
    animation: bounce-gentle 2s infinite;
}

.animate-fade-in {
    animation: fade-in 0.5s ease-out;
}

.weather-fade-in {
    animation: fade-in 0.5s ease-out;
}

.weather-bounce-gentle {
    animation: bounce-gentle 2s infinite;
}

.weather-icon.animate-float {
    animation: float 3s infinite !important;
}

.weather-icon.animate-bounce-gentle {
    animation: bounce-gentle 2s infinite !important;
}

.weather-icon.animate-fade-in {
    animation: fade-in 0.5s ease-out !important;
}

/* Showcase specific styling - inherits from main rules above */
.weather-symbol-item .weather-icon-layered {
    margin: 0 auto 15px auto;
}

/* FORCE MOON COLOR - MAXIMUM SPECIFICITY */
.weather-symbols-showcase .weather-symbol-item .weather-icon-layered .moon,
.weather-symbols-showcase .weather-symbol-item .weather-icon-layered.rain-night .moon,
.weather-symbols-showcase .weather-symbol-item .weather-icon-layered.snow-night .moon,
.weather-symbols-showcase .weather-symbol-item .weather-icon-layered.drizzle-night .moon,
.weather-symbols-showcase .weather-symbol-item .weather-icon-layered.thunderstorm-night .moon,
.weather-icon-layered .moon,
.weather-icon-layered.rain-night .moon,
.weather-icon-layered.snow-night .moon,
.weather-icon-layered.drizzle-night .moon,
.weather-icon-layered.thunderstorm-night .moon,
.moon {
    color: #2656c9 !important;
    font-size: 36px !important;
    position: absolute !important;
    top: 25% !important;
    left: 25% !important;
    transform: translate(-50%, -50%) !important;
    z-index: 1 !important;
}

/* 🌦 Drizzle = 1 tiny grey drop only - MAXIMUM SPECIFICITY */
.weather-symbols-showcase .weather-symbol-item .weather-icon-layered.drizzle .rain,
.weather-icon-layered.drizzle .rain {
    font-size: 14px !important;
    color: #b0bec5 !important;
    top: 78% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    z-index: 3 !important;
    position: absolute !important;
}

.weather-symbols-showcase .weather-symbol-item .weather-icon-layered.drizzle .rain::before,
.weather-symbols-showcase .weather-symbol-item .weather-icon-layered.drizzle .rain::after,
.weather-icon-layered.drizzle .rain::before,
.weather-icon-layered.drizzle .rain::after {
    display: none !important;
}