/* ================================================================
   Suggest a Resource — Modal overlay
   ================================================================ */

.suggest-resource-overlay {
    position: fixed;
    inset: 0;
    z-index: 4500;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.suggest-resource-overlay[hidden] { display: none; }

.suggest-resource-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(6, 23, 30, 0.78);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    cursor: pointer;
}

.suggest-resource-modal {
    position: relative;
    width: 100%;
    max-width: 540px;
    max-height: calc(100vh - 40px);
    overflow-y: auto;
    background: var(--byte-ink-900);
    border: 1px solid var(--byte-stroke);
    border-radius: 10px;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(253, 125, 0, 0.15);
    color: var(--byte-text);
    font-family: var(--byte-font-ui);
    animation: sr-fade-in 0.18s ease;
}

@keyframes sr-fade-in {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

.suggest-resource-modal__header {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 16px;
    border-bottom: 1px solid var(--byte-stroke);
    background: var(--byte-ink-800);
    border-radius: 10px 10px 0 0;
}
.suggest-resource-modal__header .traffic { display: flex; gap: 6px; }
.suggest-resource-modal__header .traffic__dot {
    width: 12px; height: 12px; border-radius: 50%; cursor: pointer; display: block;
}
.suggest-resource-modal__header .traffic__dot--close    { background: #ff5f57; }
.suggest-resource-modal__header .traffic__dot--minimize { background: #ffbd2e; cursor: default; }
.suggest-resource-modal__header .traffic__dot--maximize { background: #27c93f; cursor: default; }
.suggest-resource-modal__title {
    margin: 0;
    font-family: var(--byte-font-mono);
    font-size: 13px;
    font-weight: 600;
    color: var(--byte-fog-300);
    display: flex;
    align-items: center;
    gap: 8px;
}
.suggest-resource-modal__title i { color: var(--byte-primary); font-size: 16px; }

/* ---------- form ---------- */

.suggest-resource-form {
    padding: 18px 18px 14px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.suggest-resource-field {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.suggest-resource-field__label {
    font-family: var(--byte-font-mono);
    font-size: 11px;
    color: var(--byte-fog-500);
    text-transform: lowercase;
    letter-spacing: 0.3px;
}
.suggest-resource-field__hint {
    color: var(--byte-fog-700);
    font-weight: 400;
}
.suggest-resource-field input,
.suggest-resource-field select,
.suggest-resource-field textarea {
    background: var(--byte-ink-950);
    border: 1px solid var(--byte-stroke);
    color: var(--byte-text);
    font: inherit;
    font-size: 13px;
    padding: 8px 10px;
    border-radius: 6px;
    outline: none;
    transition: border-color 0.12s, box-shadow 0.12s;
}
.suggest-resource-field input:focus,
.suggest-resource-field select:focus,
.suggest-resource-field textarea:focus {
    border-color: var(--byte-primary);
    box-shadow: 0 0 0 2px rgba(253, 125, 0, 0.18);
}
.suggest-resource-field textarea { resize: vertical; min-height: 64px; font-family: var(--byte-font-code); }
.suggest-resource-field input.has-error,
.suggest-resource-field select.has-error,
.suggest-resource-field textarea.has-error {
    border-color: #ef4444;
}
.suggest-resource-field__error {
    font-size: 11px;
    color: #ef4444;
    min-height: 14px;
    font-family: var(--byte-font-mono);
}

/* honeypot: visually hidden, accessible-but-bots-see */
.suggest-resource-honeypot {
    position: absolute !important;
    left: -10000px !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
    opacity: 0 !important;
}

/* ---------- footer / buttons ---------- */

.suggest-resource-form__footer {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 4px;
}
.suggest-resource-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border-radius: 6px;
    font: inherit;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.12s, color 0.12s, border-color 0.12s, filter 0.12s;
}
.suggest-resource-btn--ghost {
    background: transparent;
    border: 1px solid var(--byte-stroke);
    color: var(--byte-fog-300);
}
.suggest-resource-btn--ghost:hover {
    border-color: var(--byte-fog-500);
    color: var(--byte-text);
}
.suggest-resource-btn--primary {
    background: var(--byte-primary);
    border: 1px solid var(--byte-primary);
    color: var(--byte-ink-950);
}
.suggest-resource-btn--primary:hover { filter: brightness(1.1); }
.suggest-resource-btn--primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}
.suggest-resource-btn i { font-size: 15px; }

/* ---------- toast ---------- */

.suggest-resource-toast {
    margin-top: 10px;
    padding: 10px 12px;
    border-radius: 6px;
    font-size: 12.5px;
    font-family: var(--byte-font-mono);
    border: 1px solid var(--byte-stroke);
}
.suggest-resource-toast--success {
    background: rgba(34, 197, 94, 0.12);
    color: #22c55e;
    border-color: rgba(34, 197, 94, 0.4);
}
.suggest-resource-toast--error {
    background: rgba(239, 68, 68, 0.12);
    color: #ef4444;
    border-color: rgba(239, 68, 68, 0.4);
}
.suggest-resource-toast--info {
    background: rgba(253, 125, 0, 0.10);
    color: var(--byte-primary);
    border-color: rgba(253, 125, 0, 0.35);
}

/* ---------- mobile ---------- */

@media (max-width: 600px) {
    .suggest-resource-modal { max-width: 100%; }
    .suggest-resource-form { padding: 14px; }
    .suggest-resource-form__footer { flex-direction: column-reverse; }
    .suggest-resource-btn { width: 100%; justify-content: center; }
}
