/* ============================================================
   HireTheVeterans.com — suggestions.css
   Suggestions page styles
   ============================================================ */

/* ── Hero ── */
.suggestions-hero {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    padding: 52px 20px 44px;
    text-align: center;
}

.suggestions-hero-inner {
    max-width: 700px;
    margin: 0 auto;
}

.suggestions-hero h1 {
    font-size: 2.2rem;
    color: #ffffff;
    margin: 0 0 12px;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.suggestions-hero p {
    font-size: 1.05rem;
    color: #b0bec5;
    line-height: 1.6;
    margin: 0;
}

/* ── Status Summary Bar ── */
.suggestions-summary {
    max-width: 1200px;
    margin: 0 auto;
    padding: 24px 20px;
    display: flex;
    gap: 32px;
    justify-content: center;
    border-bottom: 1px solid #e0e6ed;
}

.summary-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}

.summary-number {
    font-size: 1.6rem;
    font-weight: 800;
    color: #2C5F8A;
}

.summary-label {
    font-size: 0.78rem;
    color: #78909c;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}

/* ── Layout ── */
.suggestions-layout {
    max-width: 1200px;
    margin: 0 auto;
    padding: 32px 20px 60px;
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 32px;
    align-items: start;
}

/* ── Sidebar ── */
.suggestions-sidebar {
    display: flex;
    flex-direction: column;
    gap: 24px;
    position: sticky;
    top: 24px;
}

.sidebar-card {
    background: #ffffff;
    border: 1px solid #e0e6ed;
    border-radius: 10px;
    padding: 24px;
}

.sidebar-card h2 {
    font-size: 1.1rem;
    color: #1a1a2e;
    margin: 0 0 16px;
    font-weight: 700;
}

/* ── Submit Form ── */
.suggestion-form .form-group {
    margin-bottom: 14px;
}

.suggestion-form label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: #455a64;
    margin-bottom: 5px;
}

.suggestion-form input[type="text"],
.suggestion-form select,
.suggestion-form textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #cfd8dc;
    border-radius: 6px;
    font-size: 0.9rem;
    color: #1a1a2e;
    background: #fafbfc;
    transition: border-color 0.2s ease;
    box-sizing: border-box;
    font-family: inherit;
}

.suggestion-form input:focus,
.suggestion-form select:focus,
.suggestion-form textarea:focus {
    outline: none;
    border-color: #2C5F8A;
    background: #ffffff;
}

.suggestion-form textarea {
    resize: vertical;
    min-height: 100px;
}

.btn-submit-suggestion {
    width: 100%;
    padding: 11px 20px;
    background: #2C5F8A;
    color: #ffffff;
    border: none;
    border-radius: 6px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease;
}

.btn-submit-suggestion:hover {
    background: #1e4a6e;
}

.form-errors {
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 6px;
    padding: 12px 14px;
    margin-bottom: 14px;
}

.form-errors p {
    font-size: 0.85rem;
    color: #b91c1c;
    margin: 0;
    line-height: 1.5;
}

/* Login Prompt */
.sidebar-login-prompt {
    text-align: center;
}

.sidebar-login-prompt p {
    font-size: 0.9rem;
    color: #546e7a;
    margin: 0 0 16px;
    line-height: 1.5;
}

.btn-login-prompt {
    display: inline-block;
    padding: 10px 28px;
    background: #2C5F8A;
    color: #ffffff;
    text-decoration: none;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 600;
    transition: background 0.2s ease;
}

.btn-login-prompt:hover {
    background: #1e4a6e;
}

/* ── Filter Form ── */
.filter-form .form-group {
    margin-bottom: 12px;
}

.filter-form label {
    display: block;
    font-size: 0.82rem;
    font-weight: 600;
    color: #455a64;
    margin-bottom: 4px;
}

.filter-form select {
    width: 100%;
    padding: 9px 12px;
    border: 1px solid #cfd8dc;
    border-radius: 6px;
    font-size: 0.88rem;
    color: #1a1a2e;
    background: #fafbfc;
    box-sizing: border-box;
}

.filter-form select:focus {
    outline: none;
    border-color: #2C5F8A;
}

.btn-filter {
    width: 100%;
    padding: 10px 20px;
    background: #455a64;
    color: #ffffff;
    border: none;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease;
    margin-top: 4px;
}

.btn-filter:hover {
    background: #37474f;
}

.clear-filters {
    display: block;
    text-align: center;
    margin-top: 10px;
    font-size: 0.82rem;
    color: #78909c;
    text-decoration: none;
}

