/* ==========================================================================
   MEMBER FEED ARCHIVE
   Follows the same section/container pattern as front-page.css
   ========================================================================== */

/* Page wrapper */
.ln-member-feed {
    padding: var(--ln-section-gap) 0;
    background: var(--ln-bg-primary);
}

/* Override Astra sidebar layout — #primary is 70% by default, force full width */
.post-type-archive-memberfeed #primary {
    width: 100% !important;
    margin: 0 auto;
}

/* Override Astra's outer container max-width */
.post-type-archive-memberfeed #content > .ast-container {
    max-width: 100% !important;
}

.ln-member-feed > .ast-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 100% !important;
    padding-left: 4rem;
    padding-right: 4rem;
}

/* All direct children go full width */
.ln-member-feed > .ast-container > * {
    width: 100%;
}

/* ==========================================================================
   Header
   ========================================================================== */

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

.ln-member-feed__title {
    font-size: clamp(1.5rem, 3vw, 2.25rem);
    font-weight: 700;
    margin: 0 0 0.25rem;
}

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

/* ==========================================================================
   Countdown Timer
   ========================================================================== */

.ln-countdown {
    text-align: center;
    font-size: 1.05rem;
    color: var(--ln-accent-cyan);
    font-weight: 600;
    padding: 1.25rem 1.5rem;
    margin-bottom: 1rem;
    background: var(--ln-bg-card);
    border: 1px solid rgba(0, 229, 255, 0.15);
    border-radius: var(--ln-radius-md);
    letter-spacing: 0.02em;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* ==========================================================================
   Notice Text
   ========================================================================== */

.ln-member-feed__notice {
    text-align: center;
    color: var(--ln-text-secondary);
    font-size: 0.95rem;
    font-weight: 600;
    margin: 0 auto 2.5rem;
    max-width: 700px;
    line-height: 1.6;
}

/* ==========================================================================
   Feed Post List
   ========================================================================== */

.ln-member-feed__list {
    display: flex;
    flex-direction: column;
    gap: 3rem;
    margin: 0 auto;
}

/* Individual post card */
.ln-feed-post {
    background: var(--ln-bg-card);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: var(--ln-radius-md);
    padding: 2rem 2.5rem;
    transition: border-color var(--ln-transition);
}

.ln-feed-post:hover {
    border-color: rgba(157, 78, 221, 0.3);
}

/* Post title */
.ln-feed-post__title {
    font-size: clamp(1.25rem, 2.5vw, 1.6rem);
    font-weight: 700;
    margin: 0 0 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.ln-feed-post__title a {
    color: var(--ln-text-primary);
    text-decoration: none;
    transition: color var(--ln-transition);
}

.ln-feed-post__title a:hover {
    color: var(--ln-accent-cyan);
}

/* ==========================================================================
   Gallery Preview Grid (purchased — lightweight archive view)
   ========================================================================== */

.ln-feed-post__preview-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 0.75rem;
    margin-top: 1rem;
}

.ln-feed-post__preview-thumb {
    overflow: hidden;
    border-radius: var(--ln-radius-sm);
    background: var(--ln-bg-elevated);
}

.ln-feed-post__preview-thumb img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform var(--ln-transition);
}

.ln-feed-post__preview-thumb:hover img {
    transform: scale(1.05);
}

.ln-feed-post__see-all {
    display: inline-block;
    margin-top: 1rem;
    color: var(--ln-accent-cyan);
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    transition: color var(--ln-transition);
}

.ln-feed-post__see-all:hover {
    color: var(--ln-accent-magenta);
}

/* ==========================================================================
   Restricted / Locked View (not purchased)
   ========================================================================== */

.ln-feed-post__restricted {
    text-align: center;
}

.ln-feed-post__preview-image {
    max-width: 500px;
    margin: 0 auto 1.5rem;
    border-radius: var(--ln-radius-md);
    overflow: hidden;
}

.ln-feed-post__preview-image img {
    width: 100%;
    height: auto;
    display: block;
}

