/* ============================================================
   Feedback — fb-* prefix
   NEXUS-7 Dark Theme — Belobigungen & Beschwerden
   ============================================================ */

/* --- Variables (scoped) --- */
.fb {
    --fb-bg: #0a0a0c;
    --fb-surface: #12100f;
    --fb-surface-2: #1a1614;
    --fb-surface-3: #221c1a;
    --fb-border: rgba(220, 38, 38, 0.15);
    --fb-border-strong: rgba(220, 38, 38, 0.3);
    --fb-text: #f0eeeb;
    --fb-text-sec: #8a8698;
    --fb-text-muted: #5a5768;
    --fb-red: #dc2626;
    --fb-red-dim: rgba(220, 38, 38, 0.1);
    --fb-green: #22c55e;
    --fb-green-dim: rgba(34, 197, 94, 0.1);
    --fb-yellow: #eab308;
}

/* --- Page Background --- */
.fb-page-bg {
    position: fixed;
    inset: 0;
    z-index: -2;
    background: var(--fb-bg);
}
.fb-page-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 50% 0%, rgba(220, 38, 38, 0.06) 0%, transparent 60%);
}

/* --- Hero --- */
.fb-hero {
    position: relative;
    padding: 2.5rem 2rem 2rem;
    overflow: hidden;
    border-bottom: 1px solid var(--fb-border);
}
.fb-hero__bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
}
.fb-hero__grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(220, 38, 38, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(220, 38, 38, 0.04) 1px, transparent 1px);
    background-size: 40px 40px;
    mask-image: linear-gradient(to bottom, rgba(0,0,0,0.4), transparent 80%);
    -webkit-mask-image: linear-gradient(to bottom, rgba(0,0,0,0.4), transparent 80%);
}
.fb-hero__glow {
    position: absolute;
    top: -60px;
    left: 50%;
    transform: translateX(-50%);
    width: 500px;
    height: 200px;
    background: radial-gradient(ellipse, rgba(220, 38, 38, 0.12) 0%, transparent 70%);
    filter: blur(30px);
}
.fb-hero__content {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 16px;
}
.fb-hero__icon {
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: var(--fb-red-dim);
    color: var(--fb-red);
    font-size: 1.4rem;
    flex-shrink: 0;
}
.fb-hero__title {
    font-family: 'Oxanium', sans-serif;
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--fb-text);
    margin: 0;
    letter-spacing: -0.02em;
}
.fb-hero__subtitle {
    font-family: 'Rajdhani', sans-serif;
    font-size: 0.92rem;
    color: var(--fb-text-sec);
    margin: 2px 0 0;
}

/* --- Form Container --- */
.fb-form-wrap {
    max-width: 900px;
    margin: 0 auto;
    padding: 24px 2rem;
}

/* --- Type Selector (big cards) --- */
.fb-type-selector {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 32px;
}
.fb-type-card {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 32px 20px;
    background: var(--fb-surface);
    border: 2px solid var(--fb-border);
    border-radius: 14px;
    cursor: pointer;
    transition: all 0.25s ease;
    text-align: center;
}
.fb-type-card:hover {
    border-color: var(--fb-border-strong);
    transform: translateY(-2px);
}
.fb-type-card--active {
    border-color: var(--fb-red);
    background: var(--fb-red-dim);
    box-shadow: 0 0 30px rgba(220, 38, 38, 0.15);
}
.fb-type-card--beschwerde.fb-type-card--active {
    border-color: #f59e0b;
    background: rgba(245, 158, 11, 0.08);
    box-shadow: 0 0 30px rgba(245, 158, 11, 0.12);
}
.fb-type-card__icon {
    font-size: 2.5rem;
    color: var(--fb-text-muted);
    transition: color 0.25s;
}
.fb-type-card--active .fb-type-card__icon {
    color: var(--fb-red);
}
.fb-type-card--beschwerde.fb-type-card--active .fb-type-card__icon {
    color: #f59e0b;
}
.fb-type-card__label {
    font-family: 'Oxanium', sans-serif;
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--fb-text);
    letter-spacing: 0.02em;
}
.fb-type-card__desc {
    font-size: 0.82rem;
    color: var(--fb-text-muted);
    line-height: 1.4;
}

