/* ==========================================================================
   feed-layout.css - Facebook-style AI Prompt & Image Social Feed
   Strictly follows Phorum DESIGN.md: 4/8/12/16/24 spacing, 8px card radius,
   6px control radius, flat surfaces, zero washed-out text, no glassmorphism.
   ========================================================================== */

/* Universal Scrollbar Styling - Eliminates native white scrollbar & arrows */
* {
    scrollbar-width: thin;
    scrollbar-color: var(--phc-border-light, #3d414d) transparent;
}

::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: var(--phc-border-light, #3d414d);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--phc-text-dim, #94a3b8);
}

::-webkit-scrollbar-button {
    display: none;
    width: 0;
    height: 0;
}

/* Main Page Container */
.feed-page {
    padding: 16px 0 32px 0;
    width: 100%;
    box-sizing: border-box;
}

@media (max-width: 767px) {
    .feed-page {
        padding: 8px 0 72px 0; /* extra bottom padding for mobile bottom nav */
    }
}

/* 3-Column Desktop Layout */
.feed-grid {
    display: grid;
    grid-template-columns: 240px minmax(0, 680px) 300px;
    gap: 20px;
    align-items: start;
    justify-content: center;
    max-width: 1280px;
    margin: 0 auto;
}

@media (max-width: 1180px) {
    .feed-grid {
        grid-template-columns: 220px minmax(0, 1fr) 280px;
        gap: 16px;
    }
}

@media (max-width: 991px) {
    .feed-grid {
        grid-template-columns: minmax(0, 1fr) 280px;
    }
    .feed-col--left {
        display: none;
    }
}

@media (max-width: 767px) {
    .feed-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    .feed-col--right {
        display: none;
    }
}

/* Left & Right Sticky Sidebars */
.feed-sidebar-sticky {
    position: sticky;
    top: 76px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* Base Card Style */
.feed-card {
    background: var(--phc-card);
    border: 1px solid var(--phc-border);
    border-radius: 8px;
    box-sizing: border-box;
    overflow: hidden;
}

/* Left Sidebar Profile Widget */
.feed-profile-widget {
    padding: 16px;
}

.feed-profile-widget__header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.feed-profile-widget__avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    border: 2px solid var(--phc-border);
}

.feed-profile-widget__info {
    min-width: 0;
    flex: 1;
}

.feed-profile-widget__name {
    font-size: 14px;
    font-weight: 700;
    display: block;
    text-decoration: none;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.feed-profile-widget__title {
    font-size: 11.5px;
    color: var(--phc-text-muted);
    margin-top: 2px;
    font-weight: 600;
}

.feed-profile-widget__stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    background: var(--phc-canvas);
    border: 1px solid var(--phc-border);
    border-radius: 6px;
    padding: 8px 12px;
    margin-top: 8px;
}

.feed-profile-widget__stat-val {
    font-size: 13px;
    font-weight: 700;
    color: var(--phc-text);
}

.feed-profile-widget__stat-lbl {
    font-size: 11px;
    color: var(--phc-text-dim);
}

/* Left Sidebar Navigation Links */
.feed-nav-widget {
    padding: 8px 0;
}

.feed-nav-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 16px;
    color: var(--phc-text);
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    transition: background 150ms ease, color 150ms ease;
}

.feed-nav-link:hover {
    background: var(--phc-card-hover);
    color: var(--phc-link);
}

.feed-nav-link.is-active {
    background: var(--phc-card-hover);
    color: var(--phc-accent);
    border-left: 3px solid var(--phc-accent);
}

.feed-nav-link__icon {
    width: 20px;
    text-align: center;
    font-size: 14px;
    color: var(--phc-text-dim);
}

.feed-nav-link:hover .feed-nav-link__icon,
.feed-nav-link.is-active .feed-nav-link__icon {
    color: var(--phc-accent);
}

/* Composer Card */
.feed-composer {
    padding: 16px;
    margin-bottom: 16px;
}

.feed-composer__row {
    display: flex;
    align-items: center;
    gap: 12px;
}

