/* shinobi/styles.css — per-product theme override for /shinobi/* pages.
   Loaded after base.css + brand-chrome.css by the auto-loader in head.php.
   Bare reset / html / nav / footer rules were removed in 2026-05-31 cleanup —
   they collided with the shared header.php + footer.php structure. */

/* Shinobi-specific color tokens. Override on `:root` so any `var()` call
   on shinobi pages picks up the dark-blue theme. */
:root {
    --bg: #0f1216;
    --panel: #161b22;
    --panel-2: #1c2230;
    --border: #2a3142;
    --text: #d8dee9;
    --text-muted: #8892a8;
    --text-dim: #5b6478;
    --accent: #7cb7ff;
    --accent-2: #b48cff;
}

/* Nav sizing — matches root-landing.css so nav width/spacing is consistent across all pages. */
.nav-container {
    max-width: 1400px;
    padding: 1.5rem 2rem;
}
.nav-links {
    gap: 2rem;
}

/* Body tone — overrides base.css for the dark-blue Shinobi vibe. */
.shinobi-page {
    background: var(--bg);
    color: var(--text);
    line-height: 1.55;
    max-width: 960px;
    margin-left: auto;
    margin-right: auto;
    padding: 4rem 1.5rem 6rem;
}

.shinobi-page section { margin-bottom: 6rem; }
.shinobi-page section h2 { font-size: 1.8rem; margin-bottom: 1.5rem; color: var(--text); }
.shinobi-page section h3 { font-size: 1.15rem; margin-bottom: 0.5rem; color: var(--text); }

.shinobi-page a { color: var(--accent); text-decoration: none; }
.shinobi-page a:hover { text-decoration: underline; }

.shinobi-page code, .shinobi-page pre { font-family: "JetBrains Mono", "Fira Code", Menlo, monospace; }

