/* Weather-specific Effects */

/* Rain Mode */

/* Rain Mode */
.water-effects.rain-mode {
    background: linear-gradient(180deg, rgba(173, 216, 230, 0.1) 0%, rgba(135, 206, 235, 0.05) 100%);
}

.rain-drop {
    position: absolute;
    width: 2px;
    height: 20px;
    background: linear-gradient(to bottom, rgba(173, 216, 230, 0.6), rgba(135, 206, 235, 0.3));
    animation: rainFall linear infinite;
    pointer-events: none;
}

@keyframes rainFall {
    0% {
        transform: translateY(-20px) rotate(10deg);
        opacity: 0;
    }

    10% {
        opacity: 1;
    }

    90% {
        opacity: 1;
    }

    100% {
        transform: translateY(100vh) rotate(10deg);
        opacity: 0;
    }
}

/* Snow Mode */
.water-effects.snow-mode {
    background: linear-gradient(180deg, rgba(240, 248, 255, 0.1) 0%, rgba(173, 216, 230, 0.05) 100%);
}

.snow-flake {
    position: absolute;
    width: 6px;
    height: 6px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.8) 0%, rgba(240, 248, 255, 0.4) 100%);
    border-radius: 50%;
    animation: snowFall linear infinite;
    pointer-events: none;
}

@keyframes snowFall {
    0% {
        transform: translateY(-10px) rotate(0deg);
        opacity: 0;
    }

    10% {
        opacity: 0.8;
    }

    90% {
        opacity: 0.8;
    }

    100% {
        transform: translateY(100vh) rotate(360deg);
        opacity: 0;
    }
}

/* Storm Mode */
.water-effects.storm-mode {
    background: linear-gradient(180deg, rgba(72, 61, 139, 0.1) 0%, rgba(25, 25, 112, 0.05) 100%);
}

.lightning {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom,
            rgba(255, 255, 255, 0.3) 0%,
            rgba(173, 216, 230, 0.2) 30%,
            rgba(135, 206, 235, 0.1) 60%,
            transparent 100%);
    pointer-events: none;
    transition: opacity 0.2s ease-in-out;
}

/* Sunny Weather */
.weather-clear .background-grid {
    background-color: #f0f8ff !important;
}

/* Cloudy Weather */
.weather-clouds .background-grid {
    background-color: #e6e6e6 !important;
}