.feed-composer__avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.feed-composer__prompt-trigger {
    flex: 1;
    background: var(--phc-canvas);
    border: 1px solid var(--phc-border);
    border-radius: 6px;
    padding: 10px 16px;
    color: var(--phc-text-dim);
    font-size: 13px;
    cursor: pointer;
    text-align: left;
    transition: border-color 150ms ease, background 150ms ease;
}

.feed-composer__prompt-trigger:hover {
    border-color: var(--phc-primary);
    background: var(--phc-card-hover);
    color: var(--phc-text-muted);
}

.feed-composer__actions {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--phc-border);
}

.feed-composer__action-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 12.5px;
    font-weight: 600;
    color: var(--phc-text-muted);
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px 10px;
    border-radius: 6px;
    transition: background 150ms ease, color 150ms ease;
}

.feed-composer__action-btn:hover {
    background: var(--phc-canvas);
    color: var(--phc-text);
}

/* Post Cards Stream */
.feed-stream {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.feed-post {
    padding: 0;
}

.feed-post__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px 12px 16px;
}

.feed-post__author-block {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.feed-post__avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.feed-post__meta {
    min-width: 0;
}

.feed-post__name-row {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.feed-post__username {
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    color: var(--phc-text);
}

.feed-post__time {
    font-size: 11.5px;
    color: var(--phc-text-dim);
    margin-top: 2px;
}

.feed-post__menu-btn {
    background: none;
    border: none;
    color: var(--phc-text-dim);
    cursor: pointer;
    font-size: 14px;
    padding: 6px;
    border-radius: 4px;
}

.feed-post__menu-btn:hover {
    background: var(--phc-canvas);
    color: var(--phc-text);
}

.feed-post__title {
    padding: 0 16px 6px 16px;
    margin: 0;
    font-size: 15px;
    font-weight: 700;
    color: var(--phc-text);
    line-height: 1.35;
}

.feed-post__body {
    padding: 0 16px 12px 16px;
    font-size: 13.5px;
    line-height: 1.55;
    color: var(--phc-text);
    word-break: break-word;
    position: relative;
}

.feed-post__body.is-collapsed .feed-post__body-text {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.feed-post__see-more {
    background: none;
    border: none;
    color: var(--phc-link);
    font-size: 12.5px;
    font-weight: 700;
    cursor: pointer;
    padding: 3px 0 0 0;
    display: inline-block;
}

.feed-post__see-more:hover {
    color: var(--phc-link-hover);
    text-decoration: underline;
}

/* Image Container */
.feed-post__image-wrap {
    background: #000000;
    text-align: center;
    cursor: zoom-in;
    position: relative;
    max-height: 600px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.feed-post__image {
    width: 100%;
    height: auto;
    max-height: 600px;
    object-fit: contain;
    display: block;
    transition: opacity 150ms ease;
}

.feed-post__image:hover {
    opacity: 0.96;
}

/* Multi-Image Gallery Grid */
.feed-post__gallery {
    display: grid;
    gap: 3px;
    background: #000000;
    overflow: hidden;
    position: relative;
    max-height: 540px;
}

.feed-post__gallery--1 {
    display: block;
}

.feed-post__gallery--2 {
    grid-template-columns: 1fr 1fr;
    height: 380px;
}

.feed-post__gallery--3 {
    grid-template-columns: 2fr 1fr;
    grid-template-rows: 1fr 1fr;
    height: 400px;
}

.feed-post__gallery--3 .feed-post__gallery-item:first-child {
    grid-row: 1 / span 2;
}

.feed-post__gallery--4,
.feed-post__gallery--more {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    height: 400px;
}

.feed-post__gallery-item {
    position: relative;
    overflow: hidden;
    cursor: zoom-in;
    background: #0b0f19;
    height: 100%;
}

.feed-post__gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.2s ease, opacity 0.15s ease;
}

.feed-post__gallery-item:hover img {
    transform: scale(1.02);
    opacity: 0.95;
}

.feed-post__gallery-more-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.65);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    font-weight: 800;
    color: #ffffff;
    pointer-events: none;
    letter-spacing: 0.5px;
}

@media (max-width: 600px) {
    .feed-post__gallery--2 { height: 260px; }
    .feed-post__gallery--3 { height: 280px; }
    .feed-post__gallery--4,
    .feed-post__gallery--more { height: 280px; }
}

/* AI Model Tag Badge */
.feed-model-tag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: var(--phc-canvas);
    border: 1px solid var(--phc-border);
    color: var(--phc-accent);
    font-size: 11px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 4px;
    letter-spacing: 0.2px;
}

