/* Stile base per il container documentazione */
.doc-container {
    display: flex;
    height: 100vh;
    background: linear-gradient(to right, rgba(5, 15, 30, 0.9), rgba(10, 25, 50, 0.8));
    box-shadow: 0 0 15px rgba(0, 200, 255, 0.1);
    border-radius: 5px;
    overflow: hidden;
}

/* Sidebar con effetto cyber */
.doc-sidebar {
    width: 25%;
    background: rgba(12, 22, 36, 0.9);
    padding: 20px;
    overflow-y: auto;
    border-right: 1px solid rgba(0, 195, 255, 0.3);
    position: relative;
}

/* Effetto overlay sulla sidebar */
.doc-sidebar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0, 195, 255, 0.05), transparent);
    pointer-events: none;
    z-index: 1;
}

/* Contenitore dei capitoli */
.doc-chapters {
    position: relative;
    z-index: 2;
}

/* Titolo della sezione documentazione */
.doc-section-title {
    color: #00c3ff;
    font-size: 1.4em;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 30px;
    text-align: center;
    font-weight: 600;
    text-shadow: 0 0 10px rgba(0, 195, 255, 0.5);
    position: relative;
    padding-bottom: 15px;
}

.doc-section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    height: 1px;
    background: linear-gradient(to right, transparent, rgba(0, 195, 255, 0.7), transparent);
}
/* Stili ottimizzati per i menu con frecce */

/* Container documentazione */
.doc-container {
    display: flex;
    min-height: calc(100vh - 180px);
    background: linear-gradient(to right, rgba(5, 15, 30, 0.8), rgba(10, 25, 50, 0.7));
    border-radius: 5px;
    overflow: hidden;
    margin-bottom: 20px;
}

/* Sidebar */
.doc-sidebar {
    width: 28%;
    background: rgba(12, 22, 36, 0.8);
    padding: 20px;
    overflow-y: auto;
    border-right: 1px solid rgba(0, 195, 255, 0.3);
    position: relative;
}

