/* ── Animations ── */
@keyframes typohunter-fade-in {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes typohunter-slide-up {
    from {
        opacity: 0;
        transform: translate(-50%, -46%);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%);
    }
}

/* ── Backdrop ── */
.typohunter-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(10, 15, 30, 0.45);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    z-index: 10001;
    animation: typohunter-fade-in 0.2s ease-out;
}

/* ── Modal ── */
.typohunter-report-form {
    position: fixed;
    overflow: visible;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #fff;
    padding: 0;
    border: none;
    border-radius: 16px;
    box-shadow:
        0 0 0 1px rgba(0, 0, 0, 0.04),
        0 8px 40px rgba(0, 0, 0, 0.12),
        0 2px 8px rgba(0, 0, 0, 0.06);
    z-index: 10002;
    width: 440px;
    max-width: 92vw;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
        Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    animation: typohunter-slide-up 0.25s ease-out;
}

.typohunter-report-form::backdrop {
    display: none;
}

.typohunter-report-form form {
    padding: 28px 28px 24px;
}

/* ── Header ── */
.typohunter-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 20px;
    margin-bottom: 20px;
    border-bottom: 1px solid #eef0f3;
}

.typohunter-report-form h2 {
    margin: 0;
    font-size: 20px;
    color: #1a1f36;
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: -0.02em;
}

/* ── Close Button ── */
.typohunter-close-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    padding: 0;
    margin: 0;
    flex-shrink: 0;
    font-size: 18px;
    line-height: 1;
    border-radius: 8px;
    background: transparent;
    color: #8c8fa3;
    border: none;
    cursor: pointer;
    transition: all 0.15s ease;
}

.typohunter-close-btn:hover {
    background: #f3f4f8;
    color: #1a1f36;
}

/* ── Labels ── */
.typohunter-report-form label {
    display: block;
    margin-bottom: 6px;
    color: #4a4f6a;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.01em;
}

/* ── Textareas ── */
.typohunter-report-form textarea {
    width: 100%;
    min-height: 72px;
    margin-bottom: 16px;
    padding: 12px 14px;
    border: 1.5px solid #e1e4eb;
    border-radius: 10px;
    font-size: 14px;
    font-family: inherit;
    line-height: 1.5;
    color: #1a1f36;
    background: #fafbfc;
    resize: vertical;
    box-sizing: border-box;
    transition: all 0.15s ease;
}

.typohunter-report-form textarea::placeholder {
    color: #a0a4b8;
}

.typohunter-report-form textarea[readonly] {
    background-color: #f4f5f7;
    color: #4a4f6a;
}

.typohunter-report-form textarea:hover {
    border-color: #c5c9d6;
}

.typohunter-report-form textarea:focus {
    outline: none;
    border-color: #0073aa;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(0, 115, 170, 0.12);
}

/* ── Submit Button ── */
.typohunter-button-group {
    display: flex;
    gap: 10px;
    margin-top: 4px;
}

.typohunter-report-form button {
    padding: 12px 20px;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.2s ease;
}

.typohunter-submit-btn {
    background: linear-gradient(135deg, #0073aa 0%, #005a87 100%);
    color: #fff;
    flex: 1;
    box-shadow: 0 2px 8px rgba(0, 115, 170, 0.25);
}

.typohunter-submit-btn:hover {
    background: linear-gradient(135deg, #008ec2 0%, #0073aa 100%);
    box-shadow: 0 4px 14px rgba(0, 115, 170, 0.35);
    transform: translateY(-1px);
}

.typohunter-submit-btn:active {
    transform: translateY(0);
    box-shadow: 0 1px 4px rgba(0, 115, 170, 0.3);
}

/* ── Report Link (post footer) ── */
.typohunter-report-link-container {
    margin-top: 20px;
    text-align: right;
}

.typohunter-report-link-footer {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #6b7280;
    text-decoration: none;
    font-size: 0.85em;
    padding: 4px 10px;
    border-radius: 6px;
    transition: all 0.15s ease;
}

.typohunter-report-link-footer:hover {
    color: #0073aa;
    background: rgba(0, 115, 170, 0.06);
    text-decoration: none;
}

.typohunter-icon {
    width: 15px;
    height: 15px;
    vertical-align: middle;
    opacity: 0.7;
    transition: opacity 0.15s ease;
}

.typohunter-report-link-footer:hover .typohunter-icon {
    opacity: 1;
}
