/* ==========================================================================
   MEMBER FEED ARCHIVE
   ========================================================================== */

.ln-member-feed {
    padding: 3rem 0 5rem;
}

.ln-member-feed__header {
    text-align: center;
    margin-bottom: 3rem;
}

.ln-member-feed__title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 900;
}

.ln-member-feed__desc {
    color: var(--ln-text-secondary);
    font-size: 1.05rem;
    margin-top: 0.5rem;
}

/* Feed card grid */
.ln-member-feed__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}

.ln-feed-card {
    background: var(--ln-bg-card);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: var(--ln-radius-md);
    overflow: hidden;
    transition: border-color var(--ln-transition), box-shadow var(--ln-transition), transform var(--ln-transition);
}

.ln-feed-card:hover {
    border-color: rgba(157, 78, 221, 0.4);
    box-shadow: 0 8px 40px var(--ln-glow-purple);
    transform: translateY(-4px);
}

.ln-feed-card__link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.ln-feed-card__image {
    aspect-ratio: 4 / 3;
    overflow: hidden;
}

.ln-feed-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--ln-transition);
}

.ln-feed-card:hover .ln-feed-card__image img {
    transform: scale(1.05);
}

.ln-feed-card__image--placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--ln-bg-elevated);
    color: var(--ln-text-muted);
}

.ln-feed-card__info {
    padding: 1rem 1.25rem;
}

.ln-feed-card__title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--ln-text-primary);
    margin: 0 0 0.25rem;
}

.ln-feed-card__date {
    font-size: 0.8rem;
    color: var(--ln-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Pagination */
.ln-pagination {
    margin-top: 3rem;
    text-align: center;
}

.ln-pagination .nav-links {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
}

.ln-pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    border-radius: var(--ln-radius-sm);
    background: var(--ln-bg-card);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--ln-text-secondary);
    font-weight: 500;
    text-decoration: none;
    transition: all var(--ln-transition);
}

.ln-pagination .page-numbers.current,
.ln-pagination .page-numbers:hover {
    background: linear-gradient(135deg, var(--ln-accent-magenta), var(--ln-accent-purple));
    border-color: transparent;
    color: #ffffff;
}

/* Empty state */
.ln-member-feed__empty {
    text-align: center;
    padding: 4rem 2rem;
    color: var(--ln-text-muted);
    font-size: 1.1rem;
}

/* ==========================================================================
   MEMBER FEED PAGE - Display Posts Shortcode output
   ========================================================================== */

/* Countdown timer */
#countdown {
    text-align: center;
    font-size: 1.1rem;
    color: var(--ln-accent-cyan);
    font-weight: 600;
    padding: 1.5rem;
    margin-bottom: 2rem;
    background: var(--ln-bg-card);
    border: 1px solid rgba(0, 229, 255, 0.15);
    border-radius: var(--ln-radius-md);
    letter-spacing: 0.02em;
}

/* Display Posts listing - transform from list to card grid */
.display-posts-listing {
    list-style: none;
    padding: 0;
    margin: 2rem 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}

/* More room between monthly feed posts (when shown as full content blocks) */
.entry-content h2 a,
.entry-content h3 a,
.entry-content h5 a {
    color: var(--ln-accent-cyan);
}

.entry-content .wp-block-gallery,
.entry-content .gallery {
    margin-bottom: 3rem;
}

/* Space between post blocks in member feed page content */
.entry-content h2:not(:first-child),
.entry-content h3:not(:first-child) {
    margin-top: 4rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.display-posts-listing .listing-item {
    background: var(--ln-bg-card);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: var(--ln-radius-md);
    overflow: hidden;
    transition: border-color var(--ln-transition), box-shadow var(--ln-transition), transform var(--ln-transition);
}

.display-posts-listing .listing-item:hover {
    border-color: rgba(157, 78, 221, 0.4);
    box-shadow: 0 8px 40px var(--ln-glow-purple);
    transform: translateY(-4px);
}

/* Thumbnail inside listing item */
.display-posts-listing .listing-item img,
.display-posts-listing .listing-item .wp-post-image {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    display: block;
    transition: transform var(--ln-transition);
}

.display-posts-listing .listing-item:hover img {
    transform: scale(1.05);
}

/* Title link inside listing item */
.display-posts-listing .listing-item .title {
    display: block;
    padding: 1rem 1.25rem;
    color: var(--ln-text-primary);
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    transition: color var(--ln-transition);
}

.display-posts-listing .listing-item .title:hover {
    color: var(--ln-accent-cyan);
}

/* Excerpt if shown */
.display-posts-listing .listing-item .excerpt {
    padding: 0 1.25rem 1rem;
    color: var(--ln-text-secondary);
    font-size: 0.9rem;
    line-height: 1.5;
}

/* Date if shown */
.display-posts-listing .listing-item .date {
    display: block;
    padding: 0 1.25rem 1rem;
    color: var(--ln-text-muted);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Responsive */
@media (max-width: 768px) {
    .ln-member-feed__grid {
        grid-template-columns: 1fr;
    }

    .ln-share-links {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .ln-feed-card__info {
        padding: 0.75rem 1rem;
    }
}
