/* Shared "Report abuse" modal used by login, signup, and 404 pages.
 *
 * Self-contained styles (uses its own `.abuse-modal-*` class names rather
 * than the generic `.modal-overlay` so it can drop into any page without
 * depending on host CSS). Mirrors the visual language of the existing
 * login-page modal (dark slate card, cyan title).
 *
 * Why a modal: clicking a bare `mailto:` link does nothing visible on a
 * machine without a registered mail handler — common on Windows + Chrome
 * combos. The modal always shows feedback and has a Copy button so the
 * user can paste into webmail or wherever. */

.abuse-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    padding: 20px;
}
.abuse-modal-overlay.open {
    display: flex;
}

.abuse-modal-card {
    background: #1e293b;
    border: 1px solid #334155;
    border-radius: 16px;
    padding: 28px 24px;
    width: 100%;
    max-width: 380px;
    text-align: left;
    font-family: 'Manrope', 'Segoe UI', system-ui, sans-serif;
    color: #f1f5f9;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
}

.abuse-modal-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: #38bdf8;
    margin: 0 0 6px;
    text-align: center;
    font-family: 'Bricolage Grotesque', 'Segoe UI', sans-serif;
}

.abuse-modal-desc {
    font-size: 0.9rem;
    color: #cbd5e1;
    margin: 0 0 18px;
    text-align: center;
    line-height: 1.5;
}

.abuse-modal-email {
    display: block;
    background: #0b1220;
    border: 1px solid #334155;
    border-radius: 10px;
    padding: 12px 14px;
    font-family: 'JetBrains Mono', 'Consolas', monospace;
    font-size: 0.95rem;
    color: #38bdf8;
    margin: 0 0 18px;
    text-align: center;
    user-select: all;
    -webkit-user-select: all;
    word-break: break-all;
}

.abuse-modal-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.abuse-modal-actions button,
.abuse-modal-actions a.abuse-modal-mailto {
    width: 100%;
    padding: 11px 14px;
    border-radius: 10px;
    font-size: 0.92rem;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    text-decoration: none;
    text-align: center;
    transition: background 0.12s, color 0.12s, border-color 0.12s, transform 0.08s;
    border: 1px solid transparent;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.abuse-modal-copy {
    background: linear-gradient(135deg, #38bdf8, #0ea5e9);
    color: #0f172a;
    border: none;
}
.abuse-modal-copy:hover { filter: brightness(1.06); transform: translateY(-1px); }
.abuse-modal-copy:active { transform: translateY(0); }
.abuse-modal-copy.copied {
    background: #14532d;
    color: #d1fae5;
    cursor: default;
}
.abuse-modal-mailto {
    background: transparent;
    color: #cbd5e1;
    border-color: #334155;
}
.abuse-modal-mailto:hover { color: #f1f5f9; border-color: #475569; }
.abuse-modal-close {
    background: transparent;
    color: #94a3b8;
    border-color: transparent;
}
.abuse-modal-close:hover { color: #f1f5f9; }

.abuse-modal-overlay button:focus-visible,
.abuse-modal-overlay a:focus-visible {
    outline: 2px solid #38bdf8;
    outline-offset: 2px;
}

@media (max-width: 480px) {
    .abuse-modal-card { padding: 22px 18px; }
    .abuse-modal-title { font-size: 1.1rem; }
    .abuse-modal-desc { font-size: 0.85rem; }
}
