/*--------------------------------------------------------------
# Shared Page Layout
--------------------------------------------------------------*/

.private-list-page,
.public-questions-page {
    background: #f8fafc;
}

.private-list-section,
.public-questions-section {
    padding: 70px 0;
}

.private-list-shell,
.public-questions-shell {
    display: block;
}


/*--------------------------------------------------------------
# Typography
--------------------------------------------------------------*/

.private-list-page-header h1,
.public-questions-page-header h1,
.private-list-page-badge,
.public-questions-page-badge,
.private-list-page-header p,
.public-questions-page-header p,
.private-list-page-user strong,
.private-list-page-user span,
.public-questions-page-user strong,
.public-questions-page-user span,
.private-list-hero-badge,
.public-questions-hero-badge,
.private-list-head-content h3,
.public-questions-head-content h3,
.private-list-meta-line,
.public-questions-meta-line,
.private-list-note,
.public-questions-note,
.private-thread-title,
.public-question-title,
.private-thread-time,
.public-question-time,
.private-thread-label,
.public-question-label,
.private-thread-preview,
.public-question-preview,
.private-thread-badge,
.public-question-badge,
.private-list-empty h5,
.public-questions-empty h5,
.private-list-empty p,
.public-questions-empty p,
.private-list-btn,
.public-questions-btn {
    font-family: "Poppins", "Roboto", sans-serif;
}


/*--------------------------------------------------------------
# Shared Hero Badges
--------------------------------------------------------------*/

.private-list-hero-badge,
.public-questions-hero-badge,
.private-list-page-badge,
.public-questions-page-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 36px;
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(80, 197, 255, 0.12);
    border: 1px solid rgba(80, 197, 255, 0.18);
    color: #1d4f6b;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.private-list-page-badge,
.public-questions-page-badge {
    margin-bottom: 16px;
}

.private-list-hero-badge i,
.public-questions-hero-badge i,
.private-list-page-badge i,
.public-questions-page-badge i {
    color: inherit;
}


/*--------------------------------------------------------------
# Internal Page Header
--------------------------------------------------------------*/

.private-list-page-header,
.public-questions-page-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 30px;
}

.private-list-page-header-copy,
.public-questions-page-header-copy {
    flex: 1 1 auto;
    min-width: 0;
}

.private-list-page-header h1,
.public-questions-page-header h1 {
    margin: 0 0 12px;
    font-size: clamp(2rem, 4vw, 2.9rem);
    font-weight: 800;
    line-height: 1.12;
    color: var(--heading-color);
}

.private-list-page-header p,
.public-questions-page-header p {
    margin: 0;
    max-width: 860px;
    color: var(--default-color);
    font-size: 0.95rem;
    line-height: 1.75;
}

.private-list-page-header-side,
.public-questions-page-header-side {
    flex: 0 0 auto;
}

.private-list-page-user,
.public-questions-page-user {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    border-radius: 18px;
    background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
}

.private-list-page-user-icon,
.public-questions-page-user-icon {
    width: 52px;
    height: 52px;
    flex: 0 0 52px;
    border-radius: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(80, 197, 255, 0.12);
    color: var(--accent-color);
    font-size: 1.15rem;
}

.private-list-page-user strong,
.public-questions-page-user strong {
    display: block;
    margin-bottom: 3px;
    color: var(--heading-color);
    font-size: 0.96rem;
    font-weight: 700;
    line-height: 1.3;
}

.private-list-page-user span,
.public-questions-page-user span {
    display: block;
    color: var(--default-color);
    font-size: 0.88rem;
    line-height: 1.45;
}


/*--------------------------------------------------------------
# Shared Panels
--------------------------------------------------------------*/

.private-list-panel,
.public-questions-panel {
    position: relative;
    background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    box-shadow: var(--shadow-sm);
    padding: 28px;
    transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
}

.private-list-panel::before,
.public-questions-panel::before {
    content: "";
    position: absolute;
    top: -80px;
    right: -60px;
    width: 170px;
    height: 170px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(80, 197, 255, 0.10), transparent 70%);
    pointer-events: none;
}

.private-list-panel:hover,
.public-questions-panel:hover {
    transform: translateY(-4px);
    box-shadow: 0 22px 46px rgba(15, 23, 42, 0.10);
    border-color: rgba(80, 197, 255, 0.20);
}


/*--------------------------------------------------------------
# Shared Heads
--------------------------------------------------------------*/

.private-list-head,
.public-questions-head {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 24px;
    position: relative;
    z-index: 2;
}

.private-list-head-icon,
.public-questions-head-icon {
    width: 58px;
    height: 58px;
    flex: 0 0 58px;
    border-radius: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(80, 197, 255, 0.12);
    color: var(--accent-color);
    font-size: 1.15rem;
}

