/* =============================================================
   learn.css — Panelr Help & Learn Section
   /var/www/panelr.app/learn/assets/learn.css
   ============================================================= */

/* ── Shared page wrapper ─────────────────────────────────────── */

.learn-page,
.faq-page,
.setup-page,
.learn-hub-page,
.article-page {
    padding-top: 96px;
    padding-bottom: 96px;
}

/* ── Shared intro block ──────────────────────────────────────── */

.learn-intro,
.faq-intro,
.setup-intro,
.learn-hub-intro {
    padding: 0 0 48px;
    border-bottom: 1px solid var(--border);
    margin-bottom: 48px;
}

/* ── Shared eyebrow / title / sub ────────────────────────────── */

.learn-eyebrow,
.faq-eyebrow,
.setup-eyebrow,
.learn-hub-eyebrow {
  font-size: 13pt;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--amber);
    margin-bottom: 12px;
}

.faq-title,
.setup-title,
.learn-hub-title {
    font-size: 22pt;
    font-weight: 600;
    letter-spacing: -0.03em;
    color: #fff;
    margin-bottom: 12px;
    line-height: 1.1;
}

.faq-sub,
.setup-sub,
.learn-hub-sub {
    font-size: 13pt;
    color: var(--text-muted);
    max-width: 620px;
    line-height: 1.7;
    margin: 0;
}

/* ── Shared back link ────────────────────────────────────────── */

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 11pt;
    color: var(--text-dim);
    text-decoration: none;
    margin-bottom: 32px;
    transition: color 0.15s;
}

.back-link:hover {
    color: var(--amber);
    text-decoration: none;
}

/* ── Shared section label ────────────────────────────────────── */

.hub-section-label,
.faq-group-label {
    font-size: 11pt;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-dim);
    margin-bottom: 16px;
}

/* ── Hub — index.php ─────────────────────────────────────────── */

.learn-hero {
    text-align: center;
    padding: 64px 0 56px;
    border-bottom: 1px solid var(--border);
    margin-bottom: 56px;
}

.learn-hero-eyebrow {
    font-size: 13pt;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--amber);
    margin-bottom: 12px;
}

.learn-hero-title {
    font-size: clamp(2rem, 3.2vw, 3rem);
    font-weight: 700;
    letter-spacing: -0.03em;
    color: #fff;
    margin-bottom: 14px;
    line-height: 1.1;
}

.learn-hero-sub {
    font-size: 14pt;
    color: var(--text-muted);
    line-height: 1.7;
	margin-bottom:20pt;
}

/* Search */
.learn-search-wrap {
    max-width: 480px;
    margin: 0 auto;
    position: relative;
}

.learn-search-wrap input {
    width: 100%;
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 12px 16px 12px 44px;
    font-size: 12pt;
    color: #fff;
    outline: none;
    transition: border-color 0.2s;
}

.learn-search-wrap input::placeholder {
    color: var(--text-dim);
}

.learn-search-wrap input:focus {
    border-color: var(--amber);
}

.learn-search-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-dim);
    font-size: 14pt;
}

.learn-search-results {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: 10px;
    overflow: hidden;
    z-index: 200;
    display: none;
}

.learn-search-result {
    display: block;
    padding: 10px 16px;
    text-decoration: none;
    border-bottom: 1px solid var(--border);
    transition: background 0.15s;
}

.learn-search-result:last-child {
    border-bottom: none;
}

.learn-search-result:hover {
    background: rgba(255,255,255,0.05);
    text-decoration: none;
}

.learn-search-result-title {
    font-size: 11pt;
    font-weight: 600;
    color: #fff;
    margin-bottom: 2px;
}

.learn-search-result-crumb {
    font-size: 9pt;
    color: var(--text-dim);
}

.learn-search-empty {
    padding: 16px;
    font-size: 11pt;
    color: var(--text-dim);
    text-align: center;
}

