/* ============================================
   JDLTC — Guide / Media Section
   Inspired by Stripe, Linear, Notion blogs
   ============================================ */

/* ─── Guide Index ─── */
.guide-hero {
    padding: 140px 24px 60px;
    text-align: center;
    background: linear-gradient(180deg, #fafafa 0%, #ffffff 100%);
}

.guide-hero h1 {
    font-size: clamp(36px, 5vw, 56px);
    font-weight: 800;
    color: #1d1d1f;
    letter-spacing: -0.03em;
    line-height: 1.1;
    margin: 0 0 16px;
}

.guide-hero p {
    font-size: 18px;
    color: #6e6e73;
    max-width: 520px;
    margin: 0 auto;
    line-height: 1.6;
}

/* ─── Article Grid ─── */
.guide-grid {
    max-width: 1080px;
    margin: 0 auto;
    padding: 40px 24px 80px;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 24px;
}

.guide-card {
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
}

.guide-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08);
    border-color: rgba(0, 0, 0, 0.1);
}

.guide-card-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.guide-card-body {
    padding: 24px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.guide-card-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
}

.guide-card-tag {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 4px 10px;
    border-radius: 6px;
    background: #f0f0f5;
    color: #6e6e73;
}

.guide-card-tag.en {
    background: #e8f4f8;
    color: #0077b6;
}

.guide-card-tag.de {
    background: #fff3e0;
    color: #e65100;
}

.guide-card-tag.fr {
    background: #fce4ec;
    color: #c62828;
}

.guide-card-tag.zh {
    background: #e8f5e9;
    color: #2e7d32;
}

.guide-card-time {
    font-size: 12px;
    color: #86868b;
}

.guide-card h2 {
    font-size: 20px;
    font-weight: 700;
    color: #1d1d1f;
    line-height: 1.3;
    letter-spacing: -0.01em;
    margin: 0 0 8px;
}

.guide-card p {
    font-size: 14px;
    color: #6e6e73;
    line-height: 1.6;
    margin: 0;
    flex: 1;
}

.guide-card-arrow {
    margin-top: 16px;
    font-size: 13px;
    font-weight: 600;
    color: #0066cc;
    display: flex;
    align-items: center;
    gap: 4px;
}

/* ─── Article Page ─── */
.article-page {
    max-width: 680px;
    margin: 0 auto;
    padding: 140px 24px 80px;
}

.article-breadcrumb {
    font-size: 13px;
    color: #86868b;
    margin-bottom: 32px;
}

.article-breadcrumb a {
    color: #0066cc;
    text-decoration: none;
}

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

.article-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
}

.article-page h1 {
    font-size: clamp(28px, 4vw, 40px);
    font-weight: 800;
    color: #1d1d1f;
    letter-spacing: -0.03em;
    line-height: 1.15;
    margin: 0 0 16px;
}

.article-excerpt {
    font-size: 18px;
    color: #6e6e73;
    line-height: 1.6;
    margin: 0 0 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid #e5e5e5;
}

/* Article body typography */
.article-body h2 {
    font-size: 24px;
    font-weight: 700;
    color: #1d1d1f;
    letter-spacing: -0.02em;
    margin: 48px 0 16px;
}

.article-body h3 {
    font-size: 18px;
    font-weight: 700;
    color: #1d1d1f;
    margin: 32px 0 12px;
}

.article-body p {
    font-size: 16px;
    color: #3a3a3c;
    line-height: 1.8;
    margin: 0 0 20px;
}

.article-body ul,
.article-body ol {
    padding-left: 24px;
    margin: 0 0 20px;
}

.article-body li {
    font-size: 16px;
    color: #3a3a3c;
    line-height: 1.8;
    margin-bottom: 8px;
}

.article-body strong {
    color: #1d1d1f;
    font-weight: 600;
}

.article-body a {
    color: #0066cc;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.article-body blockquote {
    border-left: 3px solid #0066cc;
    margin: 24px 0;
    padding: 16px 20px;
    background: #f8f9fa;
    border-radius: 0 12px 12px 0;
    font-size: 15px;
    color: #3a3a3c;
    line-height: 1.7;
}

.article-body table {
    width: 100%;
    border-collapse: collapse;
    margin: 24px 0;
    font-size: 15px;
}

.article-body th,
.article-body td {
    padding: 12px 16px;
    text-align: left;
    border-bottom: 1px solid #e5e5e5;
}

.article-body th {
    font-weight: 600;
    color: #1d1d1f;
    background: #fafafa;
}

.article-body td {
    color: #3a3a3c;
}

/* Article inline images */
.article-body figure {
    margin: 32px 0;
}

.article-body figure img {
    width: 100%;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.article-body figure figcaption {
    font-size: 13px;
    color: #86868b;
    text-align: center;
    margin-top: 8px;
    font-style: italic;
}

/* CTA Box */
.article-cta {
    background: linear-gradient(135deg, #1d1d1f 0%, #2d2d30 100%);
    border-radius: 16px;
    padding: 32px;
    margin: 48px 0;
    text-align: center;
}

.article-cta h3 {
    color: #fff;
    font-size: 22px;
    font-weight: 700;
    margin: 0 0 8px;
}

.article-cta p {
    color: #8e8e93;
    font-size: 15px;
    margin: 0 0 20px;
}

.article-cta a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #0066cc;
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    padding: 12px 28px;
    border-radius: 980px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.article-cta a:hover {
    background: #0055b3;
    transform: translateY(-1px);
}

/* Related articles */
.related-articles {
    margin-top: 64px;
    padding-top: 48px;
    border-top: 1px solid #e5e5e5;
}

.related-articles h3 {
    font-size: 16px;
    font-weight: 700;
    color: #86868b;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 0 0 20px;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
}

.related-card {
    display: block;
    padding: 20px;
    border: 1px solid #e5e5e5;
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.related-card:hover {
    border-color: #0066cc;
    background: #f8f9fa;
}

.related-card h4 {
    font-size: 15px;
    font-weight: 600;
    color: #1d1d1f;
    margin: 0 0 4px;
    line-height: 1.4;
}

.related-card span {
    font-size: 13px;
    color: #86868b;
}

/* ─── Responsive ─── */
@media (max-width: 768px) {
    .guide-grid {
        grid-template-columns: 1fr;
    }

    .article-page {
        padding: 110px 20px 60px;
    }

    .article-cta {
        padding: 24px 20px;
    }
}