/* ===== FEEDBACK PAGE ===== */

.fb-body {
    background: #f8fffe;
}

/* Hero Section */
.fb-hero {
    min-height: 100vh;
    padding: 120px 0 80px;
    position: relative;
    overflow: hidden;
}

.fb-bg-glow {
    position: absolute;
    top: -200px;
    right: -100px;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(78, 196, 176, 0.12) 0%, rgba(78, 196, 176, 0.04) 40%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.fb-bg-glow-2 {
    position: absolute;
    bottom: -200px;
    left: -150px;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(78, 196, 176, 0.08) 0%, transparent 60%);
    border-radius: 50%;
    pointer-events: none;
}

/* ===== LOOKUP SECTION ===== */
.fb-lookup {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 60vh;
}

.fb-lookup-card {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: 24px;
    padding: 48px 40px;
    max-width: 480px;
    width: 100%;
    text-align: center;
    box-shadow:
        0 1px 3px rgba(0,0,0,0.04),
        0 8px 24px rgba(0,0,0,0.06);
}

.fb-lookup-icon {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, var(--teal-50), var(--teal-100));
    border: 1px solid var(--teal-200);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--teal-600);
    margin: 0 auto 20px;
}

.fb-lookup-card h2 {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--gray-900);
    margin-bottom: 8px;
}

.fb-lookup-card > p {
    font-size: 0.95rem;
    color: var(--gray-500);
    margin-bottom: 28px;
}

.fb-lookup-form {
    display: flex;
    gap: 10px;
}

.fb-lookup-form input {
    flex: 1;
    padding: 14px 18px;
    border: 1.5px solid var(--gray-200);
    border-radius: 12px;
    font-size: 0.95rem;
    font-family: inherit;
    color: var(--gray-800);
    background: var(--gray-50);
    outline: none;
    transition: all 0.2s ease;
}

.fb-lookup-form input:focus {
    border-color: var(--teal-400);
    background: var(--white);
    box-shadow: 0 0 0 4px rgba(78, 196, 176, 0.12);
}

.fb-lookup-form input::placeholder {
    color: var(--gray-400);
}

.fb-lookup-form button {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 14px 24px;
    background: linear-gradient(135deg, var(--teal-700), var(--teal-500));
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 0.95rem;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 14px rgba(37, 107, 95, 0.3);
    white-space: nowrap;
}

.fb-lookup-form button:hover {
    background: linear-gradient(135deg, var(--teal-800), var(--teal-600));
    box-shadow: 0 6px 20px rgba(37, 107, 95, 0.4);
    transform: translateY(-1px);
}

.fb-lookup-form button:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none !important;
}

.fb-lookup-error {
    margin-top: 16px;
    font-size: 0.88rem;
    color: #e74c3c;
}

.fb-lookup-alt {
    margin-top: 20px;
    font-size: 0.88rem;
    color: var(--gray-500);
}

.fb-lookup-alt a {
    color: var(--teal-600);
    font-weight: 600;
    text-decoration: none;
}

.fb-lookup-alt a:hover {
    color: var(--teal-800);
}

/* ===== DASHBOARD SECTION ===== */
.fb-header {
    text-align: center;
    margin-bottom: 48px;
}

.fb-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 18px;
    background: linear-gradient(135deg, var(--teal-50), var(--teal-100));
    color: var(--teal-700);
    font-size: 0.85rem;
    font-weight: 600;
    border-radius: 100px;
    border: 1px solid var(--teal-200);
    margin-bottom: 20px;
}

.fb-title {
    font-size: 2.8rem;
    font-weight: 800;
    line-height: 1.1;
    color: var(--gray-900);
    margin-bottom: 12px;
    letter-spacing: -0.03em;
}

.fb-highlight {
    background: linear-gradient(135deg, var(--teal-600), var(--teal-400));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.fb-subtitle {
    font-size: 1.05rem;
    color: var(--gray-500);
    line-height: 1.7;
}

/* ===== LAYOUT ===== */
.fb-layout {
    display: grid;
    grid-template-columns: 380px 1fr;
    gap: 32px;
    max-width: 1060px;
    margin: 0 auto;
    align-items: start;
}

/* ===== SUBMIT FORM CARD ===== */
.fb-submit-card {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: 20px;
    padding: 32px;
    box-shadow:
        0 1px 3px rgba(0,0,0,0.04),
        0 4px 16px rgba(0,0,0,0.04);
    position: sticky;
    top: 100px;
}

.fb-submit-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--teal-400), var(--teal-600));
    border-radius: 20px 20px 0 0;
}

.fb-submit-card h3 {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--gray-800);
    margin-bottom: 24px;
}

.fb-submit-card h3 svg {
    color: var(--teal-600);
}

.fb-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.fb-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.fb-field label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--gray-700);
}

.fb-field input,
.fb-field textarea,
.fb-field select {
    padding: 12px 16px;
    border: 1.5px solid var(--gray-200);
    border-radius: 12px;
    font-size: 0.92rem;
    font-family: inherit;
    color: var(--gray-800);
    background: var(--gray-50);
    outline: none;
    transition: all 0.2s ease;
}

.fb-field input:focus,
.fb-field textarea:focus,
.fb-field select:focus {
    border-color: var(--teal-400);
    background: var(--white);
    box-shadow: 0 0 0 4px rgba(78, 196, 176, 0.12);
}

.fb-field input::placeholder,
.fb-field textarea::placeholder {
    color: var(--gray-400);
}

.fb-field textarea {
    min-height: 120px;
    resize: vertical;
    line-height: 1.5;
}

.fb-field select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%239CA3AF' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 40px;
    cursor: pointer;
}

