/* =========================================================================
   Odette Feedback Widget
   Modal + triggers (desktop status-bar link, mobile header icon)
   ========================================================================= */

/* Feedback form retired 2026-07 — both launchers hidden. Feedback now flows
   through the trollbox. To re-enable, remove the two `display: none !important`
   overrides below and uncomment the feedback.js include in app.html. */

/* --- Desktop trigger --- */
.status-bar-feedback {
    display: none !important; /* retired */
    border: none;
    background: transparent;
    font: inherit;
}

/* --- Mobile trigger --- */
.mobile-feedback-btn {
    display: none !important; /* retired */
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    margin-left: 0.5rem;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.03);
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1;
    transition: color .15s ease, background .15s ease, border-color .15s ease;
}

.mobile-feedback-btn:hover,
.mobile-feedback-btn:active {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.16);
}

/* --- Overlay --- */
.ofb-overlay {
    position: fixed;
    inset: 0;
    z-index: 100000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.6);
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
    opacity: 0;
    transition: opacity .15s ease;
}

.ofb-overlay.ofb-open {
    opacity: 1;
}

/* --- Dialog --- */
.ofb-dialog {
    width: 100%;
    max-width: 460px;
    background: var(--card-bg);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.6);
    transform: translateY(8px) scale(0.985);
    transition: transform .15s ease;
    font-family: 'Inter', -apple-system, 'Segoe UI', Roboto, sans-serif;
}

.ofb-overlay.ofb-open .ofb-dialog {
    transform: none;
}

/* --- Header --- */
.ofb-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.ofb-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-primary);
}

.ofb-close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    padding: 0;
    border: none;
    background: transparent;
    color: var(--text-muted);
    font-size: 1rem;
    cursor: pointer;
    border-radius: 8px;
    transition: color .15s ease, background .15s ease;
}

.ofb-close:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.06);
}

/* --- Form --- */
.ofb-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 1.25rem;
}

.ofb-field {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}

.ofb-label-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.ofb-label {
    font-size: 0.625rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--text-muted);
}

.ofb-counter {
    font-size: 0.625rem;
    color: var(--soft-slate);
    font-variant-numeric: tabular-nums;
}

/* --- Category pills --- */
.ofb-cats {
    display: flex;
    gap: 0.5rem;
}

.ofb-cat {
    flex: 1;
    padding: 0.5rem 0;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-muted);
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    cursor: pointer;
    transition: color .15s ease, background .15s ease, border-color .15s ease;
}

.ofb-cat:hover {
    border-color: rgba(255, 255, 255, 0.18);
    color: var(--text-secondary);
}

/* --- Inputs --- */
.ofb-input,
.ofb-textarea {
    width: 100%;
    padding: 0.625rem 0.75rem;
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    color: var(--text-primary);
    font-family: inherit;
    font-size: 16px;
    outline: none;
    transition: border-color .15s ease;
}

.ofb-textarea {
    resize: none;
    line-height: 1.5;
}

.ofb-input:focus,
.ofb-textarea:focus {
    border-color: var(--primary);
}

.ofb-input::placeholder,
.ofb-textarea::placeholder {
    color: var(--soft-slate);
}

/* --- Field hint --- */
.ofb-hint {
    font-size: 0.6875rem;
    line-height: 1.4;
    color: var(--soft-slate);
}

/* --- Inline error --- */
.ofb-error {
    font-size: 0.75rem;
    padding: 0.5rem 0.75rem;
    border-radius: 10px;
    background: rgba(248, 113, 113, 0.1);
    border: 1px solid rgba(248, 113, 113, 0.3);
    color: var(--negative);
}

/* --- Submit --- */
.ofb-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    padding: 0.7rem 0;
    font-size: 0.85rem;
    font-weight: 700;
    color: #0F1520;
    background: var(--primary);
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: background .15s ease, opacity .15s ease;
}

.ofb-submit:hover:not(:disabled) {
    background: var(--primary-dark);
}

.ofb-submit:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

/* --- Success state --- */
.ofb-success {
    display: none;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    padding: 2.25rem 1.25rem;
    text-align: center;
}

.ofb-success-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(134, 239, 172, 0.12);
    color: var(--positive);
    font-size: 1.35rem;
}

.ofb-success-text {
    font-size: 0.875rem;
    color: var(--text-primary);
}

/* --- Spinner --- */
.ofb-spin {
    display: inline-block;
    animation: ofb-spin 0.7s linear infinite;
}

@keyframes ofb-spin {
    to {
        transform: rotate(360deg);
    }
}
