/* 101_06_03_07 — Solo centro Help IT/DE.
   Il tema proviene dal layout condiviso: html[data-bs-theme].
   Nessun JS, cookie o selettore locale; nessuna interferenza con le altre pagine. */

/* La guida contiene card bianche con testi Bootstrap spesso ereditati dal tema
   scuro. Si definisce prima una base chiara esplicita anche per Light Mode. */
.help-container .help-section {
    background-color: #fff;
    color: #253247;
}
.help-container .section-title,
.help-container .feature-title,
.help-container .step-title,
.help-container .roadmap-content h4 {
    color: #253247;
}
.help-container .accordion-body {
    color: #28384c;
    background-color: #fff;
}
.help-container .feature-card { color: #253247; }
.help-container .alert-info { color: #164b66; }
.help-container .alert-warning { color: #633e0e; }
.help-container .alert-light { color: #253247; }
.help-container .support-box,
.help-container .support-box h3,
.help-container .support-box p { color: #fff; }

/* Utilizza esclusivamente la preferenza già risolta per tutto il progetto,
   compreso il profilo Dispositivo (system) sincronizzato dal layout base. */
html[data-bs-theme="dark"] .help-container {
    background: linear-gradient(135deg, #14243c 0%, #1b2136 100%) !important;
    color: #edf4fc;
}
html[data-bs-theme="dark"] .help-container .help-header,
html[data-bs-theme="dark"] .help-container .help-header h1,
html[data-bs-theme="dark"] .help-container .help-header p {
    color: #fff !important;
}
html[data-bs-theme="dark"] .help-container .help-section {
    background: #1c2b39 !important;
    border: 1px solid #435769;
    color: #edf4fc !important;
}
html[data-bs-theme="dark"] .help-container .section-title {
    color: #f1f6fc !important;
    border-bottom-color: #415568;
}
html[data-bs-theme="dark"] .help-container .feature-card,
html[data-bs-theme="dark"] .help-container .accordion-item,
html[data-bs-theme="dark"] .help-container .card,
html[data-bs-theme="dark"] .help-container .list-group-item {
    color: #edf4fc !important;
    background: #25394b !important;
    border-color: #4b6378 !important;
}
html[data-bs-theme="dark"] .help-container .feature-title,
html[data-bs-theme="dark"] .help-container .step-title,
html[data-bs-theme="dark"] .help-container .roadmap-content h4,
html[data-bs-theme="dark"] .help-container .accordion-body h3,
html[data-bs-theme="dark"] .help-container .accordion-body h4 {
    color: #f2f7fe !important;
}
html[data-bs-theme="dark"] .help-container .feature-desc,
html[data-bs-theme="dark"] .help-container .step-desc,
html[data-bs-theme="dark"] .help-container .roadmap-content p,
html[data-bs-theme="dark"] .help-container .help-search-status,
html[data-bs-theme="dark"] .help-container .text-muted,
html[data-bs-theme="dark"] .help-container .text-secondary {
    color: #cbd9e7 !important;
}
/* Il vecchio Help contiene 11 descrizioni per lingua con color inline.
   Senza l'override in Dark Mode, testo grigio scuro su pannelli scuri. */
html[data-bs-theme="dark"] .help-container p[style*="color: #4a5568"] {
    color: #cbd9e7 !important;
}
html[data-bs-theme="dark"] .help-container .install-step {
    background: linear-gradient(135deg, #293d51, #25364a) !important;
    border-left-color: #86adff;
    color: #edf4fc;
}
html[data-bs-theme="dark"] .help-container .roadmap-item {
    background: #273b4e !important;
    color: #edf4fc;
}
html[data-bs-theme="dark"] .help-container .accordion-header {
    color: #f1f7ff !important;
    background: #2b4154 !important;
}
html[data-bs-theme="dark"] .help-container .accordion-header:hover,
html[data-bs-theme="dark"] .help-container .accordion-header:focus-visible {
    background: #36516b !important;
}
html[data-bs-theme="dark"] .help-container .accordion-body {
    color: #eaf2fc !important;
    background: #25394b !important;
}
html[data-bs-theme="dark"] .help-container .accordion-icon { color: #a9c8ff; }
html[data-bs-theme="dark"] .help-container .help-search-label { color: #eff6ff; }
html[data-bs-theme="dark"] .help-container .help-search-input {
    color: #f1f7ff !important;
    background: #182b3c !important;
    border-color: #668098 !important;
}
html[data-bs-theme="dark"] .help-container .help-search-input::placeholder {
    color: #bed0e2;
    opacity: 1;
}
html[data-bs-theme="dark"] .help-container .quick-link {
    color: #d9e7ff;
    background: #263f5c;
    border-color: #617da1;
}
html[data-bs-theme="dark"] .help-container .quick-link:hover,
html[data-bs-theme="dark"] .help-container .quick-link:focus-visible {
    color: #fff;
    background: #2860a8;
    border-color: #9dc3f9;
}
html[data-bs-theme="dark"] .help-container .help-empty-state {
    color: #ffe5b4;
    background: #43341f;
    border-color: #a77d38;
}
/* Alert Bootstrap, box pastello/inline e card con contesto variabile.
   La superficie DEVE essere scura quando il testo è chiaro. */
html[data-bs-theme="dark"] .help-container .alert-info {
    color: #def2ff !important;
    background: #1d3b52 !important;
    border-color: #427d9d !important;
}
html[data-bs-theme="dark"] .help-container .alert-warning {
    color: #ffebbc !important;
    background: #47371c !important;
    border-color: #9b7636 !important;
}
html[data-bs-theme="dark"] .help-container .alert-light,
html[data-bs-theme="dark"] .help-container .bg-light {
    color: #eaf2fc !important;
    background: #304558 !important;
    border-color: #577086 !important;
}
html[data-bs-theme="dark"] .help-container .card-header:not(.bg-warning),
html[data-bs-theme="dark"] .help-container .card-body {
    color: #eaf2fc;
    background-color: #25394b;
}
/* Badge/card gialli sono intenzionalmente chiari: testo scuro leggibile. */
html[data-bs-theme="dark"] .help-container .bg-warning,
html[data-bs-theme="dark"] .help-container .bg-warning.text-dark {
    color: #372a0c !important;
    background: #ffda7b !important;
}
html[data-bs-theme="dark"] .help-container .text-dark:not(.bg-warning):not(.btn) {
    color: #edf4fc !important;
}
html[data-bs-theme="dark"] .help-container .alert a {
    color: #b9d9ff;
    text-decoration: underline;
}
html[data-bs-theme="dark"] .help-container .support-box,
html[data-bs-theme="dark"] .help-container .support-box h3,
html[data-bs-theme="dark"] .help-container .support-box p {
    color: #fff !important;
}
html[data-bs-theme="dark"] .help-container .help-back-to-top {
    color: #e5efff;
    background: #273c54;
    border-color: #718bab;
}
html[data-bs-theme="dark"] .help-container .help-back-to-top:hover,
html[data-bs-theme="dark"] .help-container .help-back-to-top:focus-visible {
    color: #fff;
    background: #315d9e;
}
