/* Estilos específicos para el modo de skins */

/* 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);
}

/* 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 de skins */
.skins-mode-background {
    background-image: url('/src/backgrounds/skins-mode.webp'); /* Usando el fondo específico para skins */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
}

.skins-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;
}

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

/* Estilos para el contenedor de la imagen del skin */
.skin-image-container {
    width: 100%;
    display: flex;
    justify-content: center;
    margin-bottom: 2rem;
    background-color: rgba(0, 0, 0, 0.3);
    border-radius: 8px;
    padding: 1rem;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.skin-image {
    max-width: 100%;
    max-height: 300px;
    object-fit: contain;
}

/* Estilos para el input de búsqueda */
.skin-search-container {
    width: 100%;
    margin-bottom: 2rem;
    position: relative; /* Añadir posición relativa para que el autocomplete se posicione correctamente */
}

.skin-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;
}

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

.skin-search-input:disabled {
    background-color: rgba(200, 200, 200, 0.3);
    border-color: #888;
    color: #ccc;
    cursor: not-allowed;
}

/* Estilos para el contenedor de cooldown */
.cooldown-container {
    margin-top: 10px;
    padding: 10px;
    background-color: rgba(255, 70, 85, 0.2);
    border: 1px solid #ff4655;
    border-radius: 4px;
    text-align: center;
}

.cooldown-text {
    color: white;
    font-size: 1.1rem;
    margin: 0;
    font-weight: bold;
    letter-spacing: 0.5px;
}

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

.autocomplete-item {
    padding: 0.8rem 1rem;
    cursor: pointer;
    color: white;
    transition: background-color 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
}

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

.autocomplete-icon {
    width: 70px;
    height: 30px;
    object-fit: contain;
    border-radius: 4px;
    filter: grayscale(100%) brightness(0.7) contrast(1.2);
    opacity: 0.8;
}

.autocomplete-name {
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 1.9rem;
}

/* Estilos para la tabla de skins */
.skin-table-container {
    width: 100%;
    border-radius: 4px;
    overflow: auto;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    max-height: 270px;
}

.skin-table-header {
    display: grid;
    grid-template-columns: 1fr 2fr;
    background-color: #ff4655;
    color: white;
    font-weight: bold;
    padding: 1rem;
    text-align: center;
}

.skin-table-body {
    max-height: 400px;
    overflow-y: auto;
    background-color: rgba(15, 25, 35, 0.9);
}

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

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

.skin-cell {
    padding: 0.5rem;
    text-align: center;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    font-size: 1.2rem;
    font-weight: bold;
    letter-spacing: 1px;
}

.skin-cell img {
    max-height: 60px;
    max-width: 120px;
    object-fit: contain;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease;
}

.skin-cell img:hover {
    transform: scale(1.1);
}

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

.success-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

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

.success-content {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.success-message {
    text-align: center;
    margin-bottom: 1.5rem;
    color: white;
}

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

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

.success-skin-image {
    width: 100%;
    display: flex;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.success-skin-image img {
    max-width: 100%;
    max-height: 200px;
    object-fit: contain;
}

.cooldown-message {
    text-align: center;
    margin-bottom: 1.5rem;
    color: white;
    font-size: 1.1rem;
}

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

.success-close-button:hover {
    background-color: #ff7b86;
}

/* Responsive */
@media (max-width: 768px) {
    .skin-table-header,
    .skin-row {
        grid-template-columns: 0.8fr 2fr;
    }
    
    .skin-cell img {
        max-height: 40px;
        max-width: 80px;
    }
    
    .skin-image {
        max-height: 200px;
    }
    
    .success-modal {
        width: 95%;
        padding: 1.5rem;
    }
    
    .success-modal-title {
        font-size: 2rem;
    }
    
    .success-message h3 {
        font-size: 1.8rem;
    }
}