.private-list-head-content,
.public-questions-head-content {
    flex: 1;
    min-width: 0;
}

.private-list-head-content h3,
.public-questions-head-content h3 {
    margin: 0 0 14px;
    font-size: 1.18rem;
    font-weight: 700;
    line-height: 1.35;
    color: var(--heading-color);
}

.private-list-meta-inline,
.public-questions-meta-inline {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.private-list-meta-line,
.public-questions-meta-line {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    font-size: 0.95rem;
    line-height: 1.7;
    color: var(--default-color);
    word-break: break-word;
}

.private-list-meta-label,
.public-questions-meta-label {
    color: var(--default-color);
    font-weight: 500;
}

.private-list-meta-line strong,
.public-questions-meta-line strong {
    color: var(--heading-color);
    font-weight: 700;
}


/*--------------------------------------------------------------
# Shared Toolbars
--------------------------------------------------------------*/

.private-list-toolbar,
.public-questions-toolbar {
    margin-bottom: 16px;
    padding: 18px;
    border: 1px solid var(--border-color);
    border-radius: 18px;
    background: var(--surface-muted);
    position: relative;
    z-index: 2;
}

.private-list-input-wrap,
.public-questions-input-wrap {
    min-height: 50px;
    display: flex;
    align-items: center;
    overflow: hidden;
    border: 1px solid var(--border-color);
    border-radius: 14px;
    background: #ffffff;
    transition: 0.25s ease;
}

.private-list-input-wrap i,
.public-questions-input-wrap i {
    width: 46px;
    flex: 0 0 46px;
    text-align: center;
    color: #98a2b3;
    font-size: 0.95rem;
}

.private-list-input,
.private-list-select,
.public-questions-input,
.public-questions-select {
    width: 100%;
    min-width: 0;
    min-height: 50px;
    border: 0;
    outline: none;
    background: transparent;
    color: var(--heading-color);
    font-size: 0.95rem;
}

.private-list-input,
.public-questions-input {
    padding: 0 14px 0 0;
}

.private-list-select,
.public-questions-select {
    padding: 0 14px 0 0;
    appearance: none;
    cursor: pointer;
}

.private-list-input-wrap:focus-within,
.public-questions-input-wrap:focus-within {
    border-color: rgba(80, 197, 255, 0.65);
    box-shadow: 0 0 0 4px rgba(80, 197, 255, 0.10);
}


/*--------------------------------------------------------------
# Shared Notes
--------------------------------------------------------------*/

.private-list-note,
.public-questions-note {
    margin-bottom: 18px;
    padding: 14px 16px;
    border-radius: 18px;
    background: rgba(80, 197, 255, 0.08);
    border: 1px solid rgba(80, 197, 255, 0.12);
    color: var(--heading-color);
    font-size: 0.92rem;
    line-height: 1.7;
    position: relative;
    z-index: 2;
}

.private-list-note strong,
.public-questions-note strong {
    color: var(--heading-color);
    font-weight: 700;
}


/*--------------------------------------------------------------
# Private Thread Grid
--------------------------------------------------------------*/

.private-thread-grid {
    margin-top: 0;
}

.private-thread-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 20px;
    border-radius: 20px;
    border: 1px solid var(--border-color);
    background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
    box-shadow: var(--shadow-sm);
    transition: 0.25s ease;
}

.private-thread-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 18px 36px rgba(15, 23, 42, 0.08);
    border-color: rgba(80, 197, 255, 0.18);
}

.private-thread-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 16px;
}

.private-thread-user {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    min-width: 0;
}

.private-thread-avatar {
    width: 46px;
    height: 46px;
    flex: 0 0 46px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(80, 197, 255, 0.12);
    color: var(--accent-color);
    font-size: 1.15rem;
}

.private-thread-meta {
    min-width: 0;
}

.private-thread-title {
    margin-bottom: 4px;
    font-size: 1rem;
    font-weight: 700;
    color: var(--heading-color);
    word-break: break-word;
}

.private-thread-time {
    font-size: 0.84rem;
    color: var(--default-color);
    line-height: 1.5;
}

.private-thread-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 32px;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(80, 197, 255, 0.12);
    border: 1px solid rgba(80, 197, 255, 0.18);
    color: #1d4f6b;
    font-size: 0.75rem;
    font-weight: 700;
    white-space: nowrap;
}

.private-thread-body {
    margin-bottom: 18px;
}

.private-thread-label {
    margin-bottom: 8px;
    font-size: 0.76rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--default-color);
}

.private-thread-preview {
    color: var(--default-color);
    line-height: 1.7;
    display: -webkit-box;
    -webkit-line-clamp: 5;
    -webkit-box-orient: vertical;
    overflow: hidden;
    word-break: break-word;
    font-size: 0.94rem;
}

