/* club_details.css — Página de Detalhe de Clube */

/* ── 1. HERO DO CLUBE ─────────────────────────────────────────────────────── */
.club-hero {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    margin-bottom: 28px;
    overflow: hidden;
    /* Linha de cor do clube no topo */
    border-top: 3px solid var(--club-color, var(--accent-yellow));
}

.club-hero-inner {
    display: flex;
    align-items: center;
    gap: 24px;
    padding: 28px 32px;
    flex-wrap: wrap;
}

.club-hero-logo-wrap {
    flex-shrink: 0;
    width: 100px;
    height: 100px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
}

.club-hero-logo {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.club-hero-league-link {
    color: rgba(255, 255, 255, 0.5);
    text-decoration: none;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    transition: color 0.2s;
}

.club-hero-league-link:hover {
    color: var(--accent-yellow);
}

.club-hero-name {
    font-size: 2rem;
    font-weight: 800;
    margin: 4px 0 8px;
    line-height: 1.1;
}

.club-hero-city {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
    margin: 0 0 14px;
}

.club-hero-icon {
    font-size: 13px;
}

.club-hero-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.club-stat-pill {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 999px;
    padding: 4px 12px;
    font-size: 12px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.75);
    white-space: nowrap;
}

/* ── 2. BARRA DE FILTROS ──────────────────────────────────────────────────── */
.filter-bar {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 32px;
    flex-wrap: wrap;
}

.filter-label {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgba(255, 255, 255, 0.5);
    white-space: nowrap;
}

.filter-chips {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.filter-chip {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 999px;
    color: rgba(255, 255, 255, 0.7);
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    font-weight: 600;
    padding: 6px 16px;
    transition: all 0.2s ease;
}

.filter-chip:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.25);
    color: #fff;
}

.filter-chip.active {
    background: var(--accent-yellow);
    border-color: var(--accent-yellow);
    color: #1a1a1a;
}

/* ── 3. SECÇÃO DE ÉPOCAS (LINHA DO TEMPO) ─────────────────────────────────── */
.epochs-section {
    position: relative;
    /* Linha vertical da timeline */
    padding-left: 24px;
    border-left: 2px solid rgba(255, 255, 255, 0.08);
    margin-left: 8px;
}

.epoch-block {
    position: relative;
    margin-bottom: 48px;
}

.epoch-block:last-child {
    margin-bottom: 0;
}

/* ── 4. CABEÇALHO DA ÉPOCA ────────────────────────────────────────────────── */
.epoch-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 20px;
}

/* Ponto na timeline */
.epoch-dot {
    position: absolute;
    left: -33px;   /* ajusta para encavalitar a border-left da .epochs-section */
    top: 6px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--accent-yellow);
    border: 2px solid var(--purple-900, #2b0c3c);
    flex-shrink: 0;
}

.epoch-title {
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--accent-yellow);
    margin: 0;
    line-height: 1;
}

.epoch-count-badge {
    background: rgba(255, 238, 0, 0.12);
    border: 1px solid rgba(255, 238, 0, 0.25);
    border-radius: 999px;
    color: var(--accent-yellow);
    font-size: 11px;
    font-weight: 700;
    padding: 3px 10px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* ── 5. GRELHA DE KITS ────────────────────────────────────────────────────── */
.epoch-kits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 20px;
}

/* ── 6. CARTÃO DE KIT ─────────────────────────────────────────────────────── */
.kit-card-v2 {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 14px;
    overflow: hidden;
    transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.kit-card-v2:hover {
    transform: translateY(-6px);
    border-color: rgba(255, 238, 0, 0.4);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.35);
}

/* ── Wrapper da imagem ── */
.kit-card-img-wrap {
    position: relative;
    background: rgba(255, 255, 255, 0.06);
    aspect-ratio: 3 / 4;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.kit-card-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.kit-card-v2:hover .kit-card-img-wrap img {
    transform: scale(1.04);
}

/* Fallback quando imagem falha */
.kit-img-fallback {
    display: none;
    font-size: 3rem;
}

.kit-card-img-wrap.img-error .kit-img-fallback {
    display: block;
}

/* Badge do tipo sobre a imagem */
.kit-type-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: var(--tipo-cor, #ffee00);
    color: #1a1a1a;
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 3px 8px;
    border-radius: 6px;
    pointer-events: none;
}

/* ── Corpo do cartão ── */
.kit-card-body {
    padding: 12px 14px 14px;
}

.kit-card-marca {
    font-size: 13px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.85);
    margin: 0 0 4px;
}

.kit-card-desc {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.45);
    margin: 0;
    line-height: 1.4;
    /* Limitar a 2 linhas */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ── 7. ESTADO VAZIO ──────────────────────────────────────────────────────── */
.no-kits-msg {
    text-align: center;
    padding: 60px 20px;
    color: rgba(255, 255, 255, 0.5);
}

.no-kits-icon {
    font-size: 3rem;
    margin-bottom: 16px;
}

.no-kits-msg h3 {
    font-size: 1.2rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 8px;
}

.no-kits-msg p {
    font-size: 14px;
}

/* ── 8. RESPONSIVIDADE ────────────────────────────────────────────────────── */
@media (max-width: 768px) {
    .club-hero-inner {
        padding: 20px;
        gap: 16px;
    }

    .club-hero-logo-wrap {
        width: 72px;
        height: 72px;
    }

    .club-hero-name {
        font-size: 1.4rem;
    }

    .epochs-section {
        padding-left: 16px;
        margin-left: 4px;
    }

    .epoch-dot {
        left: -25px;
    }

    .epoch-kits-grid {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
        gap: 14px;
    }

    .filter-bar {
        flex-direction: column;
        align-items: flex-start;
    }
}