/* ============================================================
   HireTheVeterans.com — board.css
   Community Bulletin Board styles
   ============================================================ */

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

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

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

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

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

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

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

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

/* ── Container ── */
.board-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 32px 20px 60px;
}

/* ── Community Guidelines ── */
.board-guidelines {
    background: #ffffff;
    border: 1px solid #e0e6ed;
    border-radius: 10px;
    margin-bottom: 32px;
    overflow: hidden;
}

.guidelines-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 18px 24px;
    background: #f8f9fb;
    border-bottom: 1px solid #e0e6ed;
}

.guidelines-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: #2C5F8A;
    color: #ffffff;
    border-radius: 8px;
    flex-shrink: 0;
}

.guidelines-header h2 {
    font-size: 1.05rem;
    color: #1a1a2e;
    margin: 0;
    font-weight: 700;
    flex: 1;
}

.guidelines-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    padding: 0;
    border: 1px solid #dce1e8;
    border-radius: 6px;
    background: #ffffff;
    color: #78909c;
    cursor: pointer;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.guidelines-toggle:hover {
    border-color: #2C5F8A;
    color: #2C5F8A;
}

.guidelines-toggle svg {
    transition: transform 0.3s ease;
}

.guidelines-body.collapsed + .guidelines-header .guidelines-toggle svg,
.guidelines-body.collapsed ~ * .guidelines-toggle svg {
    transform: rotate(180deg);
}

/* Collapse via max-height for smooth animation */
.guidelines-body {
    max-height: 1200px;
    overflow: hidden;
    transition: max-height 0.4s ease, opacity 0.3s ease;
    opacity: 1;
}

.guidelines-body.collapsed {
    max-height: 0;
    opacity: 0;
    border-top: none;
}

/* Flip chevron when collapsed */
.guidelines-body.collapsed ~ .guidelines-header .guidelines-toggle svg,
body:has(.guidelines-body.collapsed) .guidelines-toggle svg {
    transform: rotate(180deg);
}

.guidelines-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
}

.guideline-item {
    display: flex;
    gap: 14px;
    padding: 18px 24px;
    border-bottom: 1px solid #f0f2f5;
    border-right: 1px solid #f0f2f5;
}

.guideline-item:nth-child(even) {
    border-right: none;
}

.guideline-item:nth-last-child(-n+2) {
    border-bottom: none;
}

.guideline-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    background: #e8edf3;
    color: #2C5F8A;
    border-radius: 50%;
    font-size: 0.78rem;
    font-weight: 800;
    flex-shrink: 0;
    margin-top: 1px;
}

.guideline-item strong {
    display: block;
    font-size: 0.88rem;
    color: #1a1a2e;
    margin-bottom: 4px;
    font-weight: 700;
}

.guideline-item p {
    font-size: 0.82rem;
    color: #546e7a;
    line-height: 1.55;
    margin: 0;
}

.guidelines-footer {
    font-size: 0.8rem;
    color: #78909c;
    line-height: 1.55;
    margin: 0;
    padding: 16px 24px;
    background: #f8f9fb;
    border-top: 1px solid #e0e6ed;
}

/* ── Categories Section ── */
.categories-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.categories-header h2 {
    font-size: 1.25rem;
    color: #1a1a2e;
    margin: 0;
    font-weight: 700;
}

.btn-new-thread {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 10px 20px;
    background: #2C5F8A;
    color: #ffffff;
    text-decoration: none;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 600;
    transition: background 0.2s ease;
}

.btn-new-thread:hover {
    background: #1e4a6e;
}

/* ── Category Cards ── */
.categories-list {
    display: flex;
    flex-direction: column;
    gap: 0;
    border: 1px solid #e0e6ed;
    border-radius: 10px;
    overflow: hidden;
    background: #ffffff;
}

.category-card {
    display: grid;
    grid-template-columns: 56px 1fr 180px;
    gap: 16px;
    align-items: center;
    padding: 20px 24px;
    text-decoration: none;
    color: inherit;
    border-bottom: 1px solid #f0f2f5;
    transition: background 0.15s ease;
}

.category-card:last-child {
    border-bottom: none;
}

.category-card:hover {
    background: #f8f9fb;
}

