/* Broken Link Reporter — reporter.css v1.2.0 */

/* --- Button Wrapper --- */
.blr-wrap {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 10px;
    flex-wrap: wrap;
}

.blr-text {
    color: #aaaaaa;
    font-size: 13px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1;
}

.blr-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 13px;
    border-radius: 4px;
    background: #2a2a2a;
    border: 1px solid #444444;
    color: #ff7675;
    font-size: 12px;
    font-weight: 600;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    cursor: pointer;
    letter-spacing: 0.02em;
    line-height: 1.4;
    transition: background 0.2s, border-color 0.2s;
}

.blr-btn::before {
    content: '';
    display: inline-block;
    width: 12px;
    height: 12px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ff7675' stroke-width='2.2'%3E%3Cpath d='M10 13a5 5 0 007.54.54l3-3a5 5 0 00-7.07-7.07l-1.72 1.71'/%3E%3Cpath d='M14 11a5 5 0 00-7.54-.54l-3 3a5 5 0 007.07 7.07l1.71-1.71'/%3E%3Cline x1='2' y1='2' x2='22' y2='22'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    flex-shrink: 0;
}

.blr-btn:hover { background: #363636; border-color: #ff7675; }

.blr-inline-msg {
    color: #55cc77;
    font-size: 12px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

/* --- Modal --- */
#blr-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 99999;
    align-items: center;
    justify-content: center;
}

#blr-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.65);
}

#blr-modal-box {
    position: relative;
    z-index: 1;
    background: #1e1e2e;
    border: 1px solid #333355;
    border-radius: 8px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.5);
    padding: 28px 28px 24px;
    width: 100%;
    max-width: 380px;
    margin: 16px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

#blr-modal-box h3 {
    margin: 0 0 6px;
    font-size: 16px;
    color: #eeeeee;
    font-weight: 600;
}

#blr-modal-desc {
    margin: 0 0 16px;
    font-size: 13px;
    color: #999999;
}

/* --- Labels --- */
.blr-label {
    display: block;
    font-size: 12px;
    color: #aaaaaa;
    margin: 12px 0 5px;
    font-weight: 500;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

/* --- Reason Dropdown --- */
#blr-reason {
    width: 100%;
    background: #2a2a3a;
    border: 1px solid #444466;
    border-radius: 4px;
    color: #dddddd;
    font-size: 13px;
    padding: 8px 10px;
    box-sizing: border-box;
    outline: none;
    cursor: pointer;
    transition: border-color 0.2s;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23888' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    padding-right: 30px;
}

#blr-reason:focus { border-color: #7777cc; }

#blr-reason option { background: #2a2a3a; color: #dddddd; }

/* --- Answer Input --- */
#blr-answer {
    width: 100%;
    background: #2a2a3a;
    border: 1px solid #444466;
    border-radius: 4px;
    color: #ffffff;
    font-size: 16px;
    font-weight: 600;
    padding: 9px 12px;
    box-sizing: border-box;
    outline: none;
    transition: border-color 0.2s;
    -moz-appearance: textfield;
    letter-spacing: 2px;
}

#blr-answer::-webkit-inner-spin-button,
#blr-answer::-webkit-outer-spin-button { -webkit-appearance: none; }
#blr-answer:focus { border-color: #7777cc; }
#blr-answer::placeholder { color: #555577; letter-spacing: 0; font-weight: 400; }

/* --- Message --- */
.blr-msg { min-height: 18px; font-size: 12px; margin: 8px 0 0; color: #aaaaaa; }
.blr-msg-error { color: #ff7675; }

/* --- Actions --- */
.blr-actions { display: flex; gap: 8px; margin-top: 16px; }

.blr-actions button {
    flex: 1;
    padding: 9px 0;
    border-radius: 4px;
    font-size: 14px;
    cursor: pointer;
    border: none;
    font-family: inherit;
    transition: background 0.2s;
}

#blr-submit { background: #cc3333; color: #fff; font-weight: 600; }
#blr-submit:hover:not(:disabled) { background: #aa2222; }
#blr-submit:disabled { background: #444; color: #888; cursor: not-allowed; }

#blr-cancel { background: #2a2a3a; color: #aaaaaa; border: 1px solid #444466; }
#blr-cancel:hover { background: #333344; }

/* --- Close --- */
#blr-close {
    position: absolute; top: 10px; right: 14px;
    background: none; border: none;
    font-size: 20px; color: #555577;
    cursor: pointer; line-height: 1; padding: 0;
}
#blr-close:hover { color: #aaaaaa; }

/* --- Mobile --- */
@media (max-width: 480px) {
    #blr-modal-box { padding: 22px 16px 18px; }
}
