/* ═══════════════════════════════════════════════
   HOMEPAGE NEW SECTIONS
   Next match, events, stats, recruitment
   ═══════════════════════════════════════════════ */

/* ── Dark section variant ── */
.section-dark {
    background: linear-gradient(160deg, var(--navy-dark) 0%, var(--navy-deep) 100%);
    color: var(--white);
}
.section-dark .section-header h2 { color: var(--white); }
.section-dark .accent-line { background: var(--red); }

/* ── Match section: light red bg, dark card ── */
.section-match {
    max-width: 100%;
    background: rgba(196, 30, 58, 0.03);
    border-top: 1px solid rgba(196,30,58,0.06);
    border-bottom: 1px solid rgba(196,30,58,0.06);
}
.section-match .section-inner {
    max-width: 1200px; margin: 0 auto; padding: 0 40px;
}

/* Card — solid dark background */
.section-match .next-match {
    background: linear-gradient(160deg, #1a0a0f 0%, #220d15 50%, #1a0a0f 100%);
}

/* Card swap animation */
#nextMatchCard {
    transition: opacity 0.25s ease, transform 0.25s ease;
}
#nextMatchCard.card-exit {
    opacity: 0;
    transform: translateY(8px);
}

/* Tabs — light variant (must override .match-tabs--dark) */
.section-match .match-tabs--dark .match-tab {
    background: var(--white);
    color: var(--gray-600);
    border-color: var(--gray-200);
}
/* .section-match .match-tabs--dark .match-tab:hover moved to @media (hover: hover) */
.section-match .match-tabs--dark .match-tab.active {
    color: var(--white);
    background: var(--red);
    border-color: var(--red);
}