.private-thread-actions {
    margin-top: auto;
}


/*--------------------------------------------------------------
# Public Question Grid
--------------------------------------------------------------*/

.public-questions-grid {
    margin-top: 0;
}

.public-question-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 20px;
    border-radius: 20px;
    border: 1px solid var(--border-color);
    background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
    box-shadow: var(--shadow-sm);
    transition: 0.25s ease;
}

.public-question-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 18px 36px rgba(15, 23, 42, 0.08);
    border-color: rgba(80, 197, 255, 0.18);
}

.public-question-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 16px;
}

.public-question-user {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    min-width: 0;
}

.public-question-avatar {
    width: 46px;
    height: 46px;
    flex: 0 0 46px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(80, 197, 255, 0.12);
    color: var(--accent-color);
    font-size: 1.15rem;
}

.public-question-meta {
    min-width: 0;
}

.public-question-title {
    margin-bottom: 4px;
    font-size: 1rem;
    font-weight: 700;
    color: var(--heading-color);
    word-break: break-word;
}

.public-question-time {
    font-size: 0.84rem;
    color: var(--default-color);
    line-height: 1.5;
}

.public-question-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 32px;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(80, 197, 255, 0.12);
    border: 1px solid rgba(80, 197, 255, 0.18);
    color: #1d4f6b;
    font-size: 0.75rem;
    font-weight: 700;
    white-space: nowrap;
}

.public-question-body {
    margin-bottom: 18px;
}

.public-question-label {
    margin-bottom: 8px;
    font-size: 0.76rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--default-color);
}

.public-question-preview {
    color: var(--default-color);
    line-height: 1.7;
    display: -webkit-box;
    -webkit-line-clamp: 5;
    -webkit-box-orient: vertical;
    overflow: hidden;
    word-break: break-word;
    font-size: 0.94rem;
}

.public-question-actions {
    margin-top: auto;
}


/*--------------------------------------------------------------
# Shared Buttons
--------------------------------------------------------------*/

.private-list-btn,
.public-questions-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 44px;
    padding: 0 18px;
    border-radius: 12px;
    border: 1px solid transparent;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
    transition: 0.25s ease;
    text-align: center;
}

.private-list-btn-primary,
.public-questions-btn-primary {
    background: var(--accent-color);
    border-color: var(--accent-color);
    color: var(--contrast-color);
    box-shadow: 0 10px 24px rgba(80, 197, 255, 0.18);
}

.private-list-btn-primary:hover,
.public-questions-btn-primary:hover {
    background: var(--accent-hover);
    border-color: var(--accent-hover);
    color: var(--contrast-color);
    transform: translateY(-1px);
}

.private-list-btn-light,
.public-questions-btn-light {
    background: #ffffff;
    border-color: var(--border-color);
    color: var(--heading-color);
}

.private-list-btn-light:hover,
.public-questions-btn-light:hover {
    background: var(--surface-muted);
    border-color: rgba(80, 197, 255, 0.20);
    color: var(--heading-color);
    transform: translateY(-1px);
}

.private-list-btn-dark,
.public-questions-btn-dark {
    background: #414042;
    border-color: #414042;
    color: #ffffff;
    box-shadow: 0 10px 24px rgba(65, 64, 66, 0.18);
}

.private-list-btn-dark:hover,
.public-questions-btn-dark:hover {
    background: #2e2d2f;
    border-color: #2e2d2f;
    color: #ffffff;
    transform: translateY(-1px);
}


/*--------------------------------------------------------------
# Bottom Actions
--------------------------------------------------------------*/

.private-list-actions,
.public-questions-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.private-list-actions-bottom,
.public-questions-actions-bottom {
    margin-top: 24px;
    padding-top: 22px;
    border-top: 1px solid var(--border-color);
}


/*--------------------------------------------------------------
# Empty States
--------------------------------------------------------------*/

.private-list-empty,
.public-questions-empty {
    padding: 36px 22px;
    border-radius: 22px;
    border: 1px dashed var(--border-color);
    background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
    text-align: center;
    box-shadow: var(--shadow-sm);
}

.private-list-empty-icon,
.public-questions-empty-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 16px;
    border-radius: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(80, 197, 255, 0.12);
    color: var(--accent-color);
    font-size: 1.35rem;
}

.private-list-empty h5,
.public-questions-empty h5 {
    margin: 0 0 10px;
    font-size: 1.12rem;
    font-weight: 700;
    color: var(--heading-color);
}

.private-list-empty p,
.public-questions-empty p {
    margin: 0;
    color: var(--default-color);
    line-height: 1.7;
    font-size: 0.95rem;
}

.private-list-empty-actions,
.public-questions-empty-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    margin-top: 22px;
}


/*--------------------------------------------------------------
# Large Screens
--------------------------------------------------------------*/

