/* Estilos específicos para el modo VCT */

/* Estilos para las celdas de la tabla */
.player-cell.match {
    background-color: #4CAF50 !important; /* Verde para coincidencia exacta */
    color: white !important;
}

.player-cell.partial-match {
    background-color: #FFC107 !important; /* Amarillo para coincidencia parcial */
    color: black !important;
}

.player-cell.no-match {
    background-color: #700f30 !important; /* Magenta para no coincidencia */
    color: white !important;
}

/* Botón de regreso fijo */
.fixed-back-button {
    position: fixed;
    top: 20px;
    left: 20px;
    background-color: rgba(15, 25, 35, 0.8);
    color: white;
    padding: 10px 20px;
    border-radius: 4px;
    text-decoration: none;
    font-family: 'Tungsten', sans-serif;
    font-size: 1.2rem;
    letter-spacing: 1px;
    z-index: 1000;
    transition: all 0.3s ease;
    border: 1px solid #ff4655;
}

.fixed-back-button:hover {
    background-color: #ff4655;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

/* Estilos para la selección de regiones */
.region-selection-title {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    color: white;
    text-align: center;
    text-shadow: 0 0 10px rgba(255, 70, 85, 0.7);
    letter-spacing: 2px;
    font-family: 'Tungsten', sans-serif;
}

.region-selection-subtitle {
    font-family: 'Tungsten', sans-serif;
    font-size: 2rem;
    color: #ff4655;
    text-align: center;
    margin-bottom: 2rem;
    letter-spacing: 2px;
    text-shadow: 0 0 8px rgba(0, 0, 0, 0.8);
}
#region-selection {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    margin-top: 2rem;
    background-color: transparent;
}
.region-cards-container {
    display: flex;
    justify-content: center;
    margin-top: 2rem;
    gap: 30px;
    flex-wrap: nowrap;
}

.region-card {
  width: 280px;
  height: 400px;
  border-radius: 10px;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  margin-bottom: 50px;
  border: 2px solid transparent;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
}

.region-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 25px rgba(255, 70, 85, 0.4);
    border-color: #ff4655;
    filter: brightness(1.1);
}

/* Estilos para el mensaje de cooldown en las tarjetas de región */
.cooldown-message-region {
    position: absolute;
    bottom: 10px;
    left: 0;
    right: 0;
    background-color: rgba(15, 25, 35, 0.9);
    color: #ff4655;
    padding: 8px;
    text-align: center;
    font-family: 'Tungsten', sans-serif;
    font-size: 1.2rem;
    letter-spacing: 1px;
    border-radius: 0 0 8px 8px;
    border-top: 1px solid #ff4655;
    z-index: 10;
}

/* Estilos para el logo de la región */
.region-logo {
    display: block;
    max-width: 200px;
    height: auto;
    margin: 10px auto 20px;
    filter: drop-shadow(0 0 8px rgba(255, 70, 85, 0.5));
}

.region-card[data-region="EMEA"] {
    background-image: url('/src/images/emea-banner.webp');
}

.region-card[data-region="AMERICAS"] {
    background-image: url('/src/images/americas-banner.webp');
}

.region-card[data-region="PACIFIC"] {
    background-image: url('/src/images/pacific-banner.webp');
}

.region-name {
    padding: 10px 20px;
    border-radius: 5px;
    z-index: 2;
    font-size: 2.2rem;
    color: white;
    text-shadow: 0 0 8px rgba(0, 0, 0, 0.8);
    letter-spacing: 2px;
    position: absolute;
    bottom: -45px;
    left: 50%;
    transform: translateX(-50%);
    background-color: rgba(15, 25, 35, 0.9);
    border: 2px solid #ff4655;
    font-weight: bold;
    width: 80%;
    text-align: center;
}

.cooldown-message-region {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background-color: rgba(255, 87, 87, 0.8);
    color: white;
    padding: 10px 20px;
    border-radius: 5px;
    font-size: 16px;
    text-align: center;
    max-width: 80%;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.cooldown-message-game {
    position: absolute;
    top: 120px;
    left: 50%;
    transform: translateX(-50%);
    background-color: rgba(255, 87, 87, 0.8);
    color: white;
    padding: 10px 20px;
    border-radius: 5px;
    font-size: 16px;
    text-align: center;
    max-width: 80%;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    z-index: 10;
}

.region-name {
    font-family: 'Tungsten', sans-serif;
    font-size: 2rem;
    color: white;
    text-align: center;
    margin: 0;
    letter-spacing: 1px;
}

.selected-region-title {
    font-family: 'Tungsten', sans-serif;
    font-size: 1.5rem;
    color: #ff4655;
    text-align: center;
    margin-bottom: 1.5rem;
    letter-spacing: 1px;
}

/* Footer */
.footer {
    position: fixed;
    bottom: 10px;
    left: 10px;
    font-size: 1.3rem;
    color: white;
    background-color: transparent;
    z-index: 10;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.7);
}