.category-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: #f0f4f8;
    color: #2C5F8A;
    border-radius: 10px;
    flex-shrink: 0;
    font-size: 1.25rem;
}

.category-icon svg {
    color: #2C5F8A;
}

.category-info h3 {
    font-size: 1.02rem;
    font-weight: 700;
    color: #1a1a2e;
    margin: 0 0 4px;
    line-height: 1.3;
}

.category-desc {
    font-size: 0.84rem;
    color: #78909c;
    line-height: 1.45;
    margin: 0 0 8px;
}

.category-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8rem;
    color: #90a4ae;
}

.category-meta strong {
    color: #546e7a;
    font-weight: 700;
}

.meta-divider {
    color: #cfd8dc;
}

/* ── Latest Post Column ── */
.category-latest {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 2px;
    text-align: right;
}

.latest-label {
    font-size: 0.7rem;
    color: #b0bec5;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    font-weight: 600;
}

.latest-time {
    font-size: 0.82rem;
    color: #546e7a;
    font-weight: 600;
}

.latest-author {
    font-size: 0.78rem;
    color: #90a4ae;
}

.latest-empty {
    font-size: 0.82rem;
    color: #b0bec5;
    font-style: italic;
}

/* ── Login Prompt ── */
.board-login-prompt {
    text-align: center;
    padding: 28px 24px;
    margin-top: 24px;
    background: #f8f9fb;
    border: 1px solid #e0e6ed;
    border-radius: 10px;
}

.board-login-prompt p {
    font-size: 0.92rem;
    color: #455a64;
    margin: 0 0 16px;
    line-height: 1.5;
}

.board-login-prompt strong {
    color: #1a1a2e;
}

.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;
    margin-right: 10px;
}

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

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

.btn-register-prompt:hover {
    background: #2C5F8A;
    color: #ffffff;
}

/* ── 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: 768px) {
    .board-hero {
        padding: 40px 20px 32px;
    }

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

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

    .board-container {
        padding: 24px 16px 48px;
    }

    .guidelines-grid {
        grid-template-columns: 1fr;
    }

    .guideline-item {
        border-right: none;
    }

    .guideline-item:nth-last-child(2) {
        border-bottom: 1px solid #f0f2f5;
    }

    .guideline-item:last-child {
        border-bottom: none;
    }

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

    .category-latest {
        display: none;
    }

    .categories-header {
        flex-direction: column;
        gap: 12px;
        align-items: flex-start;
    }

    .btn-new-thread {
        width: 100%;
        justify-content: center;
    }

    .board-login-prompt {
        padding: 24px 16px;
    }

    .btn-login-prompt,
    .btn-register-prompt {
        display: block;
        margin: 0 auto 10px;
        max-width: 240px;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .guideline-item {
        padding: 14px 16px;
    }

    .guidelines-header {
        padding: 14px 16px;
    }

    .guidelines-footer {
        padding: 12px 16px;
    }
}


/* ============================================================
   Category View — Thread Listing
   ============================================================ */

/* ── Breadcrumb ── */
.board-breadcrumb {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 12px;
    font-size: 0.85rem;
}

.board-breadcrumb a {
    color: #90a4ae;
    text-decoration: none;
    transition: color 0.2s ease;
}

.board-breadcrumb a:hover {
    color: #ffffff;
    text-decoration: underline;
}

.breadcrumb-sep {
    color: #546e7a;
}

.board-breadcrumb > span:last-child {
    color: #e0e6ed;
    font-weight: 600;
}

/* ── Category Hero Variant ── */
.board-hero--category {
    padding: 44px 20px 36px;
}

.board-hero--category h1 {
    font-size: 1.9rem;
}

/* ── Thread Actions Bar ── */
.thread-actions-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.thread-results-info {
    font-size: 0.85rem;
    color: #78909c;
    font-weight: 500;
}

/* ── Thread List ── */
.thread-list {
    border: 1px solid #e0e6ed;
    border-radius: 10px;
    overflow: hidden;
    background: #ffffff;
}

.thread-card {
    display: grid;
    grid-template-columns: 36px 1fr 120px 160px;
    gap: 16px;
    align-items: center;
    padding: 16px 24px;
    text-decoration: none;
    color: inherit;
    border-bottom: 1px solid #f0f2f5;
    transition: background 0.15s ease;
}

