/* =============================
   Guide Pages — DARTH VADER
   ============================= */

.guide {
    max-width: 740px;
    margin: 0 auto;
}

.guide-header {
    text-align: center;
    margin-bottom: 40px;
}

.breadcrumb {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 20px;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.breadcrumb a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.2s;
}

.breadcrumb a:hover {
    color: var(--accent-light);
}

.breadcrumb span {
    color: var(--text-muted);
}

.guide-header h1 {
    font-size: clamp(1.8rem, 4vw, 2.6rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.1;
    margin-bottom: 16px;
    text-transform: uppercase;
}

.guide-subtitle {
    color: var(--text-secondary);
    font-size: 1rem;
    max-width: 600px;
    margin: 0 auto;
}

.guide-meta {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 16px;
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* CTA Box */
.cta-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 20px 24px;
    background: rgba(200, 30, 30, 0.06);
    border: 1px solid rgba(200, 30, 30, 0.2);
    border-radius: var(--radius);
    margin-bottom: 40px;
}

.cta-box.bottom {
    margin-top: 48px;
    margin-bottom: 0;
}

.cta-text strong {
    display: block;
    font-size: 0.9rem;
    margin-bottom: 4px;
}

.cta-text span {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.cta-btn {
    padding: 10px 24px;
    background: var(--accent);
    border: 1px solid var(--accent-light);
    border-radius: var(--radius-sm);
    color: white;
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    white-space: nowrap;
    transition: all 0.2s;
}

.cta-btn:hover {
    background: var(--accent-light);
    box-shadow: 0 4px 20px rgba(200, 30, 30, 0.3);
}

/* Guide Content */
.guide-content h2 {
    font-size: 1.15rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    margin: 36px 0 14px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--steel);
}

.guide-content p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.7;
    margin-bottom: 14px;
}

.guide-content a {
    color: var(--accent-light);
    text-decoration: none;
}

.guide-content a:hover {
    text-decoration: underline;
}

.guide-content ul,
.guide-content ol {
    margin: 14px 0 14px 24px;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.guide-content li {
    margin-bottom: 8px;
    line-height: 1.6;
}

.guide-content li strong {
    color: var(--text-primary);
}

.guide-content code {
    background: rgba(200, 30, 30, 0.08);
    padding: 2px 6px;
    border-radius: 3px;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--accent-light);
}

/* Code Examples */
.code-example {
    margin: 20px 0;
    background: var(--bg-panel);
    border: 1px solid var(--steel);
    border-radius: var(--radius);
    overflow: hidden;
}

.code-label {
    padding: 8px 16px;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--accent-light);
    border-bottom: 1px solid var(--steel);
    background: rgba(200, 30, 30, 0.03);
}

.code-example pre {
    padding: 16px;
    margin: 0;
    overflow-x: auto;
}

.code-example code {
    background: none;
    padding: 0;
    border-radius: 0;
    font-family: var(--font-mono);
    font-size: 0.82rem;
    line-height: 1.7;
    color: var(--text-primary);
}

/* FAQ Details */
.guide-content details {
    margin-bottom: 8px;
    background: var(--bg-card);
    border: 1px solid var(--steel);
    border-radius: var(--radius-sm);
    overflow: hidden;
}

.guide-content summary {
    padding: 14px 18px;
    font-weight: 700;
    font-size: 0.85rem;
    cursor: pointer;
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.guide-content summary::after {
    content: '+';
    font-size: 1.1rem;
    color: var(--accent);
}

.guide-content details[open] summary::after {
    content: '−';
}

.guide-content details p {
    padding: 0 18px 14px;
    margin: 0;
}

@media (max-width: 600px) {
    .cta-box {
        flex-direction: column;
        text-align: center;
    }

    .guide-content h2 {
        font-size: 1rem;
    }

    .tldr-box {
        padding: 16px 18px;
    }
}

/* ─── TL;DR Key Takeaways Box (GEO) ─── */
.tldr-box {
    background: linear-gradient(135deg, rgba(200, 30, 30, 0.06) 0%, rgba(200, 30, 30, 0.02) 100%);
    border: 1px solid rgba(200, 30, 30, 0.25);
    border-left: 4px solid var(--accent);
    border-radius: var(--radius);
    padding: 20px 24px;
    margin: 24px 0 32px;
}

.tldr-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--accent-light);
}

.tldr-icon {
    font-size: 1.1rem;
}

.tldr-box p {
    color: var(--text-primary);
    font-size: 0.9rem;
    line-height: 1.7;
    margin: 0;
}

/* ─── Affiliate Recommendation Panel ─── */
.affiliate-panel {
    background: linear-gradient(135deg, rgba(0, 170, 255, 0.05) 0%, rgba(0, 120, 200, 0.03) 100%);
    border: 1px solid rgba(0, 170, 255, 0.2);
    border-radius: var(--radius);
    padding: 24px;
    margin: 32px 0;
}

.affiliate-panel .affiliate-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    font-weight: 700;
    font-size: 0.95rem;
}

.affiliate-panel .affiliate-header .shield-icon {
    font-size: 1.3rem;
}

.affiliate-panel p {
    color: var(--text-secondary);
    font-size: 0.85rem;
    line-height: 1.6;
    margin-bottom: 16px;
}

.affiliate-panel .affiliate-links {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.affiliate-panel .affiliate-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 20px;
    background: rgba(0, 170, 255, 0.1);
    border: 1px solid rgba(0, 170, 255, 0.3);
    border-radius: var(--radius-sm);
    color: #4dc9ff;
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    transition: all 0.2s;
}

.affiliate-panel .affiliate-link:hover {
    background: rgba(0, 170, 255, 0.2);
    box-shadow: 0 4px 16px rgba(0, 170, 255, 0.2);
    transform: translateY(-1px);
}

.affiliate-panel .affiliate-link.primary {
    background: var(--accent);
    border-color: var(--accent-light);
    color: white;
}

.affiliate-panel .affiliate-link.primary:hover {
    background: var(--accent-light);
    box-shadow: 0 4px 16px rgba(200, 30, 30, 0.3);
}