/* --- Section Headers --- */
.fb-section {
    margin-bottom: 28px;
}
.fb-section__title {
    font-family: 'Oxanium', sans-serif;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--fb-text-sec);
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--fb-border);
    display: flex;
    align-items: center;
    gap: 8px;
}
.fb-section__title i {
    font-size: 0.8rem;
    color: var(--fb-text-muted);
}

/* --- Member Grid --- */
.fb-members-search {
    position: relative;
    margin-bottom: 16px;
}
.fb .fb-members-search__input {
    width: 100%;
    padding: 10px 14px 10px 38px;
    background: #12100f;
    border: 1px solid rgba(220, 38, 38, 0.15);
    border-radius: 8px;
    color: #f0eeeb;
    font-family: 'Rajdhani', sans-serif;
    font-size: 0.92rem;
    font-weight: 600;
    transition: border-color 0.2s;
    box-sizing: border-box;
}
.fb .fb-members-search__input:focus {
    outline: none;
    border-color: #dc2626;
    background: #12100f;
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.15);
}
.fb-members-search__icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--fb-text-muted);
    font-size: 0.85rem;
    pointer-events: none;
}

.fb-members-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 8px;
    max-height: 400px;
    overflow-y: auto;
    padding: 4px;
    scrollbar-width: thin;
    scrollbar-color: var(--fb-border-strong) transparent;
}
.fb-members-grid::-webkit-scrollbar {
    width: 6px;
}
.fb-members-grid::-webkit-scrollbar-thumb {
    background: var(--fb-border-strong);
    border-radius: 3px;
}

.fb-member-card {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    background: var(--fb-surface);
    border: 1px solid var(--fb-border);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
}
.fb-member-card:hover {
    border-color: var(--fb-border-strong);
    background: var(--fb-surface-2);
}
.fb-member-card--selected {
    border-color: var(--fb-red);
    background: var(--fb-red-dim);
    box-shadow: 0 0 12px rgba(220, 38, 38, 0.12);
}
.fb-member-card__avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--fb-surface-3);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--fb-text-muted);
    font-size: 0.85rem;
    flex-shrink: 0;
}
.fb-member-card--selected .fb-member-card__avatar {
    background: var(--fb-red);
    color: #fff;
}
.fb-member-card__info {
    min-width: 0;
    flex: 1;
}
.fb-member-card__name {
    font-family: 'Rajdhani', sans-serif;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--fb-text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.fb-member-card__rank {
    font-size: 0.72rem;
    color: var(--fb-text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.fb-member-none {
    text-align: center;
    padding: 20px;
    color: var(--fb-text-muted);
    font-size: 0.88rem;
}

/* --- Form Fields --- */
.fb-field {
    margin-bottom: 20px;
}
.fb-label {
    display: block;
    font-family: 'Oxanium', sans-serif;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--fb-text-sec);
    margin-bottom: 6px;
}
.fb-label--required::after {
    content: ' *';
    color: var(--fb-red);
}
.fb-hint {
    display: block;
    font-size: 0.75rem;
    color: var(--fb-text-muted);
    margin-bottom: 6px;
    line-height: 1.4;
}
.fb-hint--warning {
    color: #f59e0b;
    background: rgba(245, 158, 11, 0.06);
    border: 1px solid rgba(245, 158, 11, 0.15);
    border-radius: 6px;
    padding: 8px 12px;
    margin-bottom: 10px;
}
.fb-hint--warning i {
    margin-right: 4px;
}
.fb .fb-input,
.fb .fb-textarea,
.fb .fb-select {
    width: 100%;
    padding: 10px 14px;
    background: #12100f;
    border: 1px solid rgba(220, 38, 38, 0.15);
    border-radius: 8px;
    color: #f0eeeb;
    font-family: 'Rajdhani', sans-serif;
    font-size: 0.92rem;
    font-weight: 600;
    transition: border-color 0.2s;
    box-sizing: border-box;
}
.fb .fb-input:focus,
.fb .fb-textarea:focus,
.fb .fb-select:focus {
    outline: none;
    border-color: #dc2626;
    background: #12100f;
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.15);
}
.fb-textarea {
    min-height: 100px;
    resize: vertical;
}
.fb-select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%238a8698'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 36px;
    cursor: pointer;
}
.fb-select option {
    background: #1a1614;
    color: var(--fb-text);
}