.clear-filters:hover {
    color: #2C5F8A;
    text-decoration: underline;
}

/* ── Suggestions List ── */
.suggestions-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* ── Suggestion Card ── */
.suggestion-card {
    background: #ffffff;
    border: 1px solid #e0e6ed;
    border-radius: 10px;
    padding: 20px;
    display: grid;
    grid-template-columns: 56px 1fr;
    gap: 16px;
    transition: box-shadow 0.2s ease;
}

.suggestion-card:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
}

/* ── Vote Column ── */
.suggestion-vote-col {
    display: flex;
    justify-content: center;
    padding-top: 2px;
}

.vote-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 10px 8px;
    border: 1px solid #e0e6ed;
    border-radius: 8px;
    background: #fafbfc;
    cursor: pointer;
    color: #78909c;
    transition: all 0.2s ease;
    min-width: 48px;
}

button.vote-btn {
    font-family: inherit;
}

.vote-btn:hover {
    border-color: #2C5F8A;
    color: #2C5F8A;
    background: #f0f6fc;
}

.vote-btn.voted {
    border-color: #2C5F8A;
    background: #2C5F8A;
    color: #ffffff;
}

.vote-btn.vote-disabled {
    cursor: default;
    opacity: 0.6;
}

.vote-btn.vote-disabled:hover {
    border-color: #e0e6ed;
    color: #78909c;
    background: #fafbfc;
}

.vote-count {
    font-size: 0.95rem;
    font-weight: 700;
    line-height: 1;
}

/* ── Suggestion Content ── */
.suggestion-content {
    min-width: 0;
}

.suggestion-header {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 8px;
    flex-wrap: wrap;
}

.suggestion-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: #1a1a2e;
    margin: 0;
    flex: 1;
    line-height: 1.4;
}

.suggestion-status {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 3px 10px;
    border-radius: 12px;
    white-space: nowrap;
    flex-shrink: 0;
}

.status-submitted    { background: #e8eaf6; color: #3949ab; }
.status-review       { background: #fff3e0; color: #e65100; }
.status-planned      { background: #e3f2fd; color: #1565c0; }
.status-progress     { background: #fce4ec; color: #c62828; }
.status-completed    { background: #e8f5e9; color: #2e7d32; }
.status-declined     { background: #f5f5f5; color: #757575; }

.suggestion-description {
    font-size: 0.9rem;
    color: #455a64;
    line-height: 1.65;
    margin: 0 0 12px;
    word-wrap: break-word;
}

/* ── Meta ── */
.suggestion-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    font-size: 0.8rem;
    color: #90a4ae;
}

.meta-category {
    background: #f0f2f5;
    padding: 2px 10px;
    border-radius: 10px;
    font-weight: 600;
    color: #546e7a;
}

/* ── Admin Response ── */
.admin-response {
    margin-top: 14px;
    padding: 14px 16px;
    background: #f8fdf9;
    border: 1px solid #c8e6c9;
    border-left: 3px solid #2e7d32;
    border-radius: 6px;
}

.admin-response-label {
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #2e7d32;
    margin-bottom: 6px;
}

.admin-response p {
    font-size: 0.88rem;
    color: #37474f;
    line-height: 1.6;
    margin: 0;
}

.admin-response-date {
    display: block;
    font-size: 0.75rem;
    color: #90a4ae;
    margin-top: 8px;
}

/* ── Empty State ── */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    background: #fafbfc;
    border: 1px dashed #cfd8dc;
    border-radius: 10px;
}

.empty-state h3 {
    font-size: 1.2rem;
    color: #455a64;
    margin: 0 0 8px;
}

.empty-state p {
    font-size: 0.9rem;
    color: #90a4ae;
    margin: 0;
}

/* ── Responsive ── */
@media (max-width: 900px) {
    .suggestions-layout {
        grid-template-columns: 1fr;
    }

    .suggestions-sidebar {
        position: static;
        order: -1;
    }
}

@media (max-width: 600px) {
    .suggestions-hero {
        padding: 40px 20px 32px;
    }

    .suggestions-hero h1 {
        font-size: 1.6rem;
    }

    .suggestions-summary {
        gap: 20px;
        flex-wrap: wrap;
    }

    .suggestion-card {
        grid-template-columns: 48px 1fr;
        gap: 12px;
        padding: 16px;
    }

    .suggestion-header {
        flex-direction: column;
        gap: 6px;
    }

    .suggestion-meta {
        gap: 10px;
    }
}
