/* ==================== RAIN ALERT MODAL ==================== */

/* Overlay */
.rain-alert-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.rain-alert-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Modal */
.rain-alert-modal {
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.95), rgba(30, 41, 59, 0.95));
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    padding: 40px 32px;
    max-width: 400px;
    width: 90%;
    text-align: center;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
    position: relative;
    z-index: 10001;
    transform: translateY(30px);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.rain-alert-modal.open {
    transform: translateY(0);
    opacity: 1;
}

/* Botón cerrar (X) */
.rain-alert-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 32px;
    height: 32px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    color: var(--text-muted);
    font-size: 1.2rem;
}

.rain-alert-close:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
}

/* Icono animado */
.rain-alert-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 24px;
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.15), rgba(59, 130, 246, 0.15));
    border: 2px solid rgba(34, 197, 94, 0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.2rem;
    color: var(--primary-green);
    animation: rain-pulse 2s infinite;
}

/* Título */
.rain-alert-title {
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--text-primary);
}

/* Mensaje */
.rain-alert-message {
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 24px;
}

/* Recordatorio final */
.rain-alert-reminder {
    font-size: 0.95rem;
    color: var(--text-muted);
    font-weight: 500;
    line-height: 1.6;
}

/* Animación de pulso */
@keyframes rain-pulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.4);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 0 0 10px rgba(34, 197, 94, 0);
    }
}

/* Responsive */
@media (max-width: 480px) {
    .rain-alert-modal {
        padding: 32px 24px;
        width: 95%;
    }

    .rain-alert-title {
        font-size: 1.4rem;
    }

    .rain-alert-icon {
        width: 70px;
        height: 70px;
        font-size: 2rem;
    }
}

/* ==================== LIGHT MODE ==================== */

body.light-mode .rain-alert-overlay {
    background: rgba(0, 0, 0, 0.4);
}

body.light-mode .rain-alert-modal {
    background: linear-gradient(135deg, rgba(248, 250, 252, 0.98), rgba(241, 245, 249, 0.98));
    border: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.2);
}

body.light-mode .rain-alert-close {
    background: rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.1);
    color: var(--text-secondary);
}

body.light-mode .rain-alert-close:hover {
    background: rgba(0, 0, 0, 0.1);
    color: var(--text-primary);
}

body.light-mode .rain-alert-icon {
    background: linear-gradient(135deg, rgba(5, 150, 105, 0.15), rgba(37, 99, 235, 0.15));
    border: 2px solid rgba(5, 150, 105, 0.3);
}

body.light-mode .rain-alert-title {
    color: var(--text-primary);
}

body.light-mode .rain-alert-message {
    color: var(--text-secondary);
}

body.light-mode .rain-alert-reminder {
    color: var(--text-muted);
}