/* Weather Animation Effects */
.weather-animations {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

/* Cloud Layers for Cloudy Weather */
.weather-clouds .weather-animations {
    opacity: 1;
    transition: opacity 2s ease-in-out;
}

.weather-animations:not(.weather-clouds .weather-animations) {
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.cloud-layer {
    position: absolute;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(ellipse 300px 150px at 20% 30%, rgba(255, 255, 255, 0.3) 0%, transparent 50%),
        radial-gradient(ellipse 200px 100px at 80% 20%, rgba(240, 240, 240, 0.4) 0%, transparent 50%),
        radial-gradient(ellipse 250px 120px at 60% 70%, rgba(220, 220, 220, 0.3) 0%, transparent 50%);
    animation: cloudMovement linear infinite;
    opacity: 0;
}

.weather-clouds .cloud-layer {
    opacity: 0.6;
}

.cloud-layer-1 {
    animation-duration: 20s;
    animation-delay: 0s;
}

.cloud-layer-2 {
    animation-duration: 25s;
    animation-delay: 5s;
    transform: scale(0.8);
}

.cloud-layer-3 {
    animation-duration: 30s;
    animation-delay: 10s;
    transform: scale(1.2);
}

@keyframes cloudMovement {
    0% {
        transform: translateX(-100%);
    }

    100% {
        transform: translateX(100%);
    }
}

/* Fog Effect for Very Cloudy Weather */
.weather-clouds.foggy .fog-layer {
    opacity: 0.4;
    animation: fogMovement 15s ease-in-out infinite alternate;
}

.fog-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(ellipse 400px 200px at 30% 40%, rgba(200, 200, 200, 0.2) 0%, transparent 60%),
        radial-gradient(ellipse 300px 150px at 70% 60%, rgba(180, 180, 180, 0.15) 0%, transparent 60%);
    opacity: 0;
    transition: opacity 3s ease-in-out;
}

@keyframes fogMovement {
    0% {
        transform: translateX(-50px) scale(1);
    }

    100% {
        transform: translateX(50px) scale(1.1);
    }
}

/* Dust Particles for Sunny Weather */
.weather-clear .dust-particles {
    opacity: 0.3;
    animation: dustGlow 8s ease-in-out infinite;
}

.dust-particles {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 3s ease-in-out;
}

.dust-particle {
    position: absolute;
    width: 3px;
    height: 3px;
    background: radial-gradient(circle, rgba(255, 215, 0, 0.6) 0%, rgba(255, 165, 0, 0.3) 70%, transparent 100%);
    border-radius: 50%;
    animation: dustFloat linear infinite;
}

.particle-1 {
    top: 15%;
    left: 20%;
    animation-duration: 12s;
    animation-delay: 0s;
}

.particle-2 {
    top: 35%;
    left: 60%;
    animation-duration: 15s;
    animation-delay: 3s;
}

.particle-3 {
    top: 55%;
    left: 30%;
    animation-duration: 10s;
    animation-delay: 6s;
}

.particle-4 {
    top: 75%;
    left: 80%;
    animation-duration: 14s;
    animation-delay: 9s;
}

.particle-5 {
    top: 25%;
    left: 10%;
    animation-duration: 11s;
    animation-delay: 12s;
}

@keyframes dustFloat {
    0% {
        transform: translateY(0px) scale(0.5);
        opacity: 0.3;
    }

    25% {
        transform: translateY(-20px) scale(1);
        opacity: 0.8;
    }

    75% {
        transform: translateY(10px) scale(0.8);
        opacity: 0.5;
    }

    100% {
        transform: translateY(0px) scale(0.5);
        opacity: 0.3;
    }
}

@keyframes dustGlow {

    0%,
    100% {
        filter: brightness(1);
    }

    50% {
        filter: brightness(1.3);
    }
}

/* Storm Elements for Thunderstorm Weather */
.weather-thunderstorm .storm-elements {
    opacity: 1;
    animation: stormIntensity 4s ease-in-out infinite alternate;
}

.storm-elements {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 2s ease-in-out;
}

.storm-cloud {
    position: absolute;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(ellipse 400px 200px at 25% 25%, rgba(50, 50, 70, 0.4) 0%, transparent 60%),
        radial-gradient(ellipse 300px 150px at 75% 35%, rgba(40, 40, 60, 0.5) 0%, transparent 60%),
        radial-gradient(ellipse 350px 180px at 50% 65%, rgba(30, 30, 50, 0.3) 0%, transparent 60%);
    animation: stormCloudMovement linear infinite;
    opacity: 0;
}

.weather-thunderstorm .storm-cloud {
    opacity: 0.7;
}

.storm-cloud-1 {
    animation-duration: 15s;
    animation-delay: 0s;
}

.storm-cloud-2 {
    animation-duration: 18s;
    animation-delay: 7s;
    transform: scale(0.9);
}

@keyframes stormCloudMovement {
    0% {
        transform: translateX(-120%) rotate(0deg);
    }

    100% {
        transform: translateX(120%) rotate(5deg);
    }
}

/* Enhanced Lightning for Storm */
.lightning-flash {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.4) 0%, transparent 30%),
        linear-gradient(-135deg, rgba(200, 200, 255, 0.3) 0%, transparent 40%),
        radial-gradient(circle at 30% 40%, rgba(255, 255, 255, 0.6) 0%, transparent 20%),
        radial-gradient(circle at 70% 20%, rgba(220, 220, 255, 0.4) 0%, transparent 25%);
    opacity: 0;
    animation: lightningStrike 6s ease-in-out infinite;
    pointer-events: none;
}

@keyframes lightningStrike {

    0%,
    90%,
    100% {
        opacity: 0;
    }

    92% {
        opacity: 0.8;
    }

    95% {
        opacity: 0.4;
    }

    98% {
        opacity: 0.9;
    }
}

@keyframes stormIntensity {
    0% {
        filter: brightness(0.8) contrast(1.1);
    }

    100% {
        filter: brightness(0.6) contrast(1.3);
    }
}

/* Weather Interface Styles - Vertical Layout */
.weather-interface {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 15px;
    padding: 15px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}

.weather-dashboard-vertical {
    color: white;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    width: 100%;
}

.weather-header-vertical {
    text-align: left;
    margin-bottom: 15px;
    width: 100%;
}

.city-name {
    margin: 2.8rem 0 5px 0;
    font-size: 1.2rem;
    font-weight: bold;
    opacity: 0.95;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.weather-description-main {
    margin: 0;
    font-size: 1.3rem;
    opacity: 0.85;
    margin-left: 0rem;
    text-transform: capitalize;
}

.weather-main-display {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin: 20px 0;
    gap: 15px;
    width: 100%;
}

.weather-main-left {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
}

.weather-main-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
}

.main-temp-vertical {
    z-index: 10;
    font-size: 4rem;
    font-weight: bold;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
    line-height: 0;
    letter-spacing: -0.2rem;
    margin-top: -0.4rem;
    margin-left: -0.45rem;
    align-items: center;
}