.ln-feed-post__locked {
    padding: 1.5rem;
    background: var(--ln-bg-elevated);
    border: 1px solid rgba(233, 30, 140, 0.2);
    border-radius: var(--ln-radius-md);
    max-width: 500px;
    margin: 0 auto;
}

.ln-feed-post__locked-label {
    font-size: 1rem;
    font-weight: 700;
    color: var(--ln-accent-magenta);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin: 0 0 0.5rem;
}

.ln-feed-post__locked-msg {
    color: var(--ln-text-secondary);
    font-size: 0.95rem;
    margin: 0 0 1.25rem;
    line-height: 1.5;
}

/* WooCommerce add-to-cart button inside restricted view */
.ln-feed-post__locked .add_to_cart_inline {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
}

.ln-feed-post__locked .add_to_cart_inline a.button {
    background: linear-gradient(135deg, var(--ln-accent-magenta), var(--ln-accent-purple));
    color: #ffffff;
    border: none;
    border-radius: var(--ln-radius-sm);
    padding: 0.6rem 1.5rem;
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    transition: box-shadow var(--ln-transition), transform var(--ln-transition);
}

.ln-feed-post__locked .add_to_cart_inline a.button:hover {
    box-shadow: 0 4px 20px var(--ln-glow-magenta);
    transform: translateY(-1px);
}

.ln-feed-post__locked .woocommerce-Price-amount {
    color: var(--ln-accent-cyan);
    font-weight: 700;
}

/* ==========================================================================
   Pagination
   ========================================================================== */

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

.ln-pagination__links {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

.ln-pagination__links .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__links .page-numbers.current,
.ln-pagination__links .page-numbers:hover {
    background: linear-gradient(135deg, var(--ln-accent-magenta), var(--ln-accent-purple));
    border-color: transparent;
    color: #ffffff;
}

/* Jump to page form */
.ln-pagination__jump {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1.25rem;
}

.ln-pagination__jump label {
    color: var(--ln-text-secondary);
    font-size: 0.9rem;
}

.ln-pagination__jump input[type="number"] {
    width: 60px;
    height: 36px;
    background: var(--ln-bg-card);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--ln-radius-sm);
    color: var(--ln-text-primary);
    text-align: center;
    font-size: 0.9rem;
    -moz-appearance: textfield;
}

.ln-pagination__jump input[type="number"]::-webkit-inner-spin-button,
.ln-pagination__jump input[type="number"]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.ln-pagination__jump input[type="number"]:focus {
    border-color: var(--ln-accent-cyan);
    outline: none;
    box-shadow: 0 0 0 2px rgba(0, 229, 255, 0.15);
}

.ln-btn--small {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 36px;
    padding: 0 1rem;
    background: var(--ln-bg-elevated);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--ln-radius-sm);
    color: var(--ln-text-primary);
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--ln-transition);
}

.ln-btn--small:hover {
    background: var(--ln-accent-cyan);
    color: var(--ln-bg-primary);
    border-color: var(--ln-accent-cyan);
}

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

/* ==========================================================================
   Responsive — Tablet
   ========================================================================== */

@media (max-width: 768px) {
    .ln-member-feed {
        padding: 3rem 0;
    }

    .ln-member-feed > .ast-container {
        padding-left: 1.25rem;
        padding-right: 1.25rem;
    }

    .ln-feed-post {
        padding: 1.5rem;
    }

    .ln-countdown {
        font-size: 0.95rem;
        padding: 1rem;
    }

    .ln-feed-post__preview-grid {
        grid-template-columns: repeat(5, 1fr);
        gap: 0.5rem;
    }
}

/* ==========================================================================
   Responsive — Phone
   ========================================================================== */

@media (max-width: 480px) {
    .ln-member-feed {
        padding: 2rem 0 3rem;
    }

    .ln-member-feed__list {
        gap: 2rem;
    }

    .ln-feed-post {
        padding: 1.25rem;
    }

    .ln-feed-post__title {
        font-size: 1.15rem;
    }

    .ln-feed-post__locked {
        padding: 1rem;
    }

    .ln-pagination__jump {
        flex-wrap: wrap;
    }
}
