/*
 * sponsored.css
 * Sponsored tournaments (Charity / Promotion).
 *   - sponsored.php: the list page (loaded after seasonal.css, reuses its cards and chips)
 *   - seasonal.php:  the Charity / Promotion strip under a tournament's hero (#detailSponsor)
 */

:root {
    --sp-charity: #b4235a;
    --sp-charity-soft: #fdf0f4;
    --sp-charity-line: #f3cbd9;
    --sp-promo: #b8862b;
    --sp-promo-soft: #fdf7ea;
    --sp-promo-line: #efdcb0;
}

/* ─── List page ─── */
.sp-filters .seasonal-chips { margin-top: 12px; }
.sp-filters a.seasonal-chip { text-decoration: none; }
.sp-filters a.seasonal-chip i { font-size: 0.75rem; }
.sp-filters .chip-count:empty { display: none; }

/* Cards are links on this page */
a.tournament-card { color: inherit; text-decoration: none; }
a.tournament-card:hover, a.tournament-card:focus { color: inherit; text-decoration: none; }
a.tournament-card:focus-visible { outline: 2px solid var(--pp-felt-light, #15a060); outline-offset: 2px; }

.sp-card.is-charity .card-media-fallback { background: linear-gradient(135deg, #7d1a40, var(--sp-charity)); }
.sp-card.is-promo .card-media-fallback { background: linear-gradient(135deg, #6e4f14, var(--sp-promo)); }
.sp-card.is-charity .sp-type-chip { background: rgba(180, 35, 90, 0.85); color: #fff; }
.sp-card.is-promo .sp-type-chip { background: rgba(184, 134, 43, 0.9); color: #fff; }

.sp-card-cause {
    margin: 8px 0 6px;
    padding: 8px 10px;
    border-radius: 8px;
    background: var(--sp-charity-soft);
    border: 1px solid var(--sp-charity-line);
    font-size: 0.8rem;
}
.sp-card-cause-name { color: #4a3a40; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sp-card-cause-name i { color: var(--sp-charity); margin-right: 3px; }
.sp-card-raised { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px; margin-top: 2px; }
.sp-card-raised span { color: #8a6b76; font-size: 0.72rem; }
.sp-card-raised b { color: var(--sp-charity); font-size: 0.95rem; }
.sp-card-raised em { font-style: normal; color: #8a6b76; font-size: 0.72rem; }

.sp-card-sponsor {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 6px 0 8px;
    font-size: 0.78rem;
    color: #6b6355;
}
.sp-card-sponsor img { height: 22px; max-width: 70px; object-fit: contain; border-radius: 3px; }
.sp-card-sponsor b { color: #3b352b; }

/* ─── Tournament page: Charity / Promotion strip under the hero ─── */
.detail-sponsor {
    display: flex;
    align-items: center;
    gap: 14px;
    border-radius: 10px;
    padding: 14px 16px;
    margin: 0 0 20px;
    border: 1px solid var(--sp-promo-line);
    background: var(--sp-promo-soft);
}
.detail-sponsor[hidden] { display: none; }
.detail-sponsor.is-charity { border-color: var(--sp-charity-line); background: var(--sp-charity-soft); }
.detail-sponsor .ds-icon {
    flex: none;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    background: var(--sp-promo);
}
.detail-sponsor.is-charity .ds-icon { background: var(--sp-charity); }
.detail-sponsor .ds-body { flex: 1; min-width: 0; font-size: 0.88rem; color: #3f3a33; line-height: 1.45; }
.detail-sponsor .ds-title { font-weight: 600; font-size: 0.98rem; }
.detail-sponsor.is-charity .ds-title b { color: var(--sp-charity); }
.detail-sponsor .ds-text { margin-top: 2px; }
.detail-sponsor .ds-desc { margin-top: 4px; color: #6b6355; font-size: 0.82rem; }
.detail-sponsor .ds-sponsor { display: flex; align-items: center; gap: 8px; margin-top: 6px; font-size: 0.82rem; }
.detail-sponsor .ds-sponsor a { color: inherit; font-weight: 600; }
.detail-sponsor .ds-logo { height: 26px; max-width: 90px; object-fit: contain; border-radius: 3px; }
.detail-sponsor .ds-raised { flex: none; text-align: right; }
.detail-sponsor .ds-raised span { display: block; font-size: 0.72rem; text-transform: uppercase; letter-spacing: .04em; color: #8a6b76; }
.detail-sponsor .ds-raised b { display: block; font-size: 1.3rem; color: var(--sp-charity); line-height: 1.2; }
.detail-sponsor .ds-raised em { font-style: normal; font-size: 0.75rem; color: #8a6b76; }

.detail-hero-tags .tag.tag-charity { background: rgba(180, 35, 90, 0.85); border-color: rgba(255, 255, 255, 0.25); color: #fff; }
.detail-hero-tags .tag.tag-charity i { color: #fff; }
.detail-hero-tags .tag.tag-promo { background: rgba(184, 134, 43, 0.9); border-color: rgba(255, 255, 255, 0.25); color: #fff; }
.detail-hero-tags .tag.tag-promo i { color: #fff; }

@media (max-width: 767px) {
    .detail-sponsor { flex-wrap: wrap; padding: 12px; }
    .detail-sponsor .ds-raised { width: 100%; text-align: left; padding-left: 56px; }
}
