/* Broken Link Reporter — reporter.css */

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

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

/* --- Report Button (Option D — Dark Badge) --- */
.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;
}

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

/* --- Modal Overlay --- */
#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);
}

/* --- Modal Box --- */
#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 32px 24px;
    width: 100%;
    max-width: 360px;
    margin: 16px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

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

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

/* --- Math Question --- */
.blr-question {
    font-size: 22px;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 14px;
    text-align: center;
    letter-spacing: 2px;
}

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

#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: #666688;
}

/* --- Messages --- */
.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;
    transition: background 0.2s;
    font-family: inherit;
}

#blr-submit {
    background: #cc3333;
    color: #ffffff;
    font-weight: 600;
}

#blr-submit:hover:not(:disabled) {
    background: #aa2222;
}

#blr-submit:disabled {
    background: #444444;
    color: #888888;
    cursor: not-allowed;
}

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

#blr-cancel:hover {
    background: #333344;
}

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

#blr-close:hover {
    color: #aaaaaa;
}

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