/* Promo Feed block (blocks/promo-feed) */
.promo-feed-block {
    background-color: var(--bg-color, #001744);
    padding: 60px 20px;
}

.promo-feed-inner {
    max-width: 1200px;
    margin: 0 auto;
}

.promo-feed-heading {
    margin: 0 0 32px;
    font-weight: 900;
    font-style: italic;
    text-transform: uppercase;
    font-size: 30px;
    line-height: 1.25;
    letter-spacing: -0.6px;
    text-align: center;
    background: linear-gradient(89.65deg, var(--color-yellow-light, #FEC20E) 28%, var(--color-orange, #FF7403) 97.28%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    color: var(--color-yellow-light, #FEC20E); /* fallback for browsers without background-clip: text support */
}

.promo-feed-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

/* Two columns: a text stack (badge, title, prizepool, CTA) on the left,
   the image on the right (~40% width via .promo-feed-card-media). Stays
   side-by-side at every width per design - the mobile media query below
   only tightens spacing/type size, it doesn't restack the columns. */
.promo-feed-card {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    gap: 20px;
    height: 300px;
    border-radius: 20px;
    border: 2px solid #034CE3;
    background: radial-gradient(74.83% 39.3% at 50% 2.27%, #001744 17.5%, #000C23 100%);
    padding: 20px 30px;
    overflow: hidden;
}

.promo-feed-card-media {
    flex: 0 0 40%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.promo-feed-badge {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-white, #fff);
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
}

.promo-feed-card-image {
    display: block;
    width: 100%;
    height: auto;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.promo-feed-card-image-empty {
    width: 100%;
    aspect-ratio: 1 / 1;
    border: 1px dashed rgba(255, 255, 255, 0.2);
    border-radius: 12px;
}

.promo-feed-card-body {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 14px;
}

.promo-feed-card-title {
    margin: 0;
    font-weight: 900;
    font-style: italic;
    text-transform: uppercase;
    font-size: 30px;
    line-height: 1.3;
    letter-spacing: -0.3px;
    color: var(--text-white, #fff);
}

.promo-feed-prizepool {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.promo-feed-prizepool-label {
    text-transform: uppercase;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.04em;
    color: var(--text-white, #fff);
}

/* Fallback when a post has no coin-gc/coin-sc markup to scrape - just the
   raw acf.prize_pool text (e.g. "GC 50M+ SC 500"). */
.promo-feed-prizepool-text {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-white, #fff);
}

.promo-feed-prizepool-amounts {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
}

.promo-feed-coin {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 18px;
    font-weight: 800;
    color: var(--text-white, #fff);
}

.promo-feed-coin img {
    width: 20px;
    height: 20px;
    object-fit: contain;
}

.promo-feed-coin-sc {
    color: var(--color-yellow-light, #FEC20E);
}

.promo-feed-coin-sc em {
    font-style: normal;
    color: rgba(255, 255, 255, 0.6);
    margin-right: 2px;
}

.promo-feed-card-cta {
    display: inline-block;
    text-decoration: none;
    text-align: center;
    text-transform: uppercase;
    font-weight: 800;
    font-size: 15px;
    color: var(--text-white, #fff);
    text-shadow: 0 5px 10px rgba(0, 0, 0, 0.25);

    background: linear-gradient(87deg, #FF7403 -31.83%, #FDC20E 108.42%);
    border-radius: 999px;
    padding: 12px 32px;
    transition: opacity 0.2s ease;
}

.promo-feed-card-cta:hover,
.promo-feed-card-cta:focus {
    opacity: 0.9;
    color: var(--bg-color, #001744);
}

.promo-feed-placeholder {
    color: #999;
    padding: 20px;
    border: 1px dashed rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    text-align: center;
}

/* Shown briefly while promo-feed.js fetches; replaced with either the
   card grid or (for admins) an error box once the fetch settles. */
.promo-feed-loading {
    color: rgba(255, 255, 255, 0.5);
    padding: 40px 20px;
    text-align: center;
    font-size: 14px;
}

/* Mobile: single column. */
@media (max-width: 767px) {
    .promo-feed-block {
        padding: 32px 16px;
    }

    .promo-feed-heading {
        font-size: 24px;
        letter-spacing: -0.44px;
        margin-bottom: 20px;
    }

    .promo-feed-grid {
        grid-template-columns: 1fr;
    }

    /* Two columns stay side-by-side on mobile too (text left, image right) -
       just tighter spacing and smaller type than desktop. */
    .promo-feed-card {
        gap: 12px;
        height: 241px;
        padding: 10px;
    }

    .promo-feed-card-title {
        font-size: 20px;
    }

    .promo-feed-prizepool-label {
        font-size: 11px;
    }
}

/* Editor-only: shown when "Enable Block" is off, so the disabled state
   isn't mistaken for an empty/broken block while editing. */
.promo-feed-disabled-notice {
    max-width: 1200px;
    margin: 0 auto 12px;
    padding: 10px 16px;
    border: 1px dashed #FEC20E;
    border-radius: 8px;
    background: rgba(254, 194, 14, 0.08);
    color: #FEC20E;
    font-size: 13px;
}

.promo-feed-block-disabled {
    opacity: 0.5;
}