@media (min-width: 1200px) {
    .private-list-panel,
    .public-questions-panel {
        padding: 32px;
    }
}


/*--------------------------------------------------------------
# Tablet
--------------------------------------------------------------*/

@media (max-width: 1199.98px) {
    .private-list-page-header h1,
    .public-questions-page-header h1 {
        font-size: clamp(1.9rem, 4vw, 2.5rem);
    }
}

@media (max-width: 991.98px) {
    .private-list-section,
    .public-questions-section {
        padding: 60px 0;
    }
    .private-list-page-header,
    .public-questions-page-header {
        flex-direction: column;
        align-items: stretch;
    }
    .private-list-page-header-side,
    .private-list-page-user,
    .public-questions-page-header-side,
    .public-questions-page-user {
        width: 100%;
    }
    .private-list-panel,
    .public-questions-panel {
        padding: 24px;
        border-radius: 20px;
    }
    .private-list-head-content h3,
    .public-questions-head-content h3 {
        font-size: 1.15rem;
    }
    .private-list-page-header h1,
    .public-questions-page-header h1 {
        font-size: 2.1rem;
    }
}


/*--------------------------------------------------------------
# Mobile
--------------------------------------------------------------*/

@media (max-width: 767.98px) {
    .private-list-panel,
    .public-questions-panel {
        padding: 18px;
        border-radius: 18px;
    }
    .private-list-head,
    .public-questions-head {
        flex-direction: column;
        gap: 12px;
    }
    .private-list-head-icon,
    .public-questions-head-icon {
        width: 52px;
        height: 52px;
        flex: 0 0 52px;
        border-radius: 14px;
        font-size: 1.05rem;
    }
    .private-list-head-content h3,
    .public-questions-head-content h3 {
        font-size: 1.08rem;
        margin-bottom: 10px;
    }
    .private-list-meta-inline,
    .public-questions-meta-inline {
        gap: 6px;
    }
    .private-list-toolbar,
    .public-questions-toolbar {
        padding: 14px;
        border-radius: 16px;
    }
    .private-thread-card,
    .public-question-card {
        padding: 16px;
        border-radius: 18px;
    }
    .private-thread-top,
    .public-question-top {
        flex-direction: column;
        align-items: flex-start;
    }
    .private-thread-badge,
    .public-question-badge {
        white-space: normal;
    }
    .private-list-actions,
    .public-questions-actions,
    .private-list-empty-actions,
    .public-questions-empty-actions {
        flex-direction: column;
        align-items: stretch;
    }
    .private-list-btn,
    .public-questions-btn {
        width: 100%;
        min-height: 48px;
    }
    .private-list-empty,
    .public-questions-empty {
        padding: 28px 16px;
        border-radius: 18px;
    }
}


/*--------------------------------------------------------------
# Small Phones
--------------------------------------------------------------*/

@media (max-width: 575.98px) {
    .private-list-section,
    .public-questions-section {
        padding: 55px 0;
    }
    .private-list-hero-badge,
    .public-questions-hero-badge,
    .private-list-page-badge,
    .public-questions-page-badge {
        min-height: 32px;
        font-size: 0.72rem;
        padding: 6px 11px;
        gap: 6px;
    }
    .private-list-note,
    .public-questions-note,
    .private-thread-preview,
    .public-question-preview,
    .private-list-empty p,
    .public-questions-empty p,
    .private-list-meta-line,
    .public-questions-meta-line {
        font-size: 0.92rem;
    }
    .private-list-input-wrap i,
    .public-questions-input-wrap i {
        width: 42px;
        flex: 0 0 42px;
        font-size: 0.9rem;
    }
    .private-list-input,
    .private-list-select,
    .public-questions-input,
    .public-questions-select {
        font-size: 0.92rem;
    }
    .private-thread-avatar,
    .public-question-avatar {
        width: 42px;
        height: 42px;
        flex: 0 0 42px;
        border-radius: 12px;
    }
    .private-thread-title,
    .public-question-title {
        font-size: 0.96rem;
    }
    .private-list-page-header h1,
    .public-questions-page-header h1 {
        font-size: 1.72rem;
    }
}


/*--------------------------------------------------------------
# Very Small Phones
--------------------------------------------------------------*/

@media (max-width: 420px) {
    .private-list-panel,
    .public-questions-panel {
        padding: 16px;
    }
    .private-list-toolbar,
    .public-questions-toolbar {
        padding: 12px;
    }
    .private-list-btn,
    .public-questions-btn {
        min-height: 44px;
        padding: 0 14px;
        font-size: 0.9rem;
    }
    .private-thread-card,
    .public-question-card {
        padding: 14px;
    }
    .private-list-empty,
    .public-questions-empty {
        padding: 24px 14px;
    }
}