/* =============================================
   Los Santos Guide — Article / Detail Page
   ============================================= */

/* ---------- Article Header ---------- */
.article-header {
    margin-top: var(--header-h);
    padding: 40px 0 32px;
    border-bottom: 1px solid var(--border);
}
.article-header .container {
    max-width: 800px;
}
.article-meta {
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 16px;
}
.article-meta span {
    color: var(--text-muted);
    font-size: 0.85rem;
}
.article-meta .dot {
    color: #333;
}
.article-title {
    font-size: clamp(1.6rem, 3.5vw, 2.4rem);
    font-weight: 800;
    line-height: 1.3;
    margin-bottom: 12px;
}
.article-desc {
    color: var(--text-secondary);
    font-size: 1.05rem;
    line-height: 1.7;
}

/* ---------- Article Body ---------- */
.article-body {
    padding: 40px 0 60px;
}
.article-body .container {
    max-width: 800px;
}

.article-body h2 {
    font-size: 1.4rem;
    font-weight: 700;
    margin-top: 40px;
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border);
}
.article-body h3 {
    font-size: 1.15rem;
    font-weight: 700;
    margin-top: 28px;
    margin-bottom: 12px;
}
.article-body p {
    color: var(--text-secondary);
    margin-bottom: 16px;
    line-height: 1.8;
}
.article-body ul,
.article-body ol {
    color: var(--text-secondary);
    margin-bottom: 16px;
    padding-left: 24px;
    line-height: 1.8;
}
.article-body li {
    margin-bottom: 6px;
}
.article-body strong {
    color: var(--text-primary);
    font-weight: 700;
}
.article-body a {
    color: var(--orange);
    border-bottom: 1px solid transparent;
    transition: border-color .2s;
}
.article-body a:hover {
    border-color: var(--orange);
}

/* ---------- Info Box ---------- */
.info-box {
    background: rgba(251, 177, 60, 0.06);
    border: 1px solid rgba(251, 177, 60, 0.15);
    border-radius: var(--radius-md);
    padding: 20px 24px;
    margin: 24px 0;
}
.info-box .title {
    font-weight: 700;
    color: var(--orange);
    margin-bottom: 6px;
    font-size: 0.95rem;
}
.info-box p,
.info-box li {
    color: var(--text-secondary);
    font-size: 0.92rem;
}

/* ---------- Table ---------- */
.article-body table {
    width: 100%;
    border-collapse: collapse;
    margin: 24px 0;
    font-size: 0.9rem;
}
.article-body th {
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-primary);
    font-weight: 700;
    padding: 12px 16px;
    text-align: left;
    border-bottom: 2px solid var(--border);
}
.article-body td {
    padding: 10px 16px;
    border-bottom: 1px solid var(--border);
    color: var(--text-secondary);
}
.article-body tr:hover td {
    background: rgba(255, 255, 255, 0.02);
}

/* ---------- Step List ---------- */
.step-list {
    counter-reset: step;
    list-style: none;
    padding: 0;
}
.step-list li {
    counter-increment: step;
    padding: 16px 20px 16px 56px;
    position: relative;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    margin-bottom: 12px;
    color: var(--text-secondary);
    line-height: 1.7;
}
.step-list li::before {
    content: counter(step);
    position: absolute;
    left: 16px;
    top: 16px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--orange), var(--orange-deep));
    color: #0a0a0f;
    font-weight: 800;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    justify-content: center;
}
.step-list li strong {
    color: var(--text-primary);
    display: block;
    margin-bottom: 4px;
}

/* ---------- Related Articles ---------- */
.related {
    padding: 40px 0;
    border-top: 1px solid var(--border);
}
.related h3 {
    font-size: 1.2rem;
    margin-bottom: 20px;
}
.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 16px;
}
.related-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 20px;
    transition: all .3s;
}
.related-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-2px);
}
.related-card .tag { margin-bottom: 8px; }
.related-card h4 { font-size: 0.95rem; font-weight: 700; }
.related-card .date { color: var(--text-muted); font-size: 0.8rem; margin-top: 6px; }

/* ---------- TOC (Table of Contents) ---------- */
.toc {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 20px 24px;
    margin-bottom: 32px;
}
.toc .toc-title {
    font-weight: 700;
    font-size: 0.9rem;
    margin-bottom: 10px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}
.toc ol {
    list-style: none;
    padding: 0;
}
.toc li {
    margin-bottom: 4px;
}
.toc a {
    color: var(--text-secondary);
    font-size: 0.88rem;
    transition: color .2s;
}
.toc a:hover { color: var(--orange); }

/* ---------- Responsive ---------- */
@media (max-width: 768px) {
    .article-header {
        padding: 28px 0 24px;
        margin-top: var(--header-h);
    }
    .article-header .container { max-width: 100%; padding: 0 16px; }
    .article-title { font-size: 1.4rem; }
    .article-desc { font-size: 0.92rem; }

    .article-body { padding: 24px 0 40px; }
    .article-body .container { max-width: 100%; padding: 0 16px; }

    .article-body h2 { font-size: 1.2rem; margin-top: 28px; }
    .article-body h3 { font-size: 1.05rem; margin-top: 20px; }
    .article-body p { font-size: 0.9rem; line-height: 1.7; }
    .article-body ul,
    .article-body ol { font-size: 0.9rem; padding-left: 20px; }

    /* Tables — scroll horizontally on mobile */
    .article-body table {
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        white-space: nowrap;
    }
    .article-body th,
    .article-body td { padding: 8px 12px; font-size: 0.82rem; }

    /* Info box */
    .info-box { padding: 16px 18px; margin: 16px 0; }
    .info-box .title { font-size: 0.88rem; }
    .info-box p,
    .info-box li { font-size: 0.85rem; }

    /* TOC */
    .toc { padding: 16px 18px; margin-bottom: 20px; }
    .toc .toc-title { font-size: 0.82rem; }
    .toc a { font-size: 0.82rem; }

    /* Step list */
    .step-list li {
        padding: 14px 14px 14px 48px;
        font-size: 0.88rem;
    }
    .step-list li::before {
        left: 12px;
        top: 14px;
        width: 24px;
        height: 24px;
        font-size: 0.78rem;
    }

    /* Related articles */
    .related { padding: 28px 0; }
    .related h3 { font-size: 1.05rem; }
    .related-grid { grid-template-columns: 1fr; gap: 12px; }
    .related-card { padding: 16px; }

    /* Breadcrumb inside article context */
    .article-meta { gap: 8px; }
    .article-meta span { font-size: 0.78rem; }
}

@media (max-width: 480px) {
    .article-header { padding: 20px 0 16px; }
    .article-title { font-size: 1.2rem; }
    .article-desc { font-size: 0.85rem; }

    .article-body h2 { font-size: 1.1rem; }
    .article-body h3 { font-size: 0.95rem; }

    .step-list li { padding: 12px 12px 12px 42px; font-size: 0.82rem; }
    .step-list li::before { left: 8px; top: 12px; width: 22px; height: 22px; font-size: 0.72rem; }

    .info-box { padding: 12px 14px; }
    .toc { padding: 12px 14px; }
}