/* Hub cards */
.hub-card {
    display: block;
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 24px;
    text-decoration: none;
    transition: border-color 0.2s, background 0.2s, transform 0.15s;
    height: 100%;
}

.hub-card:hover {
    border-color: var(--amber);
    background: rgba(255,255,255,0.03);
    transform: translateY(-2px);
    text-decoration: none;
}

.hub-card-icon {
    font-size: 22pt;
    margin-bottom: 14px;
    color: var(--amber);
}

.hub-card-title {
    font-size: 14pt;
    font-weight: 600;
    color: #fff;
    margin-bottom: 6px;
    letter-spacing: -0.01em;
}

.hub-card-desc {
    font-size: 12pt;
    color: var(--text-muted);
    line-height: 1.6;
    margin: 0;
}

.hub-card-meta {
    margin-top: 11pt;
    font-size: 9pt;
    color: var(--text-dim);
}

/* Learn section grid */
.learn-grid-section {
    margin-top: 56px;
}

.learn-section-card {
    display: block;
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 18px 20px;
    text-decoration: none;
    transition: border-color 0.2s, transform 0.15s;
    height: 100%;
}

.learn-section-card:hover {
    border-color: var(--amber);
    transform: translateY(-2px);
    text-decoration: none;
}

.learn-section-card-title {
    font-size: 13pt;
    font-weight: 600;
    color: #fff;
    margin-bottom: 4px;
}

.learn-section-card-count {
    font-size: 11pt;
    color: var(--text-dim);
}

/* ── FAQ — faq.php ───────────────────────────────────────────── */

.faq-group {
    margin-bottom: 48px;
}

.faq-item {
    border: 1px solid var(--border);
    border-radius: 10px;
    margin-bottom: 8px;
    overflow: hidden;
    transition: border-color 0.2s;
}

.faq-item.open {
    border-color: var(--amber);
}

.faq-question {
    width: 100%;
    background: var(--panel);
    border: none;
    text-align: left;
    padding: 16px 20px;
    font-size: 12pt;
    font-weight: 600;
    color: #fff;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    transition: background 0.15s;
}

.faq-question:hover {
    background: rgba(255,255,255,0.04);
}

.faq-question-icon {
    color: var(--amber);
    font-size: 11pt;
    flex-shrink: 0;
    transition: transform 0.2s;
}

.faq-item.open .faq-question-icon {
    transform: rotate(180deg);
}

.faq-answer {
    display: none;
    padding: 0 20px 18px;
    background: var(--panel);
    font-size: 12pt;
    line-height: 1.75;
    color: var(--text-muted);
}

.faq-answer a {
    color: var(--amber);
    text-decoration: none;
}

.faq-answer a:hover {
    text-decoration: underline;
}

.faq-item.open .faq-answer {
    display: block;
}

/* ── Setup — setup.php ───────────────────────────────────────── */

.setup-steps {
    list-style: none;
    padding: 0;
    margin: 0;
    max-width: 680px;
}

.setup-step {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    padding: 24px 0;
    border-bottom: 1px solid var(--border);
    text-decoration: none;
    transition: background 0.15s;
}

.setup-step:last-child {
    border-bottom: none;
}

.setup-step:hover {
    text-decoration: none;
}

.setup-step:hover .setup-step-title {
    color: var(--amber);
}

.setup-step-number {
    width: 36px;
    height: 36px;
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11pt;
    font-weight: 700;
    color: var(--amber);
    flex-shrink: 0;
    margin-top: 2px;
}

.setup-step-body {
    flex: 1;
}

.setup-step-title {
    font-size: 14pt;
    font-weight: 600;
    color: #fff;
    margin-bottom: 4px;
    transition: color 0.15s;
}

.setup-step-desc {
    font-size: 12pt;
    color: var(--text-muted);
    margin: 0;
    line-height: 1.6;
}

