/* ============================================================
   VCNZN — User Guide Pages
   Inherits tokens from ../styles.css
   ============================================================ */

/* ---------- Page Layout ---------- */
.guide-page {
    padding: 8rem 0 5rem;
    background: linear-gradient(180deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
    min-height: 100vh;
}

.guide-page .container {
    max-width: 860px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* ---------- Back Link ---------- */
.guide-back {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--accent);
    margin-bottom: 2rem;
    text-decoration: none;
}
.guide-back:hover { color: var(--accent-dark); }

/* ---------- Page Title ---------- */
.guide-title {
    font-size: 2.4rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.2;
    margin-bottom: 0.5rem;
}

.guide-subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 2.5rem;
}

/* ---------- Table of Contents ---------- */
.guide-toc {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 1.5rem 2rem;
    margin-bottom: 3rem;
    box-shadow: var(--shadow-sm);
}

.guide-toc h3 {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-tertiary);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 0.75rem;
}

.guide-toc ul {
    list-style: none;
    padding: 0;
    margin: 0;
    columns: 2;
    column-gap: 2rem;
}

.guide-toc li {
    break-inside: avoid;
    margin-bottom: 0.35rem;
}

.guide-toc a {
    font-size: 0.95rem;
    color: var(--accent);
    text-decoration: none;
    transition: color 0.2s var(--ease);
}
.guide-toc a:hover { color: var(--accent-dark); text-decoration: underline; }

/* ---------- Section Headers ---------- */
.guide-section {
    margin-bottom: 3rem;
}

.guide-section-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--accent-subtle);
}

.guide-section-desc {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

/* ---------- Property Table ---------- */
.prop-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--bg-card);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
}

.prop-table thead {
    background: var(--accent-bg);
}

.prop-table th {
    text-align: left;
    padding: 0.75rem 1rem;
    font-weight: 600;
    font-size: 0.8rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-bottom: 2px solid var(--border);
}

.prop-table td {
    padding: 0.65rem 1rem;
    color: var(--text-primary);
    border-bottom: 1px solid var(--border-light);
    vertical-align: top;
    line-height: 1.5;
}

.prop-table tbody tr:last-child td {
    border-bottom: none;
}

.prop-table tbody tr:hover {
    background: var(--accent-bg);
}

.prop-table code {
    font-family: 'JetBrains Mono', 'Fira Code', monospace;
    font-size: 0.82rem;
    background: var(--bg-tertiary);
    padding: 0.15em 0.4em;
    border-radius: 3px;
    color: var(--accent-dark);
}

/* ---------- Info Box ---------- */
.guide-info {
    background: var(--accent-bg);
    border-left: 4px solid var(--accent);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    padding: 1rem 1.25rem;
    margin-bottom: 1.5rem;
    font-size: 0.92rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.guide-info strong {
    color: var(--text-primary);
}

/* ---------- Enum List ---------- */
.enum-list {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 1rem 1.25rem;
    margin-bottom: 1.5rem;
}

.enum-list h4 {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-tertiary);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 0.5rem;
}

.enum-list ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.enum-list li {
    background: var(--bg-tertiary);
    padding: 0.2rem 0.6rem;
    border-radius: 3px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.82rem;
    color: var(--accent-dark);
}

/* ---------- Steps / Instructions ---------- */
.guide-steps {
    counter-reset: step;
    padding-left: 0;
    list-style: none;
    margin-bottom: 1.5rem;
}

.guide-steps li {
    counter-increment: step;
    position: relative;
    padding-left: 2.5rem;
    margin-bottom: 1rem;
    font-size: 0.95rem;
    color: var(--text-primary);
    line-height: 1.6;
}

.guide-steps li::before {
    content: counter(step);
    position: absolute;
    left: 0;
    top: 0.1rem;
    width: 1.75rem;
    height: 1.75rem;
    background: var(--accent);
    color: var(--text-inverse);
    border-radius: 50%;
    font-size: 0.82rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ---------- Template Variables ---------- */
.template-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--bg-card);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
}

.template-table thead { background: var(--accent-bg); }

.template-table th {
    text-align: left;
    padding: 0.6rem 1rem;
    font-weight: 600;
    font-size: 0.8rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-bottom: 2px solid var(--border);
}

.template-table td {
    padding: 0.5rem 1rem;
    border-bottom: 1px solid var(--border-light);
    vertical-align: top;
    line-height: 1.5;
}

.template-table tbody tr:last-child td { border-bottom: none; }
.template-table tbody tr:hover { background: var(--accent-bg); }

.template-table code {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.82rem;
    background: var(--bg-tertiary);
    padding: 0.15em 0.4em;
    border-radius: 3px;
    color: var(--accent-dark);
}

/* ---------- Keyboard Shortcuts ---------- */
kbd {
    display: inline-block;
    font-family: 'Inter', sans-serif;
    font-size: 0.8rem;
    padding: 0.15em 0.5em;
    background: var(--bg-tertiary);
    border: 1px solid var(--border);
    border-radius: 4px;
    box-shadow: 0 1px 1px rgba(44,36,24,0.08);
    color: var(--text-primary);
}

/* ---------- Guide Index Cards ---------- */
.guide-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.25rem;
    margin-bottom: 2rem;
}

.guide-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    text-decoration: none;
    transition: box-shadow 0.25s var(--ease), border-color 0.25s var(--ease);
    display: flex;
    flex-direction: column;
}

.guide-card:hover {
    box-shadow: var(--shadow-md);
    border-color: var(--accent-subtle);
}

.guide-card h3 {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.4rem;
}

.guide-card p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.5;
    flex: 1;
}

.guide-card .card-arrow {
    color: var(--accent);
    font-size: 0.85rem;
    font-weight: 500;
    margin-top: 0.75rem;
}

/* ---------- Method Tabs ---------- */
.method-tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.method-tab {
    padding: 0.6rem 1.25rem;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-secondary);
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.2s var(--ease);
}

.method-tab:hover {
    color: var(--text-primary);
    border-color: var(--accent-subtle);
}

.method-tab.active {
    color: var(--accent-dark);
    background: var(--accent-bg);
    border-color: var(--accent);
}

.method-panel {
    display: none;
}

.method-panel.active {
    display: block;
}

/* ---------- Responsive ---------- */
@media (max-width: 768px) {
    .guide-page { padding: 6rem 0 3rem; }
    .guide-title { font-size: 1.8rem; }
    .guide-toc ul { columns: 1; }
    .prop-table { font-size: 0.82rem; }
    .prop-table th,
    .prop-table td { padding: 0.5rem 0.65rem; }
    .guide-cards { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
    .guide-title { font-size: 1.5rem; }
    .prop-table { display: block; overflow-x: auto; }
}
