/* ==========================================================================
   CasinoFigure Sponsored Offers & Hero Entry Box Styles
   ========================================================================== */

/* Page layout for /casino-offers/ */
.page-id-1566 .rs-page .rs-wrap {
    max-width: 1120px;
}

.page-id-1566 .rs-page-head h1 {
    font-family: var(--rs-font, inherit);
    font-weight: 500;
    font-size: clamp(1.5rem, 2.6vw, 2rem);
    letter-spacing: -0.01em;
    text-transform: none;
    margin-bottom: 18px;
}

.page-id-1566 .rs-prose,
.page-id-1566 .cf-offers {
    max-width: 100% !important;
    width: 100%;
}

.cf-offers-disclaimer {
    font-size: 0.82rem;
    line-height: 1.55;
    color: var(--rs-faint, #777);
    margin: 4px 0 40px;
    max-width: 80ch;
}

/* ---------- 2 Cards in 1 Row Grid ---------- */
.cf-offers-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
    margin: 0 0 20px;
    width: 100%;
}

/* ---------- Offer Card ---------- */
.cf-offer-card {
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 16px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04), 0 10px 30px rgba(0, 0, 0, 0.06);
    padding: 26px 26px 22px;
    display: flex;
    flex-direction: column;
    gap: 18px;
    color: var(--rs-ink, #111);
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
    overflow-wrap: break-word;
}

.cf-offer-card:hover {
    transform: translateY(-3px);
    border-color: rgba(240, 180, 41, 0.45);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04), 0 18px 44px rgba(0, 0, 0, 0.1), 0 0 0 4px rgba(240, 180, 41, 0.08);
}

.cf-offer-card__top {
    display: flex;
    align-items: center;
    gap: 14px;
}

.cf-offer-card__logo {
    width: 60px;
    height: 60px;
    border-radius: 14px;
    object-fit: contain;
    background: #0b0b0b;
    border: 1px solid rgba(0, 0, 0, 0.08);
    padding: 6px;
    flex-shrink: 0;
}

.cf-offer-card__header-text {
    min-width: 0;
    flex: 1;
}

.cf-offer-card__name {
    margin: 0 !important;
    font-family: var(--rs-font, inherit) !important;
    font-size: 1.2rem !important;
    font-weight: 500 !important;
    letter-spacing: 0 !important;
    text-transform: none !important;
    color: var(--rs-ink, #111) !important;
    line-height: 1.2 !important;
}

.cf-offer-card__domain {
    display: block;
    margin-top: 3px;
    font-family: var(--rs-mono, monospace);
    font-size: 0.72rem;
    letter-spacing: 0.06em;
    color: var(--rs-faint, #777);
}

/* Bonus Box */
.cf-offer-card__bonus {
    position: relative;
    overflow: hidden;
    background: #0b0b0b url("assets/offer-bg.webp") 62% center / cover no-repeat;
    border-radius: 12px;
    padding: 20px 18px;
    text-align: center;
    color: #ffffff;
}

.cf-offer-card__bonus::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(7, 7, 6, 0.6);
}

.cf-offer-card__bonus > * {
    position: relative;
}

.cf-offer-card__bonus-label {
    display: block;
    font-family: var(--rs-mono, monospace);
    font-size: 0.7rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.65);
    margin-bottom: 6px;
}

.cf-offer-card__bonus-val {
    font-family: var(--rs-cond, 'Barlow Condensed', 'Arial Narrow', sans-serif);
    font-size: clamp(1.6rem, 2.4vw, 2.2rem);
    font-weight: 700;
    color: #ffffff;
    letter-spacing: 0.005em;
    text-transform: uppercase;
    line-height: 1.05;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.6);
}

