/* ============================================================
   Nexora — Installation Guide styles
   ============================================================ */
.nav-links a.active { color: var(--text); }

.guide-hero {
    padding: 140px 0 48px; text-align: center;
    background: radial-gradient(ellipse at 50% 0%, rgba(34, 211, 238, 0.10) 0%, transparent 60%);
}
.guide-hero h1 { font-size: 46px; font-weight: 800; line-height: 1.15; margin-bottom: 16px; }

.lang-toggle {
    display: inline-flex; gap: 4px; margin-top: 20px;
    background: var(--bg-card); border: 1px solid var(--border); border-radius: 10px; padding: 4px;
}
.lang-btn {
    padding: 6px 18px; border: none; background: transparent; color: var(--text-muted);
    border-radius: 7px; cursor: pointer; font-weight: 600; font-size: 13px; transition: all 0.2s;
}
.lang-btn:hover { color: var(--text); }
.lang-btn.active { background: var(--primary); color: #fff; }

.guide { padding: 8px 0 60px; }
.guide-grid { display: grid; grid-template-columns: 280px 1fr; gap: 40px; align-items: start; }

.guide-toc {
    position: sticky; top: 96px;
    background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius);
    padding: 20px;
}
.guide-toc h4 { font-size: 13px; text-transform: uppercase; letter-spacing: 0.6px; color: var(--text-muted); margin-bottom: 12px; }
.guide-toc a {
    display: block; padding: 7px 10px; border-radius: 7px;
    color: var(--text-muted); font-size: 13px; font-weight: 500; transition: all 0.2s;
}
.guide-toc a:hover { color: var(--text); background: rgba(124, 92, 252, 0.08); }

.guide-section {
    background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius);
    padding: 30px 32px; margin-bottom: 22px;
    opacity: 0; transform: translateY(14px); transition: opacity 0.45s ease, transform 0.45s ease;
}
.guide-section.in { opacity: 1; transform: none; }
.guide-section h2 { font-size: 21px; margin-bottom: 14px; display: flex; align-items: center; gap: 12px; }
.guide-section h4 { font-size: 14px; margin: 18px 0 8px; }
.guide-section p, .guide-section li { color: var(--text-muted); font-size: 14px; }
.guide-section p { margin-bottom: 10px; }
.guide-section ul { margin: 6px 0 14px; padding-left: 20px; }
.guide-section li { margin-bottom: 8px; }
.guide-section li b { color: var(--text); }

.step-chip {
    width: 32px; height: 32px; border-radius: 50%; flex-shrink: 0;
    background: var(--gradient); color: #fff; display: inline-flex; align-items: center; justify-content: center;
    font-weight: 700; font-size: 15px;
}

.code-block {
    position: relative; background: #0d0d15; border: 1px solid var(--border); border-radius: 10px;
    padding: 18px 20px; margin: 12px 0;
}
.code-block code {
    font-family: 'Fira Code', ui-monospace, SFMono-Regular, monospace;
    font-size: 13px; line-height: 1.7; color: var(--secondary);
    word-break: break-all; white-space: pre-wrap; display: block;
}
.copy-btn {
    position: absolute; top: 10px; right: 10px;
    background: var(--bg-card); border: 1px solid var(--border); color: var(--text-muted);
    border-radius: 6px; padding: 4px 10px; font-size: 12px; font-weight: 600; cursor: pointer; transition: all 0.2s;
}
.copy-btn:hover { color: var(--text); border-color: var(--primary); }

.guide-section .btn { margin-top: 4px; }

.hint, .good, .info {
    padding: 12px 16px; border-radius: 8px; font-size: 13px; margin: 14px 0; line-height: 1.6;
}
.hint { background: rgba(245, 158, 11, 0.08); border: 1px solid rgba(245, 158, 11, 0.25); color: var(--warning); }
.good { background: rgba(34, 197, 94, 0.08); border: 1px solid rgba(34, 197, 94, 0.25); color: var(--success); }
.info { background: rgba(34, 211, 238, 0.08); border: 1px solid rgba(34, 211, 238, 0.25); color: var(--secondary); }

table.spec { width: 100%; margin: 12px 0; }
table.spec td { padding: 10px 12px; font-size: 13.5px; }
table.spec td:first-child { color: var(--text-muted); font-weight: 500; width: 42%; }

.faq-item { padding: 14px 0; border-top: 1px solid var(--border); }
.faq-item:first-of-type { border-top: none; }
.faq-item h4 { font-size: 14.5px; margin: 0 0 6px; color: var(--text); }
.faq-item p { margin: 0 0 10px; }

.cta-band { padding: 70px 0; text-align: center; border-top: 1px solid var(--border); }
.cta-band h2 { font-size: 30px; font-weight: 800; margin-bottom: 10px; }
.cta-band p { color: var(--text-muted); margin-bottom: 26px; }

/* RTL (Arabic) */
body.rtl { direction: rtl; text-align: right; }
body.rtl .guide-toc, body.rtl .guide-section { text-align: right; }
body.rtl .guide-section ul { padding-left: 0; padding-right: 20px; }
body.rtl .code-block { direction: ltr; text-align: left; }
body.rtl .copy-btn { right: auto; left: 10px; }
body.rtl .step-chip { order: 2; }
body.rtl table.spec td { text-align: right; }

@media (max-width: 900px) {
    .guide-grid { grid-template-columns: 1fr; }
    .guide-toc { position: static; }
    .guide-hero h1 { font-size: 32px; }
}