/* espejo/espejo-selector.css */
/* --- FORMULARIOS Y SELECTOR PERSONALIZADO --- */

.input-group { margin-bottom: 10px; width: 100%; }
.row-group { display: flex; gap: 10px; width: 100%; }
.row-group .input-group { flex: 1; }

.input-group label { display: block; font-size: 0.7rem; color: #94a3b8; margin-bottom: 4px; }
.input-group input, .custom-select {
    width: 100%; background: var(--input-bg); border: 1px solid #334155;
    padding: 8px; border-radius: 6px; color: white; font-weight: bold; font-size: 0.85rem;
    box-sizing: border-box; outline: none; transition: 0.2s;
}
.input-group input:focus { border-color: var(--neon-blue); background: #111827; }

.btn-registrar {
    width: 100%; padding: 10px; margin-top: 5px;
    background: var(--neon-blue); color: #0b132b; font-weight: 800; border: none;
    border-radius: 6px; cursor: pointer; text-transform: uppercase; letter-spacing: 1px; font-size: 0.8rem;
}
.btn-registrar:hover { background: #38bdf8; }

/* Selectores Equipos (Match Versus) */
.league-selector {
    display: flex; align-items: center; gap: 10px; margin-bottom: 15px;
    background: #0f172a; padding: 5px; border-radius: 8px; border: 1px solid #334155;
}
.match-versus-container {
    display: flex; align-items: center; justify-content: space-between; gap: 5px;
    margin-bottom: 15px; background: #162030; padding: 10px; border-radius: 10px; border: 1px solid #334155;
}
.team-box { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 5px; }
.team-logo {
    width: 40px; height: 40px; object-fit: contain; background: rgba(255,255,255,0.05);
    border-radius: 50%; padding: 2px; opacity: 0; transition: opacity 0.3s;
}
.vs-divider { font-weight: 900; color: var(--neon-blue); font-size: 0.9rem; font-style: italic; }
.team-box select { font-size: 0.75rem; text-align: center; padding: 5px; width: 100%; }

/* ==========================================================================
   SELECTOR DE LIGA TIPO BANNER
   ========================================================================== */

/* Ocultar el select nativo */
.hidden-native-select { display: none !important; }

.custom-select-wrapper {
    position: relative; user-select: none; width: 100%; margin-bottom: 10px;
}

/* El Trigger (Botón Principal) */
.custom-select-trigger {
    position: relative; display: flex; align-items: center; justify-content: center;
    height: 55px; /* Altura Banner */
    background: var(--input-bg); border: 1px solid #334155; border-radius: 8px;
    cursor: pointer; overflow: hidden; transition: all 0.2s;
}
.custom-select-trigger:hover { border-color: var(--neon-blue); box-shadow: 0 0 10px rgba(0, 224, 255, 0.2); }

/* Contenedor interno */
.selected-content {
    width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; position: relative;
}

/* Imagen Banner */
.banner-img {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    object-fit: cover; object-position: center;
    z-index: 0; filter: brightness(0.4);
}

/* Texto Banner */
.banner-text {
    position: relative; z-index: 1; color: #fff; font-weight: 800;
    text-transform: uppercase; font-size: 1rem; letter-spacing: 1px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.9);
}

.arrow { position: absolute; right: 15px; z-index: 2; color: #fff; font-size: 0.8rem; pointer-events: none; }

/* Lista Desplegable */
.custom-options {
    position: absolute; top: 105%; left: 0; right: 0;
    background: var(--card-bg); border: 1px solid var(--neon-blue); border-radius: 8px;
    z-index: 1000; display: none;
    max-height: 300px; overflow-y: auto;
    box-shadow: 0 10px 40px rgba(0,0,0,0.9);
}

.custom-select-wrapper.open .custom-options { display: block; animation: slideDown 0.2s ease-out; }

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Opciones Individuales */
.custom-option {
    position: relative; height: 60px;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; border-bottom: 1px solid rgba(255,255,255,0.1); overflow: hidden;
}

.custom-option:hover .banner-img { filter: brightness(0.6); transform: scale(1.05); transition: 0.3s; }
.custom-option:hover .banner-text { color: var(--neon-blue); }