/* Prompt Card Block */
.feed-prompt-box {
    margin: 12px 16px 8px 16px;
    background: var(--phc-canvas);
    border: 1px solid var(--phc-border);
    border-radius: 6px;
    padding: 12px;
    font-size: 12.5px;
}

.feed-prompt-box__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
    gap: 8px;
}

.feed-prompt-box__label {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--phc-text-dim);
    display: flex;
    align-items: center;
    gap: 6px;
}

.feed-prompt-box__content {
    color: var(--phc-text);
    line-height: 1.5;
    font-family: inherit;
    white-space: pre-wrap;
    word-break: break-word;
    margin-bottom: 8px;
    max-height: 120px;
    overflow-y: auto;
    padding-right: 4px;
}

.feed-prompt-box__negative {
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px dashed var(--phc-border);
    font-size: 12px;
    color: var(--phc-text-muted);
}

.feed-prompt-box__negative-label {
    color: #f87171;
    font-weight: 600;
    font-size: 11px;
    margin-right: 4px;
}

.feed-prompt-box__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid var(--phc-border);
}

.feed-copy-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(0, 168, 255, 0.12);
    color: var(--phc-link);
    border: 1px solid var(--phc-border);
    border-radius: 6px;
    padding: 6px 12px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: background 150ms ease, color 150ms ease, border-color 150ms ease;
}

.feed-copy-btn:hover {
    background: rgba(0, 168, 255, 0.22);
    border-color: var(--phc-link);
}

.feed-copy-btn.is-copied {
    background: rgba(34, 197, 94, 0.15);
    color: #22c55e;
    border-color: #22c55e;
}

.feed-copy-stat {
    font-size: 11.5px;
    color: var(--phc-text-dim);
}

/* Post Stats Bar */
.feed-post__stats-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 16px;
    font-size: 12px;
    color: var(--phc-text-dim);
    border-bottom: 1px solid var(--phc-border);
}

/* Post Action Bar (Like, Comment, Copy) */
.feed-post__actions-bar {
    display: flex;
    align-items: center;
    padding: 4px 8px;
}

.feed-action-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: none;
    border: none;
    color: var(--phc-text-muted);
    font-size: 13px;
    font-weight: 600;
    padding: 8px 12px;
    cursor: pointer;
    border-radius: 6px;
    transition: background 150ms ease, color 150ms ease;
}

.feed-action-btn:hover {
    background: var(--phc-canvas);
    color: var(--phc-text);
}

.feed-action-btn.is-active {
    color: var(--phc-accent);
}

.feed-action-btn.is-active i {
    color: #ef4444; /* red heart for liked */
}

/* Comments Section */
.feed-comments-section {
    background: var(--phc-canvas);
    padding: 12px 16px 16px 16px;
    border-top: 1px solid var(--phc-border);
}

.feed-comments-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 12px;
}

.feed-comment-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.feed-comment-item__avatar {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.feed-comment-item__bubble {
    background: var(--phc-card);
    border: 1px solid var(--phc-border);
    border-radius: 10px;
    padding: 9px 13px;
    flex: 1;
    min-width: 0;
}

.feed-comment-item__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 4px;
}