.thread-card:last-child {
    border-bottom: none;
}

.thread-card:hover {
    background: #f8f9fb;
}

/* ── Pinned & Locked Variants ── */
.thread-pinned {
    background: #fafcff;
    border-bottom-color: #e3ecf5;
}

.thread-pinned:hover {
    background: #f0f5fb;
}

.thread-locked {
    opacity: 0.8;
}

/* ── Indicators Column ── */
.thread-indicators {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.indicator-pin {
    color: #2C5F8A;
    display: flex;
}

.indicator-lock {
    color: #90a4ae;
    display: flex;
}

/* ── Thread Info ── */
.thread-info {
    min-width: 0;
}

.thread-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: #1a1a2e;
    margin: 0 0 4px;
    line-height: 1.35;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.thread-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.78rem;
    color: #90a4ae;
}

.meta-author {
    color: #546e7a;
    font-weight: 600;
}

.meta-time {
    color: #b0bec5;
}

/* ── Thread Stats ── */
.thread-stats {
    display: flex;
    gap: 20px;
    justify-content: center;
}

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

.stat-number {
    font-size: 0.9rem;
    font-weight: 800;
    color: #455a64;
    line-height: 1;
}

.stat-label {
    font-size: 0.68rem;
    color: #b0bec5;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    font-weight: 600;
}

/* ── Thread Latest Reply ── */
.thread-latest {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 2px;
    text-align: right;
}

/* Reuses .latest-time, .latest-author, .latest-empty from board main */

/* ── Pagination ── */
.board-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 28px;
    padding: 20px 0;
}

.page-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    font-size: 0.85rem;
    font-weight: 600;
    color: #2C5F8A;
    text-decoration: none;
    border: 1px solid #dce1e8;
    border-radius: 6px;
    background: #ffffff;
    transition: all 0.2s ease;
}

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

.page-numbers {
    display: flex;
    align-items: center;
    gap: 4px;
}

.page-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    font-size: 0.85rem;
    font-weight: 600;
    color: #546e7a;
    text-decoration: none;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.page-num:hover {
    background: #f0f2f5;
    color: #2C5F8A;
}

.page-num.page-active {
    background: #2C5F8A;
    color: #ffffff;
}

.page-ellipsis {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    font-size: 0.9rem;
    color: #b0bec5;
}

/* ── Category View Responsive ── */
@media (max-width: 768px) {
    .board-hero--category {
        padding: 36px 20px 28px;
    }

    .board-hero--category h1 {
        font-size: 1.5rem;
    }

    .thread-card {
        grid-template-columns: 1fr;
        gap: 10px;
        padding: 16px;
    }

    .thread-indicators {
        flex-direction: row;
        gap: 8px;
        justify-content: flex-start;
    }

    .thread-stats {
        justify-content: flex-start;
        gap: 24px;
    }

    .stat-group {
        flex-direction: row;
        gap: 5px;
        align-items: baseline;
    }

    .thread-latest {
        align-items: flex-start;
        flex-direction: row;
        gap: 8px;
    }

    .thread-actions-bar {
        flex-direction: column;
        gap: 12px;
        align-items: flex-start;
    }

    .thread-actions-bar .btn-new-thread {
        width: 100%;
        justify-content: center;
    }

    .board-pagination {
        flex-wrap: wrap;
    }
}

@media (max-width: 480px) {
    .board-breadcrumb {
        font-size: 0.8rem;
    }

    .thread-title {
        white-space: normal;
    }
}


/* ============================================================
   Thread View — Original Post + Replies
   ============================================================ */

.board-hero--thread {
    padding: 32px 20px 24px;
}

.board-hero--form {
    padding: 36px 20px 28px;
}

.board-hero--form h1 {
    font-size: 1.7rem;
    margin-top: 10px;
}

/* ── Narrow container for forms ── */
.board-container--narrow {
    max-width: 720px;
}

/* ── Original Post ── */
.thread-op {
    background: #ffffff;
    border: 1px solid #e0e6ed;
    border-radius: 10px;
    padding: 28px;
    margin-bottom: 28px;
}

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

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

