/* Diseño Base Cabecera */
.trainer-header {
    background-color: #15181a;
    border: 1px solid rgba(255, 255, 255, 0.05);
    position: relative;
    overflow: hidden;
    border-radius: 1rem;
}

/* Foto Contenedor (Alto total en Desktop, Ancho total en Móvil) */
.photo-wrapper {
    width: 320px;
    min-height: 100%;
    background-color: #222;
    flex-shrink: 0;
}

.trainer-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.photo-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    background-color: #222;
    min-height: 320px;
}

/* Tipografía Cabecera */
.info-role-badge {
    display: inline-block;
    background: #e51b20;
    color: #fff;
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 15px;
}

.info-first-name {
    font-size: 3.2rem;
    font-weight: 400;
    line-height: 1;
    color: #ffffff;
    text-transform: uppercase;
    font-family: 'Oswald', 'Bebas Neue', sans-serif;
    margin-bottom: 4px;
}

.info-last-name {
    font-size: 4.5rem;
    font-weight: 700;
    line-height: 0.9;
    color: #ffffff;
    text-transform: uppercase;
    font-family: 'Oswald', 'Bebas Neue', sans-serif;
    letter-spacing: -1px;
}

.section-title {
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Responsive Cabecera (Mobile Estética Mejorada) */
@media (max-width: 768px) {
    .trainer-header {
        flex-direction: column !important;
    }

    .photo-wrapper {
        width: 100%;
        aspect-ratio: 1 / 1;
        /* Cuadrado perfecto en teléfono */
        min-height: auto;
    }

    .photo-placeholder {
        min-height: auto;
        aspect-ratio: 1 / 1;
    }

    .info-wrapper {
        padding: 2.5rem 1.5rem !important;
        flex-direction: row !important;
        justify-content: center !important;
        align-items: center !important;
    }

    .info-first-name {
        font-size: 1.8rem;
    }

    .info-last-name {
        font-size: 2.3rem;
        margin-bottom: 0;
    }
}

/* Tabs Styling */
.nav-tabs.custom-tabs {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 2rem;
}

.nav-tabs.custom-tabs .nav-link {
    color: #888;
    border: none;
    border-bottom: 2px solid transparent;
    background: transparent;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
    padding: 1rem 1.5rem;
    transition: all 0.2s ease;
}

.nav-tabs.custom-tabs .nav-link:hover {
    color: #fff;
}

.nav-tabs.custom-tabs .nav-link.active {
    color: #fff;
    border-bottom: 2px solid #e51b20;
}

.stat-card {
    background-color: #15181a;
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 0.75rem;
    padding: 1.5rem;
    text-align: center;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.stat-card .value {
    font-size: 2.5rem;
    font-weight: 900;
    color: #fff;
    line-height: 1;
    margin-bottom: 0.5rem;
}

.stat-card .label {
    font-size: 0.75rem;
    color: #aaa;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 1px;
}

.match-item {
    background-color: #15181a;
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 0.75rem;
    transition: all 0.2s;
}

.match-item:hover {
    background-color: #1c1f22;
    border-color: rgba(255, 255, 255, 0.1);
}

.table-dark-custom {
    background-color: #15181a;
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 0.75rem;
    overflow: hidden;
    margin-bottom: 0;
}

.table-dark-custom th {
    background-color: #111;
    color: #888;
    font-weight: 600;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.table-dark-custom td {
    background-color: transparent;
    color: #fff;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    vertical-align: middle;
}

.table-dark-custom tr:last-child td {
    border-bottom: none;
}

.championship-card {
    background-color: #15181a;
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 0.75rem;
    padding: 1.5rem;
    text-align: center;
    height: 100%;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.championship-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    border-color: rgba(255, 255, 255, 0.1);
}

.championship-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.icon-champion {
    color: #ffd700;
}

.icon-runner_up {
    color: #c0c0c0;
}

.icon-third_place {
    color: #cd7f32;
}

.fs-tournament-header {
    background-color: #111111;
    border: 1px solid #2a2a2d;
    border-bottom: none;
}

.fs-matches-container {
    background-color: #18181b;
    border: 1px solid #2a2a2d;
}

.fs-tournament-header+.fs-matches-container {
    border-top: none;
}

.fs-match-row {
    background-color: #18181b !important;
    border: none !important;
}

.fs-match-row:hover {
    background-color: #222225 !important;
    cursor: pointer;
}

.fs-match-row:not(:last-child) {
    border-bottom: 1px solid #2a2a2d !important;
}
