/* ========================================================================
   TORNEO DETAIL VIEW - Estilos profesionales
   ======================================================================== */

.torneo-detail-page {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    padding: 0;
    background: #f8fafc;
    min-height: 100vh;
}

/* Header profesional */
.torneo-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    flex-wrap: wrap;
    padding: 2rem;
    background: white;
    border-bottom: 1px solid #e2e8f0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.torneo-header-left {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex: 1;
}

.torneo-icon {
    width: 72px;
    height: 72px;
    background: linear-gradient(135deg, var(--mainColor, #2563eb) 0%, #1d4ed8 100%);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
    flex-shrink: 0;
}

.torneo-header-info {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.torneo-header-info h1 {
    font-size: 1.75rem;
    font-weight: 800;
    color: #0f172a;
    margin: 0;
    line-height: 1.2;
}

.torneo-subtitle {
    font-size: 0.95rem;
    color: #64748b;
    margin: 0;
}

.torneo-header-actions {
    display: flex;
    gap: 12px;
}

.btn-torneo {
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
    border: none;
}

.btn-torneo.ghost {
    background: #f1f5f9;
    border: 1.5px solid #cbd5e1;
    color: #475569;
}

.btn-torneo.ghost:hover {
    background: #e2e8f0;
    border-color: var(--mainColor, #2563eb);
    color: var(--mainColor, #2563eb);
}

/* Meta grid cards */
.torneo-meta-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 1.5rem;
    padding: 0 2rem;
}

.torneo-meta-card {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    transition: all 0.2s ease;
}

.torneo-meta-card:hover {
    border-color: var(--mainColor, #2563eb);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.1);
}

.torneo-meta-label {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #94a3b8;
}

.torneo-meta-value {
    font-size: 1.5rem;
    font-weight: 800;
    color: #0f172a;
}

/* Section styling */
.torneo-section {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    margin: 0 2rem;
}

.torneo-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #e2e8f0;
}

.torneo-section-title {
    font-size: 1rem;
    font-weight: 700;
    color: #0f172a;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin: 0;
}

.torneo-empty {
    font-size: 0.9rem;
    color: #94a3b8;
    text-align: center;
    padding: 2rem 1rem;
    background: #f8fafc;
    border-radius: 8px;
}

/* Categories list */
.torneo-categories-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.torneo-cat-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: linear-gradient(135deg, #e3f2fd 0%, #e0f2fe 100%);
    border: 1.5px solid #2563eb;
    border-radius: 24px;
    font-size: 0.85rem;
    font-weight: 600;
    color: #0284c7;
    cursor: pointer;
    transition: all 0.2s ease;
}

.torneo-cat-badge:hover {
    background: linear-gradient(135deg, #bbdefb 0%, #b3e5fc 100%);
    border-color: #1d4ed8;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.2);
}

/* Content grid - Results and Scorers */
.torneo-content-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 2rem;
    padding: 0 2rem;
    margin-bottom: 2rem;
}

@media (max-width: 1024px) {
    .torneo-content-grid {
        grid-template-columns: 1fr;
    }
}

.torneo-section-results {
    display: flex;
    flex-direction: column;
}

.torneo-section-scorers {
    display: flex;
    flex-direction: column;
}

/* Results list */
.torneo-results-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-height: 600px;
    overflow-y: auto;
}

.result-card {
    display: grid;
    grid-template-columns: 1fr auto 1fr auto;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    transition: all 0.2s ease;
}

.result-card:hover {
    background: white;
    border-color: var(--mainColor, #2563eb);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.1);
}

.result-team {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.result-team-name {
    font-size: 0.9rem;
    font-weight: 700;
    color: #0f172a;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.result-team.away {
    text-align: right;
}

.result-score {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
    background: #ffffff;
    border: 1px solid #dbe5f1;
    border-radius: 10px;
    padding: 0.3rem 0.55rem;
    box-shadow: inset 0 1px 2px rgba(15, 23, 42, 0.04);
}

.result-score-num {
    font-size: 1.3rem;
    font-weight: 800;
    color: #0b1733;
    min-width: 32px;
    text-align: center;
}

.result-score-sep {
    font-size: 1rem;
    color: #cbd5e1;
    font-weight: 300;
}

.result-outcome {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 6px 12px;
    border-radius: 6px;
    margin-left: 8px;
}

.result-outcome.victoria {
    background: #dcfce7;
    color: #15803d;
}

.result-outcome.derrota {
    background: #fee2e2;
    color: #991b1b;
}

.result-outcome.empate {
    background: #fef3c7;
    color: #92400e;
}

.result-date {
    font-size: 0.7rem;
    color: #94a3b8;
    margin-top: 4px;
    grid-column: 1 / -1;
}

/* Scorers table */
.torneo-scorers-table {
    width: 100%;
    border-collapse: collapse;
}

.torneo-scorers-table th {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #94a3b8;
    padding: 12px;
    text-align: left;
    border-bottom: 2px solid #e2e8f0;
    background: #f8fafc;
}

.torneo-scorers-table td {
    padding: 12px;
    border-bottom: 1px solid #e2e8f0;
    color: #475569;
}

.torneo-scorers-table tbody tr:hover {
    background: #f8fafc;
}

/* Tab buttons for statistics */
.torneo-tab-btn {
    transition: all 0.2s ease;
}

.torneo-tab-btn:hover {
    color: #0f172a !important;
}

.torneo-scorers-table td:first-child {
    font-weight: 700;
    color: #0f172a;
}

.torneo-scorers-table td:last-child {
    text-align: center;
    font-weight: 700;
    color: var(--mainColor, #2563eb);
}

.torneo-empty-cell {
    text-align: center !important;
    color: #94a3b8;
    font-style: italic;
    padding: 1.5rem !important;
}

/* Scorer avatar */
.scorer-player-cell {
    display: flex;
    align-items: center;
    gap: 10px;
}

.scorer-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: 700;
    color: white;
    background: var(--mainColor, #2563eb);
}
