/* ═══════════════════════════════════════════════════
   NutriNen Alarm Engine — Overlay & Global Styles
   ═══════════════════════════════════════════════════ */

/* ── Alarm firing overlay ──────────────────────── */
.alarm-overlay-backdrop {
    position: fixed;
    inset: 0;
    z-index: 99999;
    background: rgba(0, 0, 0, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    animation: alarmFadeIn 0.3s ease;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

.alarm-overlay-backdrop.alarm-overlay-exit {
    animation: alarmFadeOut 0.3s ease forwards;
}

.alarm-overlay-card {
    background: linear-gradient(145deg, #1e293b 0%, #0f172a 100%);
    border: 1px solid rgba(255, 170, 0, 0.3);
    border-radius: 24px;
    padding: 40px 32px;
    text-align: center;
    max-width: 320px;
    width: 85%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6),
                0 0 40px rgba(255, 170, 0, 0.15);
}

.alarm-overlay-icon {
    font-size: 4rem;
    margin-bottom: 16px;
    line-height: 1;
}

.alarm-overlay-icon.alarm-pulse {
    animation: alarmPulse 1s ease-in-out infinite;
}

.alarm-overlay-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 8px;
}

.alarm-overlay-time {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--game-gold-light, #ffd700);
    margin-bottom: 24px;
    letter-spacing: 2px;
}

.alarm-overlay-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
}

.alarm-dismiss-btn {
    padding: 12px 24px;
    background: rgba(239, 68, 68, 0.2);
    border: 1px solid rgba(239, 68, 68, 0.4);
    border-radius: 14px;
    color: #f87171;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.alarm-dismiss-btn:active {
    transform: scale(0.95);
    background: rgba(239, 68, 68, 0.35);
}

.alarm-snooze-btn {
    padding: 12px 24px;
    background: rgba(99, 102, 241, 0.2);
    border: 1px solid rgba(99, 102, 241, 0.4);
    border-radius: 14px;
    color: #a5b4fc;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.alarm-snooze-btn:active {
    transform: scale(0.95);
    background: rgba(99, 102, 241, 0.35);
}

/* ── Animations ──────────────────────────────── */
@keyframes alarmFadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

@keyframes alarmFadeOut {
    from { opacity: 1; }
    to   { opacity: 0; }
}

@keyframes alarmPulse {
    0%, 100% { transform: scale(1); }
    50%      { transform: scale(1.2); }
}