.gradient-text {
    background: linear-gradient(-25deg, rgba(0, 0, 0, 0) 21%, #fff 52.5%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    /* Optional for cross-browser: */
    background-clip: text;
    color: transparent;
}

.weather-icon-main {
    margin-top: -2.6rem;
    margin-left: -0.6rem;
    font-size: 6.5rem;
    z-index: -1;
}

/* Analog Clock Styles */
.analog-clock {
    font-family: monospace;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 10px;
    padding: 8px;
    text-shadow: 0 1px 3px rgba(11, 11, 11, 0.3);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
}

.digital-time-column {
    position: absolute;
    top: 8px;
    left: 0.3rem;
    display: flex;
    flex-direction: column;
    gap: 2px;
    z-index: 15;
}

.time-unit {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.time-value {
    font-weight: 900;
    color: rgba(255, 255, 255, 0.9);
    font-family: 'SlugsRacer', monospace;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0) 21%, #fff 60%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-top: -0.5rem;
}

@font-face {
    font-family: 'SlugsRacer';
    src: url('../assets/fonts/SlugsRacer.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

.time-hour {
    font-weight: 350;
    font-size: 2.6rem;
    margin-left: 0.2rem;
    margin-top: -0.6rem;
    text-shadow: 0 1px 3px rgba(11, 11, 11, 0.3);
    background: linear-gradient(-50deg, rgba(0, 0, 0, 0) 28%, #949494ab 40%, #fff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: 0rem;
}

.time-hour.evening-hours {
    margin-left: -0.2rem;
    letter-spacing: 0rem;
    font-size: 2.3rem;
}

/* Midnight hours (00) - smaller and positioned to the left */
.time-hour.midnight-hours {
    font-size: 2.2rem;
    margin-left: -0.3rem;
    letter-spacing: -0.1rem;
    opacity: 0.9;
}

/* Nighttime seconds - shifted left during night hours */
.time-second.nighttime-hours {
    margin-left: 0.7rem;
    /* Shifted left from normal 1rem */
    opacity: 0.85;
    letter-spacing: 0.05rem;
    /* Slightly tighter spacing */
}

.time-minute {
    text-shadow: 0 1px 3px rgba(11, 11, 11, 0.3);
    background: linear-gradient(-100deg, rgba(0, 0, 0, 0) 10%, #949494ab 30%, #fff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 1.65rem;
    margin-top: -0.85rem;
    margin-left: -0.6rem;
    letter-spacing: 0.1rem;
}

.time-second {
    text-shadow: 0 1px 3px rgba(11, 11, 11, 0.3);
    background: linear-gradient(-120deg, rgba(0, 0, 0, 0) 10%, #949494ab 50%, #fff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 1.25rem;
    margin-left: 1rem;
    letter-spacing: 0.1rem;
}

.clock-face {
    z-index: 2;
    position: relative;
    width: 4.5rem;
    height: 4.5rem;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.2);
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.1);
    margin-left: 2rem;
}

.hour-marker {
    position: absolute;
    font-size: 10px;
    font-weight: bold;
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
    z-index: 2;
}

.minute-marker {
    position: absolute;
    font-size: 8px;
    color: rgba(255, 255, 255, 0.6);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
    z-index: 2;
}

.clock-center {
    position: absolute;
    width: 10px;
    height: 10px;
    background: linear-gradient(45deg, #ffffff, #e0e0e0);
    border-radius: 50%;
    z-index: 10;
    box-shadow: 0 0 6px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.8);
}

.hour-hand,
.minute-hand,
.second-hand {

    position: absolute;
    transform-origin: bottom center;
    border-radius: 2px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
}

.hour-hand {
    width: 4px;
    height: 24px;
    background: linear-gradient(to bottom, #ffffff, #cccccc);
    top: 50%;
    left: 50%;
    margin-top: -24px;
    margin-left: -2px;
    border-radius: 2px 2px 0 0;
}

.minute-hand {
    width: 3px;
    height: 32px;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.7));
    top: 50%;
    left: 50%;
    margin-top: -32px;
    margin-left: -1.5px;
    border-radius: 1.5px 1.5px 0 0;
}

.second-hand {
    width: 2px;
    height: 36px;
    background: linear-gradient(to bottom, #ff4444, #cc2222);
    top: 50%;
    left: 50%;
    margin-top: -36px;
    margin-left: -1px;
    border-radius: 1px 1px 0 0;
}

.weather-details-horizontal {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
    margin: 15px 0;
    width: 100%;
}

.detail-item-horizontal {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    padding: 6px 4px;
    min-width: 55px;
    text-align: center;
    position: relative;
}

.detail-icon-horizontal {
    font-size: 16px;
    position: absolute;
    top: -6px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.6);
}

.detail-text {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1px;
    margin-top: 10px;
}

.detail-value-horizontal {
    font-size: 10px;
    font-weight: bold;
    text-align: center;
    line-height: 1.1;
    color: #ffffff;
}

.detail-label-horizontal {
    font-size: 8px;
    opacity: 0.9;
    text-align: center;
    line-height: 1;
    color: rgba(255, 255, 255, 0.8);
}