/* Estilos mejorados para el tablero ampliado de 4 plantas */

/* Estilos generales para las plantas */
.plant-title {
    margin: 30px 0 15px;
    padding: 15px;
    background: rgba(0, 0, 0, 0.8);
    border-left: 4px solid #00eeff;
    position: relative;
    overflow: hidden;
    border-radius: 0 10px 10px 0;
    box-shadow: 0 0 20px rgba(0, 238, 255, 0.3);
}

.plant-title h3 {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.5rem;
    margin: 0;
    position: relative;
    z-index: 2;
    text-shadow: 0 0 10px rgba(0, 238, 255, 0.7);
    letter-spacing: 1px;
}

.plant-title::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 238, 255, 0.1), transparent);
    animation: scan-line 2s linear infinite;
    z-index: 1;
}

/* Conector entre plantas */
.plant-connector {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 30px 0;
    position: relative;
}

.plant-connector .arrow-down {
    width: 0;
    height: 0;
    border-left: 20px solid transparent;
    border-right: 20px solid transparent;
    border-top: 20px solid #00eeff;
    margin-bottom: 15px;
    filter: drop-shadow(0 0 10px rgba(0, 238, 255, 0.7));
    animation: pulse 2s infinite;
}

.plant-connector p {
    font-family: 'Share Tech Mono', monospace;
    font-size: 1rem;
    color: #00eeff;
    text-shadow: 0 0 8px rgba(0, 238, 255, 0.7);
    margin: 0;
    background: rgba(0, 0, 0, 0.5);
    padding: 5px 15px;
    border-radius: 20px;
    border: 1px solid rgba(0, 238, 255, 0.3);
}

/* Contenedor del tablero para cada planta */
.board-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-gap: 20px;
    margin: 25px 0;
    position: relative;
    padding: 20px;
    border-radius: 10px;
    background: rgba(10, 15, 25, 0.7);
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.5) inset;
}

/* Estilos específicos para cada planta */
.plant-2 {
    background: linear-gradient(rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.8)), 
                url('../assets/backgrounds/grid-tech.png');
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(255, 0, 128, 0.3);
    border: 1px solid rgba(255, 0, 128, 0.2);
}

.plant-3 {
    background: linear-gradient(rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.8)), 
                url('../assets/backgrounds/circuit-board.png');
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0, 255, 128, 0.3);
    border: 1px solid rgba(0, 255, 128, 0.2);
}

.plant-4 {
    background: linear-gradient(rgba(0, 0, 0, 0.85), rgba(0, 0, 0, 0.85)), 
                url('../assets/backgrounds/server-room.png');
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(255, 0, 0, 0.3);
    border: 1px solid rgba(255, 0, 0, 0.2);
}

/* Estilos mejorados para las casillas */
.board-cell {
    background: rgba(20, 25, 35, 0.9);
    border: 1px solid rgba(0, 238, 255, 0.3);
    border-radius: 8px;
    padding: 20px 15px;
    text-align: center;
    position: relative;
    transition: all 0.3s ease;
    min-height: 120px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    box-shadow: 0 0 15px rgba(0, 238, 255, 0.2);
    overflow: hidden;
}

.board-cell::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, 
                rgba(255, 255, 255, 0.05) 0%, 
                rgba(255, 255, 255, 0) 50%, 
                rgba(255, 255, 255, 0.05) 100%);
    z-index: 0;
}

.board-cell::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, 
                transparent 0%, 
                rgba(0, 238, 255, 0.3) 50%, 
                transparent 100%);
}

.board-cell:hover {
    transform: translateY(-5px) scale(1.03);
    box-shadow: 0 8px 25px rgba(0, 238, 255, 0.4);
    z-index: 10;
}

