/* Weather Icons CSS - Climacon Animations
 * Estilos consolidados para iconos SVG del clima
 */

/* Base styles */
svg.climacon {
    shape-rendering: geometricPrecision;
}

.climacon g,
.climacon path,
.climacon circle,
.climacon rect {
    transform-origin: 50% 50%;
    animation-iteration-count: infinite;
    animation-timing-function: linear;
    animation-duration: 12s;
    animation-direction: normal;
}

/* Color variants */
.climacon-amber .climacon_component-stroke {
    fill: #ffc107;
}
.climacon-amber.climacon-darken-2 .climacon_component-stroke {
    fill: #ffa000;
}

.climacon-blue-grey .climacon_component-stroke {
    fill: #607D8B;
}
.climacon-blue-grey.climacon-darken-2 .climacon_component-stroke {
    fill: #455A64;
}

.climacon-indigo .climacon_component-stroke {
    fill: #3F51B5;
}
.climacon-indigo.climacon-darken-2 .climacon_component-stroke {
    fill: #303F9F;
}

.climacon-grey .climacon_component-stroke {
    fill: #9E9E9E;
}
.climacon-grey.climacon-darken-2 .climacon_component-stroke {
    fill: #616161;
}

.climacon-yellow .climacon_component-stroke {
    fill: #FFEB3B;
}
.climacon-yellow.climacon-darken-2 .climacon_component-stroke {
    fill: #FBC02D;
}

/* =====================
   SUN ANIMATIONS
   ===================== */
.climacon_componentWrap-sun {
    animation-name: rotate;
}

.climacon_component-stroke_sunSpoke {
    animation-name: scale;
    animation-direction: alternate;
    animation-duration: 3s;
}

.climacon_component-stroke_sunSpoke:nth-child(even) {
    animation-delay: 3s;
}

@keyframes rotate {
    0% { transform: rotate(0); }
    100% { transform: rotate(360deg); }
}

@keyframes scale {
    0% { transform: scale(1, 1); }
    100% { transform: scale(0.5, 0.5); }
}

/* =====================
   MOON ANIMATIONS
   ===================== */
.climacon_componentWrap-moon {
    animation-name: wobble;
}

@keyframes wobble {
    0% { transform: rotate(0); }
    25% { transform: rotate(-15deg); }
    50% { transform: rotate(0); }
    75% { transform: rotate(15deg); }
    100% { transform: rotate(0deg); }
}

/* =====================
   RAIN ANIMATIONS
   ===================== */
.climacon_component-stroke_rain {
    fill-opacity: 0;
    animation-name: rainFall, fillOpacity2;
    animation-timing-function: ease-in;
    animation-duration: 2s;
}

.climacon_component-stroke_rain:nth-child(n+4) {
    animation-delay: 1s;
}

.climacon_component-stroke_rain_alt:nth-child(2) {
    animation-delay: 1s;
}

@keyframes rainFall {
    0% { transform: translateY(0); }
    100% { transform: translateY(14px); }
}

@keyframes rainFall2 {
    0% { transform: translateY(0); }
    50% { transform: translateY(14px); }
    100% { transform: translateX(14px) translateY(14px); }
}

/* =====================
   SNOW ANIMATIONS
   ===================== */
.climacon_component-stroke_snow {
    fill-opacity: 0;
    animation-name: snowFall, fillOpacity2;
    animation-timing-function: ease-in-out;
    animation-duration: 6s;
}

.climacon_component-stroke_snow:nth-child(3) {
    animation-name: snowFall2, fillOpacity2;
}

.climacon_component-stroke_snow:nth-child(1) {
    animation-delay: 0s;
}

.climacon_component-stroke_snow:nth-child(2) {
    animation-delay: 2s;
}

.climacon_component-stroke_snow:nth-child(3) {
    animation-delay: 4s;
}

@keyframes snowFall {
    0% { transform: translateY(0) translateX(0); }
    25% { transform: translateY(4.375px) translateX(4.5px); }
    50% { transform: translateY(8.75px) translateX(0); }
    75% { transform: translateY(13.125px) translateX(-4.5px); }
    100% { transform: translateY(17.5px) translateX(0); }
}

@keyframes snowFall2 {
    0% { transform: translateY(0) translateX(0); }
    25% { transform: translateY(4.375px) translateX(-4.5px); }
    50% { transform: translateY(8.75px) translateX(0); }
    75% { transform: translateY(13.125px) translateX(4.5px); }
    100% { transform: translateY(17.5px) translateX(0); }
}

