/* Estilos para las arenas */
.arena-type-1 { 
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%); 
    /*background-image: url('assets/images/arenas/Lair.jpg');*/
    background-size: cover;
    background-position: center;
}

.arena-type-2 { 
    background: linear-gradient(135deg, #3a7bd5 0%, #00d2ff 100%); 
    /*background-image: url('assets/images/arenas/Castle.jpg');*/
    background-size: cover;
    background-position: center;
}

.arena-type-3 { 
    background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%); 
    /*background-image: url('assets/images/arenas/Cristal.jpg');*/
    background-size: cover;
    background-position: center;
}

.arena-type-4 { 
    background: linear-gradient(135deg, #8e0e00 0%, #1f1c18 100%); 
    /*background-image: url('assets/images/arenas/Market.jpg');*/
    background-size: cover;
    background-position: center;
}

.arena-type-5 { 
    background: linear-gradient(135deg, #4b6cb7 0%, #182848 100%); 
    /*background-image: url('assets/images/arenas/Lava.jpg');*/
    background-size: cover;
    background-position: center;
}
.arena-type-6 { 
    background: linear-gradient(135deg, #f46b45 0%, #eea849 100%); 
    /*background-image: url('assets/images/arenas/Ruin.avif');*/
    background-size: cover;
    background-position: center;
}
.arena-type-7 { 
    background: linear-gradient(135deg, #8e2de2 0%, #4a00e0 100%); 
    /*background-image: url('assets/images/arenas/Bridge.webp');*/
    background-size: cover;
    background-position: center;
}
.arena-type-8 { 
    background: linear-gradient(135deg, #c31432 0%, #240b36 100%); 
    /*background-image: url('assets/images/arenas/Gardens.jpg');*/
    background-size: cover;
    background-position: center;
}
.arena-type-9 { 
    background: linear-gradient(135deg, #c31432 0%, #240b36 100%); 
    /*background-image: url('assets/images/arenas/Gardens.jpg');*/
    background-size: cover;
    background-position: center;
}

.arena-type-10 { 
    background: linear-gradient(135deg, #c31432 0%, #240b36 100%); 
    /*background-image: url('assets/images/arenas/Gardens.jpg');*/
    background-size: cover;
    background-position: center;
}

/* Estilos para la visualización de la arena */
.arena-display {
    background: rgba(20, 20, 20, 0.85);
    border: 2px solid var(--primary-color);
    border-radius: var(--border-radius);
    text-align: left;
    position: relative;
    box-shadow: var(--box-shadow);
    backdrop-filter: blur(1px);
    transition: var(--transition);
}

.arena-header h2 {
    color: var(--primary-color);
    margin: 0 0 10px 0;
    font-size: 24px;
    text-align: center;
    text-shadow: 0 0 10px rgba(192, 160, 80, 0.5);
    display: block;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(192, 160, 80, 0.2);
    width: 100%;
}

.arena-display p {
    font-size: 18px;
    line-height: 1.5;
}

/* Estilos para las secciones de modo */
.arena-mode-section,
.dungeon-mode-section {
    background: transparent;
    border-radius: 0;
    border-left: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.dungeon-mode-section {
    margin-top: 0;
    position: relative;
    border-bottom: 1px solid rgba(192, 57, 43, 0.3);
}

/* Separador entre modos */
.mode-separator {
    display: flex;
    align-items: center;
    margin: 20px 0 10px 0;
    color: var(--primary-color);
    font-weight: bold;
    font-size: 1.1em;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.mode-separator::before,
.mode-separator::after {
    content: '';
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--primary-color), transparent);
    margin: 0 10px;
}

.separator-text {
    color: var(--primary-color);
    font-weight: bold;
    text-transform: uppercase;
    font-size: 0.9em;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

/* Badge de dificultad */
.difficulty-badge {
    background: #c0392b;
    color: white;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 0.8em;
    margin-left: 10px;
    font-weight: bold;
    text-transform: uppercase;
}

/* Características de cada modo */
.arena-features,
.dungeon-features {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 8px 0 0;
    padding: 0;
    list-style: none;
}

.arena-features .feature,
.dungeon-features .feature {
    background: rgba(192, 160, 80, 0.2);
    border: 1px solid var(--primary-color);
    border-radius: 20px;
    padding: 5px 15px;
    font-size: 0.9em;
    color: var(--text-lighter);
    transition: all 0.3s ease;
    display: inline-block;
    margin-right: 8px;
    margin-bottom: 8px;
}

.arena-features .feature:hover,
.dungeon-features .feature:hover {
    background: rgba(192, 160, 80, 0.4);
    transform: translateY(-2px);
}

/* Títulos de sección */
.mode-header {
    display: flex;
    align-items: center;
    margin: 0 0 8px 0;
    gap: 8px;
}

.mode-header h3 {
    margin: 0;
    color: var(--primary-color);
    font-size: 1.1em;
    font-weight: 600;
}

/* Ajustes responsivos */
@media (max-width: 768px) {

    .arena-features,
    .dungeon-features {
        gap: 6px;
    }
    
    .feature {
        padding: 3px 10px;
        font-size: 0.8em;
    }
}

.welcome-message {
    text-align: center;
    padding: 20px 0;
}

.welcome-message h2 {
    color: var(--primary-color);
    margin-bottom: 15px;
    font-size: 1.35em;
}

.welcome-message p {
    font-size: 1.2em;
    margin-bottom: 20px;
}

.hint {
    background: rgba(192, 160, 80, 0.1);
    border-left: 3px solid var(--primary-color);
    padding: 10px 15px;
    border-radius: 0 var(--border-radius) var(--border-radius) 0;
    margin-top: 20px;
    display: inline-block;
    font-size: 0.9em;
}

.hint i {
    margin-right: 8px;
    color: var(--primary-color);
}

/* Estilos para la dificultad */
.difficulty {
    font-size: 1em;
    margin: 5px 0 15px 0;
    padding: 0;
    color: #fff;
    text-align: center;
}

.difficulty-baja { color: #4caf50; }
.difficulty-media { color: #ff9800; }
.difficulty-alta { color: #f44336; }
.difficulty-mortal { 
    color: #ff1744;
    font-weight: bold;
    text-shadow: 0 0 5px rgba(255, 23, 68, 0.5);
}

/* Estilos para las páginas del libro */
.arena-pages {
    margin: 15px 0 0;
    padding: 0;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9em;
}

.arena-pages strong {
    color: var(--primary-color);
    font-weight: 600;
    margin: 0;
}

.page-numbers {
    font-family: 'Courier New', monospace;
    color: #ddd;
}

/* Estilos para las características */
.features {
    margin: 20px 0 0;
}

.features strong {
    color: var(--primary-color);
    display: block;
    margin-bottom: 10px;
    font-size: 1.1em;
}

.features-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}

.feature {
    background: rgba(192, 160, 80, 0.2);
    border: 1px solid rgba(192, 160, 80, 0.3);
    border-radius: 15px;
    padding: 5px 12px;
    font-size: 0.85em;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
}

.feature:hover {
    background: rgba(192, 160, 80, 0.4);
    transform: translateY(-2px);
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.2);
}

/* Estilos para el encabezado de la arena */
.arena-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 10px;
    margin-bottom: 15px;
    width: 100%;
}

.mode-switch-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    background: rgba(0, 0, 0, 0.5);
    padding: 2px;
    border-radius: 20px;
    border: 1px solid var(--primary-color);
    overflow: hidden;
    box-shadow: 0 0 10px rgba(192, 160, 80, 0.3);
    margin: 0 auto; /* Centra el contenedor horizontalmente */
}

.mode-label {
    font-size: 14px;
    font-weight: bold;
    padding: 5px 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
}

.mode-label:first-child {
    border-top-left-radius: 15px;
    border-bottom-left-radius: 15px;
}

.mode-label:nth-child(2) {
    border-top-right-radius: 15px;
    border-bottom-right-radius: 15px;
}

.mode-label.active {
    background: var(--primary-color);
    color: #000;
    font-weight: bold;
    box-shadow: 0 0 10px rgba(192, 160, 80, 0.5);
}

.mode-label:not(.active) {
    color: #aaa;
}

.mode-label:not(.active):hover {
    color: #fff;
    background: rgba(192, 160, 80, 0.2);
}

/* Estilo del switch personalizado */
.switch {
    display: none; /* Ocultamos el switch original */
}

/* Estilos para el título del modo */
.mode-title {
    color: #fff;
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 22px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.mode-badge {
    background: var(--primary-color);
    color: #000;
    font-size: 14px;
    padding: 2px 8px;
    border-radius: 10px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    top: -1px;
}

/* Controles de la arena */
.arena-controls {
    margin-top: 20px;
    display: flex;
    justify-content: center;
}

.add-point-btn {
    background: linear-gradient(135deg, var(--primary-dark) 0%, #6b1a1a 100%);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 30px;
    cursor: pointer;
    font-family: 'MedievalSharp', cursive;
    font-size: 1em;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

.add-point-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    background: linear-gradient(135deg, #6b1a1a 0%, var(--primary-dark) 100%);
}

.add-point-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 3px rgba(0, 0, 0, 0.3);
}

/* Estilos para la vista previa del mapa */
.arena-pages {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 20px;
}

.mapa-referencia {
    margin-top: 10px;
    color: #8a5a44;
    font-size: 0.9em;
    font-style: italic;
    text-align: right;
}

.mapa-preview-container {
    margin: 0;
    padding: 15px;
    background: rgba(30, 30, 40, 0.3);
    border-radius: 10px;
    border: 1px solid #444;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 5px;
    max-width: 350px;
}

.mapa-preview-container h4 {
    color: #f0f0f0;
    margin-top: 0;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 8px;
    justify-content: center;
}

.mapa-preview-container p {
    color: #f0f0f0;
    margin-top: 0;
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}
.mapa-preview {
    position: relative;
    width: 100%;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    border: 2px dashed #555;
    flex: 1;
    min-height: 150px;
    margin-bottom: 5px;
}

.mapa-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.3s ease;
    scale: 1.07;
}

.mapa-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: #aaa;
    text-align: center;
    padding: 20px;
    background: rgba(0, 0, 0, 0.5);
    transition: all 0.3s ease;
}

.mapa-overlay i {
    font-size: 2.5em;
    margin-bottom: 10px;
    opacity: 0.7;
}

.mapa-overlay p {
    margin: 0;
    font-size: 0.9em;
}

.mapa-descripcion {
    margin-top: 10px;
    font-size: 0.85em;
    color: #aaa;
    text-align: center;
    font-style: italic;
}

/* Estilos para cuando se muestra el mapa */
.mapa-preview.has-map .mapa-overlay {
    opacity: 0;
    pointer-events: none;
}

.mapa-preview.has-map img {
    display: block;
}



/* Estilos para la sección de características */
.features {
    margin: 15px 0;
}

.features strong {
    display: block;
    margin-bottom: 8px;
    color: var(--primary-color);
}

/* Estilos para la presentación de la arena */
#arenaDisplay {
    position: relative;
    width: 100%;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
    color: white;
}

.arena-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    filter: brightness(0.4);
    z-index: 1;
}

.arena-content {
    position: relative;
    z-index: 2;
    padding: 30px;
    background: rgba(0, 0, 0, 0.25);
    min-height: 400px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.arena-content h2 {
    color: var(--primary-color);
    font-size: 2.5em;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.arena-features,
.dungeon-features {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 15px 0;
    align-items: center;
}

/* Controles de sonido en la sección de características */
.sound-controls {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 20px;
    padding: 5px 10px 5px 5px;
    border: 1px solid rgba(192, 160, 80, 0.3);
}

.sound-toggle {
    background: none;
    border: none;
    color: #ffd700;
    cursor: pointer;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    font-size: 16px;
    padding: 0;
}

.sound-toggle:hover {
    background: rgba(255, 215, 0, 0.1);
}

.sound-toggle.muted {
    opacity: 0.7;
}

.sound-toggle i {
    transition: all 0.2s ease;
}

/* Estilos para el control de volumen */
.volume-control {
    display: flex;
    align-items: center;
    width: 80px;
    transition: all 0.3s ease;
    opacity: 0.8;
}

.volume-control:hover {
    opacity: 1;
}

.volume-slider {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    width: 100%;
    height: 4px;
    border-radius: 2px;
    background: rgba(255, 255, 255, 0.2);
    outline: none;
    transition: all 0.2s ease;
}

.volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #ffd700;
    cursor: pointer;
    transition: all 0.2s ease;
}

.volume-slider::-moz-range-thumb {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #ffd700;
    cursor: pointer;
    border: none;
}

/* Ajustes para móviles */
@media (max-width: 768px) {
    .sound-controls {
        padding: 3px 8px 3px 3px;
    }
    
    .sound-toggle {
        width: 28px;
        height: 28px;
        font-size: 14px;
    }
    
    .volume-control {
        width: 60px;
    }
}

/* Estilos unificados para características de Arena y Dungeon */

.arena-description {
    font-size: 1.1em;
    line-height: 1.6;
    text-align: justify;
}

.arena-pages {
    font-style: italic;
    color: #aaa;
    margin-top: 10px;
}

/* Ajustes para móviles */
@media (max-width: 768px) {
    
    .arena-content {
        padding: 20px;
    }
    
    .arena-content h2 {
        font-size: 1.8em;
    }
    
    .arena-features {
        gap: 8px;
    }
    
    .arena-features .feature,
    .dungeon-features .feature {
        padding: 4px 12px;
        font-size: 0.8em;
    }
}

.features-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 15px;
}

.feature {
    background: rgba(192, 160, 80, 0.2);
    color: #e0e0e0;
    border: 1px solid var(--primary-color);
    border-radius: 15px;
    padding: 4px 12px;
    font-size: 0.9em;
    white-space: nowrap;
}

/* Estilo para el botón de música en características */
.feature.sound-toggle {
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.feature.sound-toggle:hover {
    background: rgba(192, 160, 80, 0.4);
    transform: translateY(-2px);
}

.feature.sound-toggle:active {
    transform: translateY(0);
}

.feature.sound-toggle.muted {
    opacity: 0.7;
}
