/* maze.css - Estilos específicos para el laberinto */

.maze-container {
    position: relative;
    width: 100%;
    height: 600px;
    background-color: var(--panel-color);
    border-radius: 8px;
    box-shadow: 0 2px 10px var(--shadow-color);
    border: 1px solid var(--border-color);
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}

#maze-canvas {
    display: block;
    max-width: 100%;
    max-height: 100%;
    background-color: white;
}

/* Estilos para los estados de las celdas */
.cell-wall {
    fill: #333333;
}

.cell-path {
    fill: #ffffff;
}

.cell-start {
    fill: #4caf50;
}

.cell-end {
    fill: #f44336;
}

.cell-visited {
    fill: #bbdefb;
}

.cell-frontier {
    fill: #90caf9;
}

.cell-path-solution {
    fill: #ffeb3b;
}

/* Animaciones */
@keyframes visitedAnimation {
    0% {
        transform: scale(0.3);
        opacity: 0.3;
    }
    50% {
        opacity: 0.6;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes frontierAnimation {
    0% {
        transform: scale(0.6);
    }
    50% {
        transform: scale(1.2);
    }
    100% {
        transform: scale(1);
    }
}

@keyframes pathAnimation {
    0% {
        transform: scale(0.6);
        opacity: 0.6;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.animate-visited {
    animation: visitedAnimation 0.3s ease-out forwards;
}

.animate-frontier {
    animation: frontierAnimation 0.3s ease-out forwards;
}

.animate-path {
    animation: pathAnimation 0.5s ease-out forwards;
}

/* Tooltip para información de celdas */
.cell-tooltip {
    position: absolute;
    background-color: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 12px;
    pointer-events: none;
    z-index: 100;
    display: none;
}

/* Indicadores de estado de resolución */
.solving-indicator {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: var(--accent-color);
    color: white;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: bold;
    display: none;
}

.solving-indicator.active {
    display: block;
}

/* Estilos para el modo oscuro */
.dark-theme #maze-canvas {
    background-color: #121212;
}

.dark-theme .cell-wall {
    fill: #000000;
}

.dark-theme .cell-path {
    fill: #2a2a2a;
}

.dark-theme .cell-visited {
    fill: #3949ab;
}

.dark-theme .cell-frontier {
    fill: #5c6bc0;
}

.dark-theme .cell-path-solution {
    fill: #ffd600;
}
