/* =============================================================================
   Unified Feed — Stylesheet
   v12.6
   ============================================================================= */


/* -----------------------------------------------------------------------------
   1. CONTAINMENT — image overflow fix
   ----------------------------------------------------------------------------- */

.unified-feed img {
    max-width: 100%;
    height: auto;
    display: block;
}

.unified-feed .feed-item {
    overflow: hidden;
    position: relative;
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
}

.unified-feed .wp-block-post-content {
    max-width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
}

.unified-feed .card-thumb {
    display: block;
    overflow: hidden;
    width: 100%;
    line-height: 0;
}

.unified-feed .card-thumb img {
    width: 100%;
    height: auto;
    display: block;
}


/* -----------------------------------------------------------------------------
   2. FEED WRAPPER
   ----------------------------------------------------------------------------- */

.unified-feed {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
    box-sizing: border-box;
}


/* -----------------------------------------------------------------------------
   3. CARD BASE — shared across all types
   ----------------------------------------------------------------------------- */

.unified-feed .feed-item {
    background-color: var(--wp--preset--color--custom-bg-sidebar-18, #181818);
    border-radius: 6px;
    width: 100%;
    box-sizing: border-box;
    cursor: pointer;

    /* Grey glow at rest */
    box-shadow:
        0 0  6px 0 rgba(255, 255, 255, 0.04),
        0 2px 12px 0 rgba(255, 255, 255, 0.06),
        0 4px 20px 0 rgba(255, 255, 255, 0.03);

    transition:
        box-shadow 0.35s ease,
        transform  0.35s ease;
}

/* Green neon bloom on hover */
.unified-feed .feed-item:hover {
    box-shadow:
        0 0  8px  2px rgba(68, 244, 20, 0.18),
        0 4px 24px 4px rgba(68, 244, 20, 0.14),
        0 8px 40px 6px rgba(68, 244, 20, 0.08);
    transform: translateY(-2px);
}

/* Stretched link — makes entire card clickable */
.unified-feed .card-stretched-link {
    position: absolute;
    inset: 0;
    z-index: 0;
    border-radius: inherit;
}

/* Anything interactive inside the card floats above the stretched link */
.unified-feed .card-meta__link,
.unified-feed .quote-utility,
.unified-feed .quote-utility *,
.unified-feed .ib-expand-btn {
    position: relative;
    z-index: 1;
}

/* Card body padding */
.unified-feed .card-body {
    padding: 16px;
}


/* -----------------------------------------------------------------------------
   4. CARD TITLE — shared
   ----------------------------------------------------------------------------- */

.unified-feed .card-title {
    margin: 0 0 10px;
    line-height: 1.4;
    font-size: 1.05rem;
    font-weight: 600;
    color: inherit;
}


/* -----------------------------------------------------------------------------
   5. CARD META ROW — shared
   ----------------------------------------------------------------------------- */

.unified-feed .card-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 12px;
    font-size: 0.78rem;
    opacity: 0.55;
    line-height: 1;
}

.unified-feed .card-meta__type {
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 600;
    font-size: 0.72rem;
}

.unified-feed .card-meta__sep {
    opacity: 0.5;
}

.unified-feed .card-meta__link {
    color: inherit;
    text-decoration: none;
}

.unified-feed .card-meta__link:hover {
    text-decoration: underline;
}

.unified-feed .card-meta__readtime {
    /* inherits meta row styles */
}

.unified-feed .card-meta__price {
    font-weight: 600;
    opacity: 1; /* price should be legible */
}


/* -----------------------------------------------------------------------------
   6. ARTICLE CARD
   ----------------------------------------------------------------------------- */

.unified-feed .feed-item--article .card-body {
    padding-top: 14px;
}

.unified-feed .card-excerpt {
    margin: 0;
    font-size: 0.88rem;
    line-height: 1.65;
    opacity: 0.75;
}


/* -----------------------------------------------------------------------------
   7. EXPRESS CARD
   ----------------------------------------------------------------------------- */

.unified-feed .feed-item--express .card-title {
    font-size: 1rem;
}

/* Push expand button above the stretched link */
.unified-feed .ib-expand-btn {
    position: relative;
    z-index: 1;
}


/* -----------------------------------------------------------------------------
   8. QUOTE CARD
   ----------------------------------------------------------------------------- */

.unified-feed .quote-body {
    font-size: 0.95rem;
    line-height: 1.7;
}

/* Meta row for quote — type label left, utility buttons right */
.unified-feed .card-meta--quote {
    justify-content: space-between;
    opacity: 1; /* override base opacity so utility buttons are always visible */
}

.unified-feed .card-meta--quote .card-meta__type {
    opacity: 0.55;
}

.unified-feed .quote-utility {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 0; /* meta row handles spacing */
}


/* -----------------------------------------------------------------------------
   9. PRODUCT CARD
   ----------------------------------------------------------------------------- */

.unified-feed .feed-item--product .card-body {
    padding-top: 14px;
}


/* -----------------------------------------------------------------------------
   10. PAGINATION
   ----------------------------------------------------------------------------- */

.unified-feed-pagination {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    justify-content: center;
    align-items: center;
    padding: 24px 0;
}

.unified-feed-pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    font-size: 0.875rem;
    border-radius: 4px;
    line-height: 1;
    font-family: inherit;
}

.unified-feed-pagination .page-numbers.current {
    font-weight: 700;
    color: var(--wp--preset--color--custom-art-txt-41);
    opacity: 1;
}
