/* ============================================================
   modal.css  —  Tool info popup · Toast notifications
   Shared keyframes: fadeIn, fadeOut, slideUp
   ============================================================ */

/* ── Shared overlay keyframes ── */
@keyframes fadeIn  { from { opacity: 0; }                                to { opacity: 1; } }
@keyframes fadeOut { from { opacity: 1; }                                to { opacity: 0; } }
@keyframes slideUp { from { opacity: 0; transform: translateY(30px) scale(0.9); } to { opacity: 1; transform: translateY(0) scale(1); } }

/* ============================================================
   TOOL INFO POPUP
   ============================================================ */
.tool-popup-overlay {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    animation: fadeIn 0.25s ease;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

.tool-popup-box {
    --tp-accent:     #00d9ff;
    --tp-accent-rgb: 0, 217, 255;
    background:
        linear-gradient(135deg,
            rgba(var(--tp-accent-rgb), 0.08) 0%,
            rgba(15,22,35,0.55) 50%,
            rgba(15,22,35,0.65) 100%);
    border: 1px solid rgba(var(--tp-accent-rgb), 0.35);
    border-radius: 18px;
    padding: 2rem 2rem 1.75rem;
    max-width: 380px;
    width: 90%;
    position: relative;
    box-shadow:
        0 0 60px rgba(var(--tp-accent-rgb), 0.18),
        0 20px 60px rgba(0,0,0,0.5),
        inset 0 1px 0 rgba(255,255,255,0.08);
    animation: slideUp 0.25s ease;
    backdrop-filter: blur(22px) saturate(160%);
    -webkit-backdrop-filter: blur(22px) saturate(160%);
}

.tool-popup-close {
    position: absolute;
    top: 0.75rem; right: 0.9rem;
    background: none;
    border: none;
    color: var(--text-tertiary);
    font-size: 1.4rem;
    cursor: pointer;
    line-height: 1;
    transition: color 0.2s ease, transform 0.2s ease;
    padding: 0.2rem 0.4rem;
}
.tool-popup-close:hover { color: var(--tp-accent); transform: scale(1.2); }

.tool-popup-icon {
    width: 48px; height: 48px;
    margin: 0 auto 0.95rem;
    display: flex; align-items: center; justify-content: center;
    border-radius: 12px;
    background: rgba(var(--tp-accent-rgb), 0.1);
    border: 1px solid rgba(var(--tp-accent-rgb), 0.3);
    padding: 9px;
}
.tool-popup-icon svg { width: 100%; height: 100%; display: block; }

.tool-popup-name {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.28rem;
    font-weight: 800;
    color: var(--tp-accent);
    margin-bottom: 0.55rem;
    text-align: center;
    text-shadow: 0 0 12px rgba(var(--tp-accent-rgb), 0.3);
}
.tool-popup-desc {
    font-family: 'Poppins', sans-serif;
    font-size: 0.88rem;
    color: var(--text-secondary);
    line-height: 1.72;
    text-align: center;
}

/* ============================================================
   TOAST NOTIFICATIONS
   ============================================================ */
.toast-container {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    pointer-events: none;
}

.toast-notification {
    background: rgba(10,16,26,0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(0,217,255,0.3);
    border-radius: 12px;
    padding: 1rem 1.5rem;
    color: #ffffff;
    font-family: 'Poppins', sans-serif;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    box-shadow:
        0 10px 30px rgba(0,0,0,0.5),
        0 0 20px rgba(0,217,255,0.15);
    pointer-events: auto;
    animation: toastSlideIn 0.5s cubic-bezier(0.175,0.885,0.32,1.275) forwards;
    transition: all 0.3s ease;
}
.toast-notification.hiding { animation: toastSlideOut 0.5s ease forwards; }

.toast-icon {
    color: var(--accent-cyan);
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}
.toast-message { font-weight: 500; letter-spacing: 0.2px; }

@keyframes toastSlideIn {
    from { transform: translateX(120%) scale(0.9); opacity: 0; }
    to   { transform: translateX(0) scale(1);      opacity: 1; }
}
@keyframes toastSlideOut {
    from { transform: translateX(0) scale(1);       opacity: 1; }
    to   { transform: translateX(120%) scale(0.9);  opacity: 0; }
}

@media (max-width: 768px) {
    .toast-container {
        bottom: 1.5rem; right: 1.5rem; left: 1.5rem;
    }
    .toast-notification { width: 100%; justify-content: center; }
}