/* --- Handler Selection (radio cards) --- */
.fb-handler-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 8px;
}
.fb-handler-card {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    background: var(--fb-surface);
    border: 1px solid var(--fb-border);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
}
.fb-handler-card:hover {
    border-color: var(--fb-border-strong);
}
.fb-handler-card--selected {
    border-color: var(--fb-red);
    background: var(--fb-red-dim);
}
.fb-handler-card__radio {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: 2px solid var(--fb-border-strong);
    flex-shrink: 0;
    position: relative;
    transition: border-color 0.2s;
}
.fb-handler-card--selected .fb-handler-card__radio {
    border-color: var(--fb-red);
}
.fb-handler-card--selected .fb-handler-card__radio::after {
    content: '';
    position: absolute;
    inset: 3px;
    border-radius: 50%;
    background: var(--fb-red);
}
.fb-handler-card__label {
    font-family: 'Rajdhani', sans-serif;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--fb-text);
}

/* --- Submit Button --- */
.fb-submit-wrap {
    margin-top: 32px;
    padding-top: 20px;
    border-top: 1px solid var(--fb-border);
    display: flex;
    justify-content: flex-end;
}
.fb-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: 'Oxanium', sans-serif;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    padding: 12px 28px;
    font-size: 0.88rem;
}
.fb-btn--primary {
    background: var(--fb-red);
    color: #fff;
}
.fb-btn--primary:hover {
    background: #b91c1c;
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(220, 38, 38, 0.3);
}
.fb-btn--primary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}
.fb-btn--ghost {
    background: transparent;
    border: 1px solid var(--fb-border);
    color: var(--fb-text-sec);
    padding: 8px 16px;
    font-size: 0.8rem;
}
.fb-btn--ghost:hover {
    border-color: var(--fb-border-strong);
    color: var(--fb-text);
    background: var(--fb-surface-2);
}

/* --- Success Message --- */
.fb-success {
    max-width: 600px;
    margin: 60px auto;
    text-align: center;
    padding: 48px 32px;
    background: var(--fb-surface);
    border: 1px solid var(--fb-green);
    border-radius: 14px;
    animation: fb-fade-in 0.4s ease;
}
@keyframes fb-fade-in {
    from { opacity: 0; transform: translateY(10px); }
    to   { opacity: 1; transform: translateY(0); }
}
.fb-success__icon {
    font-size: 3rem;
    color: var(--fb-green);
    margin-bottom: 16px;
}
.fb-success__title {
    font-family: 'Oxanium', sans-serif;
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--fb-text);
    margin-bottom: 8px;
}
.fb-success__text {
    font-size: 0.92rem;
    color: var(--fb-text-sec);
    margin-bottom: 24px;
}

/* ============================================================
   Admin View — fb-admin-* prefix
   ============================================================ */

.fb-admin-wrap {
    max-width: 1100px;
    margin: 0 auto;
    padding: 24px 2rem;
}