.feed-comment-item__author-group {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

.feed-comment-item__name {
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    color: var(--phc-text);
}

.feed-comment-item__time {
    font-size: 11px;
    color: var(--phc-text-dim);
}

.feed-comment-item__del {
    background: none;
    border: none;
    color: var(--phc-text-dim);
    cursor: pointer;
    padding: 2px 4px;
    font-size: 11px;
    opacity: 0.6;
    transition: opacity 0.15s ease, color 0.15s ease;
}

.feed-comment-item__del:hover {
    opacity: 1;
    color: #ef4444;
}

.feed-comment-item__body {
    font-size: 13px;
    line-height: 1.5;
    color: var(--phc-text);
    word-break: break-word;
    white-space: pre-wrap;
    position: relative;
}

.feed-comment-item__body.is-collapsed .feed-comment-item__text {
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.feed-comment-item__see-more {
    background: none;
    border: none;
    color: var(--phc-primary, #00c0f3);
    font-size: 11.5px;
    font-weight: 600;
    cursor: pointer;
    padding: 3px 0 0 0;
    display: inline-block;
    transition: color 0.15s ease;
}

.feed-comment-item__see-more:hover {
    text-decoration: underline;
}

/* Comment Input Form */
.feed-comment-form {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-top: 10px;
}

.feed-comment-form__avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    margin-top: 4px;
    border: 1px solid var(--phc-border);
}

.feed-comment-form__input-wrap {
    flex: 1;
    position: relative;
    display: flex;
    align-items: flex-end;
}

.feed-comment-form__input {
    width: 100%;
    background: var(--phc-card);
    border: 1px solid var(--phc-border);
    border-radius: 12px;
    padding: 9px 40px 9px 12px;
    color: var(--phc-text);
    font-size: 13px;
    line-height: 1.45;
    box-sizing: border-box;
    resize: none;
    min-height: 40px;
    max-height: 160px;
    height: 40px;
    font-family: inherit;
    transition: border-color 0.15s ease, background 0.15s ease;
}

.feed-comment-form__input:focus {
    outline: none;
    border-color: var(--phc-primary);
    background: var(--phc-canvas);
}

.feed-comment-form__submit {
    position: absolute;
    right: 8px;
    bottom: 6px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--phc-primary, #00c0f3);
    border: none;
    color: #000000;
    cursor: pointer;
    font-size: 12px;
    transition: transform 0.15s ease, opacity 0.15s ease;
}

.feed-comment-form__submit:hover {
    transform: scale(1.08);
}

.feed-comment-form__submit:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

/* Right Sidebar Trending Widget */
.feed-trending-widget {
    padding: 12px 14px;
}

.feed-trending-item {
    padding: 10px 0;
    border-bottom: 1px solid var(--phc-border);
    display: flex;
    gap: 10px;
    align-items: center;
}

.feed-trending-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.feed-trending-item__thumb {
    width: 52px;
    height: 52px;
    border-radius: 6px;
    object-fit: cover;
    background: #000;
    flex-shrink: 0;
    border: 1px solid var(--phc-border);
}

.feed-trending-item__content {
    min-width: 0;
    flex: 1;
}

.feed-trending-item__prompt {
    font-size: 12px;
    font-weight: 600;
    color: var(--phc-text);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.35;
    margin-bottom: 3px;
    text-decoration: none;
}

.feed-trending-item__prompt:hover {
    color: var(--phc-link);
}

.feed-trending-item__meta {
    font-size: 11px;
    color: var(--phc-text-dim);
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Modal Composer & Lightbox */
.feed-modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.75);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 200ms ease;
}

.feed-modal-backdrop.is-open {
    opacity: 1;
    pointer-events: auto;
}

.feed-modal {
    background: var(--phc-card);
    border: 1px solid var(--phc-border);
    border-radius: 8px;
    width: 100%;
    max-width: 560px;
    max-height: 90vh;
    overflow-y: auto;
    box-sizing: border-box;
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.6);
}

.feed-modal__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    border-bottom: 1px solid var(--phc-border);
}

.feed-modal__title {
    font-size: 15px;
    font-weight: 700;
    color: var(--phc-text);
}

.feed-modal__close {
    background: none;
    border: none;
    color: var(--phc-text-dim);
    font-size: 18px;
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
}

.feed-modal__close:hover {
    color: var(--phc-text);
}