.setup-step-arrow {
    color: var(--text-dim);
    font-size: 12pt;
    margin-top: 8px;
    flex-shrink: 0;
}

/* ── Learn hub — learn.php ───────────────────────────────────── */

.section-card {
    display: block;
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 24px;
    text-decoration: none;
    transition: border-color 0.2s, transform 0.15s;
    height: 100%;
}

.section-card:hover {
    border-color: var(--amber);
    transform: translateY(-2px);
    text-decoration: none;
}

.section-card-title {
    font-size: 14pt;
    font-weight: 600;
    color: #fff;
    margin-bottom: 8px;
    letter-spacing: -0.01em;
}

.section-card-desc {
    font-size: 11pt;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 14px;
}

.section-card-meta {
    font-size: 9pt;
    color: var(--text-dim);
}

.section-card-arrow {
    color: var(--amber);
    font-size: 10pt;
}

/* ── Article — article.php ───────────────────────────────────── */

/* Breadcrumb */
.help-breadcrumb {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    font-size: 10pt;
    color: var(--text-dim);
    padding: 24px 0 0;
    margin-bottom: 32px;
}

.help-breadcrumb a {
    color: var(--text-dim);
    text-decoration: none;
    transition: color 0.15s;
}

.help-breadcrumb a:hover {
    color: var(--amber);
}

.help-breadcrumb-sep {
    color: var(--text-dim);
    opacity: 0.5;
}

.help-breadcrumb-current {
    color: var(--text-muted);
}

/* Layout */
.article-layout {
    display: flex;
    gap: 0;
    align-items: flex-start;
    padding: 0 0 64px;
}

/* Sidebar */
.article-sidebar {
    width: 240px;
    flex-shrink: 0;
    position: sticky;
    top: 88px;
    padding-right: 24px;
    border-right: 1px solid var(--border);
    margin-right: 48px;
}

.sidebar-section {
    margin-bottom: 24px;
}

.sidebar-section-label {
    font-size: 8pt;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.09em;
    color: var(--text-dim);
    margin-bottom: 8px;
    padding: 0 10px;
}

.sidebar-nav-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-nav-list a {
    display: block;
    padding: 6px 10px;
    font-size: 11pt;
    color: var(--text-muted);
    text-decoration: none;
    border-left: 2px solid transparent;
    border-radius: 0 6px 6px 0;
    transition: color 0.15s, border-color 0.15s, background 0.15s;
    line-height: 1.4;
}

.sidebar-nav-list a:hover {
    color: #fff;
    background: rgba(255,255,255,0.04);
}

.sidebar-nav-list a.active {
    color: var(--amber);
    border-left-color: var(--amber);
    background: var(--amber-dim);
    font-weight: 600;
}

.sidebar-sub-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-sub-list a {
    padding-left: 22px !important;
    font-size: 10pt !important;
    color: var(--text-dim) !important;
}

.sidebar-sub-list a.active {
    color: var(--amber) !important;
    border-left-color: var(--amber) !important;
}

.sidebar-cat-label {
    display: block;
    padding: 6px 10px;
    font-size: 10pt;
    font-weight: 600;
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-top: 12px;
}

/* Article content */
.article-content {
    flex: 1;
    min-width: 0;
}

.article-header {
    margin-bottom: 40px;
    padding-bottom: 32px;
    border-bottom: 1px solid var(--border);
}

.article-header h1 {
    font-size: 22pt;
    font-weight: 700;
    color: #fff;
    letter-spacing: -0.03em;
    line-height: 1.15;
    margin-bottom: 12px;
}

.article-meta {
    font-size: 10pt;
    color: var(--text-dim);
}

/* Article body */
.article-body {
    font-size: 12pt;
    line-height: 1.8;
    color: var(--text-muted);
}

.article-body h2 {
    font-size: 16pt;
    font-weight: 600;
    color: #fff;
    letter-spacing: -0.02em;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border);
    margin: 48px 0 20px;
    scroll-margin-top: 96px;
}