.footer a {
    color: var(--primary-color, #ff4655);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer a:hover {
    color: var(--primary-hover-color, #ff7b86);
}

/* Fondo específico para el modo VCT */
.vct-mode-background {
    background-image: url('../src/backgrounds/vct-fondo.webp');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
}

/* Fondos específicos para cada región */
.vct-mode-background.americas-background {
    background-image: url('/src/backgrounds/regiones/americas-fondo-banner.webp');
}

.vct-mode-background.emea-background {
    background-image: url('/src/backgrounds/regiones/emea-fondo-banner.webp');
}

.vct-mode-background.pacific-background {
    background-image: url('/src/backgrounds/regiones/pacific-fondo-banner.webp');
}

.vct-mode-background::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 0;
}

.vct-game-content {
    position: relative;
    z-index: 1;
    background-color: rgba(15, 25, 35, 0.8);
    padding: 2rem;
    border-radius: 8px;
    max-width: 800px;
    width: 100%;
}

/* Estilos para el input de búsqueda */
.player-search-container {
    width: 100%;
    margin-bottom: 2rem;
}

.player-search-input {
    width: 100%;
    padding: 1rem;
    font-size: 1.2rem;
    background-color: rgba(255, 255, 255, 0.9);
    border: 2px solid #ff4655;
    border-radius: 4px;
    color: #0f1923;
    font-family: 'Tungsten', sans-serif;
    text-transform: uppercase;
    letter-spacing: 1px;
    outline: none;
    transition: all 0.3s ease;
}

.player-search-input:focus {
    border-color: #ff7b86;
    box-shadow: 0 0 10px rgba(255, 70, 85, 0.5);
}

.player-search-input::placeholder {
    color: rgba(15, 25, 35, 0.6);
}

/* Estilos para la tabla de jugadores */
.player-table-container {
    width: 100%;
    overflow-x: auto;
    margin-top: 1rem;
    border-radius: 4px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.player-table-header {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.5fr;
    background-color: #ff4655;
    color: white;
    font-family: 'Tungsten', sans-serif;
    font-size: 1.3rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding: 0.8rem 0;
}

.header-cell {
    padding: 0 1rem;
    text-align: center;
}

.player-table-body {
    max-height: 400px;
    overflow-y: auto;
}

.player-row {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.5fr;
    padding: 0.8rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: background-color 0.3s ease;
}

.player-row:hover {
    background-color: rgba(255, 70, 85, 0.1);
}

.player-cell {
    padding: 0.5rem 1rem;
    text-align: center;
    color: white;
    font-family: 'Tungsten', sans-serif;
    font-size: 1.2rem;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Estilo para mostrar los agentes en una lista */
.player-cell.agentes {
    gap: 0.2rem;
}

.agente-item {
    display: inline-block;
    margin: 0 0.2rem;
}

/* Estos estilos están ahora definidos al inicio del archivo con colores más vibrantes */

/* Estilos para el contenedor de autocompletado */
.autocomplete-container {
    background-color: rgba(15, 25, 35, 0.95);
    border: 1px solid #ff4655;
    border-radius: 4px;
    max-height: 200px;
    overflow-y: auto;
    position: absolute;
    width: 100%;
    z-index: 1000;
}

.autocomplete-item {
    padding: 10px;
    cursor: pointer;
    color: white;
    font-family: 'Tungsten', sans-serif;
    letter-spacing: 1px;
    font-size: 1.1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    gap: 10px;
}

.autocomplete-item:hover {
    background-color: rgba(255, 70, 85, 0.3);
}

/* Estilos para el modal de éxito */
.success-modal {
    background-color: rgba(15, 25, 35, 0.95);
    border: 2px solid #ff4655;
    border-radius: 8px;
    width: 90%;
    max-width: 500px;
    padding: 2rem;
    position: relative;
    color: white;
}

.success-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid #ff4655;
    padding-bottom: 1rem;
}

.success-modal-title {
    font-family: 'Tungsten', sans-serif;
    font-size: 2rem;
    letter-spacing: 1px;
    color: #ff4655;
    margin: 0;
}

.success-content {
    text-align: center;
}

.success-message p {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

#success-player-name {
    font-family: 'Tungsten', sans-serif;
    font-size: 2.5rem;
    letter-spacing: 1px;
    color: #ff4655;
    margin: 0.5rem 0 1.5rem;
}

.success-player-info {
    margin: 1.5rem 0;
    font-size: 1.2rem;
    text-align: left;
    background-color: rgba(255, 255, 255, 0.1);
    padding: 1rem;
    border-radius: 4px;
}

.success-player-info p {
    margin: 0.5rem 0;
    display: flex;
    align-items: center;
}

/* Estilo para los agentes en el modal de éxito */
#success-player-agentes {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.agente-modal-item {
    display: inline-block;
    margin: 0 0.2rem;
}

.cooldown-message {
    margin: 1.5rem 0;
    font-size: 1.1rem;
    color: #ff4655;
}

.success-close-button {
    background-color: #ff4655;
    color: white;
    border: none;
    border-radius: 4px;
    padding: 0.8rem 2rem;
    font-family: 'Tungsten', sans-serif;
    font-size: 1.3rem;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 1rem;
}

.success-close-button:hover {
    background-color: #ff7b86;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

/* Leyenda de colores */
.color-legend {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: rgba(15, 25, 35, 0.9);
    border: 3px solid #ff4655;
    border-radius: 10px;
    padding: 15px;
    color: white;
    font-family: 'Tungsten', sans-serif;
    font-size: 1.1rem;
    z-index: 1000;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.6);
    min-width: 220px;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
}

.legend-title {
    font-size: 1.6rem;
    margin-bottom: 12px;
    color: #ff4655;
    text-align: center;
    letter-spacing: 2px;
    text-shadow: 0 0 8px rgba(255, 70, 85, 0.6);
    border-bottom: 2px solid rgba(255, 70, 85, 0.7);
    padding-bottom: 8px;
    font-weight: bold;
}

.legend-items-container {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.legend-item {
    display: flex;
    align-items: center;
    padding: 8px;
    border-radius: 6px;
    transition: all 0.2s ease;
    background-color: rgba(255, 255, 255, 0.05);
}

.legend-item:hover {
    background-color: rgba(255, 255, 255, 0.15);
    transform: translateX(3px);
}

.legend-item span {
    font-size: 1.2rem;
    letter-spacing: 1px;
}

.color-box {
    width: 28px;
    height: 28px;
    margin-right: 15px;
    border-radius: 6px;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.4);
    border: 2px solid rgba(255, 255, 255, 0.4);
    transition: transform 0.2s ease;
}

.legend-item:hover .color-box {
    transform: scale(1.1);
}

.color-box.match {
    background-color: #4CAF50;
}

.color-box.partial-match {
    background-color: #FFC107;
}

.color-box.no-match {
    background-color: #700f30;
}

/* Estilos responsivos */
@media (max-width: 768px) {
    .color-legend {
        bottom: 10px;
        right: 10px;
        padding: 12px;
        font-size: 1rem;
        min-width: 200px;
    }
    
    .legend-title {
        font-size: 1.4rem;
        margin-bottom: 10px;
        padding-bottom: 6px;
    }
    
    .legend-items-container {
        gap: 6px;
    }
    
    .legend-item {
        padding: 6px;
    }
    
    .legend-item span {
        font-size: 1.1rem;
    }
    
    .color-box {
        width: 24px;
        height: 24px;
        margin-right: 12px;
    }
}

@media (max-width: 480px) {
    .color-legend {
        bottom: 5px;
        right: 5px;
        padding: 10px;
        min-width: 180px;
    }
    
    .legend-title {
        font-size: 1.3rem;
        margin-bottom: 8px;
        padding-bottom: 5px;
    }
    
    .legend-items-container {
        gap: 4px;
    }
    
    .legend-item {
        padding: 5px;
    }
    
    .legend-item span {
        font-size: 1rem;
    }
    
    .color-box {
        width: 20px;
        height: 20px;
        margin-right: 10px;
    }
    
    .player-table-header,
    .player-row {
        grid-template-columns: 1.5fr 1fr 1fr 1.5fr;
        font-size: 1rem;
    }
    
    .player-cell {
        padding: 0.5rem;
        font-size: 1rem;
    }
    
    .player-search-input {
        font-size: 1rem;
        padding: 0.8rem;
    }
    
    .vct-game-content {
        padding: 1.5rem;
    }
}

@media (max-width: 480px) {
    .color-legend {
        bottom: 5px;
        right: 5px;
        padding: 8px;
        font-size: 0.9rem;
        min-width: 160px;
    }
    
    .legend-title {
        font-size: 1.1rem;
        margin-bottom: 6px;
        padding-bottom: 4px;
    }
    
    .legend-item {
        margin-bottom: 4px;
    }
    
    .color-box {
        width: 16px;
        height: 16px;
        margin-right: 8px;
    }
    
    .player-table-header,
    .player-row {
        grid-template-columns: 1.5fr 1fr 1fr 1.5fr;
        font-size: 0.9rem;
    }
    
    .player-cell {
        padding: 0.3rem;
        font-size: 0.9rem;
    }
    
    .header-cell {
        padding: 0 0.5rem;
    }
    
    .vct-game-content {
        padding: 1rem;
    }
    
    .game-title {
        font-size: 2.5rem;
    }
}