.op-badges {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
}

.op-badge {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 3px 10px;
    border-radius: 12px;
}

.badge-pinned {
    background: #e3f2fd;
    color: #1565c0;
}

.badge-locked {
    background: #f5f5f5;
    color: #757575;
}

.op-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    font-size: 0.82rem;
    color: #90a4ae;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #f0f2f5;
}

.op-author {
    font-weight: 700;
    color: #455a64;
}

.op-role {
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    background: #e8edf3;
    color: #2C5F8A;
    padding: 2px 8px;
    border-radius: 10px;
}

.op-edit-link {
    color: #2C5F8A;
    text-decoration: none;
    font-weight: 600;
}

.op-edit-link:hover {
    text-decoration: underline;
}

.op-body {
    font-size: 0.95rem;
    color: #37474f;
    line-height: 1.75;
    word-wrap: break-word;
}

/* ── Replies Section ── */
.thread-replies {
    margin-bottom: 28px;
}

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

.replies-empty {
    padding: 32px 20px;
    text-align: center;
    background: #fafbfc;
    border: 1px dashed #cfd8dc;
    border-radius: 10px;
}

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

/* ── Reply Card ── */
.reply-card {
    background: #ffffff;
    border: 1px solid #e0e6ed;
    border-radius: 10px;
    padding: 20px 24px;
    margin-bottom: 12px;
}

.reply-card:last-child {
    margin-bottom: 0;
}

.reply-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    font-size: 0.8rem;
    color: #90a4ae;
    margin-bottom: 12px;
}

.reply-author {
    font-weight: 700;
    color: #455a64;
}

.reply-role {
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    background: #e8edf3;
    color: #2C5F8A;
    padding: 2px 8px;
    border-radius: 10px;
}

.reply-edited {
    font-style: italic;
    color: #b0bec5;
    font-size: 0.75rem;
}

.reply-edit-link {
    color: #2C5F8A;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.8rem;
}

.reply-edit-link:hover {
    text-decoration: underline;
}

.reply-body {
    font-size: 0.92rem;
    color: #37474f;
    line-height: 1.7;
    word-wrap: break-word;
}

/* ── Thread Locked Notice ── */
.thread-locked-notice {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 16px 20px;
    background: #f5f5f5;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    font-size: 0.9rem;
    color: #757575;
    font-weight: 500;
}

/* ── Reply Form Section ── */
.reply-form-section {
    background: #ffffff;
    border: 1px solid #e0e6ed;
    border-radius: 10px;
    padding: 24px 28px;
}

.reply-form-section h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: #1a1a2e;
    margin: 0 0 16px;
}

/* ── Board Form Card (new thread, edit) ── */
.board-form-card {
    background: #ffffff;
    border: 1px solid #e0e6ed;
    border-radius: 10px;
    padding: 28px;
}

.board-form-card h2 {
    font-size: 1.15rem;
    font-weight: 700;
    color: #1a1a2e;
    margin: 0 0 12px;
}

/* ── Shared Form Styles ── */
.board-thread-form .form-group,
.board-reply-form .form-group {
    margin-bottom: 16px;
}

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

.board-thread-form input[type="text"],
.board-thread-form select,
.board-thread-form textarea,
.board-reply-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;
}

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

.board-thread-form textarea,
.board-reply-form textarea {
    resize: vertical;
    min-height: 120px;
}

.form-hint {
    display: block;
    font-size: 0.78rem;
    color: #b0bec5;
    margin-top: 4px;
}

.form-note {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.82rem;
    color: #78909c;
    margin-bottom: 18px;
    padding: 12px 14px;
    background: #f8f9fb;
    border-radius: 6px;
    border: 1px solid #e8ecf0;
}

.btn-submit-reply {
    display: inline-block;
    padding: 11px 28px;
    background: #2C5F8A;
    color: #ffffff;
    border: none;
    border-radius: 6px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease;
    font-family: inherit;
}

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

.btn-submit-reply:disabled {
    background: #b0bec5;
    cursor: not-allowed;
}

.btn-secondary {
    display: inline-block;
    padding: 11px 28px;
    background: #ffffff;
    color: #455a64;
    border: 1px solid #cfd8dc;
    border-radius: 6px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s ease;
}