/* Recent results strip — light variant */
.section-match .recent-results__label { color: var(--gray-400); }
.section-match .recent-result {
    background: var(--white);
    border-color: var(--gray-200);
    color: var(--gray-600);
}
.section-match .recent-result__score { color: var(--gray-800); }
.section-match .recent-result__opponent { color: var(--gray-600); }
.section-match .recent-result__date { color: var(--gray-400); }
.section-match .recent-result--win .recent-result__badge { background: rgba(5,150,105,0.1); color: #059669; }
.section-match .recent-result--loss .recent-result__badge { background: rgba(220,38,38,0.1); color: #DC2626; }

/* No-data on light bg */
.section-match .no-data { color: var(--gray-400); }

/* ── Dark match tabs (generic, for other contexts) ── */
.match-tabs--dark {
    display: flex; gap: 6px; margin-bottom: 20px; flex-wrap: wrap;
    justify-content: center;
}
.match-tabs--dark .match-tab {
    background: rgba(255,255,255,0.06);
    color: rgba(255,255,255,0.5);
    border-color: rgba(255,255,255,0.1);
}
/* .match-tabs--dark .match-tab:hover moved to @media (hover: hover) */
.match-tabs--dark .match-tab.active {
    color: var(--white);
    background: var(--red);
    border-color: var(--red);
}


/* ═══════════════════════════════════════════════
   1. NEJBLIŽŠÍ ZÁPAS / POSLEDNÍ VÝSLEDEK
   ═══════════════════════════════════════════════ */

.next-match {
    background: linear-gradient(135deg, rgba(196,30,58,0.08) 0%, rgba(196,30,58,0.03) 100%);
    border: 1px solid rgba(196,30,58,0.12);
    border-radius: 16px;
    padding: 32px;
    text-align: center;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    transition: border-color var(--transition), box-shadow var(--transition);
}
.next-match::before {
    content: '';
    position: absolute;
    width: 260px; height: 260px; border-radius: 50%;
    background: var(--team-color, var(--red));
    filter: blur(100px); opacity: 0.12;
    top: -80px; right: -60px;
    pointer-events: none;
}
.next-match::after {
    content: '';
    position: absolute;
    width: 180px; height: 180px; border-radius: 50%;
    background: var(--red);
    filter: blur(80px); opacity: 0.08;
    bottom: -60px; left: -40px;
    pointer-events: none;
}
.next-match__label {
    display: inline-flex; align-items: center; gap: 6px;
    font-size: 12px; font-weight: 600;
    color: var(--red); text-transform: uppercase; letter-spacing: 0.1em;
    margin-bottom: 20px;
}
.next-match__matchup {
    display: flex; align-items: stretch; justify-content: center; gap: 0;
    margin-bottom: 24px;
}
.next-match__side {
    flex: 1; text-align: center; padding: 16px 12px;
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
    max-width: 260px;
}
.next-match__side--ours .next-match__team-name {
    color: var(--white);
}
.next-match__side-badge {
    font-size: 10px; font-weight: 700; text-transform: uppercase;
    letter-spacing: 0.12em; color: rgba(255,255,255,0.25);
}
.next-match__side--ours .next-match__side-badge {
    color: var(--red); opacity: 0.8;
}
.next-match__team-name {
    font-size: clamp(16px, 3vw, 24px); font-weight: 800; color: rgba(255,255,255,0.7);
    letter-spacing: -0.02em; word-break: break-word;
}
.next-match__logo {
    width: 56px; height: 56px; object-fit: contain; border-radius: 8px;
    margin-bottom: 4px; flex-shrink: 0;
    filter: drop-shadow(0 2px 8px rgba(0,0,0,0.3));
}
.next-match__logo--placeholder {
    width: 56px; height: 56px; border-radius: 8px;
    background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.08);
    display: flex; align-items: center; justify-content: center;
    color: rgba(255,255,255,0.15); font-size: 22px;
    margin-bottom: 4px;
}
.next-match__ours-tag {
    display: inline-flex; align-items: center; gap: 3px;
    font-size: 10px; font-weight: 600; color: var(--red);
}
.next-match__ours-tag i { font-size: 10px; }
.next-match__center {
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    padding: 0 16px; min-width: 60px;
}
.next-match__vs {
    font-size: 13px; font-weight: 700; color: rgba(255,255,255,0.2);
    padding: 6px 12px; border: 1px solid rgba(255,255,255,0.08);
    border-radius: 8px;
}
.next-match__score {
    font-size: clamp(28px, 5vw, 40px); font-weight: 900; color: var(--white);
    letter-spacing: -0.02em; line-height: 1;
}
.next-match__sets {
    font-size: 12px; color: rgba(255,255,255,0.35); margin-top: 4px;
}
.next-match__tag {
    display: inline-block; font-size: 10px; font-weight: 600;
    text-transform: uppercase; letter-spacing: 0.08em;
    color: rgba(255,255,255,0.4); margin-top: 4px;
}

/* Countdown */
.next-match__countdown {
    display: flex; align-items: center; justify-content: center; gap: 8px;
    margin-bottom: 20px;
}
.cd-unit { text-align: center; }
.cd-num {
    display: block; font-size: clamp(28px, 5vw, 42px); font-weight: 900;
    color: var(--white); line-height: 1; font-variant-numeric: tabular-nums;
}
.cd-label {
    display: block; font-size: 11px; font-weight: 500;
    color: rgba(255,255,255,0.4); text-transform: uppercase; letter-spacing: 0.08em;
    margin-top: 4px;
}
.cd-sep {
    font-size: 24px; font-weight: 300; color: rgba(255,255,255,0.2);
    align-self: flex-start; margin-top: 6px;
}
.cd-live {
    display: inline-flex; align-items: center; gap: 8px;
    font-size: 18px; font-weight: 700; color: var(--red);
    animation: cdPulse 1.5s ease-in-out infinite;
}
@keyframes cdPulse { 0%,100%{opacity:1} 50%{opacity:.5} }

.next-match__meta {
    display: flex; align-items: center; justify-content: center; gap: 16px;
    flex-wrap: wrap;
    font-size: 13px; color: rgba(255,255,255,0.45);
}
.next-match__meta span { display: inline-flex; align-items: center; gap: 4px; }
.next-match__meta i { font-size: 14px; }

/* Result variant */
.next-match--result { padding: 24px; }
.next-match--win .next-match__score { color: #34D399; }
.next-match--loss .next-match__score { color: #F87171; }

.next-match__result-badge {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 4px 14px; border-radius: 99px;
    font-size: 13px; font-weight: 700;
    color: var(--result-color, #fff);
    background: color-mix(in srgb, var(--result-color, #fff) 15%, transparent);
    border: 1px solid color-mix(in srgb, var(--result-color, #fff) 30%, transparent);
}
.next-match__detail-hint {
    text-align: center; margin-top: 14px;
    font-size: 12px; color: rgba(255,255,255,0.35);
    display: flex; align-items: center; justify-content: center; gap: 4px;
    transition: color 0.2s;
}
/* .next-match:hover .next-match__detail-hint moved to @media (hover: hover) */
.next-match__next-hint {
    text-align: center; margin-top: 12px; padding-top: 12px;
    border-top: 1px solid rgba(255,255,255,0.08);
    font-size: 12px; color: rgba(255,255,255,0.4);
}
.next-match__next-hint strong { color: rgba(255,255,255,0.7); }

/* Recent results strip */
.recent-results { margin-top: 20px; }
.recent-results__label {
    text-align: center;
    font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em;
    color: rgba(255,255,255,0.3);
    margin-bottom: 10px;
}
.recent-results__row {
    display: flex; gap: 8px; justify-content: center; flex-wrap: wrap;
}
.recent-result {
    display: flex; align-items: center; gap: 6px;
    padding: 6px 12px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.2s;
    font-size: 12px; color: rgba(255,255,255,0.5);
}
.recent-result__badge {
    width: 20px; height: 20px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 50%; font-size: 10px; font-weight: 700;
}
.recent-result--win .recent-result__badge { background: rgba(5,150,105,0.2); color: #34D399; }
.recent-result--loss .recent-result__badge { background: rgba(220,38,38,0.2); color: #F87171; }
.recent-result__score { font-weight: 700; color: rgba(255,255,255,0.8); font-variant-numeric: tabular-nums; }
.recent-result__opponent { color: rgba(255,255,255,0.5); }
.recent-result__date { color: rgba(255,255,255,0.25); font-size: 11px; }

@media (max-width: 480px) {
    .recent-results__row { flex-direction: column; }
    .recent-result { justify-content: center; }
}


/* ═══════════════════════════════════════════════
   2. NADCHÁZEJÍCÍ AKCE
   ═══════════════════════════════════════════════ */

.upcoming-events-grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px;
}
.upcoming-event-card {
    display: flex; align-items: stretch; gap: 0;
    background: var(--white); border: 1px solid var(--gray-200); border-radius: 12px;
    overflow: hidden; text-decoration: none; color: inherit;
    transition: box-shadow var(--transition), transform var(--transition);
}
.upcoming-event-card__date {
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    min-width: 72px; padding: 16px 12px;
    background: var(--navy-dark); color: var(--white);
}
.upcoming-event-card__day {
    font-size: 28px; font-weight: 900; line-height: 1;
}
.upcoming-event-card__month {
    font-size: 12px; font-weight: 600; text-transform: uppercase;
    letter-spacing: 0.06em; opacity: 0.6; margin-top: 2px;
}
.upcoming-event-card__body {
    padding: 14px 16px; display: flex; flex-direction: column; justify-content: center;
}
.upcoming-event-card__type {
    display: inline-flex; align-items: center; gap: 4px;
    font-size: 11px; font-weight: 600; text-transform: uppercase;
    letter-spacing: 0.06em; margin-bottom: 4px;
}
.upcoming-event-card__body h3 {
    font-size: 15px; font-weight: 700; color: var(--gray-800);
    margin: 0 0 4px; line-height: 1.3;
}
.upcoming-event-card__loc {
    font-size: 12px; color: var(--gray-400);
    display: inline-flex; align-items: center; gap: 3px;
}


/* ═══════════════════════════════════════════════
   5. KLUB V ČÍSLECH
   ═══════════════════════════════════════════════ */

.section-stats {
    background: linear-gradient(160deg, #1a0a0f 0%, #2a0f18 50%, #1a0a0f 100%);
    border-top: 1px solid rgba(196,30,58,0.15);
    border-bottom: 1px solid rgba(196,30,58,0.15);
}

.stats-strip {
    display: flex; justify-content: center; gap: 48px;
    flex-wrap: wrap; padding: 20px 0;
}
.stat-item {
    text-align: center; min-width: 120px;
    opacity: 0; transform: translateY(16px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}
.stat-item.visible { opacity: 1; transform: translateY(0); }
.stat-item i {
    display: block; font-size: 22px; color: var(--red);
    margin-bottom: 8px; opacity: 0.7;
}
.stat-num {
    display: block; font-size: clamp(32px, 5vw, 48px);
    font-weight: 900; color: var(--white);
    line-height: 1; font-variant-numeric: tabular-nums;
}
.stat-label {
    display: block; font-size: 12px; font-weight: 600;
    color: rgba(255,255,255,0.35); margin-top: 6px;
    text-transform: uppercase; letter-spacing: 0.08em;
}


/* ═══════════════════════════════════════════════
   6. PŘIDEJ SE K NÁM (recruitment)
   ═══════════════════════════════════════════════ */

.section-recruitment {
    background: transparent;
    color: var(--white);
}
#recruitment .section-inner {
    background: linear-gradient(160deg, #0A1118 0%, #111827 50%, #1a0a0f 100%);
    border-radius: 24px;
    padding: 48px 40px;
    overflow: hidden;
}
.section-recruitment .section-header h2 { color: var(--white); }
.section-recruitment .section-header p { color: rgba(255,255,255,0.45); }
.section-recruitment .accent-line { background: var(--red); }

/* ── Recruitment description (longer text below heading) ── */
.recruitment-desc {
    max-width: 720px; margin: 0 auto 32px;
    font-size: 15px; line-height: 1.7;
    color: rgba(255,255,255,0.55);
    text-align: center;
}
.recruitment-desc strong { color: var(--red); font-weight: 700; }
.recruitment-desc em { color: rgba(255,255,255,0.8); font-style: normal; }

/* ── Info block (location + schedule) ── */
.recruitment-info {
    display: flex; justify-content: center; gap: 32px; flex-wrap: wrap;
    margin-bottom: 32px; padding: 20px 24px;
    background: rgba(255,255,255,0.04); border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.06);
}
.recruitment-info__item {
    display: flex; align-items: flex-start; gap: 12px;
}
.recruitment-info__item i {
    font-size: 20px; color: var(--red); margin-top: 2px; opacity: 0.8;
}
.recruitment-info__item strong {
    display: block; font-size: 12px; font-weight: 600;
    color: rgba(255,255,255,0.4); text-transform: uppercase;
    letter-spacing: 0.06em; margin-bottom: 2px;
}
.recruitment-info__item span {
    font-size: 14px; color: rgba(255,255,255,0.8); line-height: 1.5;
}

/* ── Contact block ── */
.recruitment-contact {
    margin-top: 32px; text-align: center;
}
.recruitment-contact__label {
    font-size: 11px; font-weight: 600; text-transform: uppercase;
    letter-spacing: 0.1em; color: rgba(255,255,255,0.3); margin-bottom: 16px;
}
.recruitment-contact__person {
    display: inline-flex; align-items: center; gap: 16px;
    padding: 16px 28px; border-radius: 12px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
}
.recruitment-contact__avatar {
    width: 44px; height: 44px; border-radius: 50%;
    background: rgba(196,30,58,0.15); color: var(--red);
    display: flex; align-items: center; justify-content: center;
    font-size: 20px; flex-shrink: 0;
}
.recruitment-contact__info { text-align: left; }
.recruitment-contact__info strong {
    display: block; font-size: 16px; color: var(--white); margin-bottom: 4px;
}
.recruitment-contact__links {
    display: flex; gap: 16px; flex-wrap: wrap;
}
.recruitment-contact__links a {
    display: inline-flex; align-items: center; gap: 5px;
    font-size: 13px; color: rgba(255,255,255,0.5);
    text-decoration: none; transition: color var(--transition);
}
/* .recruitment-contact__links a:hover moved to @media (hover: hover) */
.recruitment-contact__links a i { font-size: 14px; color: var(--red); }

.recruitment-grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px;
}
.recruitment-card {
    background: linear-gradient(135deg, rgba(196,30,58,0.08) 0%, rgba(196,30,58,0.03) 100%);
    border: 1px solid rgba(196,30,58,0.12);
    border-radius: 16px; overflow: hidden;
    position: relative;
    transition: border-color var(--transition), box-shadow var(--transition), transform var(--transition);
}
.recruitment-card::before {
    content: '';
    position: absolute;
    width: 140px; height: 140px; border-radius: 50%;
    background: var(--red);
    filter: blur(60px); opacity: 0.08;
    top: -40px; right: -30px;
    pointer-events: none;
}
.recruitment-card__icon {
    display: flex; align-items: center; justify-content: center;
    height: 100px;
    background: linear-gradient(135deg, rgba(196,30,58,0.2) 0%, rgba(196,30,58,0.06) 100%);
    font-size: 36px; color: var(--red); opacity: 0.7;
    position: relative;
}
.recruitment-card__img {
    height: 160px; overflow: hidden;
}
.recruitment-card__img img {
    width: 100%; height: 100%; object-fit: cover;
}
.recruitment-card__body { padding: 24px; }
.recruitment-card__body h3 {
    font-size: 20px; font-weight: 800; color: var(--white);
    margin: 0 0 6px;
}
.recruitment-card__age {
    display: inline-flex; align-items: center; gap: 5px;
    font-size: 13px; font-weight: 600;
    color: var(--red); margin-bottom: 12px;
}
.recruitment-card__age i { font-size: 14px; }
.recruitment-card__body p {
    font-size: 13px; color: rgba(255,255,255,0.5);
    line-height: 1.5; margin: 0 0 16px;
}
.recruitment-card__coach {
    display: flex; align-items: center; gap: 10px;
    margin-bottom: 16px; padding: 10px 12px;
    background: rgba(255,255,255,0.04); border-radius: 10px;
}
.recruitment-card__coach-avatar {
    width: 36px; height: 36px; border-radius: 50%;
    background: rgba(196,30,58,0.15); color: var(--red);
    display: flex; align-items: center; justify-content: center;
    font-size: 16px; flex-shrink: 0;
}
.recruitment-card__coach strong {
    display: block; font-size: 14px; color: var(--white);
}
.recruitment-card__coach span {
    font-size: 11px; color: rgba(255,255,255,0.35);
    text-transform: uppercase; letter-spacing: 0.06em;
}
.recruitment-card__actions {
    display: flex; gap: 8px; flex-wrap: wrap;
}
.recruitment-card__btn {
    display: inline-flex; align-items: center; gap: 5px;
    font-size: 13px; font-weight: 600;
    padding: 8px 16px; border-radius: 99px;
    background: rgba(255,255,255,0.06);
    color: rgba(255,255,255,0.7);
    border: 1px solid rgba(255,255,255,0.1);
    text-decoration: none;
    transition: all var(--transition);
}
/* .recruitment-card__btn:hover moved to @media (hover: hover) */
.recruitment-card__btn--primary {
    background: var(--red); color: var(--white); border-color: var(--red);
}
/* .recruitment-card__btn--primary:hover moved to @media (hover: hover) */
.recruitment-card__btn--pdf {
    color: var(--red); border-color: rgba(196,30,58,0.3);
}
/* .recruitment-card__btn--pdf:hover moved to @media (hover: hover) */


/* ═══════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════ */

@media (max-width: 768px) {
    .section-match .section-inner { padding: 0 24px; }
    .next-match { padding: 20px 16px; }
    .next-match__matchup { flex-direction: column; gap: 0; }
    .next-match__side { max-width: 100%; padding: 10px 8px; }
    .next-match__center { padding: 8px 0; }
    .next-match__countdown { gap: 4px; }
    .cd-sep { font-size: 18px; }
    .stats-strip { gap: 24px; }
    .stat-item { min-width: 80px; }
    .upcoming-events-grid { grid-template-columns: 1fr; }
    .recruitment-grid { grid-template-columns: 1fr; }
    #recruitment .section-inner { padding: 36px 20px; border-radius: 16px; }
}

@media (max-width: 480px) {
    .next-match__meta { gap: 8px; font-size: 12px; }
    .next-match__meta span { gap: 3px; }
    .next-match__team-name { font-size: 16px; }
    .next-match__logo { width: 40px; height: 40px; }
    .next-match__logo--placeholder { width: 40px; height: 40px; font-size: 16px; }
    .next-match__label { font-size: 11px; margin-bottom: 14px; }
    .cd-num { font-size: 28px; }
    .cd-label { font-size: 10px; }
    .stats-strip { gap: 16px; }
    .stat-num { font-size: 32px; }
    .stat-label { font-size: 10px; }
    .recruitment-card__body { padding: 18px; }
    .recruitment-card__body h3 { font-size: 18px; }
    .recruitment-contact__person { flex-direction: column; text-align: center; padding: 16px 20px; }
    .recruitment-contact__info { text-align: center; }
    .recruitment-contact__links { justify-content: center; }
}

/* ═══════════════════════════════════════════════
   HOVER — visual-only (pointer devices)
   ═══════════════════════════════════════════════ */
@media (hover: hover) {
    .next-match:hover {
        border-color: rgba(196,30,58,0.35);
        box-shadow: 0 0 40px rgba(196,30,58,0.12);
    }
    .upcoming-event-card:hover {
        box-shadow: 0 8px 24px rgba(0,0,0,0.08);
        transform: translateY(-2px);
    }
    .recruitment-card:hover {
        border-color: rgba(196,30,58,0.35);
        box-shadow: 0 8px 32px rgba(196,30,58,0.12);
        transform: translateY(-2px);
    }
    .recent-result:hover {
        background: rgba(255,255,255,0.1);
    }
    .section-match .recent-result:hover {
        background: var(--gray-50);
    }
    .section-match .match-tabs--dark .match-tab:hover {
        color: var(--gray-800);
        border-color: var(--gray-400);
    }
    .match-tabs--dark .match-tab:hover {
        color: var(--white);
        border-color: rgba(255,255,255,0.2);
    }
    .next-match:hover .next-match__detail-hint {
        color: rgba(255,255,255,0.6);
    }
    .recruitment-contact__links a:hover {
        color: var(--white);
    }
    .recruitment-card__btn:hover {
        background: rgba(255,255,255,0.12);
        color: var(--white);
        border-color: rgba(255,255,255,0.2);
    }
    .recruitment-card__btn--primary:hover {
        background: var(--red-dark);
        border-color: var(--red-dark);
    }
    .recruitment-card__btn--pdf:hover {
        background: rgba(196,30,58,0.15);
        color: var(--white);
        border-color: var(--red);
    }
}