/* ═══ BLOG STYLES ═══ */
@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700;800&family=Sora:wght@400;600;700;800&family=Libre+Baskerville:ital,wght@0,400;0,700;1,400&display=swap');

:root {
  --orange: #F5920B; --orange-hover: #E07F00; --orange-light: #FFF4E5;
  --dark: #2D2D2D; --gray: #6B7280; --gray-light: #9CA3AF;
  --bg: #FAFAF8; --white: #FFFFFF; --border: #F0EDE8; --green: #22C55E;
  --font-heading: 'Sora', sans-serif; --font-body: 'DM Sans', sans-serif;
  --font-article: 'Libre Baskerville', Georgia, serif;
}
*, *::before, *::after { box-sizing: border-box; margin: 0; }
body { font-family: var(--font-body); background: var(--bg); color: var(--dark); line-height: 1.7; -webkit-font-smoothing: antialiased; }
a { color: var(--orange); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--orange-hover); }
img { max-width: 100%; height: auto; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.section { padding: 56px 0; }
.section-sm { padding: 32px 0; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 1000; background: var(--white); border-bottom: 1px solid var(--border); height: 70px; }
.site-header .container { display: flex; justify-content: space-between; align-items: center; height: 100%; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.logo-icon { width: 28px; height: 28px; border-radius: 8px; background: var(--orange); display: flex; align-items: center; justify-content: center; position: relative; color: #fff; font-size: 10px; letter-spacing: 1px; }
.logo-icon::after { content: ''; position: absolute; bottom: -5px; left: 50%; transform: translateX(-50%); border-left: 6px solid transparent; border-right: 6px solid transparent; border-top: 6px solid var(--orange); }
.logo-text { font-size: 18px; font-weight: 500; color: var(--dark); }
.logo-text strong { font-weight: 800; color: var(--orange); }
.header-nav { display: flex; gap: 4px; align-items: center; }
.header-nav a { padding: 8px 14px; border-radius: 8px; font-size: 14px; font-weight: 600; color: var(--dark); transition: color 0.2s; }
.header-nav a:hover, .header-nav a.active { color: var(--orange); }
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 12px 28px; border-radius: 10px; font-family: var(--font-body); font-size: 15px; font-weight: 700; cursor: pointer; transition: all 0.2s; border: 2px solid transparent; text-decoration: none; }
.btn-primary { background: var(--orange); color: #fff; border-color: var(--orange); }
.btn-primary:hover { background: var(--orange-hover); border-color: var(--orange-hover); color: #fff; }
.btn-sm { padding: 8px 20px; font-size: 13px; border-radius: 8px; }
.mob-toggle { display: none; background: none; border: none; cursor: pointer; font-size: 24px; color: var(--dark); }
.mob-nav { display: none; position: absolute; top: 70px; left: 0; right: 0; background: #fff; border-top: 1px solid var(--border); padding: 8px 24px 16px; box-shadow: 0 8px 20px rgba(0,0,0,.06); }
.mob-nav.open { display: block; }
.mob-nav a { display: block; padding: 14px 0; font-weight: 600; color: var(--dark); border-bottom: 1px solid var(--border); }

/* Blog Hero */
.blog-hero { background: linear-gradient(135deg, var(--bg), var(--orange-light), var(--bg)); padding: 100px 0 60px; position: relative; overflow: hidden; }
.blog-hero::before { content: ''; position: absolute; top: -100px; right: -100px; width: 400px; height: 400px; border-radius: 50%; background: radial-gradient(circle, rgba(245,146,11,0.08), transparent 70%); }
.blog-hero h1 { font-family: var(--font-heading); font-size: clamp(32px, 4.5vw, 52px); font-weight: 800; margin-bottom: 16px; }
.blog-hero p { font-size: 18px; color: var(--gray); max-width: 600px; }
.breadcrumb { font-size: 14px; color: var(--gray-light); margin-bottom: 20px; }
.breadcrumb a { color: var(--gray-light); }
.breadcrumb a:hover { color: var(--orange); }
.breadcrumb span { color: var(--orange); }

/* Category Pills */
.cat-pill { padding: 6px 16px; border-radius: 20px; font-size: 13px; font-weight: 600; color: var(--gray); background: var(--white); border: 1px solid var(--border); transition: all 0.15s; }
.cat-pill:hover { border-color: var(--orange); color: var(--orange); }
.cat-pill.active { background: var(--orange); color: #fff; border-color: var(--orange); }
.cat-pill .count { opacity: 0.7; }

/* Featured Post */
.featured-post { background: var(--white); border-radius: 20px; overflow: hidden; border: 1px solid var(--border); display: grid; grid-template-columns: 1.2fr 1fr; transition: transform 0.3s, box-shadow 0.3s; text-decoration: none; color: inherit; }
.featured-post:hover { transform: translateY(-4px); box-shadow: 0 16px 48px rgba(0,0,0,0.08); }
.featured-post .post-image { aspect-ratio: 16/10; background: linear-gradient(135deg, var(--orange-light), #F3E8FF); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.featured-post .post-image img { width: 100%; height: 100%; object-fit: cover; }
.featured-post .post-content { padding: 40px; display: flex; flex-direction: column; justify-content: center; }
.featured-badge { display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px; border-radius: 20px; background: var(--orange); color: #fff; font-size: 12px; font-weight: 700; width: fit-content; margin-bottom: 16px; }

/* Post Grid */
.post-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 24px; }
.post-card { background: var(--white); border-radius: 16px; overflow: hidden; border: 1px solid var(--border); transition: transform 0.3s, box-shadow 0.3s; display: flex; flex-direction: column; text-decoration: none; color: inherit; }
.post-card:hover { transform: translateY(-4px); box-shadow: 0 12px 32px rgba(0,0,0,0.08); border-color: var(--orange); }
.card-image { aspect-ratio: 16/9; background: linear-gradient(135deg, var(--orange-light), #EFF6FF); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.card-image img { width: 100%; height: 100%; object-fit: cover; }
.placeholder-icon { font-size: 48px; opacity: 0.3; }
.card-body { padding: 24px; flex: 1; display: flex; flex-direction: column; }

.post-meta { display: flex; gap: 16px; flex-wrap: wrap; align-items: center; margin-bottom: 12px; }
.post-meta span { font-size: 13px; color: var(--gray-light); display: flex; align-items: center; gap: 4px; }
.post-category { display: inline-flex; padding: 3px 10px; border-radius: 6px; background: var(--orange-light); color: var(--orange); font-size: 12px; font-weight: 700; }
.post-title { font-family: var(--font-heading); font-weight: 700; color: var(--dark); margin-bottom: 8px; line-height: 1.3; transition: color 0.2s; }
.post-card .post-title { font-size: 20px; }
.featured-post .post-title { font-size: 28px; }
.post-card:hover .post-title, .featured-post:hover .post-title { color: var(--orange); }
.post-excerpt { font-size: 15px; color: var(--gray); line-height: 1.6; flex: 1; }
.read-more { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 700; color: var(--orange); margin-top: 16px; }
.read-more:hover { gap: 10px; }
.post-tags { display: flex; gap: 6px; flex-wrap: wrap; }
.tag { padding: 4px 10px; border-radius: 6px; background: var(--bg); font-size: 12px; font-weight: 600; color: var(--gray); border: 1px solid var(--border); }

/* Pagination */
.pagination { display: flex; justify-content: center; gap: 8px; margin-top: 48px; }
.pagination a, .pagination span { display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 10px; font-weight: 700; font-size: 14px; border: 1px solid var(--border); color: var(--gray); background: var(--white); transition: all 0.2s; text-decoration: none; }
.pagination a:hover { border-color: var(--orange); color: var(--orange); }
.pagination .current { background: var(--orange); color: #fff; border-color: var(--orange); }

/* Post Header */
.post-header { background: linear-gradient(135deg, var(--bg), var(--orange-light), var(--bg)); padding: 100px 0 48px; }
.post-header h1 { font-family: var(--font-heading); font-size: clamp(28px, 4vw, 44px); font-weight: 800; line-height: 1.2; margin-bottom: 20px; }
.post-author { display: flex; align-items: center; gap: 12px; margin-top: 24px; }
.avatar { width: 44px; height: 44px; border-radius: 50%; background: var(--orange-light); display: flex; align-items: center; justify-content: center; font-weight: 700; color: var(--orange); font-size: 16px; flex-shrink: 0; }
.author-info { font-size: 14px; }
.author-name { font-weight: 700; color: var(--dark); }
.author-date { color: var(--gray-light); }

/* Article Body */
.post-body { max-width: 800px; margin: 0 auto; padding: 48px 24px 64px; }
.article-content { font-family: var(--font-article); font-size: 18px; line-height: 1.9; color: #333; }
.article-content h2 { font-family: var(--font-heading); font-size: 28px; font-weight: 800; color: var(--dark); margin: 48px 0 16px; line-height: 1.25; }
.article-content h3 { font-family: var(--font-heading); font-size: 22px; font-weight: 700; color: var(--orange); margin: 36px 0 12px; }
.article-content p { margin-bottom: 24px; }
.article-content a { color: var(--orange); text-decoration: underline; text-underline-offset: 3px; }
.article-content blockquote { border-left: 4px solid var(--orange); padding: 20px 24px; margin: 32px 0; background: var(--orange-light); border-radius: 0 12px 12px 0; font-style: italic; }
.article-content ul, .article-content ol { margin: 16px 0 24px 24px; }
.article-content li { margin-bottom: 8px; }
.article-content img { border-radius: 12px; margin: 24px 0; }

.share-bar { display: flex; gap: 8px; margin: 32px 0; padding: 20px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); align-items: center; }
.share-bar span { font-size: 14px; font-weight: 700; margin-right: 8px; }
.share-btn { display: flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 8px; background: var(--bg); border: 1px solid var(--border); cursor: pointer; font-size: 16px; transition: all 0.2s; text-decoration: none; color: var(--dark); }
.share-btn:hover { background: var(--orange); color: #fff; border-color: var(--orange); }

.author-box { background: var(--bg); border-radius: 16px; padding: 28px; margin-top: 32px; display: flex; gap: 16px; align-items: start; border: 1px solid var(--border); }

.related-posts { background: var(--bg); padding: 56px 0; }

.newsletter-cta { background: linear-gradient(135deg, var(--orange), var(--orange-hover)); border-radius: 20px; padding: 48px; text-align: center; margin: 48px 0; }
.newsletter-cta h3 { font-family: var(--font-heading); font-size: 28px; font-weight: 800; color: #fff; margin-bottom: 12px; }
.newsletter-cta p { color: rgba(255,255,255,0.85); font-size: 16px; margin-bottom: 24px; }
.newsletter-form { display: flex; gap: 8px; max-width: 480px; margin: 0 auto; }
.newsletter-form input { flex: 1; padding: 14px 20px; border-radius: 10px; border: 2px solid rgba(255,255,255,0.3); background: rgba(255,255,255,0.15); color: #fff; font-size: 15px; font-family: var(--font-body); }
.newsletter-form input::placeholder { color: rgba(255,255,255,0.6); }
.newsletter-form button { padding: 14px 28px; border-radius: 10px; background: #fff; color: var(--dark); font-weight: 700; font-size: 15px; border: none; cursor: pointer; font-family: var(--font-body); }

.empty-blog { text-align: center; padding: 80px 0; }
.empty-blog h2 { font-family: var(--font-heading); font-weight: 800; margin-bottom: 8px; }
.empty-blog p { color: var(--gray); }

/* Footer */
.site-footer { background: var(--dark); padding: 64px 0 32px; color: var(--gray-light); }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 40px; margin-bottom: 48px; }
.footer-brand { font-size: 16px; font-weight: 700; color: #fff; margin-bottom: 12px; }
.footer-brand strong { color: var(--orange); }
.site-footer p { font-size: 14px; line-height: 1.7; }
.site-footer h4 { font-size: 14px; font-weight: 700; color: #fff; margin-bottom: 16px; text-transform: uppercase; letter-spacing: 1px; }
.site-footer a { display: block; padding: 4px 0; font-size: 14px; color: var(--gray-light); }
.site-footer a:hover { color: var(--orange); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding-top: 24px; }
.footer-bottom p { font-size: 13px; color: #6B7280; }

@media (max-width: 900px) {
    .header-nav { display: none; }
    .mob-toggle { display: block; }
    .featured-post { grid-template-columns: 1fr; }
    .post-grid { grid-template-columns: 1fr; }
    .newsletter-form { flex-direction: column; }
}
