/* ============================================
   AbroadReady — Blog (index + article) styles
   ============================================ */

/* ---- Blog index ---- */
.blog-index-hero { background: var(--gradient-dark); color: white; padding: var(--space-16) 0 var(--space-12); }
.blog-index-hero h1 { color: white; }
.blog-index-hero p { color: #cbd5e1; font-size: var(--text-lg); max-width: 640px; margin: var(--space-4) auto 0; }
.blog-search { max-width: 560px; margin: var(--space-8) auto 0; display: flex; gap: var(--space-3); }
.blog-search input { flex: 1; padding: var(--space-4) var(--space-5); border-radius: var(--radius-full); border: none; font-size: var(--text-base); font-family: var(--font-body); }
.blog-search input:focus { outline: 3px solid rgba(59,130,246,0.5); }

.blog-cats { display: flex; flex-wrap: wrap; gap: var(--space-2); justify-content: center; margin: var(--space-8) 0; }
.blog-cat { padding: 8px 16px; border-radius: var(--radius-full); border: 1px solid var(--border-purple); background: var(--bg-purple); color: #6d28d9; font-weight: 600; font-size: var(--text-sm); cursor: pointer; transition: var(--transition-fast); font-family: var(--font-body); }
.blog-cat:hover { border-color: #a78bfa; color: #7c3aed; background: var(--bg-purple-medium); }
.blog-cat.active { background: var(--gradient-primary); color: white; border-color: transparent; }

.blog-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-8); }
@media (max-width: 680px) { .blog-grid { grid-template-columns: 1fr; } }

.post-card { display: flex; flex-direction: column; background: white; border-radius: var(--radius-xl); overflow: hidden; box-shadow: var(--shadow-sm); border: 2px solid #8b5cf6; transition: var(--transition-base); text-decoration: none; position: relative; }
.post-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: linear-gradient(135deg, #8b5cf6, #a78bfa); opacity: 1; z-index: 2; }
.post-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-purple), 0 0 0 1px rgba(139,92,246,0.06); border-color: #7c3aed; }
.post-thumb { height: 150px; display: flex; align-items: center; justify-content: center; font-size: 3rem; }
.post-thumb-img { width: 100%; height: 200px; object-fit: cover; display: block; }
.post-body { padding: var(--space-5); display: flex; flex-direction: column; flex: 1; }
.post-cat { font-size: var(--text-xs); font-weight: 700; color: #000; text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: var(--space-2); }
.post-card h3 { font-size: var(--text-lg); line-height: 1.3; margin-bottom: var(--space-2); color: #000; }
.post-excerpt { font-size: var(--text-sm); color: #000; line-height: 1.55; flex: 1; }
.post-meta { display: flex; gap: var(--space-3); font-size: var(--text-xs); color: #000; margin-top: var(--space-4); }
.blog-empty { text-align: center; color: #000; padding: var(--space-16) 0; grid-column: 1 / -1; }

/* ---- Article page ---- */
.article-wrap { max-width: 1200px; margin: 0 auto; padding: var(--space-10) var(--space-6) 0; }
.breadcrumb { font-size: var(--text-sm); color: #000; margin-bottom: var(--space-5); }
.breadcrumb a { color: #000; text-decoration: none; }
.breadcrumb a:hover { color: var(--primary); }
.article-cat { display: inline-block; font-size: var(--text-xs); font-weight: 700; color: var(--primary-dark); background: rgba(59,130,246,0.08); padding: 4px 12px; border-radius: var(--radius-full); text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: var(--space-4); text-decoration: none; transition: var(--transition-fast); }
.article-cat:hover { background: var(--gradient-primary); color: white; }
.article-title { font-size: clamp(2rem, 4vw, var(--text-5xl)); line-height: 1.15; margin-bottom: var(--space-4); }
.article-meta { display: flex; flex-wrap: wrap; gap: var(--space-4); color: #000; font-size: var(--text-sm); padding-bottom: var(--space-6); border-bottom: 1px solid rgba(0,0,0,0.06); margin-bottom: var(--space-8); }
.article-hero-emoji { font-size: 3.5rem; margin-bottom: var(--space-4); }
.article-hero-img { width: 100%; max-height: 420px; object-fit: cover; border-radius: var(--radius-xl); margin-bottom: var(--space-8); box-shadow: var(--shadow-md); }

.article-body { font-size: 1.12rem; line-height: 1.85; color: #000; }
.article-body h2 { font-size: var(--text-3xl); margin: var(--space-10) 0 var(--space-3); line-height: 1.25; }
.article-body h3 { font-size: var(--text-xl); margin: var(--space-6) 0 var(--space-2); }
.article-body p { margin-bottom: var(--space-5); }
.article-body ul, .article-body ol { margin: 0 0 var(--space-5) var(--space-6); }
.article-body li { margin-bottom: var(--space-2); }
.article-body a { color: var(--primary-dark); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }
.article-body blockquote { border-left: 4px solid var(--primary); background: var(--bg-blue); padding: var(--space-4) var(--space-5); border-radius: var(--radius-md); margin: 0 0 var(--space-5); font-style: italic; color: #000; }
.article-body strong { color: var(--ink); }

.article-cta { background: var(--gradient-primary); color: white; border-radius: var(--radius-xl); padding: var(--space-8); text-align: center; margin: var(--space-10) 0; }
.article-cta h3 { color: white; margin-bottom: var(--space-2); }
.article-cta p { color: rgba(255,255,255,0.9); margin-bottom: var(--space-5); }
.article-cta .btn { background: white; color: var(--primary-dark); }

.article-faq { margin: var(--space-10) 0; }
.article-faq h2 { font-size: var(--text-3xl); margin-bottom: var(--space-5); }
.faq-item { border: 1.5px solid var(--border-purple); border-radius: var(--radius-lg); margin-bottom: var(--space-3); overflow: hidden; transition: var(--transition-base); position: relative; background: var(--bg-purple); }
.faq-item::before { content: ''; position: absolute; top: 0; left: 0; width: 4px; height: 100%; background: linear-gradient(135deg, #8b5cf6, #a78bfa); z-index: 2; }
.faq-item:hover { border-color: #a78bfa; box-shadow: var(--shadow-purple); }
.faq-q { padding: var(--space-4) var(--space-5); font-weight: 700; color: #000; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: var(--space-4); background: white; }
.faq-q:hover { background: var(--paper); }
.faq-a { padding: 0 var(--space-5); max-height: 0; overflow: hidden; transition: max-height 0.3s ease, padding 0.3s ease; color: #000; }
.faq-item.open .faq-a { padding: 0 var(--space-5) var(--space-5); max-height: 600px; }
.faq-item.open .faq-icon { transform: rotate(45deg); }
.faq-icon { font-size: 1.4rem; color: var(--primary); transition: transform 0.2s ease; }

.article-share { display: flex; align-items: center; gap: var(--space-3); margin: var(--space-8) 0; padding: var(--space-5) 0; border-top: 1px solid rgba(0,0,0,0.06); border-bottom: 1px solid rgba(0,0,0,0.06); }
.article-share span { font-weight: 600; color: #000; font-size: var(--text-sm); }
.share-btn { width: 40px; height: 40px; border-radius: 50%; border: 1px solid rgba(0,0,0,0.1); background: white; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; color: #000; transition: var(--transition-fast); }
.share-btn:hover { background: var(--primary); color: white; border-color: var(--primary); }

.related { max-width: 1200px; margin: 0 auto; padding: var(--space-10) var(--space-6) 0; }
.related h2 { text-align: center; margin-bottom: var(--space-8); }
.prevnext { max-width: 1200px; margin: 0 auto; padding: var(--space-8) var(--space-6) 0; display: flex; justify-content: space-between; gap: var(--space-4); }
.prevnext a { flex: 1; padding: var(--space-4) var(--space-5); border: 1.5px solid rgba(0,0,0,0.08); border-radius: var(--radius-lg); text-decoration: none; color: #000; transition: var(--transition-fast); position: relative; overflow: hidden; }
.prevnext a::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px; background: var(--gradient-primary); opacity: 1; }
.prevnext a:hover { border-color: var(--primary); box-shadow: var(--shadow-sm); transform: translateY(-2px); }
.prevnext .pn-label { font-size: var(--text-xs); color: #000; text-transform: uppercase; letter-spacing: 0.05em; }
.prevnext .pn-title { font-weight: 600; font-size: var(--text-sm); }
.prevnext .next { text-align: right; }

/* reading progress bar */
.read-progress { position: fixed; top: 0; left: 0; height: 3px; background: var(--gradient-primary); z-index: 600; width: 0; }