.hero { text-align: center; padding-top: 2rem; }
.hero h1 {
    font-size: 2.75rem;
    line-height: 1.15;
    margin-bottom: 1.25rem;
    letter-spacing: -0.02em;
    background: linear-gradient(90deg, var(--text) 0%, var(--accent) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
.hero .lead {
    font-size: 1.15rem;
    color: var(--text-muted);
    max-width: 680px;
    margin: 0 auto 2.25rem;
}
.lead-sm { color: var(--text-muted); margin-bottom: 1.5rem; }

.hero-demo {
    display: block;
    width: 100%;
    max-width: 900px;
    margin: 0 auto 2.5rem;
    border-radius: 10px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(255, 255, 255, 0.05);
    background: #000;
}

.cta { display: flex; gap: 0.75rem; justify-content: center; margin-bottom: 2.5rem; flex-wrap: wrap; }

/* Shinobi-page-scoped button variants (uses `.btn.primary` / `.btn.ghost` —
   different naming from the site-wide `.btn-primary` / `.btn-secondary`). */
.shinobi-page .btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    font-weight: 500;
    font-size: 0.95rem;
    transition: all 0.15s;
}
.shinobi-page .btn.primary { background: var(--accent); color: var(--bg); }
.shinobi-page .btn.primary:hover { background: #9bcaff; text-decoration: none; }
.shinobi-page .btn.ghost {
    background: transparent;
    color: var(--text);
    border: 1px solid var(--border);
}
.shinobi-page .btn.ghost:hover { background: var(--panel); text-decoration: none; border-color: var(--accent); }

.install-snippet {
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 1rem 1.25rem;
    text-align: left;
    font-size: 0.88rem;
    color: var(--text);
    max-width: 480px;
    margin: 0 auto;
    overflow-x: auto;
}
.install-snippet.wide { max-width: 100%; padding: 1.5rem; font-size: 0.9rem; }

.registry-badge { text-align: center; margin: 0 0 1.5rem; }
.registry-badge a {
    display: inline-block;
    padding: 0.45rem 1rem;
    border: 1px solid var(--accent);
    border-radius: 999px;
    color: var(--accent);
    font-size: 0.85rem;
    font-weight: 500;
    background: rgba(124, 183, 255, 0.08);
}
.registry-badge a:hover { background: rgba(124, 183, 255, 0.16); text-decoration: none; }

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.25rem;
}
.grid article {
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 1.25rem;
}
.grid article p { color: var(--text-muted); font-size: 0.93rem; }

.plans .plan { display: flex; flex-direction: column; }
.plans .price { font-size: 2rem; color: var(--text); margin: 0.5rem 0 1rem; }
.plans .price span { font-size: 1rem; color: var(--text-muted); font-weight: 400; }
.plans .plan ul { list-style: none; padding: 0; margin-bottom: 1.5rem; flex: 1; }
.plans .plan li { padding: 0.35rem 0; color: var(--text-muted); font-size: 0.9rem; border-bottom: 1px solid var(--border); }
.plans .plan li:last-child { border-bottom: none; }
.plans .plan .btn { align-self: stretch; text-align: center; }

#open-source { text-align: center; }
#open-source p { color: var(--text-muted); max-width: 580px; margin: 0 auto; }

.note { color: var(--text-muted); font-size: 0.9rem; margin-top: 1rem; }
.note a { text-decoration: underline; }
#open-source p a { text-decoration: underline; }

/* Cookie banner btn-primary on dark shinobi theme: --accent = #7cb7ff (light blue),
   white text gives only 2.06:1. Use dark text on the same bg instead (9.26:1). */
.cookie-banner .btn-primary { color: #0f1216; }

@media (max-width: 600px) {
    .hero h1 { font-size: 2rem; }
    .hero .lead { font-size: 1rem; }
}

/* Product Hunt badge — kept until ProductHunt launch sunset (~mid-June 2026). */
.ph-badge-wrap { display: flex; justify-content: center; margin-top: 2rem; }
.ph-badge {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    width: 100%;
    max-width: 480px;
    padding: 1rem 1.25rem;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: var(--panel);
}
.ph-badge-head { display: flex; gap: 0.875rem; align-items: center; }
.ph-badge-head img { width: 56px; height: 56px; border-radius: 8px; flex-shrink: 0; }
.ph-badge-name { margin: 0; font-size: 1rem; font-weight: 600; color: var(--text); }
.ph-badge-head p { margin: 0.15rem 0 0; color: var(--text-muted); font-size: 0.85rem; line-height: 1.35; }
.ph-badge-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.55rem 0.9rem;
    background: #b84726;
    color: #fff !important;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 600;
    text-decoration: none;
}
.ph-badge-cta:hover { background: #a33d1f; }

/* FAQ section — styles for faq-block.php partial (FAQPage JSON-LD rich snippets) */
.section-header { text-align: center; margin-bottom: 2rem; }
.faq-list { max-width: 820px; margin: 0 auto; display: grid; gap: 0.75rem; }
.faq-item {
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: 10px;
    transition: border-color 0.2s, background 0.2s;
}
.faq-item:hover { border-color: rgba(124, 183, 255, 0.3); }
.faq-item[open] { border-color: var(--accent); }
.faq-question {
    cursor: pointer;
    padding: 1.25rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text);
    list-style: none;
    position: relative;
    padding-right: 3rem;
}
.faq-question::-webkit-details-marker { display: none; }
.faq-question::after {
    content: '+';
    position: absolute;
    right: 1.5rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.5rem;
    color: var(--accent);
    line-height: 1;
}
.faq-item[open] .faq-question::after { content: '−'; }
.faq-answer {
    padding: 0 1.5rem 1.25rem 1.5rem;
    color: var(--text-muted);
    line-height: 1.7;
    margin: 0;
}
.faq-answer code { font-family: "JetBrains Mono", "Fira Code", Menlo, monospace; font-size: 0.875em; color: var(--accent); }

/* Install + plugins page layout */
.install-section { padding: 2rem 0 4rem; }
.plugins-section { padding: 2rem 0; }
.install-content { max-width: 800px; }
.install-content h2 { margin-top: 2.5rem; }
.install-content h3 { margin-top: 1.5rem; }
.install-content .note { margin-top: 2rem; text-align: center; }
.install-support-box {
    margin-top: 3rem;
    padding: 2rem;
    background: rgba(74, 158, 255, 0.08);
    border: 1px solid rgba(74, 158, 255, 0.3);
    border-radius: 12px;
    text-align: center;
}
.install-support-box h3 { margin-bottom: 0.5rem; }
.install-support-box p { color: var(--text-muted); margin-bottom: 1.5rem; }

/* Plugin API table */
.plugin-table {
    width: 100%;
    border-collapse: collapse;
    margin: 1rem 0;
    font-size: 0.875rem;
}
.plugin-table thead tr { border-bottom: 2px solid var(--border); }
.plugin-table th { text-align: left; padding: 0.5rem; }
.plugin-table td { padding: 0.5rem; border-bottom: 1px solid var(--border); }
.plugin-table tr:last-child td { border-bottom: none; }