.btn-secondary:hover {
    border-color: #90a4ae;
    background: #f8f9fb;
}

.form-actions-row {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    margin-top: 8px;
}

/* ── Form Messages ── */
.form-errors {
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 6px;
    padding: 12px 14px;
    margin-bottom: 16px;
}

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

.form-success {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: 6px;
    padding: 14px 16px;
    margin-bottom: 16px;
}

.form-success p {
    font-size: 0.88rem;
    color: #166534;
    margin: 0;
    line-height: 1.5;
}

.form-info {
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    border-radius: 6px;
    padding: 12px 14px;
    margin-bottom: 16px;
}

.form-info p {
    font-size: 0.85rem;
    color: #1e40af;
    margin: 0;
    line-height: 1.5;
}

/* ── Full-page success (post-submission) ── */
.form-success-full {
    text-align: center;
    padding: 48px 24px;
    background: #ffffff;
    border: 1px solid #e0e6ed;
    border-radius: 10px;
}

.form-success-full h2 {
    font-size: 1.3rem;
    color: #1a1a2e;
    margin: 16px 0 8px;
    font-weight: 700;
}

.form-success-full p {
    font-size: 0.95rem;
    color: #546e7a;
    margin: 0 0 24px;
    line-height: 1.5;
}

.success-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ── Guidelines Gate ── */
.guidelines-gate-intro {
    font-size: 0.9rem;
    color: #546e7a;
    margin: 0 0 16px;
    line-height: 1.5;
}

.guidelines-gate-box {
    background: #f8f9fb;
    border: 1px solid #e0e6ed;
    border-radius: 8px;
    padding: 18px 20px;
    margin-bottom: 18px;
}

.guidelines-gate-list {
    margin: 0;
    padding-left: 24px;
    list-style: decimal;
}

.guidelines-gate-list li {
    font-size: 0.85rem;
    color: #455a64;
    line-height: 1.55;
    margin-bottom: 8px;
}

.guidelines-gate-list li:last-child {
    margin-bottom: 0;
}

.guidelines-gate-list strong {
    color: #1a1a2e;
}

.guidelines-checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.9rem;
    color: #1a1a2e;
    font-weight: 600;
    margin-bottom: 18px;
    cursor: pointer;
}

.guidelines-checkbox-label input[type="checkbox"] {
    margin-top: 3px;
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    accent-color: #2C5F8A;
}

/* ── Edit Timer Notice ── */
.edit-timer-notice {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    background: #fff8e1;
    border: 1px solid #ffecb3;
    border-radius: 6px;
    font-size: 0.85rem;
    color: #f57f17;
    margin-bottom: 20px;
}

.edit-timer-notice strong {
    font-variant-numeric: tabular-nums;
}

/* ── Thread View Responsive ── */
@media (max-width: 768px) {
    .thread-op {
        padding: 20px;
    }

    .op-title {
        font-size: 1.2rem;
    }

    .op-header {
        flex-direction: column;
        gap: 8px;
    }

    .reply-card {
        padding: 16px;
    }

    .reply-form-section {
        padding: 20px;
    }

    .board-form-card {
        padding: 20px;
    }

    .form-actions-row {
        flex-direction: column;
    }

    .form-actions-row .btn-secondary,
    .form-actions-row .btn-submit-reply {
        width: 100%;
        text-align: center;
    }

    .success-actions {
        flex-direction: column;
        align-items: center;
    }
}

@media (max-width: 480px) {
    .board-hero--thread {
        padding: 24px 16px 18px;
    }

    .board-hero--form {
        padding: 28px 16px 22px;
    }

    .board-hero--form h1 {
        font-size: 1.4rem;
    }
}

/* ============================================================================
   Board Enhancements — Search, User History, Report
   APPEND these rules to the bottom of assets/css/board.css
   ============================================================================ */

