/* AI disclaimer styles — chip, modal, footer link.
   Used by AiDisclaimerChip, AiDisclaimerModal, and SiteFooter. */

/* ─────────────────────────────────────────────────────────────────────
   Inline chip (rendered after "Viewing X" in LastTransmissionBar)
   ───────────────────────────────────────────────────────────────────── */
.ai-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.2rem 0.6rem;
    margin-left: 0.5rem;
    font-size: 0.78rem;
    font-weight: 600;
    color: #6b46c1;
    background: rgba(167, 139, 250, 0.14);
    border: 1px solid rgba(139, 92, 246, 0.35);
    border-radius: 999px;
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s, transform 0.15s;
    font-family: inherit;
    white-space: nowrap;
    line-height: 1.2;
}

.ai-chip:hover {
    background: rgba(167, 139, 250, 0.22);
    border-color: rgba(139, 92, 246, 0.55);
}

.ai-chip:active {
    transform: scale(0.97);
}

.ai-chip-icon {
    font-size: 0.85rem;
    line-height: 1;
}

.ai-chip-text {
    line-height: 1;
}

/* Pulse animation on first visit (until modal is opened/closed once).
   A radiating ring rather than a scale/color throb — feels less like a
   notification badge demanding action, more like an "ambient hint." */
.ai-chip-pulse {
    animation: ai-chip-pulse 2.4s ease-in-out infinite;
}

@keyframes ai-chip-pulse {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(139, 92, 246, 0.5);
    }
    50% {
        box-shadow: 0 0 0 6px rgba(139, 92, 246, 0);
    }
}

@media (max-width: 480px) {
    .ai-chip {
        font-size: 0.7rem;
        padding: 0.15rem 0.5rem;
        margin-left: 0.4rem;
    }
}

/* ─────────────────────────────────────────────────────────────────────
   Modal
   ───────────────────────────────────────────────────────────────────── */
.ai-modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    z-index: 9999;
    animation: ai-modal-fadein 0.15s ease-out;
}

@keyframes ai-modal-fadein {
    from { opacity: 0; }
    to { opacity: 1; }
}

.ai-modal {
    position: relative;
    background: white;
    border-radius: 12px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
    max-width: 580px;
    width: 100%;
    max-height: 85vh;
    overflow-y: auto;
    padding: 1.75rem 1.75rem 1.5rem;
    animation: ai-modal-scalein 0.2s ease-out;
}

@keyframes ai-modal-scalein {
    from {
        opacity: 0;
        transform: scale(0.96) translateY(8px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.ai-modal-close {
    position: absolute;
    top: 0.65rem;
    right: 0.65rem;
    width: 2rem;
    height: 2rem;
    border: none;
    background: transparent;
    color: #777;
    font-size: 1.6rem;
    cursor: pointer;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    font-family: inherit;
}

.ai-modal-close:hover {
    background: rgba(0, 0, 0, 0.06);
    color: #333;
}

.ai-modal-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0 0 1rem;
    padding-right: 2rem;
    color: #222;
    line-height: 1.3;
}

.ai-modal-body {
    color: #333;
    font-size: 0.95rem;
    line-height: 1.55;
}

.ai-modal-body p {
    margin: 0 0 0.85rem;
}

.ai-modal-body p:last-child {
    margin-bottom: 0;
}

.ai-modal-body strong {
    font-weight: 700;
    color: #1f1f1f;
}

@media (max-width: 480px) {
    .ai-modal {
        padding: 1.25rem 1.25rem 1rem;
        border-radius: 10px;
    }

    .ai-modal-title {
        font-size: 1.1rem;
    }

    .ai-modal-body {
        font-size: 0.9rem;
    }
}

/* ─────────────────────────────────────────────────────────────────────
   Site footer (discrete Disclaimer link)
   ───────────────────────────────────────────────────────────────────── */
.site-footer {
    margin-top: 2.5rem;
    padding: 1rem 0 1.5rem;
    text-align: center;
}

.site-footer-link {
    border: none;
    background: transparent;
    color: #999;
    font-size: 0.7rem;
    font-weight: 400;
    cursor: pointer;
    text-decoration: underline;
    text-underline-offset: 2px;
    padding: 0.25rem 0.5rem;
    font-family: inherit;
    letter-spacing: 0.02em;
}

.site-footer-link:hover {
    color: #555;
}
