/* Estilos para las cartas de componentes */

/* Estilos generales para todas las cartas */
.component-card {
    position: relative;
    width: 300px;
    height: 420px;
    background-color: rgba(0, 0, 0, 0.8);
    border: 2px solid rgba(0, 255, 255, 0.7);
    border-radius: 10px;
    padding: 15px;
    margin: 15px;
    box-shadow: 0 0 15px rgba(0, 255, 255, 0.5);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.component-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0, 255, 255, 0.7);
}

.component-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(0, 255, 255, 0.7), transparent);
    animation: scan-line 2s linear infinite;
}

.component-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(255, 0, 128, 0.7), transparent);
    animation: scan-line 2s linear infinite reverse;
}

.card-header {
    border-bottom: 1px solid rgba(0, 255, 255, 0.5);
    padding-bottom: 10px;
    margin-bottom: 15px;
    text-align: center;
}

.card-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.2rem;
    color: #00ffff;
    margin: 0;
    text-shadow: 0 0 5px rgba(0, 255, 255, 0.5);
}

.card-body {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.card-description {
    font-family: 'Exo 2', sans-serif;
    font-size: 0.9rem;
    color: #ffffff;
    margin-bottom: 15px;
    flex: 1;
}

.card-effect {
    background-color: rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(255, 0, 128, 0.5);
    border-radius: 5px;
    padding: 10px;
    font-family: 'Share Tech Mono', monospace;
    font-size: 0.9rem;
    color: #ff0080;
}

.card-difficulty {
    margin-top: 10px;
    text-align: center;
    font-family: 'Orbitron', sans-serif;
    font-size: 1.2rem;
    color: #ff0080;
}

/* Estilos específicos para cada tipo de carta */
.strategy-card {
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.8), rgba(0, 50, 100, 0.8));
    border-color: rgba(0, 150, 255, 0.7);
}

.strategy-card .card-title {
    color: #0096ff;
}

.strategy-card .card-effect {
    border-color: rgba(0, 150, 255, 0.5);
    color: #0096ff;
}

.obstacle-card {
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.8), rgba(100, 50, 0, 0.8));
    border-color: rgba(255, 150, 0, 0.7);
}

.obstacle-card .card-title {
    color: #ff9600;
}

.obstacle-card .card-difficulty {
    color: #ff9600;
}

.enemy-card {
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.8), rgba(100, 0, 0, 0.8));
    border-color: rgba(255, 0, 0, 0.7);
}

.enemy-card .card-title {
    color: #ff0000;
}

.enemy-card .card-difficulty {
    color: #ff0000;
}

.disaster-card {
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.8), rgba(100, 0, 50, 0.8));
    border-color: rgba(255, 0, 128, 0.7);
}

.disaster-card .card-title {
    color: #ff0080;
}

.disaster-card .card-difficulty {
    color: #ff0080;
}

.event-card {
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.8), rgba(50, 0, 100, 0.8));
    border-color: rgba(128, 0, 255, 0.7);
}

.event-card .card-title {
    color: #8000ff;
}

.event-card .card-effect {
    border-color: rgba(128, 0, 255, 0.5);
    color: #8000ff;
}

.reflection-card {
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.8), rgba(0, 100, 50, 0.8));
    border-color: rgba(0, 255, 128, 0.7);
}

.reflection-card .card-title {
    color: #00ff80;
}

.reflection-card .card-description {
    font-style: italic;
}

/* Estilos para los contenedores de cartas */
.cards-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin: 20px 0;
}

/* Estilos para fichas y marcadores */
.tokens-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    margin: 20px 0;
}

.token {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Orbitron', sans-serif;
    font-weight: bold;
    font-size: 1.2rem;
    box-shadow: 0 0 10px rgba(0, 255, 255, 0.5);
    transition: transform 0.3s ease;
}

.token:hover {
    transform: scale(1.1);
}

.hero-token {
    background: radial-gradient(circle, rgba(0, 255, 255, 0.7), rgba(0, 100, 100, 0.7));
    border: 2px solid #00ffff;
    color: #000;
}

.energy-token {
    background: radial-gradient(circle, rgba(255, 255, 0, 0.7), rgba(100, 100, 0, 0.7));
    border: 2px solid #ffff00;
    color: #000;
}

.power-token {
    background: radial-gradient(circle, rgba(255, 0, 255, 0.7), rgba(100, 0, 100, 0.7));
    border: 2px solid #ff00ff;
    color: #000;
}

.status-token {
    background: radial-gradient(circle, rgba(255, 0, 0, 0.7), rgba(100, 0, 0, 0.7));
    border: 2px solid #ff0000;
    color: #fff;
}

/* Estilos para impresión */
@media print {
    body {
        background: white;
        color: black;
    }
    
    .component-card {
        break-inside: avoid;
        page-break-inside: avoid;
        background-color: white;
        border: 1px solid black;
        box-shadow: none;
    }
    
    .component-card::before,
    .component-card::after {
        display: none;
    }
    
    .card-title {
        color: black;
        text-shadow: none;
    }
    
    .card-description {
        color: black;
    }
    
    .card-effect {
        border: 1px solid black;
        color: black;
        background-color: #f0f0f0;
    }
    
    .card-difficulty {
        color: black;
    }
    
    .token {
        border: 1px solid black;
        box-shadow: none;
        color: black;
        background: white;
    }
    
    .navigation,
    .scroll-indicator,
    .terminal-text,
    .particles,
    .grid-body-bg,
    .circuit-header-bg,
    .scan-line::before,
    .scan-line::after,
    .loading-bar {
        display: none !important;
    }
}