/* Estilo mejorado para los números de casilla - CONSISTENTE EN TODAS LAS CASILLAS */
.board-cell h3 {
    font-family: 'Orbitron', sans-serif;
    font-size: 2rem;
    margin: 0 0 10px;
    color: #fff;
    text-shadow: 0 0 15px rgba(0, 238, 255, 0.8);
    position: relative;
    z-index: 2;
    background: rgba(0, 0, 0, 0.3);
    padding: 5px 15px;
    border-radius: 50%;
    border: 1px solid rgba(0, 238, 255, 0.2);
    box-shadow: 0 0 10px rgba(0, 238, 255, 0.3) inset;
    min-width: 50px;
    min-height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Estilo mejorado para el tipo de casilla */
.board-cell p {
    font-family: 'Share Tech Mono', monospace;
    font-size: 1rem;
    margin: 5px 0;
    color: #ddd;
    position: relative;
    z-index: 2;
}

.board-cell p:last-child {
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    background: rgba(0, 0, 0, 0.4);
    padding: 3px 10px;
    border-radius: 15px;
    margin-top: 8px;
    font-size: 0.85rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Estilos mejorados para casillas especiales INICIO y META */
.board-cell.inicio, .board-cell.hologram-card {
    background: rgba(0, 0, 0, 0.8);
    border: 2px solid #00eeff;
    box-shadow: 0 0 30px rgba(0, 238, 255, 0.6);
    position: relative;
    overflow: hidden;
    min-height: 150px;
    transform: scale(1.05);
    z-index: 5;
}

.board-cell.inicio {
    background: linear-gradient(135deg, rgba(0, 30, 60, 0.9), rgba(0, 10, 30, 0.9));
    border-color: #00a8ff;
    box-shadow: 0 0 30px rgba(0, 168, 255, 0.6);
}

.board-cell.hologram-card {
    background: linear-gradient(135deg, rgba(30, 0, 0, 0.9), rgba(10, 0, 0, 0.9));
    border-color: #ff3366;
    box-shadow: 0 0 30px rgba(255, 51, 102, 0.6);
}

/* Estilo consistente para los números en TODAS las casillas, incluidas INICIO y META */
.board-cell.inicio h3, .board-cell.hologram-card h3 {
    font-size: 2rem;
    margin-bottom: 15px;
    color: #fff;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(0, 238, 255, 0.2);
    box-shadow: 0 0 10px rgba(0, 238, 255, 0.3) inset;
    text-shadow: 0 0 15px rgba(0, 238, 255, 0.8);
    min-width: 50px;
    min-height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.board-cell.inicio p, .board-cell.hologram-card p {
    color: #fff;
    font-size: 1.1rem;
}

.board-cell.inicio p:last-child, .board-cell.hologram-card p:last-child {
    font-size: 0.9rem;
    background: rgba(0, 168, 255, 0.2);
    border-color: rgba(0, 168, 255, 0.3);
    padding: 5px 15px;
}

.board-cell.hologram-card p:last-child {
    background: rgba(255, 51, 102, 0.2);
    border-color: rgba(255, 51, 102, 0.3);
}

.board-cell .scan-effect {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: rgba(0, 238, 255, 0.7);
    box-shadow: 0 0 15px rgba(0, 238, 255, 0.9);
    animation: scan 3s linear infinite;
    z-index: 1;
}

.board-cell.inicio .scan-effect {
    background: rgba(0, 168, 255, 0.7);
    box-shadow: 0 0 15px rgba(0, 168, 255, 0.9);
}

.board-cell.hologram-card .scan-effect {
    background: rgba(255, 51, 102, 0.7);
    box-shadow: 0 0 15px rgba(255, 51, 102, 0.9);
}

.board-cell .data-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: repeating-linear-gradient(
        0deg,
        rgba(0, 238, 255, 0.05) 0px,
        rgba(0, 238, 255, 0.05) 1px,
        transparent 1px,
        transparent 2px
    );
    z-index: 0;
}

.board-cell.inicio .data-overlay {
    background: repeating-linear-gradient(
        0deg,
        rgba(0, 168, 255, 0.05) 0px,
        rgba(0, 168, 255, 0.05) 1px,
        transparent 1px,
        transparent 2px
    );
}

.board-cell.hologram-card .data-overlay {
    background: repeating-linear-gradient(
        0deg,
        rgba(255, 51, 102, 0.05) 0px,
        rgba(255, 51, 102, 0.05) 1px,
        transparent 1px,
        transparent 2px
    );
}

/* Estilos específicos para tipos de casillas - MANTENIENDO CONSISTENCIA EN LOS NÚMEROS */
.board-cell.obstaculo {
    border-color: rgba(255, 153, 0, 0.5);
    box-shadow: 0 0 15px rgba(255, 153, 0, 0.3);
    background: linear-gradient(135deg, rgba(40, 25, 10, 0.9), rgba(30, 20, 10, 0.9));
}

.board-cell.enemigo {
    border-color: rgba(255, 51, 102, 0.5);
    box-shadow: 0 0 15px rgba(255, 51, 102, 0.3);
    background: linear-gradient(135deg, rgba(40, 10, 20, 0.9), rgba(30, 10, 15, 0.9));
}

.board-cell.desastre {
    border-color: rgba(255, 0, 0, 0.5);
    box-shadow: 0 0 15px rgba(255, 0, 0, 0.3);
    background: linear-gradient(135deg, rgba(40, 10, 10, 0.9), rgba(30, 5, 5, 0.9));
}

.board-cell.evento {
    border-color: rgba(255, 204, 0, 0.5);
    box-shadow: 0 0 15px rgba(255, 204, 0, 0.3);
    background: linear-gradient(135deg, rgba(40, 35, 10, 0.9), rgba(30, 25, 5, 0.9));
}

.board-cell.mejora {
    border-color: rgba(0, 255, 153, 0.5);
    box-shadow: 0 0 15px rgba(0, 255, 153, 0.3);
    background: linear-gradient(135deg, rgba(10, 40, 25, 0.9), rgba(5, 30, 20, 0.9));
}

.board-cell.reflexion {
    border-color: rgba(102, 204, 255, 0.5);
    box-shadow: 0 0 15px rgba(102, 204, 255, 0.3);
    background: linear-gradient(135deg, rgba(10, 25, 40, 0.9), rgba(5, 20, 30, 0.9));
}

/* Estilos mejorados para el tipo de casilla */
.board-cell.obstaculo p:last-child {
    background: rgba(255, 153, 0, 0.2);
    border-color: rgba(255, 153, 0, 0.3);
    color: #ff9900;
}

.board-cell.enemigo p:last-child {
    background: rgba(255, 51, 102, 0.2);
    border-color: rgba(255, 51, 102, 0.3);
    color: #ff3366;
}

.board-cell.desastre p:last-child {
    background: rgba(255, 0, 0, 0.2);
    border-color: rgba(255, 0, 0, 0.3);
    color: #ff0000;
}

.board-cell.evento p:last-child {
    background: rgba(255, 204, 0, 0.2);
    border-color: rgba(255, 204, 0, 0.3);
    color: #ffcc00;
}

.board-cell.mejora p:last-child {
    background: rgba(0, 255, 153, 0.2);
    border-color: rgba(0, 255, 153, 0.3);
    color: #00ff99;
}

.board-cell.reflexion p:last-child {
    background: rgba(102, 204, 255, 0.2);
    border-color: rgba(102, 204, 255, 0.3);
    color: #66ccff;
}

/* Animaciones mejoradas */
@keyframes scan {
    0% {
        top: 0;
        opacity: 0.7;
    }
    50% {
        opacity: 1;
    }
    100% {
        top: 100%;
        opacity: 0.7;
    }
}

@keyframes scan-line {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(100%);
    }
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.1);
        opacity: 0.8;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Responsive */
@media (max-width: 768px) {
    .board-container {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .board-cell {
        min-height: 100px;
    }
    
    .board-cell h3 {
        font-size: 1.5rem;
        min-width: 40px;
        min-height: 40px;
    }
}

@media (max-width: 480px) {
    .board-container {
        grid-template-columns: 1fr;
    }
}
