/* =============================================================================
   ESTILOS DA ABA 1: GERAL & INFORMAÇÕES DO TORNEIO
   Caminho: front/pages/tournament/css/geral.css
   Regra 1: Não utilizar animações CSS de hover com movimento scale ou shadow
   Regra 2: Não utilizar em momento algum emojis
   ============================================================================= */

/* 1. Barra de Destaques Rápidos (Key Highlights Strip - 3 Blocos) */
.tournament-highlights-bar {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-bottom: 1rem;
    width: 100%;
}

.tournament-highlight-item {
    background: #ffffff;
    border: 1px solid var(--border-color, #e2e8f0);
    border-radius: 16px;
    padding: 1.15rem 1.25rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    box-sizing: border-box;
}

.highlight-icon-box {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: rgba(37, 99, 235, 0.08);
    border: 1px solid rgba(37, 99, 235, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--primary, #2563eb);
}

.highlight-info {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    min-width: 0;
}

.highlight-label {
    font-size: 0.775rem;
    font-weight: 600;
    color: var(--text-muted, #64748b);
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.highlight-value {
    font-size: 0.95rem;
    font-weight: 800;
    color: var(--text-main, #0f172a);
    font-family: 'Manrope', sans-serif;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.highlight-link {
    color: var(--text-main, #0f172a);
    text-decoration: underline;
    text-decoration-color: var(--border-color, #cbd5e1);
    text-underline-offset: 3px;
    transition: color 0.15s ease, text-decoration-color 0.15s ease;
}

.highlight-link:hover {
    color: var(--primary, #2563eb);
    text-decoration-color: var(--primary, #2563eb);
}

/* 2. Layout da Grelha Principal (Espaçamento Compacto e Equilibrado) */
.tournament-overview-grid {
    display: grid;
    grid-template-columns: 1fr 360px;
    gap: 1rem;
    align-items: start;
    width: 100%;
}

.tournament-overview-main {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.tournament-overview-sidebar {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* 3. Cartões da Página (Sem Margem Inferior Residual) */
.tournament-card-box {
    background: #ffffff;
    border: 1px solid var(--border-color, #e2e8f0);
    border-radius: 20px;
    padding: 1.5rem 1.65rem;
    margin-bottom: 0 !important;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    gap: 1.15rem;
}

.tournament-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color, #f1f5f9);
}

.tournament-card-header-left {
    display: flex;
    align-items: center;
    gap: 0.85rem;
}

.tournament-card-icon {
    width: 38px;
    height: 38px;
    border-radius: 12px;
    background: rgba(37, 99, 235, 0.08);
    border: 1px solid rgba(37, 99, 235, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--primary, #2563eb);
}

.tournament-card-heading {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--text-main, #0f172a);
    margin: 0;
    font-family: 'Manrope', sans-serif;
    letter-spacing: -0.02em;
    line-height: 1.25;
}

.tournament-card-subheading {
    font-size: 0.8rem;
    color: var(--text-muted, #64748b);
    display: block;
    margin-top: 0.15rem;
    font-weight: 500;
}

.tournament-badge-count-pill {
    padding: 0.3rem 0.75rem;
    border-radius: 9999px;
    background: var(--bg-input, #f1f5f9);
    border: 1px solid var(--border-color, #e2e8f0);
    color: var(--text-muted, #475569);
    font-size: 0.775rem;
    font-weight: 700;
    white-space: nowrap;
}

/* 4. Descrição da Prova */
.tournament-description-text {
    font-size: 0.95rem;
    line-height: 1.7;
    color: var(--text-main, #1e293b);
    margin: 0;
}

/* 5. Grelha de Níveis & Categorias */
.tournament-levels-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
    gap: 0.85rem;
}

.tournament-level-pill-card {
    background: #ffffff;
    border: 1px solid var(--border-color, #e2e8f0);
    border-radius: 16px;
    padding: 1.15rem;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    box-sizing: border-box;
    transition: border-color 0.15s ease, background-color 0.15s ease;
}

.tournament-level-pill-card:hover {
    border-color: var(--primary, #2563eb);
}

.level-pill-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.level-code-badge {
    padding: 0.35rem 0.75rem;
    border-radius: 10px;
    font-size: 0.85rem;
    font-weight: 800;
    font-family: 'Manrope', sans-serif;
    letter-spacing: 0.02em;
}

.level-code-badge.badge-m {
    background: #eff6ff;
    color: #1d4ed8;
    border: 1px solid #bfdbfe;
}

.level-code-badge.badge-f {
    background: #fdf2f8;
    color: #be185d;
    border: 1px solid #fbcfe8;
}

.level-code-badge.badge-mx {
    background: #faf5ff;
    color: #7e22ce;
    border: 1px solid #e9d5ff;
}

.level-category-label {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-muted, #64748b);
}

.level-pill-middle {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.level-price-info {
    display: flex;
    align-items: baseline;
    gap: 0.35rem;
}

.level-price-info .price-val {
    font-size: 1.2rem;
    font-weight: 850;
    color: var(--text-main, #0f172a);
    font-family: 'Manrope', sans-serif;
}

.level-price-info .price-unit {
    font-size: 0.8rem;
    color: var(--text-muted, #64748b);
    font-weight: 500;
}

.level-duplas-registered {
    font-size: 0.775rem;
    color: var(--text-muted, #64748b);
    font-weight: 600;
}

.level-pill-footer {
    padding-top: 0.5rem;
    border-top: 1px dashed var(--border-color, #f1f5f9);
}

.btn-level-subscribe {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 0.6rem 0.95rem;
    border-radius: 9999px;
    background: var(--bg-input, #f8fafc);
    border: 1px solid var(--border-color, #e2e8f0);
    color: var(--text-main, #0f172a);
    font-size: 0.8125rem;
    font-weight: 700;
    text-decoration: none;
    box-sizing: border-box;
    transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.btn-level-subscribe:hover {
    background: var(--primary, #2563eb);
    border-color: var(--primary, #2563eb);
    color: #ffffff;
}

/* 6. Sidebar: Clube Anfitrião */
.club-info-card .club-title {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--text-main, #0f172a);
    margin: 0 0 0.55rem 0;
    font-family: 'Manrope', sans-serif;
    letter-spacing: -0.02em;
}

.club-info-card .club-address-text {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: var(--text-muted, #64748b);
    line-height: 1.5;
    margin: 0 0 0.65rem 0;
}

.club-info-card .club-meta-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: var(--text-muted, #64748b);
    margin: 0 0 0.55rem 0;
}

.club-info-card .club-meta-item a {
    color: var(--text-main, #0f172a);
    text-decoration: underline;
    text-decoration-color: var(--border-color, #cbd5e1);
    text-underline-offset: 3px;
    font-weight: 600;
    transition: color 0.15s ease;
}

.club-info-card .club-meta-item a:hover {
    color: var(--primary, #2563eb);
}

.club-actions-wrapper {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-top: 0.75rem;
    padding-top: 0.85rem;
    border-top: 1px solid var(--border-color, #f1f5f9);
}

.btn-sidebar-club-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    padding: 0.65rem 1.15rem;
    border-radius: 9999px;
    font-size: 0.825rem;
    font-weight: 700;
    text-decoration: none;
    box-sizing: border-box;
    width: 100%;
    transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.btn-sidebar-club-action.is-secondary {
    background: var(--bg-input, #f8fafc);
    border: 1px solid var(--border-color, #e2e8f0);
    color: var(--text-main, #0f172a);
}

.btn-sidebar-club-action.is-secondary:hover {
    background: #f1f5f9;
    border-color: #cbd5e1;
}

.btn-sidebar-club-action.is-primary {
    background: var(--text-main, #0f172a);
    border: 1px solid var(--text-main, #0f172a);
    color: #ffffff;
}

.btn-sidebar-club-action.is-primary:hover {
    background: #1e293b;
    border-color: #1e293b;
}

/* 7. Sidebar: Timeline de Prazos */
.tournament-timeline-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 1.15rem;
    position: relative;
}

.tournament-timeline-list::before {
    content: '';
    position: absolute;
    top: 10px;
    bottom: 10px;
    left: 8px;
    width: 2px;
    background: var(--border-color, #e2e8f0);
    z-index: 1;
}

.timeline-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    position: relative;
    z-index: 2;
}

.timeline-marker {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #ffffff;
    border: 3px solid var(--border-color, #cbd5e1);
    margin-top: 0.15rem;
    flex-shrink: 0;
    box-sizing: border-box;
    transition: border-color 0.15s ease, background-color 0.15s ease;
}

.timeline-marker.is-active {
    border-color: var(--primary, #2563eb);
    background: var(--primary, #2563eb);
}

.timeline-marker.is-done {
    border-color: var(--border-color, #cbd5e1);
    background: var(--border-color, #cbd5e1);
}

.timeline-info {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.timeline-title {
    font-size: 0.775rem;
    font-weight: 600;
    color: var(--text-muted, #64748b);
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.timeline-date {
    font-size: 0.95rem;
    color: var(--text-main, #0f172a);
    font-weight: 800;
    font-family: 'Manrope', sans-serif;
}

.timeline-status-tag {
    display: inline-block;
    font-size: 0.725rem;
    font-weight: 700;
    padding: 0.2rem 0.55rem;
    border-radius: 6px;
    width: fit-content;
    margin-top: 0.25rem;
}

.timeline-status-tag.tag-open {
    background: #eff6ff;
    color: #1d4ed8;
    border: 1px solid #bfdbfe;
}

.timeline-status-tag.tag-closed {
    background: #f8fafc;
    color: #64748b;
    border: 1px solid #e2e8f0;
}

.timeline-status-tag.tag-neutral {
    background: #f8fafc;
    color: #64748b;
    border: 1px solid #e2e8f0;
}

/* 8. Sidebar: CTA Banner (Dark Sporty) */
.tournament-cta-card {
    background: var(--text-main, #0f172a);
    border-radius: 20px;
    padding: 1.5rem;
    color: #ffffff;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    box-sizing: border-box;
    border: 1px solid #1e293b;
    margin-bottom: 0 !important;
}

.cta-card-header {
    display: flex;
}

.cta-card-tag {
    font-size: 0.725rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 0.25rem 0.65rem;
    border-radius: 9999px;
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff;
}

.cta-card-title {
    font-size: 1.2rem;
    font-weight: 850;
    margin: 0;
    letter-spacing: -0.02em;
    color: #ffffff;
    font-family: 'Manrope', sans-serif;
    line-height: 1.25;
}

.cta-card-text {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.8);
    margin: 0;
    line-height: 1.5;
}

.btn-cta-card {
    background: #ffffff;
    color: var(--text-main, #0f172a);
    padding: 0.75rem 1.35rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 800;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    margin-top: 0.35rem;
    box-sizing: border-box;
    transition: background-color 0.15s ease, color 0.15s ease;
}

.btn-cta-card:hover {
    background: #f1f5f9;
    color: var(--text-main, #0f172a);
}

/* 9. Responsividade Tablet & Mobile */
@media (max-width: 991px) {
    .tournament-highlights-bar {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }

    .tournament-overview-grid {
        grid-template-columns: 1fr;
    }

    .tournament-card-box {
        padding: 1.35rem;
    }
}

@media (max-width: 600px) {
    .tournament-levels-grid {
        grid-template-columns: 1fr;
    }

    .tournament-card-box {
        padding: 1.15rem;
        border-radius: 16px;
    }
}

/* 10. Cartão de Comissão da Prova / Responsáveis */
.organizers-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.organizer-profile-card {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 0.85rem 1rem;
    background: #ffffff;
    border: 1px solid var(--border-color, #e2e8f0);
    border-radius: 14px;
    box-sizing: border-box;
    transition: border-color 0.15s ease, background-color 0.15s ease;
}

.organizer-profile-card:hover {
    border-color: #cbd5e1;
    background: var(--bg-hover, #f8fafc);
}

.organizer-avatar-wrap {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    background: rgba(37, 99, 235, 0.08);
    border: 2px solid #ffffff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
}

.organizer-avatar-wrap.is-manager {
    background: rgba(14, 165, 233, 0.08);
}

.organizer-avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.organizer-avatar-initial {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--primary, #2563eb);
    font-family: 'Manrope', sans-serif;
}

.organizer-avatar-wrap.is-manager .organizer-avatar-initial {
    color: #0284c7;
}

.organizer-info-block {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    min-width: 0;
    flex: 1;
}

.organizer-role-tag {
    font-size: 0.68rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--primary, #2563eb);
}

.organizer-role-tag.is-manager {
    color: #0284c7;
}

.organizer-name-text {
    font-size: 0.925rem;
    font-weight: 750;
    color: var(--text-main, #0f172a);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.3;
}

.organizer-contact-link {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.78rem;
    color: var(--text-muted, #64748b);
    text-decoration: none;
    margin-top: 0.1rem;
    transition: color 0.15s ease;
    word-break: break-all;
}

.organizer-contact-link:hover {
    color: var(--primary, #2563eb);
}