.cf-offer-card__bonus-val b {
    color: var(--rs-amber, #f0b429);
    font-weight: 700;
}

/* Quick Features */
.cf-offer-card__features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.cf-feature {
    background: #fafafa;
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 10px;
    padding: 10px 8px;
    text-align: center;
}

.cf-feature__k {
    display: block;
    font-family: var(--rs-mono, monospace);
    font-size: 0.66rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--rs-faint, #777);
    margin-bottom: 4px;
}

.cf-feature__v {
    display: block;
    font-size: 0.92rem;
    font-weight: 500;
    color: var(--rs-ink, #111);
}

/* Terms summary */
.cf-offer-card__terms-summary {
    font-size: 0.8rem !important;
    font-weight: 400 !important;
    line-height: 1.5 !important;
    color: var(--rs-faint, #777) !important;
    margin: 0 !important;
}

/* CTA */
.cf-offer-card__cta {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: auto;
}

.cf-offer-card__button {
    width: 100%;
    padding: 14px 20px !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    text-align: center;
    background: #f0b429 !important;
    transition: background-color 0.35s ease, color 0.35s ease, transform 0.2s ease, box-shadow 0.35s ease;
    animation: cf-entry-glow 2.4s ease-in-out infinite;
}

.cf-offer-card__button:hover,
.cf-offer-card__button:focus-visible {
    background: #2ecc71 !important;
    color: #06140b !important;
    animation-play-state: paused;
    box-shadow: 0 8px 26px rgba(0, 0, 0, 0.2), 0 0 32px rgba(46, 204, 113, 0.55);
}

.cf-offers .cf-offer-card a.cf-offer-card__terms-link,
.cf-offer-card__terms-link {
    display: block;
    text-align: center;
    font-size: 0.8rem !important;
    font-weight: 400 !important;
    color: var(--rs-faint, #777) !important;
    text-decoration: underline !important;
    text-underline-offset: 3px;
    transition: color 0.15s ease;
}

.cf-offers .cf-offer-card a.cf-offer-card__terms-link:hover,
.cf-offer-card__terms-link:hover {
    color: var(--rs-ink, #111) !important;
}

.cf-offers-empty {
    margin: var(--rs-5) 0;
    padding: var(--rs-5);
    background: var(--rs-surface);
    border: 1px solid var(--rs-line);
    border-radius: var(--rs-r-xs);
}

/* ---------- Sponsored Hero Box ---------- */
.cf-offers-entry {
    position: relative;
    isolation: isolate;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--rs-5, 24px);
    margin: var(--rs-5, 24px) 0;
    min-height: 190px;
    padding: 22px 32px 22px 28%;
    color: #ffffff;
    background: #070706 url("assets/offer-bg.webp") center / cover no-repeat;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--rs-r, 12px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
    overflow: hidden;
}

/* Keeps copy legible over the sparkle field without hiding the props at either edge. */
.cf-offers-entry::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(90deg, rgba(7, 7, 6, 0) 24%, rgba(7, 7, 6, 0.55) 34%, rgba(7, 7, 6, 0.55) 68%, rgba(7, 7, 6, 0) 82%);
    pointer-events: none;
}

.cf-offers-entry__body {
    min-width: 0;
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
}

.cf-offers-entry__bonus {
    display: block;
    color: #ffffff;
    font-family: var(--rs-cond, 'Barlow Condensed', 'Arial Narrow', sans-serif);
    font-size: clamp(1.8rem, 3vw, 2.7rem);
    font-weight: 700;
    line-height: 1.05;
    letter-spacing: 0.005em;
    text-transform: uppercase;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.6);
}

.cf-offers-entry__bonus b {
    color: var(--rs-amber, #f0b429);
    font-weight: 700;
}

.cf-offers-entry__sub {
    display: block;
    font-size: 1rem;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.82);
    text-shadow: 0 1px 8px rgba(0, 0, 0, 0.6);
}

.cf-offers-entry__features {
    list-style: none;
    margin: 6px 0 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0 18px;
}

.cf-offers-entry__features li {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding-right: 18px;
    border-right: 1px solid rgba(255, 255, 255, 0.25);
    font-size: 0.82rem;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.85);
    white-space: nowrap;
}

.cf-offers-entry__features li:last-child {
    padding-right: 0;
    border-right: 0;
}

.cf-offers-entry__features svg {
    width: 16px;
    height: 16px;
    fill: none;
    stroke: var(--rs-amber, #f0b429);
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
    flex-shrink: 0;
}

.cf-offers-entry .rs-btn--gold {
    padding: 14px 30px !important;
    font-size: 17px !important;
    font-weight: 600 !important;
    box-shadow: 0 6px 22px rgba(0, 0, 0, 0.5), 0 0 18px rgba(240, 180, 41, 0.35);
    animation: cf-entry-glow 2.4s ease-in-out infinite;
}

/* Gradients cannot transition, so the entry button uses a solid fill that can. */
.cf-offers-entry .rs-btn--gold {
    background: #f0b429 !important;
    transition: background-color 0.35s ease, color 0.35s ease, transform 0.2s ease, box-shadow 0.35s ease;
}

.cf-offers-entry .rs-btn--gold:hover,
.cf-offers-entry .rs-btn--gold:focus-visible {
    background: #2ecc71 !important;
    color: #06140b !important;
    transform: translateY(-2px);
    animation-play-state: paused;
    box-shadow: 0 8px 26px rgba(0, 0, 0, 0.5), 0 0 40px rgba(46, 204, 113, 0.7);
}

.cf-offers-entry .rs-btn--gold:active {
    background: #27ae60 !important;
    transform: translateY(0);
}

@keyframes cf-entry-glow {
    0%, 100% { box-shadow: 0 6px 22px rgba(0, 0, 0, 0.5), 0 0 14px rgba(240, 180, 41, 0.3); }
    50% { box-shadow: 0 6px 22px rgba(0, 0, 0, 0.5), 0 0 34px rgba(240, 180, 41, 0.7), 0 0 60px rgba(240, 180, 41, 0.25); }
}

@media (prefers-reduced-motion: reduce) {
    .cf-offers-entry .rs-btn--gold { animation: none; }
}

.cf-offers-disclosure {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--rs-amber, #f0b429);
    font-family: var(--rs-mono, monospace);
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 4px;
}

.cf-offers-disclosure::before {
    content: "";
    display: inline-block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--rs-amber, #f0b429);
    box-shadow: 0 0 6px var(--rs-amber, #f0b429);
}

.cf-offers-entry p {
    margin: 4px 0 0;
    max-width: 65ch;
    font-size: 0.92rem;
    font-weight: 400;
    line-height: 1.55;
    color: rgba(255, 255, 255, 0.85);
}

/* Hero card integration (when placed inside .rs-ph header) */
.rs-ph .cf-offers-entry {
    margin: 0;
    border-radius: 0;
    border: none;
    border-top: 1px solid var(--rs-line-2, rgba(255, 255, 255, 0.15));
    border-bottom: 1px solid var(--rs-line-2, rgba(255, 255, 255, 0.15));
    padding: 22px 40px 22px 28%;
    box-shadow: none;
}

/* ---------- Gold Button ---------- */
.rs-btn--gold {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f6c651 0%, #f0b429 55%, #df9e19 100%) !important;
    color: #0b0b0b !important;
    font-family: var(--rs-font, inherit) !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    letter-spacing: normal !important;
    text-transform: none !important;
    text-decoration: none !important;
    white-space: nowrap;
    padding: 11px 24px !important;
    border-radius: var(--rs-r-pill, 9999px) !important;
    border: none !important;
    box-shadow: 0 4px 14px rgba(240, 180, 41, 0.35);
    transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
    cursor: pointer;
    flex-shrink: 0;
}

.rs-btn--gold:hover {
    background: linear-gradient(135deg, #ffcf66 0%, #f7cd55 55%, #e5a722 100%) !important;
    color: #000000 !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(240, 180, 41, 0.5);
}

.rs-btn--gold:active {
    transform: translateY(0);
    box-shadow: 0 2px 10px rgba(240, 180, 41, 0.25);
}

/* Focus states */
.cf-offers a:focus-visible,
.cf-offers-entry a:focus-visible {
    outline: 2px solid var(--rs-amber, #f0b429);
    outline-offset: 4px;
}

/* Responsive */
@media (max-width: 768px) {
    .cf-offers-list {
        grid-template-columns: 1fr;
    }

    .cf-offers-entry,
    .rs-ph .cf-offers-entry {
        flex-direction: column;
        align-items: flex-start;
        gap: 14px;
        min-height: 0;
        padding: 20px;
        background-position: 72% center;
    }
    .cf-offers-entry::before {
        background: rgba(7, 7, 6, 0.6);
    }
    .cf-offers-entry__features li {
        white-space: normal;
    }
    .cf-offers-entry .rs-btn--gold {
        width: 100%;
        text-align: center;
    }
}
