/* ═══════════════════════════════════════════════════════════════════════════
   FEATURED LEAGUE CIRCUITS — premium showcase on /tournaments
   Mobile-first, fully responsive. Themeable per-card via --tcs-p/s/a.
   ═══════════════════════════════════════════════════════════════════════════ */

.tcs-section {
    position: relative;
    padding: 3.5rem 1rem 2rem;
    isolation: isolate;
}
.tcs-section::before {
    content: '';
    position: absolute; inset: 0;
    z-index: -1; pointer-events: none;
    background:
        radial-gradient(ellipse 70% 40% at 10% 10%, rgba(255, 138, 51, 0.10), transparent 60%),
        radial-gradient(ellipse 70% 40% at 100% 90%, rgba(255, 106, 0, 0.10), transparent 60%);
}

.tcs-container {
    max-width: 1400px;
    margin: 0 auto;
}

/* ── Header ──────────────────────────────────────────────────────── */
.tcs-header {
    text-align: center;
    margin-bottom: 2rem;
}
.tcs-eyebrow {
    display: inline-flex; align-items: center; gap: 0.45rem;
    color: #ff8a33; font-weight: 800; font-size: 0.72rem;
    letter-spacing: 0.28em; text-transform: uppercase;
    background: rgba(255, 138, 51, 0.10);
    padding: 0.4rem 1rem; border-radius: 999px;
    border: 1px solid rgba(255, 138, 51, 0.35);
    margin-bottom: 0.9rem;
}
.tcs-title {
    font-size: clamp(1.7rem, 4.5vw, 2.8rem);
    font-weight: 900; color: #fff; margin: 0 0 0.6rem;
    letter-spacing: -0.02em; line-height: 1.05;
}
.tcs-grad {
    background: linear-gradient(135deg, #ff8a33 0%, #ff1f1f 50%, #ff6a00 100%);
    -webkit-background-clip: text; background-clip: text;
    -webkit-text-fill-color: transparent;
}
.tcs-sub {
    color: rgba(230, 235, 242, 0.75);
    max-width: 640px; margin: 0 auto;
    font-size: clamp(0.9rem, 1.4vw, 1.05rem);
}

/* ── Grid ────────────────────────────────────────────────────────── */
.tcs-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;
    margin-bottom: 2rem;
}
@media (min-width: 720px) {
    .tcs-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
}
@media (min-width: 1100px) {
    .tcs-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 1400px) {
    .tcs-grid { grid-template-columns: repeat(4, 1fr); }
}

/* Featured card spans 2 cols on desktop */
@media (min-width: 1100px) {
    .tcs-card--featured { grid-column: span 2; }
}