/* --- Filter Tabs --- */
.fb-admin-tabs {
    display: flex;
    gap: 4px;
    margin-bottom: 20px;
    background: var(--fb-surface);
    border: 1px solid var(--fb-border);
    border-radius: 8px;
    padding: 4px;
    width: fit-content;
}
.fb-admin-tab {
    padding: 8px 20px;
    font-family: 'Oxanium', sans-serif;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--fb-text-sec);
    background: transparent;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
}
.fb-admin-tab:hover {
    color: var(--fb-text);
    background: var(--fb-surface-2);
}
.fb-admin-tab--active {
    color: #fff;
    background: var(--fb-red);
}

/* --- Admin Counter --- */
.fb-admin-count {
    font-family: 'Oxanium', sans-serif;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--fb-text-sec);
    margin-bottom: 16px;
}

/* --- Feedback Cards (Admin) --- */
.fb-admin-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.fb-admin-card {
    background: var(--fb-surface);
    border: 1px solid var(--fb-border);
    border-radius: 12px;
    overflow: hidden;
    transition: border-color 0.2s;
}
.fb-admin-card:hover {
    border-color: var(--fb-border-strong);
}
.fb-admin-card--archived {
    opacity: 0.6;
}
.fb-admin-card__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 18px;
    border-bottom: 1px solid var(--fb-border);
    gap: 12px;
    flex-wrap: wrap;
}
.fb-admin-card__header-left {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}
.fb-admin-card__type-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-family: 'Oxanium', sans-serif;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 3px 10px;
    border-radius: 20px;
    flex-shrink: 0;
}
.fb-admin-card__type-badge--belobigung {
    background: var(--fb-green-dim);
    color: var(--fb-green);
    border: 1px solid rgba(34, 197, 94, 0.25);
}
.fb-admin-card__type-badge--beschwerde {
    background: rgba(245, 158, 11, 0.08);
    color: #f59e0b;
    border: 1px solid rgba(245, 158, 11, 0.25);
}
.fb-admin-card__target {
    font-family: 'Rajdhani', sans-serif;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--fb-text);
}
.fb-admin-card__date {
    font-size: 0.78rem;
    color: var(--fb-text-muted);
    flex-shrink: 0;
}
.fb-admin-card__body {
    padding: 16px 18px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px 24px;
}
.fb-admin-field {
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.fb-admin-field--wide {
    grid-column: 1 / -1;
}
.fb-admin-field__label {
    font-family: 'Oxanium', sans-serif;
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--fb-text-muted);
}
.fb-admin-field__value {
    font-size: 0.88rem;
    color: var(--fb-text);
    white-space: pre-wrap;
    word-break: break-word;
}
.fb-admin-card__footer {
    display: flex;
    justify-content: flex-end;
    padding: 10px 18px;
    border-top: 1px solid var(--fb-border);
    gap: 8px;
}
.fb-admin-card__handler-tag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-family: 'Rajdhani', sans-serif;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--fb-text-muted);
    padding: 4px 10px;
    background: var(--fb-surface-2);
    border-radius: 6px;
    margin-right: auto;
}
.fb-admin-card__handler-tag i {
    font-size: 0.7rem;
}

/* --- Loading / Empty States --- */
.fb-loading,
.fb-empty {
    text-align: center;
    padding: 48px 16px;
    color: var(--fb-text-muted);
    font-size: 1rem;
}
.fb-loading i,
.fb-empty i {
    font-size: 2rem;
    display: block;
    margin-bottom: 12px;
}

/* --- Responsive --- */
@media (max-width: 768px) {
    .fb-hero__content {
        flex-direction: column;
        align-items: flex-start;
    }
    .fb-type-selector {
        grid-template-columns: 1fr;
    }
    .fb-members-grid {
        grid-template-columns: 1fr 1fr;
    }
    .fb-handler-grid {
        grid-template-columns: 1fr;
    }
    .fb-admin-card__body {
        grid-template-columns: 1fr;
    }
    .fb-admin-card__header {
        flex-direction: column;
        align-items: flex-start;
    }
}
@media (max-width: 480px) {
    .fb-members-grid {
        grid-template-columns: 1fr;
    }
}