.article-body h3 {
    font-size: 13pt;
    font-weight: 600;
    color: #fff;
    margin: 32px 0 12px;
    scroll-margin-top: 96px;
}

.article-body h4 {
    font-size: 12pt;
    font-weight: 600;
    color: #fff;
    margin: 24px 0 10px;
}

.article-body p {
    margin-bottom: 16px;
}

.article-body ul,
.article-body ol {
    padding-left: 1.5rem;
    margin-bottom: 16px;
}

.article-body li {
    margin-bottom: 6px;
}

.article-body a {
    color: var(--amber);
    text-decoration: none;
}

.article-body a:hover {
    text-decoration: underline;
}

.article-body code {
    background: #131416;
    color: var(--teal);
    padding: 1px 6px;
    border-radius: 4px;
    font-size: 11pt;
    font-family: 'Consolas', 'Courier New', monospace;
    border: 1px solid var(--border);
}

.article-body pre {
    background: #131416;
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 20px 22px;
    overflow-x: auto;
    margin: 20px 0;
}

.article-body pre code {
    background: none;
    border: none;
    padding: 0;
    font-size: 11pt;
    line-height: 1.7;
}

.article-body blockquote {
    border-left: 3px solid var(--amber);
    background: var(--amber-dim);
    padding: 14px 18px;
    border-radius: 0 8px 8px 0;
    margin: 20px 0;
    color: var(--text-muted);
}

.article-body table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    font-size: 11pt;
}

.article-body th {
    background: var(--panel);
    color: #fff;
    font-weight: 600;
    padding: 10px 14px;
    border: 1px solid var(--border);
    text-align: left;
}

.article-body td {
    padding: 9px 14px;
    border: 1px solid var(--border);
    color: var(--text-muted);
}

.article-body tr:nth-child(even) td {
    background: rgba(255,255,255,0.02);
}

/* Screenshots */
.help-figure {
    margin: 24px 0;
}

.help-img-full img,
.help-img-focus img {
    width: 100%;
    border-radius: 10px;
    border: 1px solid var(--border);
}

.help-img-focus img {
    border-radius: 8px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.4);
}

.help-figure figcaption {
    font-size: 10pt;
    color: var(--text-dim);
    text-align: center;
    margin-top: 8px;
}

/* Broken link */
.help-broken-link {
    color: var(--text-dim);
    text-decoration: line-through;
    cursor: not-allowed;
}

/* Callouts */
.callout {
    border-left: 3px solid;
    border-radius: 0 8px 8px 0;
    padding: 14px 18px;
    margin: 20px 0;
    font-size: 11pt;
    line-height: 1.65;
}

.callout-info {
    border-color: var(--teal);
    background: var(--teal-dim);
    color: var(--text-muted);
}

.callout-warn {
    border-color: var(--amber);
    background: var(--amber-dim);
    color: var(--text-muted);
}

/* Prev / Next */
.article-prevnext {
    display: flex;
    gap: 16px;
    margin-top: 56px;
    padding-top: 32px;
    border-top: 1px solid var(--border);
}

.prevnext-card {
    flex: 1;
    display: block;
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 16px 20px;
    text-decoration: none;
    transition: border-color 0.2s;
}

.prevnext-card:hover {
    border-color: var(--amber);
    text-decoration: none;
}

.prevnext-label {
    font-size: 9pt;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-dim);
    margin-bottom: 4px;
}

.prevnext-title {
    font-size: 13pt;
    font-weight: 600;
    color: #fff;
}

.prevnext-card.next {
    text-align: right;
}

/* ── Mobile ───────────────────────────────────────────────────── */

@media (max-width: 768px) {
    .article-sidebar {
        display: none;
    }

    .article-header h1 {
        font-size: 18pt;
    }

    .article-prevnext {
        flex-direction: column;
    }
}