/* ── Search Form ── */
.board-search-form {
    margin-bottom: 24px;
}
.board-search-row {
    display: flex;
    gap: 8px;
    max-width: 600px;
}
.board-search-input {
    flex: 1;
    padding: 10px 14px;
    border: 2px solid #dde1e6;
    border-radius: 6px;
    font-size: 15px;
    color: var(--text-dark, #1A1A1A);
    background: var(--white, #fff);
    transition: border-color 0.2s;
}
.board-search-input:focus {
    outline: none;
    border-color: var(--blue, #2C5F8A);
}
.board-search-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 18px;
    background: var(--navy, #1B2A4A);
    color: #fff;
    border: none;
    border-radius: 6px;
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: opacity 0.2s;
}
.board-search-btn:hover {
    opacity: 0.9;
}

/* ── Search Results ── */
.thread-snippet {
    font-size: 13px;
    color: var(--text-muted, #6C757D);
    margin-top: 6px;
    line-height: 1.5;
}
.meta-category {
    font-size: 12px;
    background: rgba(44, 95, 138, 0.1);
    color: var(--blue, #2C5F8A);
    padding: 1px 6px;
    border-radius: 3px;
    font-weight: 600;
}

/* ── User Post History ── */
.board-user-tabs {
    display: flex;
    gap: 4px;
    margin-bottom: 20px;
    border-bottom: 2px solid #eee;
    padding-bottom: 0;
}
.board-user-tab {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 18px;
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 15px;
    font-weight: 600;
    color: var(--text-muted, #6C757D);
    text-decoration: none;
    border-bottom: 3px solid transparent;
    margin-bottom: -2px;
    transition: color 0.2s, border-color 0.2s;
}
.board-user-tab:hover {
    color: var(--navy, #1B2A4A);
}
.board-user-tab.active {
    color: var(--navy, #1B2A4A);
    border-bottom-color: var(--blue, #2C5F8A);
}

/* Reply history cards */
.board-reply-history {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.reply-history-card {
    background: var(--white, #fff);
    border-radius: 8px;
    padding: 16px 20px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}
.reply-history-header {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    font-size: 13px;
    margin-bottom: 8px;
}
.reply-history-label {
    color: var(--text-muted, #6C757D);
}
.reply-history-thread-link {
    color: var(--blue, #2C5F8A);
    font-weight: 600;
    text-decoration: none;
}
.reply-history-thread-link:hover {
    text-decoration: underline;
}
.reply-history-body {
    font-size: 14px;
    color: var(--text-dark, #1A1A1A);
    line-height: 1.55;
}

/* ── Clickable author names ── */
a.op-author,
a.reply-author {
    color: inherit;
    text-decoration: none;
    font-weight: 600;
}
a.op-author:hover,
a.reply-author:hover {
    color: var(--blue, #2C5F8A);
    text-decoration: underline;
}

/* ── Report Link ── */
.report-link {
    background: none;
    border: none;
    padding: 0;
    font: inherit;
    font-size: inherit;
    color: var(--text-muted, #6C757D);
    cursor: pointer;
    text-decoration: none;
    transition: color 0.15s;
}
.report-link:hover {
    color: var(--red, #C0392B);
}

/* ── Report Modal ── */
.report-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.report-modal {
    background: var(--white, #fff);
    border-radius: 10px;
    width: 100%;
    max-width: 480px;
    padding: 28px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.2);
}
.report-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}
.report-modal-header h3 {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 20px;
    font-weight: 700;
    color: var(--navy, #1B2A4A);
    margin: 0;
}
.report-modal-close {
    background: none;
    border: none;
    font-size: 24px;
    color: var(--text-muted, #6C757D);
    cursor: pointer;
    padding: 0;
    line-height: 1;
}
.report-modal-close:hover {
    color: var(--text-dark, #1A1A1A);
}
.report-modal .form-group {
    margin-bottom: 16px;
}
.report-modal label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 6px;
    color: var(--text-dark, #1A1A1A);
}
.report-modal select,
.report-modal textarea {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    font-family: inherit;
}
.report-modal .form-actions-row {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 20px;
}

/* ── Responsive ── */
@media (max-width: 600px) {
    .board-search-row {
        flex-direction: column;
        max-width: 100%;
    }
    .board-search-btn {
        justify-content: center;
    }
    .board-user-tabs {
        overflow-x: auto;
    }
    .reply-history-header {
        flex-direction: column;
        align-items: flex-start;
    }
    .report-modal {
        padding: 20px;
    }
}