/* =====================
   LIGHTNING ANIMATIONS
   ===================== */
.climacon_component-stroke_lightning {
    fill-opacity: 0;
    animation-name: lightningFlash;
    animation-timing-function: ease-out;
    animation-duration: 12s;
}

@keyframes lightningFlash {
    0% { fill-opacity: 0; stroke-opacity: 0; }
    1% { fill-opacity: 1; stroke-opacity: 1; }
    7% { fill-opacity: 0; stroke-opacity: 0; }
    50% { fill-opacity: 0; stroke-opacity: 0; }
    51% { fill-opacity: 1; stroke-opacity: 1; }
    53% { fill-opacity: 0; stroke-opacity: 0; }
    54% { fill-opacity: 1; stroke-opacity: 1; }
    60% { fill-opacity: 0; stroke-opacity: 0; }
    100% { fill-opacity: 0; stroke-opacity: 0; }
}

/* =====================
   DRIZZLE ANIMATIONS
   ===================== */
.climacon_component-stroke_drizzle {
    fill-opacity: 0;
    animation-name: drizzleFall, fillOpacity2;
    animation-timing-function: ease-in;
    animation-duration: 2s;
}

.climacon_component-stroke_drizzle:nth-child(n+4) {
    animation-delay: 1s;
}

@keyframes drizzleFall {
    0% { transform: translateY(0); }
    100% { transform: translateY(10px); }
}

/* =====================
   HAIL ANIMATIONS
   ===================== */
.climacon_component-stroke_hail {
    fill-opacity: 0;
    animation-name: hailFall, fillOpacity2;
    animation-timing-function: ease-in;
    animation-duration: 2s;
}

.climacon_component-stroke_hailAlt {
    fill-opacity: 0;
    animation-name: hailFall, fillOpacity2;
    animation-timing-function: ease-in;
    animation-duration: 2s;
}

@keyframes hailFall {
    0% { transform: translateY(0); }
    100% { transform: translateY(14px); }
}

/* =====================
   FOG ANIMATIONS
   ===================== */
.climacon_component-stroke_fog {
    animation-name: fogWave;
    animation-duration: 8s;
}

.climacon_component-stroke_fog:nth-child(2) {
    animation-delay: 2s;
}

.climacon_component-stroke_fog:nth-child(3) {
    animation-delay: 4s;
}

@keyframes fogWave {
    0% { transform: translateX(0); opacity: 0.8; }
    25% { transform: translateX(3px); opacity: 1; }
    50% { transform: translateX(0); opacity: 0.8; }
    75% { transform: translateX(-3px); opacity: 0.6; }
    100% { transform: translateX(0); opacity: 0.8; }
}

/* =====================
   SHARED ANIMATIONS
   ===================== */
@keyframes fillOpacity2 {
    0% { fill-opacity: 0; stroke-opacity: 0; }
    50% { fill-opacity: 1; stroke-opacity: 1; }
    100% { fill-opacity: 0; stroke-opacity: 0; }
}

/* =====================
   CLOUD ANIMATIONS
   ===================== */
.climacon_componentWrap-cloud_cloud {
    animation-name: cloudFloat;
    animation-duration: 8s;
}

@keyframes cloudFloat {
    0% { transform: translateX(0); }
    50% { transform: translateX(3px); }
    100% { transform: translateX(0); }
}

/* =====================
   WIND ANIMATIONS
   ===================== */
.climacon_component-stroke_wind {
    animation-name: windBlow;
    animation-duration: 4s;
}

@keyframes windBlow {
    0% { transform: translateX(0); opacity: 1; }
    50% { transform: translateX(5px); opacity: 0.7; }
    100% { transform: translateX(0); opacity: 1; }
}

/* =====================
   TORNADO ANIMATIONS
   ===================== */
.climacon_componentWrap-tornado {
    animation-name: tornadoSpin;
    animation-duration: 3s;
}

@keyframes tornadoSpin {
    0% { transform: rotate(0) scaleX(1); }
    25% { transform: rotate(5deg) scaleX(0.95); }
    50% { transform: rotate(0) scaleX(1); }
    75% { transform: rotate(-5deg) scaleX(1.05); }
    100% { transform: rotate(0) scaleX(1); }
}

/* =====================
   UTILITY CLASSES
   ===================== */
.height-150 {
    height: 150px;
    width: 150px;
}