/* ── Card ────────────────────────────────────────────────────────── */
.tcs-card {
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 320px;
    border-radius: 18px;
    overflow: hidden;
    background: #0b1220;
    border: 1px solid rgba(255, 255, 255, 0.07);
    text-decoration: none;
    color: #fff;
    isolation: isolate;
    transition: transform 0.25s cubic-bezier(.2,.8,.2,1), box-shadow 0.25s ease, border-color 0.25s ease;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.35);
}
.tcs-card:hover {
    transform: translateY(-4px);
    border-color: var(--tcs-p, #ff6a00);
    box-shadow:
        0 14px 38px rgba(0, 0, 0, 0.55),
        0 0 0 1px var(--tcs-p, #ff6a00),
        0 0 30px -8px var(--tcs-p, #ff6a00);
}
.tcs-card--featured { min-height: 380px; }

/* Background banner */
.tcs-card-bg {
    position: absolute; inset: 0;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    z-index: 0;
    transition: transform 0.6s ease;
}
.tcs-card-bg--gradient {
    background:
        radial-gradient(circle at 30% 20%, var(--tcs-p, #ff6a00), transparent 55%),
        radial-gradient(circle at 80% 80%, var(--tcs-s, #cc5500), transparent 60%),
        linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
}
.tcs-card:hover .tcs-card-bg { transform: scale(1.06); }

/* Veil over banner for legibility */
.tcs-card-veil {
    position: absolute; inset: 0;
    z-index: 1;
    background:
        linear-gradient(180deg,
            rgba(0, 0, 0, 0.20) 0%,
            rgba(0, 0, 0, 0.55) 45%,
            rgba(0, 0, 0, 0.92) 100%);
}

/* Card sections positioned above veil */
.tcs-card-top,
.tcs-card-body,
.tcs-card-meta,
.tcs-card-cta {
    position: relative;
    z-index: 2;
}

/* ── Top: status + featured ──────────────────────────────────────── */
.tcs-card-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 1rem 1.1rem 0;
    gap: 0.6rem;
}
.tcs-status {
    display: inline-flex; align-items: center; gap: 0.4rem;
    padding: 0.32rem 0.7rem;
    font: 800 0.65rem/1 'Inter', sans-serif;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    border-radius: 999px;
    backdrop-filter: blur(8px);
    border: 1px solid;
}
.tcs-status--live    { color: #ff4d4d; background: rgba(255, 31, 31, 0.85); border-color: rgba(255, 31, 31, 0.6); }
.tcs-status--reg     { color: #022c22; background: #34d399;                  border-color: #10b981; }
.tcs-status--soon    { color: #ff8a33; background: rgba(234, 179, 8, 0.85);  border-color: rgba(234, 179, 8, 0.6); }
.tcs-status--done    { color: #cbd5e1; background: rgba(71, 85, 105, 0.8);   border-color: rgba(100, 116, 139, 0.6); }

.tcs-pulse {
    display: inline-block;
    width: 7px; height: 7px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.7);
    animation: tcs-pulse 1.6s ease-out infinite;
}
@keyframes tcs-pulse {
    0%   { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.7); }
    70%  { box-shadow: 0 0 0 10px rgba(255, 255, 255, 0); }
    100% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0); }
}

.tcs-feat {
    display: inline-flex; align-items: center; gap: 0.35rem;
    padding: 0.32rem 0.7rem;
    font: 800 0.65rem/1 'Inter', sans-serif;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    border-radius: 999px;
    color: #422006;
    background: linear-gradient(135deg, #ff8a33, #ff6a00);
    box-shadow: 0 4px 12px rgba(255, 138, 51, 0.4);
}
.tcs-feat i { font-size: 0.7rem; }

/* ── Body: logo + name + tagline ─────────────────────────────────── */
.tcs-card-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 1.4rem 1.2rem 1rem;
    gap: 0.9rem;
    justify-content: center;
}
.tcs-card--featured .tcs-card-body {
    flex-direction: row;
    text-align: left;
    gap: 1.4rem;
    padding: 1.6rem 1.6rem 1.2rem;
}
.tcs-card-logo {
    width: 80px; height: 80px;
    border-radius: 16px;
    object-fit: cover;
    background: rgba(0, 0, 0, 0.5);
    border: 2px solid var(--tcs-p, #ff6a00);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.5), 0 0 24px -6px var(--tcs-p, #ff6a00);
    flex-shrink: 0;
}
.tcs-card--featured .tcs-card-logo {
    width: 110px; height: 110px;
    border-radius: 20px;
}
.tcs-card-logo--fallback {
    display: flex; align-items: center; justify-content: center;
    background: linear-gradient(135deg, var(--tcs-p, #ff6a00), var(--tcs-s, #cc5500));
    color: #fff;
    font-size: 2.4rem;
}
.tcs-card-text { min-width: 0; flex: 1; }

.tcs-card-eyebrow {
    color: var(--tcs-a, #ff8a33);
    font: 800 0.7rem/1 'Inter', sans-serif;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
}
.tcs-card-name {
    margin: 0 0 0.4rem;
    font: 900 clamp(1.2rem, 2.4vw, 1.6rem)/1.1 'Inter', sans-serif;
    color: #fff;
    letter-spacing: -0.02em;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.7);
}
.tcs-card--featured .tcs-card-name {
    font-size: clamp(1.5rem, 2.8vw, 2.1rem);
}
.tcs-card-tag {
    margin: 0;
    color: rgba(255, 255, 255, 0.78);
    font-size: 0.88rem;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ── Meta row ────────────────────────────────────────────────────── */
.tcs-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 0.9rem;
    padding: 0 1.2rem 1rem;
    justify-content: center;
}
.tcs-card--featured .tcs-card-meta { justify-content: flex-start; padding-left: 1.6rem; padding-right: 1.6rem; }
.tcs-meta-item {
    display: inline-flex; align-items: center; gap: 0.4rem;
    color: rgba(255, 255, 255, 0.88);
    font: 700 0.78rem/1 'Inter', sans-serif;
    background: rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(6px);
    padding: 0.42rem 0.7rem;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.08);
}
.tcs-meta-item i {
    color: var(--tcs-a, #ff8a33);
    font-size: 0.78rem;
}
.tcs-meta-item--final i { color: #ff1f1f; }
.tcs-meta-item--date  i { color: #94a3b8; }

/* ── CTA ─────────────────────────────────────────────────────────── */
.tcs-card-cta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.9rem 1.2rem;
    background: linear-gradient(135deg, var(--tcs-p, #ff6a00), var(--tcs-s, #cc5500));
    color: #fff;
    font: 800 0.85rem/1 'Inter', sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    margin-top: auto;
    transition: filter 0.2s ease, gap 0.2s ease;
}
.tcs-card:hover .tcs-card-cta {
    filter: brightness(1.15);
    gap: 0.8rem;
}
.tcs-card-cta i { font-size: 0.85rem; }

/* ── Animated edge glow on hover ─────────────────────────────────── */
.tcs-card-glow {
    position: absolute; inset: 0;
    z-index: 1;
    pointer-events: none;
    border-radius: inherit;
    opacity: 0;
    transition: opacity 0.3s ease;
    background:
        radial-gradient(circle at 50% 0%, var(--tcs-p, #ff6a00) 0%, transparent 60%),
        radial-gradient(circle at 50% 100%, var(--tcs-a, #ff8a33) 0%, transparent 60%);
    mix-blend-mode: overlay;
}
.tcs-card:hover .tcs-card-glow { opacity: 0.35; }

/* ── All-circuits CTA ────────────────────────────────────────────── */
.tcs-allcta { text-align: center; }
.tcs-allcta-btn {
    display: inline-flex; align-items: center; gap: 0.55rem;
    padding: 0.85rem 1.8rem;
    background: rgba(255, 255, 255, 0.04);
    color: #fff;
    text-decoration: none;
    font-weight: 700;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    transition: all 0.18s ease;
}
.tcs-allcta-btn:hover {
    background: linear-gradient(135deg, #ff6a00, #cc5500);
    color: #0a0a0f;
    border-color: transparent;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(255, 106, 0, 0.35);
}
.tcs-allcta-btn i { font-size: 0.95rem; }

/* ── Mobile polish ───────────────────────────────────────────────── */
@media (max-width: 540px) {
    .tcs-section { padding: 2.5rem 0.85rem 1.5rem; }
    .tcs-card { min-height: 280px; }
    .tcs-card--featured { min-height: 320px; }
    .tcs-card--featured .tcs-card-body {
        flex-direction: column;
        text-align: center;
        gap: 0.9rem;
        padding: 1.3rem 1.1rem 0.9rem;
    }
    .tcs-card--featured .tcs-card-meta { justify-content: center; padding-left: 1.1rem; padding-right: 1.1rem; }
    .tcs-card-meta { gap: 0.4rem 0.6rem; padding-bottom: 0.85rem; }
    .tcs-meta-item { font-size: 0.72rem; padding: 0.35rem 0.55rem; }
    .tcs-card-cta { padding: 0.8rem 1rem; font-size: 0.78rem; }
}
