/**
 * Senka (戦果) — Sistema de Torneos y Liga Beyblade X (BDB)
 * Estilos: Gestión de Parámetros de Liga, Temporadas y Logos Oficiales
 * Autor: Sebastián Ariza / https://sebastiandeveloper.website/
 */

.league-modal-card {
    max-width: 860px;
    width: 95%;
    max-height: 92vh;
    overflow-y: auto;
}

.league-mgmt-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 1rem;
    flex-wrap: wrap;
    background: rgba(255, 183, 0, 0.05);
    border: 1px solid rgba(255, 183, 0, 0.25);
    border-radius: var(--radius-md);
    padding: 1rem 1.25rem;
    margin-bottom: 1.5rem;
}

.season-logo-upload-card {
    background: rgba(0, 229, 255, 0.03);
    border: 1px solid rgba(0, 229, 255, 0.2);
    border-radius: var(--radius-md);
    padding: 1rem 1.25rem;
    margin-top: 1rem;
}

.season-logo-upload-wrapper {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    flex-wrap: wrap;
}

.season-logo-preview-box {
    width: 84px;
    height: 84px;
    min-width: 84px;
    border-radius: var(--radius-md);
    border: 2px solid rgba(255, 183, 0, 0.5);
    box-shadow: 0 0 15px rgba(255, 183, 0, 0.2);
    background: var(--bg-surface-2);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.season-logo-preview-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.season-logo-inputs {
    flex: 1;
    min-width: 260px;
}

.seasons-table-container {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-subtle);
    background: var(--bg-surface-1);
}

.seasons-table-container .users-table {
    min-width: 620px;
    white-space: nowrap;
}

.season-logo-cell {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.season-logo-cell-img {
    width: 36px;
    height: 36px;
    min-width: 36px;
    border-radius: var(--radius-sm);
    border: 1px solid rgba(255, 183, 0, 0.4);
    object-fit: cover;
    background: #0d111c;
}

.season-logo-cell-title {
    font-weight: 700;
    color: #fff;
    font-size: 0.95rem;
}

.season-logo-cell-slug {
    font-size: 0.78rem;
    color: var(--text-muted);
}

/* Badge de temporada en tarjetas de torneos */
.tourney-season-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.22rem 0.6rem;
    border-radius: 999px;
    font-size: 0.74rem;
    font-weight: 700;
    line-height: 1.2;
    background: rgba(255, 183, 0, 0.12);
    border: 1px solid rgba(255, 183, 0, 0.35);
    color: var(--gold-trophy);
    margin-bottom: 0;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.tourney-season-logo-mini {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid rgba(255, 183, 0, 0.5);
    flex-shrink: 0;
}

/* Logo oficial de temporada en header de detalle del torneo (limpio, sin fondos ni recuadros) */
.tourney-detail-season-logo-wrap {
    display: block;
    width: fit-content;
    max-width: 100%;
    margin-bottom: 0.5rem;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
}

.tourney-detail-season-pure-logo {
    max-width: 200px;
    max-height: 75px;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
    background: transparent !important;
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
}

/* Fallback de compatibilidad con estilos previos */
.tourney-detail-season-banner {
    display: block;
    width: fit-content;
    max-width: 100%;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
    margin-bottom: 0.5rem;
}

.tourney-detail-season-logo {
    max-width: 200px;
    max-height: 75px;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    background: transparent !important;
}

/* Badge de Bonus por Ace en tabla de liga */
.ace-bonus-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.2rem 0.65rem;
    border-radius: 999px;
    font-weight: 800;
    font-size: 0.85rem;
    background: rgba(0, 229, 255, 0.12);
    border: 1px solid rgba(0, 229, 255, 0.45);
    color: var(--cyan-neon);
    box-shadow: 0 0 8px rgba(0, 229, 255, 0.18);
}

.ace-bonus-badge.has-ace {
    background: linear-gradient(135deg, rgba(255, 183, 0, 0.2), rgba(0, 229, 255, 0.2));
    border-color: var(--gold-trophy);
    color: #fff;
    box-shadow: 0 0 10px rgba(255, 183, 0, 0.35);
}

.ace-bonus-empty {
    color: var(--text-muted);
    font-size: 0.85rem;
}