/* Contenuto */
.doc-content {
    width: 72%;
    padding: 25px;
    overflow-y: auto;
    background-color: rgba(16, 28, 41, 0.7);
    color: #c5dae0;
    position: relative;
    line-height: 1.6;

    border-top: 1px solid rgba(0, 195, 255, 0.5);
    border-bottom: 1px solid rgba(0, 195, 255, 0.5);
    box-shadow:
        0 0 18px rgba(0, 195, 255, 0.16),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);

    background-image:
        linear-gradient(#00c3ff, #00c3ff),
        linear-gradient(#00c3ff, #00c3ff),
        linear-gradient(#00c3ff, #00c3ff),
        linear-gradient(#00c3ff, #00c3ff),
        linear-gradient(#00c3ff, #00c3ff),
        linear-gradient(#00c3ff, #00c3ff),
        linear-gradient(#00c3ff, #00c3ff),
        linear-gradient(#00c3ff, #00c3ff);
    background-repeat: no-repeat;
    background-size:
        18px 2px, 2px 18px,
        18px 2px, 2px 18px,
        18px 2px, 2px 18px,
        18px 2px, 2px 18px;
    background-position:
        top left, top left,
        top right, top right,
        bottom right, bottom right,
        bottom left, bottom left;
}

/* Titoli e headings */
.doc-sidebar h4 {
    color: #00c3ff;
    font-size: 1.3em;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin: 0 0 20px;
    text-align: center;
    font-weight: 600;
    text-shadow: 0 0 10px rgba(0, 195, 255, 0.5);
    position: relative;
    padding-bottom: 10px;
}

.doc-sidebar h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    height: 1px;
    background: linear-gradient(to right, transparent, rgba(0, 195, 255, 0.7), transparent);
}

.doc-sidebar h5 {
    color: rgba(0, 195, 255, 0.9);
    font-size: 1.1em;
    margin: 20px 0 10px;
    padding-left: 10px;
    border-left: 2px solid rgba(0, 195, 255, 0.5);
    position: relative;
}

/* Campo di ricerca */
.doc-search {
    position: relative;
    margin-bottom: 20px;
}

.doc-search input {
    width: 100%;
    padding: 10px 40px 10px 15px;
    background: rgba(10, 20, 35, 0.5);
    color: #d7e6f0;
    border: 1px solid rgba(0, 195, 255, 0.3);
    border-radius: 4px;
    font-size: 0.9em;
    transition: all 0.3s;
}

/* PARTE PRINCIPALE: STILE DEI LINK DEI CAPITOLI CON FRECCE */
/* PARTE PRINCIPALE: STILE DEI LINK DEI CAPITOLI CON FRECCE */
.doc-chapter-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 15px;
    margin-bottom: 8px;
    cursor: pointer;
    border-radius: 5px;
    background: rgba(15, 35, 60, 0.5);
    color: rgba(200, 230, 255, 0.8);
    font-size: 0.92em;
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 195, 255, 0.1);
    position: relative;
    overflow: hidden;
}

/* Aggiunge le frecce tramite pseudo-elemento */
.doc-chapter-link::after {
    content: "\f054"; /* Unicode per fa-chevron-right */
    font-family: "Font Awesome 5 Free";
    font-weight: 900; 
    font-size: 0.8em;
    margin-left: auto; /* Spinge la freccia a destra */
    padding-left: 10px; /* Spazio tra testo e freccia */
    color: #00c3ff;
    transition: all 0.3s ease;
    z-index: 1;
}

/* Hover sui capitoli */
.doc-chapter-link:hover {
    background: rgba(0, 195, 255, 0.1);
    box-shadow: 0 0 12px rgba(0, 195, 255, 0.2);
    color: #fff;
    border-color: rgba(0, 195, 255, 0.3);
    transform: translateY(-2px);
}

.doc-chapter-link:hover::after {
    transform: translateX(3px);
    color: #00eeff;
    text-shadow: 0 0 8px rgba(0, 238, 255, 0.5);
}

/* Capitolo attivo */
.doc-chapter-link.active {
    background: rgba(0, 123, 255, 0.3);
    color: #fff;
    border-color: rgba(0, 195, 255, 0.5);
    box-shadow: 0 0 15px rgba(0, 195, 255, 0.3);
}

.doc-chapter-link.active::after {
    color: #00eeff;
    opacity: 1;
}

/* Effetto scanning sul hover */
.doc-chapter-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 195, 255, 0.2), transparent);
    transition: left 0.5s ease;
    z-index: 0;
}

.doc-chapter-link:hover::before {
    left: 100%;
}

/* Responsive */
@media (max-width: 992px) {
    .doc-container {
        flex-direction: column;
    }
    
    .doc-sidebar, .doc-content {
        width: 100%;
    }
    
    .doc-sidebar {
        max-height: 400px;
        border-right: none;
        border-bottom: 1px solid rgba(0, 195, 255, 0.3);
    }
}
/* Contenuto della documentazione */
.doc-content {
    width: 75%;
    padding: 30px;
    overflow-y: auto;
    background-color: rgba(16, 28, 41, 0.9);
    color: #c5dae0;
    font-size: 0.95em;
    position: relative;
    line-height: 1.6;
}

/* Effetto overlay sul contenuto */
.doc-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 120px;
    background: linear-gradient(to bottom, rgba(0, 195, 255, 0.03), transparent);
    pointer-events: none;
    z-index: 0;
}

/* Titolo del documento */
.doc-title {
    color: #00c3ff;
    font-size: 1.8em;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(0, 195, 255, 0.2);
    text-transform: uppercase;
    letter-spacing: 2px;
    position: relative;
    z-index: 1;
}

.doc-title::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100px;
    height: 2px;
    background: linear-gradient(to right, #00c3ff, transparent);
}

/* Sottotitoli */
.doc-content h2 {
    color: rgba(0, 195, 255, 0.9);
    font-size: 1.5em;
    margin: 30px 0 15px;
    padding-left: 15px;
    border-left: 3px solid rgba(0, 195, 255, 0.5);
    position: relative;
    z-index: 1;
}

.doc-content h3 {
    color: rgba(0, 195, 255, 0.8);
    font-size: 1.3em;
    margin: 25px 0 15px;
    position: relative;
    z-index: 1;
}

/* Paragrafi */
.doc-content p {
    margin-bottom: 15px;
    color: rgba(200, 230, 255, 0.85);
    text-align: justify;
    position: relative;
    z-index: 1;
}

/* Barra di ricerca */
.search-bar {
    position: relative;
    margin-bottom: 1rem;
}

