/* css/guide.css - Stile per Manuali Operativi */

.guide-container {
    padding: 10px 0;
}

/* Griglia del Menu Iniziale */
.guide-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    animation: fadeIn 0.5s ease;
}

.guide-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 30px 25px;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.guide-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 4px;
    background: linear-gradient(90deg, transparent, var(--primary), transparent);
    opacity: 0;
    transition: opacity 0.3s;
}

.guide-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
    box-shadow: 0 15px 35px rgba(0, 255, 255, 0.15);
}

.guide-card:hover::before {
    opacity: 1;
}

.guide-icon {
    width: 70px;
    height: 70px;
    background: rgba(0, 255, 255, 0.05);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    font-size: 30px;
    color: var(--primary);
    border: 1px solid rgba(0, 255, 255, 0.3);
    box-shadow: 0 0 15px rgba(0, 255, 255, 0.1) inset;
    transition: all 0.3s ease;
}

.guide-card:hover .guide-icon {
    background: var(--primary);
    color: var(--bg-dark);
    box-shadow: 0 0 20px var(--primary-glow);
    transform: scale(1.1);
}

.guide-card h3 {
    font-family: 'Orbitron', sans-serif;
    color: var(--text-main);
    margin-bottom: 15px;
    font-size: 1.3rem;
    letter-spacing: 1px;
}

.guide-card p {
    color: var(--text-muted);
    margin-bottom: 25px;
    line-height: 1.6;
    font-size: 0.95rem;
}

.guide-tag {
    display: inline-block;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: bold;
    letter-spacing: 1px;
}

.tag-base { background: rgba(0, 255, 255, 0.1); color: var(--primary); border: 1px solid var(--primary); }
.tag-intermedio { background: rgba(255, 0, 255, 0.1); color: var(--secondary); border: 1px solid var(--secondary); }
.tag-avanzato { background: rgba(255, 170, 0, 0.1); color: var(--warning); border: 1px solid var(--warning); }

/* CONTENUTO DELLA GUIDA SELEZIONATA */
.guide-content {
    display: none; /* Gestito da JS */
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.4s ease;
}

.guide-content.active {
    opacity: 1;
    transform: translateY(0);
}

.guide-article {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 40px;
    backdrop-filter: blur(10px);
    margin-top: 20px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.5);
}

.article-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    color: var(--primary);
}

.article-header i {
    font-size: 2.5rem;
    text-shadow: 0 0 15px currentColor;
}

.article-header h2 {
    font-family: 'Orbitron', sans-serif;
    font-size: 2rem;
    letter-spacing: 2px;
    margin: 0;
}

.guide-article h3 {
    font-family: 'Orbitron', sans-serif;
    color: var(--text-main);
    margin: 35px 0 15px 0;
    font-size: 1.3rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.guide-article h3 i {
    color: var(--primary);
}

.intro-text {
    font-size: 1.15rem;
    line-height: 1.8;
    color: var(--text-main);
    margin-bottom: 30px;
    font-weight: 300;
}

.guide-article p {
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 15px;
    font-size: 1rem;
}

/* INFO BOXES STILE CYBERPUNK */
.info-box {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    padding: 25px;
    border-radius: 12px;
    margin: 30px 0;
    background: rgba(0,0,0,0.4);
    border-left: 4px solid;
}

.info-box i {
    font-size: 2rem;
    margin-top: 5px;
}

.info-box strong {
    display: block;
    font-family: 'Orbitron', sans-serif;
    font-size: 1.1rem;
    margin-bottom: 8px;
    letter-spacing: 1px;
}

.info-box p {
    margin: 0;
    font-size: 0.95rem;
}

.info-blue { border-left-color: var(--primary); background: rgba(0, 255, 255, 0.05); }
.info-blue i, .info-blue strong { color: var(--primary); }

.info-purple { border-left-color: var(--secondary); background: rgba(255, 0, 255, 0.05); }
.info-purple i, .info-purple strong { color: var(--secondary); }

.info-yellow { border-left-color: var(--warning); background: rgba(255, 170, 0, 0.05); }
.info-yellow i, .info-yellow strong { color: var(--warning); }

/* LISTE E BADGES DENTRO LA GUIDA */
.feature-list {
    list-style: none;
    padding: 0;
}

.feature-list li {
    position: relative;
    padding-left: 25px;
    margin-bottom: 15px;
    color: var(--text-muted);
    line-height: 1.6;
}

.feature-list li::before {
    content: '►';
    position: absolute;
    left: 0;
    top: 2px;
    color: var(--primary);
    font-size: 0.8rem;
}

.badge {
    padding: 4px 10px;
    border-radius: 12px;
    font-family: 'Orbitron', sans-serif;
    font-size: 0.75rem;
    font-weight: bold;
    margin-right: 8px;
}
.badge-new { background: rgba(0, 255, 136, 0.15); border: 1px solid var(--success); color: var(--success); }
.badge-lost { background: rgba(255, 51, 102, 0.15); border: 1px solid var(--error); color: var(--error); }
.badge-ghost { background: rgba(255, 255, 255, 0.1); border: 1px solid #aaa; color: #ccc; }

/* LEGENDA COLORI MAPPA */
.color-legend {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-top: 20px;
}

.legend-box {
    display: flex;
    align-items: center;
    gap: 15px;
    background: rgba(0,0,0,0.3);
    padding: 15px;
    border-radius: 8px;
    border: 1px solid rgba(255,255,255,0.05);
}

.legend-box .dot {
    width: 15px;
    height: 15px;
    border-radius: 50%;
    flex-shrink: 0;
}

/* RESPONSIVE */
@media (max-width: 992px) {
    .guide-article {
        padding: 25px;
    }
    
    .article-header h2 {
        font-size: 1.5rem;
    }
    
    .color-legend {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .info-box {
        flex-direction: column;
        gap: 10px;
        padding: 20px;
    }
}