/* ═══════════════════════════════════════════════════
   MQ26 — Notificaciones Visuales (Frontend CSS)
   ═══════════════════════════════════════════════════ */

/* ─── Overlay base ─────────────────────────────────── */
.mq26-notif-overlay {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 10000;
    overflow: hidden;
    display: none;
}

/* ─── Bouncing Ball ─────────────────────────────────── */
.mq26-notif-ball {
    position: absolute;
    width: 80px;
    height: 80px;
    font-size: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    bottom: -100px;
    left: 50%;
    transform: translateX(-50%);
    filter: drop-shadow(0 10px 20px rgba(0,0,0,.5));
}

/* ─── Animations ─────────────────────────────────────── */
@keyframes mq26NotifBounce {
    0%   { bottom: -100px; transform: translateX(-50%) scale(1); }
    30%  { bottom: 60vh;   transform: translateX(-50%) scale(1.1); }
    60%  { bottom: 20vh;   transform: translateX(-50%) scale(0.9); }
    100% { bottom: 50vh;   transform: translateX(-50%) scale(1.2); opacity:0; }
}

@keyframes mq26NotifFade {
    0%   { opacity:0; transform: translateX(-50%) scale(0.5); bottom: 40vh; }
    100% { opacity:1; transform: translateX(-50%) scale(1.4); bottom: 50vh; }
}

@keyframes mq26NotifSlide {
    0%   { left:-100px; bottom:50vh; transform:translateY(-50%); }
    100% { left:50%;    bottom:50vh; transform:translate(-50%,-50%); }
}

@keyframes mq26NotifZoom {
    0%   { opacity:0; transform:translateX(-50%) scale(0); bottom:50vh; }
    60%  { opacity:1; transform:translateX(-50%) scale(1.3); }
    100% { opacity:1; transform:translateX(-50%) scale(1);   bottom:50vh; }
}

@keyframes mq26NotifFlip {
    0%   { opacity:0; transform:translateX(-50%) perspective(400px) rotateY(-90deg); bottom:50vh; }
    100% { opacity:1; transform:translateX(-50%) perspective(400px) rotateY(0deg);   bottom:50vh; }
}

@keyframes mq26NotifSpin {
    0%   { opacity:0; transform:translateX(-50%) rotate(-360deg) scale(0); bottom:50vh; }
    70%  { opacity:1; transform:translateX(-50%) rotate(20deg) scale(1.2);  }
    100% { opacity:1; transform:translateX(-50%) rotate(0deg) scale(1);     bottom:50vh; }
}

.mq26-notif-ball.animate.bounce { animation: mq26NotifBounce 2s ease-out forwards; }
.mq26-notif-ball.animate.fade   { animation: mq26NotifFade   1.5s ease-out forwards; }
.mq26-notif-ball.animate.slide  { animation: mq26NotifSlide  1s ease-out forwards; }
.mq26-notif-ball.animate.zoom   { animation: mq26NotifZoom   1.2s cubic-bezier(.34,1.56,.64,1) forwards; }
.mq26-notif-ball.animate.flip   { animation: mq26NotifFlip   1s ease-out forwards; }
.mq26-notif-ball.animate.spin   { animation: mq26NotifSpin   1.3s ease-out forwards; }

/* ─── Win Card ────────────────────────────────────────── */
.mq26-notif-card {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.5);
    background: rgba(13, 17, 23, 0.97);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    border: 2px solid #e8a020;
    box-shadow: 0 0 60px rgba(232,160,32,.35);
    border-radius: 28px;
    padding: 36px 40px;
    text-align: center;
    color: #fff;
    opacity: 0;
    transition: all 0.55s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    pointer-events: auto;
    width: 90%;
    max-width: 380px;
    font-family: 'Outfit', -apple-system, sans-serif;
}

.mq26-notif-card.active {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.mq26-notif-card .flag {
    width: 100px;
    height: 60px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 16px;
    box-shadow: 0 5px 15px rgba(0,0,0,.5);
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.mq26-notif-card h2 {
    font-size: 26px;
    margin: 0 0 8px;
    color: #e8a020;
    text-transform: uppercase;
    letter-spacing: 3px;
    line-height: 1.2;
}

.mq26-notif-card .score {
    font-size: 50px;
    font-weight: 900;
    margin: 8px 0;
    line-height: 1;
    background: linear-gradient(120deg, #e8a020, #fff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.mq26-notif-card .tag {
    background: rgba(255,255,255,.09);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 13px;
    color: #8b949e;
    margin-bottom: 10px;
    display: inline-block;
}

/* ─── Generic Card (rank / deadline / custom) ─────────── */
.mq26-notif-card--generic {
    border-color: #388bfd;
    box-shadow: 0 0 50px rgba(56,139,253,.3);
    padding: 28px 32px;
    transform: translate(-50%, -50%) scale(0.5);
    opacity: 0;
    transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.mq26-notif-card--visible {
    opacity: 1 !important;
    transform: translate(-50%, -50%) scale(1) !important;
}

.mq26-notif-icon-generic {
    font-size: 52px;
    margin-bottom: 12px;
    display: block;
}

.mq26-notif-msg {
    font-size: 14px;
    color: #8b949e;
    margin: 10px 0 0;
    line-height: 1.5;
}

/* ─── Close Button ────────────────────────────────────── */
.mq26-notif-close {
    position: absolute;
    top: -12px;
    right: -12px;
    background: #f85149;
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 28px;
    height: 28px;
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    box-shadow: 0 2px 10px rgba(0,0,0,.4);
    transition: transform .15s;
    pointer-events: auto;
    line-height: 1;
}

.mq26-notif-close:hover {
    transform: scale(1.15);
}

/* ─── Confetti Canvas (JS generated) ─────────────────── */
.mq26-confetti {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 10002;
}