#search-input {
    width: 100%;
    padding: 10px 40px 10px 15px;
    background: rgba(10, 20, 35, 0.5);
    color: #d7e6f0;
    border: 1px solid rgba(0, 195, 255, 0.3);
    border-radius: 4px;
    font-size: 0.9em;
    transition: all 0.3s;
}

#search-input:focus {
    outline: none;
    box-shadow: 0 0 10px rgba(0, 195, 255, 0.3);
    background: rgba(15, 25, 40, 0.7);
    border-color: rgba(0, 195, 255, 0.5);
}

/* Aggiungi icona di ricerca con pseudo-elemento sul contenitore */
.search-bar::after {
    content: '\f002'; /* Unicode per fa-search */
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(0, 195, 255, 0.6);
    pointer-events: none;
}

/* Placeholder della ricerca */
#search-input::placeholder {
    color: rgba(200, 230, 255, 0.4);
}

/* Sovrascrivi lo stile doc-form-control se necessario */
.doc-form-control {
    /* Mantieni gli stili esistenti, ma assicurati che non interferiscano */
    background: rgba(10, 20, 35, 0.5) !important;
    color: #d7e6f0 !important;
    border: 1px solid rgba(0, 195, 255, 0.3) !important;
}
/* Responsive */
@media (max-width: 768px) {
    .doc-container {
        flex-direction: column;
    }
    
    .doc-sidebar, .doc-content {
        width: 100%;
        height: auto;
    }
    
    .doc-sidebar {
        max-height: 300px;
    }
}

/* Evidenziazione del testo */
.doc-highlight {
    background: rgba(0, 195, 255, 0.15);
    color: #fff;
    padding: 0 5px;
    border-radius: 3px;
}

/* Blocco codice */
.doc-code {
    background: rgba(5, 10, 20, 0.7);
    padding: 15px;
    border-radius: 5px;
    border-left: 3px solid rgba(0, 195, 255, 0.5);
    overflow-x: auto;
    margin: 15px 0;
    font-family: 'Courier New', monospace;
    position: relative;
}

.doc-code::before {
    content: 'CODE';
    position: absolute;
    top: 5px;
    right: 10px;
    font-size: 0.7em;
    color: rgba(0, 195, 255, 0.5);
    letter-spacing: 1px;
}

/* Blocco nota */
.doc-note {
    background: rgba(0, 195, 255, 0.05);
    padding: 15px 15px 15px 50px;
    border-radius: 5px;
    margin: 20px 0;
    position: relative;
}

.doc-note::before {
    content: '\f05a'; /* Unicode per fa-info-circle */
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    position: absolute;
    left: 15px;
    top: 15px;
    font-size: 1.5em;
    color: rgba(0, 195, 255, 0.7);
}

/* Tabelle */
.doc-table {
    width: 100%;
    margin: 20px 0;
    border-collapse: collapse;
}

.doc-table th {
    background: rgba(0, 123, 255, 0.2);
    color: #fff;
    padding: 12px 15px;
    text-align: left;
    font-weight: 500;
    text-transform: uppercase;
    font-size: 0.9em;
    letter-spacing: 1px;
    border-bottom: 2px solid rgba(0, 195, 255, 0.5);
}

.doc-table td {
    padding: 10px 15px;
    border-bottom: 1px solid rgba(0, 195, 255, 0.1);
    color: rgba(200, 230, 255, 0.9);
}

.doc-table tr:nth-child(even) {
    background: rgba(0, 123, 255, 0.05);
}

.doc-table tr:hover {
    background: rgba(0, 123, 255, 0.1);
}

/* Pulsanti di navigazione */
.doc-nav {
    display: flex;
    justify-content: space-between;
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid rgba(0, 195, 255, 0.2);
}