.fb-char-count {
    font-size: 0.75rem;
    color: var(--gray-400);
    text-align: right;
    margin-top: -2px;
}

.fb-char-count.near-limit {
    color: #f59e0b;
}

.fb-char-count.at-limit {
    color: #e74c3c;
}

.fb-submit-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 14px 24px;
    background: linear-gradient(135deg, var(--teal-700), var(--teal-500));
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 0.95rem;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 14px rgba(37, 107, 95, 0.3);
}

.fb-submit-btn:hover {
    background: linear-gradient(135deg, var(--teal-800), var(--teal-600));
    box-shadow: 0 6px 20px rgba(37, 107, 95, 0.4);
    transform: translateY(-1px);
}

.fb-submit-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none !important;
}

.fb-submit-success {
    display: none;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    background: linear-gradient(135deg, #f0fdf9, #e6f7f3);
    border: 1px solid var(--teal-200);
    border-radius: 12px;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--teal-700);
}

.fb-submit-success.show {
    display: flex;
}

/* ===== SUGGESTIONS LIST ===== */
.fb-list-section {
    min-width: 0;
}

.fb-list-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.fb-list-header h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--gray-800);
}

.fb-sort-info {
    font-size: 0.82rem;
    color: var(--gray-400);
    display: flex;
    align-items: center;
    gap: 4px;
}

.fb-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* Individual Suggestion Card */
.fb-suggestion {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: 16px;
    padding: 24px;
    display: flex;
    gap: 20px;
    transition: all 0.2s ease;
    box-shadow: 0 1px 3px rgba(0,0,0,0.03);
}

.fb-suggestion:hover {
    border-color: var(--gray-300);
    box-shadow: 0 4px 12px rgba(0,0,0,0.06);
}

/* Vote Column */
.fb-vote-col {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    flex-shrink: 0;
    width: 52px;
}

.fb-vote-btn {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    border: 1.5px solid var(--gray-200);
    background: var(--gray-50);
    color: var(--gray-400);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.fb-vote-btn:hover {
    border-color: var(--teal-300);
    background: var(--teal-50);
    color: var(--teal-600);
}

.fb-vote-btn.voted {
    background: linear-gradient(135deg, var(--teal-500), var(--teal-600));
    border-color: var(--teal-500);
    color: white;
    box-shadow: 0 2px 8px rgba(37, 107, 95, 0.3);
}

.fb-vote-btn.voted:hover {
    background: linear-gradient(135deg, var(--teal-600), var(--teal-700));
}

.fb-vote-btn.own {
    opacity: 0.4;
    cursor: not-allowed;
    pointer-events: none;
}

.fb-vote-count {
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--gray-700);
}

.fb-vote-btn.voted + .fb-vote-count {
    color: var(--teal-700);
}

/* Content Column */
.fb-content-col {
    flex: 1;
    min-width: 0;
}

.fb-suggestion-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 6px;
    line-height: 1.4;
}

.fb-suggestion-desc {
    font-size: 0.88rem;
    color: var(--gray-500);
    line-height: 1.6;
    margin-bottom: 12px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.fb-suggestion-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.fb-category-badge {
    padding: 4px 10px;
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 600;
    white-space: nowrap;
}

.fb-category-badge.cat-feature {
    background: var(--teal-50);
    color: var(--teal-700);
}

.fb-category-badge.cat-uiux {
    background: #f5f3ff;
    color: #6d28d9;
}

.fb-category-badge.cat-health {
    background: #fef2f2;
    color: #b91c1c;
}

.fb-category-badge.cat-integrations {
    background: #eff6ff;
    color: #1d4ed8;
}

.fb-category-badge.cat-other {
    background: var(--gray-100);
    color: var(--gray-600);
}

.fb-status-badge {
    padding: 4px 10px;
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 600;
    white-space: nowrap;
}

.fb-status-badge.status-review {
    background: #fffbeb;
    color: #b45309;
}

.fb-status-badge.status-planned {
    background: var(--teal-50);
    color: var(--teal-700);
}

.fb-status-badge.status-completed {
    background: #065f46;
    color: white;
}

.fb-time-ago {
    font-size: 0.78rem;
    color: var(--gray-400);
}

.fb-author-badge {
    padding: 3px 10px;
    background: #fffbeb;
    border: 1px solid #fde68a;
    border-radius: 100px;
    font-size: 0.72rem;
    font-weight: 600;
    color: #b45309;
}

/* Empty State */
.fb-empty-state {
    text-align: center;
    padding: 60px 24px;
    background: var(--white);
    border: 1px dashed var(--gray-200);
    border-radius: 16px;
}

.fb-empty-state svg {
    color: var(--gray-300);
    margin-bottom: 16px;
}

.fb-empty-state h4 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--gray-700);
    margin-bottom: 8px;
}

.fb-empty-state p {
    font-size: 0.9rem;
    color: var(--gray-400);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    .fb-layout {
        grid-template-columns: 1fr;
        max-width: 640px;
    }

    .fb-submit-card {
        position: static;
    }
}

@media (max-width: 640px) {
    .fb-hero {
        padding: 110px 0 60px;
    }

    .fb-title {
        font-size: 2rem;
    }

    .fb-lookup-card {
        padding: 32px 24px;
    }

    .fb-lookup-form {
        flex-direction: column;
    }

    .fb-submit-card {
        padding: 24px 20px;
    }

    .fb-suggestion {
        flex-direction: row;
        padding: 18px 16px;
        gap: 14px;
    }

    .fb-vote-col {
        width: 44px;
    }

    .fb-vote-btn {
        width: 38px;
        height: 38px;
    }

    .fb-suggestion-meta {
        gap: 6px;
    }
}