.feed-modal__body {
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.feed-modal__input-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.feed-modal__label {
    font-size: 12px;
    font-weight: 700;
    color: var(--phc-text-muted);
}

.feed-modal__textarea {
    width: 100%;
    background: var(--phc-canvas);
    border: 1px solid var(--phc-border);
    border-radius: 6px;
    padding: 10px 12px;
    color: var(--phc-text);
    font-size: 13px;
    box-sizing: border-box;
    font-family: inherit;
    resize: vertical;
}

.feed-modal__textarea:focus {
    outline: none;
    border-color: var(--phc-primary);
}

.feed-modal__input {
    width: 100%;
    background: var(--phc-canvas);
    border: 1px solid var(--phc-border);
    border-radius: 6px;
    padding: 8px 12px;
    color: var(--phc-text);
    font-size: 13px;
    box-sizing: border-box;
}

.feed-modal__input:focus {
    outline: none;
    border-color: var(--phc-primary);
}

.feed-modal__select {
    width: 100%;
    background: var(--phc-canvas);
    border: 1px solid var(--phc-border);
    border-radius: 6px;
    padding: 8px 12px;
    color: var(--phc-text);
    font-size: 13px;
    box-sizing: border-box;
}

.feed-modal__select:focus {
    outline: none;
    border-color: var(--phc-primary);
}

.feed-modal__file-drop {
    border: 2px dashed var(--phc-border);
    border-radius: 6px;
    padding: 20px;
    text-align: center;
    background: var(--phc-canvas);
    cursor: pointer;
    transition: border-color 150ms ease;
}

.feed-modal__file-drop:hover {
    border-color: var(--phc-primary);
}

.feed-modal__file-preview {
    margin-top: 10px;
    max-height: 200px;
    border-radius: 6px;
    overflow: hidden;
    display: none;
}

.feed-modal__file-preview img {
    max-width: 100%;
    max-height: 200px;
    object-fit: cover;
    display: block;
    margin: 0 auto;
}

.feed-modal__footer {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding: 12px 16px;
    border-top: 1px solid var(--phc-border);
    background: var(--phc-canvas);
}

/* Lightbox Modal */
.feed-lightbox-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.92);
    z-index: 3000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 200ms ease;
}

.feed-lightbox-backdrop.is-open {
    opacity: 1;
    pointer-events: auto;
}

.feed-lightbox__img {
    max-width: 95vw;
    max-height: 92vh;
    object-fit: contain;
    border-radius: 6px;
}

.feed-lightbox__close {
    position: absolute;
    top: 16px;
    right: 20px;
    background: rgba(255, 255, 255, 0.15);
    border: none;
    color: #ffffff;
    font-size: 22px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 150ms ease;
}

.feed-lightbox__close:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* Mobile Bottom Navigation Bar */
.feed-bottom-nav {
    display: none;
}

@media (max-width: 767px) {
    .feed-bottom-nav {
        display: flex;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        height: 56px;
        background: var(--phc-navbar-bg);
        border-top: 1px solid var(--phc-border);
        z-index: 1000;
        align-items: center;
        justify-content: space-around;
        padding-bottom: env(safe-area-inset-bottom, 0px);
    }

    .feed-bottom-nav__item {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 3px;
        text-decoration: none;
        color: var(--phc-text-dim);
        font-size: 10.5px;
        font-weight: 600;
        flex: 1;
        height: 100%;
        transition: color 150ms ease;
    }

    .feed-bottom-nav__item i {
        font-size: 16px;
    }

    .feed-bottom-nav__item.is-active,
    .feed-bottom-nav__item:hover {
        color: var(--phc-accent);
    }
}

/* Infinite Scroll Sentinel / Loader */
.feed-load-more {
    text-align: center;
    padding: 20px;
    font-size: 13px;
    color: var(--phc-text-dim);
}

.feed-load-more__spinner {
    display: inline-block;
    width: 24px;
    height: 24px;
    border: 2px solid var(--phc-border);
    border-top-color: var(--phc-accent);
    border-radius: 50%;
    animation: feed-spin 0.8s linear infinite;
}

@keyframes feed-spin {
    to { transform: rotate(360deg); }
}

@media (prefers-reduced-motion: reduce) {
    .feed-load-more__spinner {
        animation: none;
    }
}