.doc-nav-button {
    padding: 10px 20px;
    border: 1px solid rgba(0, 195, 255, 0.3);
    background: rgba(0, 123, 255, 0.1);
    color: rgba(200, 230, 255, 0.9);
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.doc-nav-button:hover {
    background: rgba(0, 123, 255, 0.2);
    border-color: rgba(0, 195, 255, 0.5);
    box-shadow: 0 0 10px rgba(0, 195, 255, 0.2);
}

.doc-nav-prev::before {
    content: '\f053'; /* Unicode per fa-chevron-left */
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
}

.doc-nav-next::after {
    content: '\f054'; /* Unicode per fa-chevron-right */
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
}

@media (max-width: 768px) {
    .doc-container {
        flex-direction: column;
    }
    .doc-sidebar, .doc-content {
        width: 100%;
    }
}

/*SEZIONE ELENCO EQUIPAGGIAMENTO SOLDIER*/
.holo-container {
    background-color: rgba(8, 15, 30, 0.75);
    color: #d7dbe6;
    padding: 20px;
}

.holo-header {
    text-align: center;
    margin-bottom: 30px;
}

.holo-header h2 {
    color: #00ffff;
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* Sezione Manuali */
.manual-section {
    border: 1px solid #00ffff;
    margin-bottom: 30px;
    background: linear-gradient(45deg, rgba(0,255,255,0.1) 0%, transparent 100%);
}

.holo-nav {
    display: flex;
    justify-content: center;
    padding: 15px;
    border-bottom: 1px solid #00ffff;
}

.holo-link {
    color: #00ffff;
    text-decoration: none;
    padding: 8px 20px;
    margin: 0 10px;
    border: 1px solid transparent;
    transition: all 0.3s ease;
    text-align: center;
}

.holo-link.active {
    border-color: #00ffff;
    box-shadow: 0 0 10px rgba(0,255,255,0.3);
}

.article-container {
    padding: 20px;
}

.article {
    display: none;
}

.article.active {
    display: block;
}

/* Sezione Equipaggiamenti */
.holo-categories {
    display: flex;
    justify-content: center;
    margin-bottom: 30px;
}

.category {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 0 20px;
    padding: 15px;
    cursor: pointer;
    border: 1px solid transparent;
    transition: all 0.3s ease;
}

.category.active {
    border-color: #00ffff;
    box-shadow: 0 0 15px rgba(0,255,255,0.2);
}

.cat-icon i {
    font-size: 24px;
    margin-bottom: 8px;
    color: #00ffff;
    transition: all 0.3s ease;
}

.category:hover .cat-icon i {
    transform: scale(1.1);
    text-shadow: 0 0 10px rgba(0,255,255,0.5);
}

/* Tab categorie degli archivi equip: vanno a capo quando lo spazio si stringe (chat aperta, mobile)
   invece di uscire dal riquadro. Regole limitate a .holo-categories: .category è un nome generico. */
.holo-categories {
    flex-wrap: wrap;
    gap: 10px;
}

.holo-categories .category {
    flex: 1 1 110px;
    max-width: 170px;
    margin: 0;
    padding: 12px 8px;
    text-align: center;
}

.holo-categories .cat-name {
    font-size: 0.85em;
    line-height: 1.25;
    hyphens: none;
}

.holo-item {
    display: flex;
    margin: 20px 0;
    padding: 20px;
    border: 1px solid #00ffff;
    background: linear-gradient(45deg, rgba(0,255,255,0.05) 0%, transparent 100%);
    position: relative;
    overflow: hidden;
}

.holo-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, #00ffff, transparent);
}

.item-image {
    flex: 0 0 250px;
    margin-right: 20px;
    position: relative;
}

.item-details {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.item-name {
    color: #00ffff;
    font-size: 1.4em;
    margin: 0;
    padding: 5px 0;
    border-bottom: 1px solid rgba(0, 255, 255, 0.3);
}

.item-main-stats, .item-combat-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
    padding: 10px;
    background: rgba(0, 255, 255, 0.03);
    border-left: 2px solid #00ffff;
}

.stat-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.stat-label {
    color: rgba(0, 255, 255, 0.7);
    font-size: 0.8em;
    font-weight: bold;
    letter-spacing: 1px;
}

.stat-value {
    color: rgb(177, 224, 237, 0.87);
    font-size: 1.1em;
}

.item-description {
    margin-top: 15px;
    padding: 15px;
    background: rgba(0, 0, 0, 0.3);
    border-left: 2px solid #00ffff;
}

.desc-label {
    display: block;
    color: rgba(0, 255, 255, 0.7);
    font-size: 0.9em;
    margin-bottom: 10px;
    letter-spacing: 1px;
}

.desc-content {
    color: rgb(177, 224, 237, 0.87);
    line-height: 1.5;
    margin: 0;
    text-align: justify;
    font-size: 0.9em; /* Font più piccolo per la descrizione */
}

/* Effetto hover */
.holo-item:hover {
    box-shadow: 0 0 15px rgba(0, 255, 255, 0.1);
}
.article-preview {
    position: relative;
    min-height: 200px;     /* Aggiungiamo un'altezza minima */
    max-height: 220px;     /* Aumentiamo l'altezza massima */
    height: auto;          /* Lasciamo che si espanda naturalmente */
    overflow: hidden;
    transition: opacity 0.3s ease;
}

.article-preview::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 100px;        /* Aumentiamo anche l'area del fade-out */
    background: linear-gradient(to bottom, rgba(0,0,0,0), #000 90%); /* Gradiente più graduale */
    pointer-events: none;
}

.article-full {
    display: none;
}

.holo-button {
    background: transparent;
    border: 1px solid #00ffff;
    color: #00ffff;
    padding: 8px 16px;
    margin-top: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    font-size: 0.9em;
    display: flex;
    align-items: center;
    gap: 8px;
}

.holo-button:hover {
    background: rgba(0, 255, 255, 0.1);
    box-shadow: 0 0 10px rgba(0, 255, 255, 0.2);
}

.holo-button i {
    transition: transform 0.3s ease;
}

.holo-button:hover i {
    transform: translateY(2px);
}


.manual-section .article {
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

.manual-section .article.active {
    display: block;
    opacity: 1;
}

.holo-nav .holo-link {
    transition: all 0.3s ease;
}

.article-buttons {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.edit-article {
    background: transparent;
    border: 1px solid #ffcc00; /* Un colore diverso per distinguerlo */
    color: #ffcc00;
}

.edit-article:hover {
    background: rgba(255, 204, 0, 0.1);
    box-shadow: 0 0 10px rgba(255, 204, 0, 0.2);
}

.targets-checkboxes {
    display: flex;
    gap: 1rem;
    padding: 0.5rem;
    background: rgba(0,0,0,0.2);
    border-radius: 4px;
}

.targets-checkboxes .form-check {
    margin: 0;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    transition: background-color 0.2s;
}

.targets-checkboxes .form-check:hover {
    background: rgba(255,255,255,0.1);
}

.targets-checkboxes i {
    margin-right: 0.5rem;
    opacity: 0.7;
}

.requirements-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-top: 1rem;
}

.item-targets, .item-prerequisites {
    background: rgba(0,0,0,0.2);
    border-radius: 4px;
    padding: 0.8rem;
}

.target-label, .prereq-label {
    display: block;
    font-size: 0.8rem;
    color: #00ff00;
    margin-bottom: 0.8rem;
}

.target-icons {
    display: flex;
    gap: 1rem;
    align-items: center;
    justify-content: center; 
}

.target-icons i {
    font-size: 1.2rem;
    opacity: 0.8;
    transition: all 0.2s;
}

.target-icons i:hover {
    opacity: 1;
    transform: scale(1.1);
}

.prereq-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.prereq-type {
    color: rgba(255,255,255,0.7);
    font-size: 0.9rem;
}

.rank-icon {
    height: 20px;
    width: auto;
    vertical-align: middle;
    margin-left: 0.5rem;
}

.text-muted {
    color: rgba(255,255,255,0.5);
    font-style: italic;
}

.article {
    padding: 20px;
    margin-bottom: 20px;
    background: rgba(0, 0, 0, 0.2);  /* Mantiene lo stile holo con un leggero sfondo scuro */
    border-radius: 4px;
}

.article h3 {
    margin-bottom: 15px;
    color: #0af;  /* Colore azzurro "holo" */
}

.article-preview, 
.article-full {
    padding: 15px;
    line-height: 1.6;
    background: rgba(0, 0, 0, 0.1);  /* Un leggero contrasto per il contenuto */
    border-left: 3px solid #0af;     /* Bordo laterale stile "holo" */
    margin: 10px 0;
}

.single-stat {
    display: flex;
    justify-content: space-between;
    margin: 2px 0;
}

.stat-modifier {
    font-weight: bold;
    margin-left: 10px;
}

.positive {
    color: #2ecc71;
}

.negative {
    color: #e74c3c;
}
/* Stile per le immagini all'interno della documentazione */
img[src*="/img/grafica/docs/"] {
  max-width: 100%;
  height: auto;
  border: 1px solid rgba(0, 195, 255, .4);
  border-radius: 2px;
  box-shadow: var(--border-glow);
}
