/* ========================================
   BLOG.CSS - Blog listing + post styles
   ======================================== */
* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --accent: #ff6847;
  --accent-dark: #e55a3a;
  --dark: #0f172a;
  --slate-900: #0f172a;
  --slate-800: #1e293b;
  --slate-600: #475569;
  --slate-500: #64748b;
  --slate-400: #94a3b8;
  --slate-300: #cbd5e1;
  --slate-200: #e2e8f0;
  --slate-100: #f1f5f9;
  --slate-50: #f8fafc;
}

html { scroll-behavior: smooth; }

body {
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--slate-900);
  background: #fafafa;
  line-height: 1.6;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.container { max-width: 800px; margin: 0 auto; padding: 0 24px; }

/* ========================================
   HEADER
   ======================================== */
.header {
  position: sticky; top: 0; z-index: 10;
  background: rgba(250, 250, 250, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--slate-200);
}

.header-inner {
  max-width: 1200px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 24px;
}

.logo { display: flex; align-items: center; gap: 8px; font-weight: 800; color: var(--slate-900); letter-spacing: -0.02em; font-size: 20px; }
.logo svg { display: block; flex-shrink: 0; }

.nav-links { display: flex; gap: 24px; font-size: 14px; font-weight: 500; color: var(--slate-500); }
.nav-links a:hover, .nav-links a.active { color: var(--slate-900); }

/* ========================================
   BLOG HERO
   ======================================== */
.blog-hero { padding: 64px 0 32px; }
.blog-hero h1 { font-size: 48px; font-weight: 800; letter-spacing: -0.055em; margin-bottom: 8px; }
.blog-hero-sub { font-size: 18px; color: var(--slate-500); }

/* ========================================
   BLOG LIST
   ======================================== */
.blog-list { padding: 16px 0 80px; }

.blog-card {
  display: block; padding: 28px 0;
  border-bottom: 1px solid var(--slate-200);
  transition: opacity 0.15s ease;
}

.blog-card:first-child { border-top: 1px solid var(--slate-200); }
.blog-card:hover { opacity: 0.75; }

.blog-card h2 {
  font-size: 22px; font-weight: 700; letter-spacing: -0.03em;
  margin-bottom: 6px; color: var(--slate-900);
}

.blog-card p { color: var(--slate-500); font-size: 16px; margin: 0; }

.blog-card-meta {
  display: flex; align-items: center; gap: 12px;
  margin-bottom: 8px; font-size: 13px; color: var(--slate-400);
}

.blog-tag {
  background: var(--slate-100); color: var(--slate-600);
  padding: 3px 10px; border-radius: 999px; font-weight: 600; font-size: 12px;
}

/* ========================================
   BLOG POST
   ======================================== */
.post-header { padding: 64px 0 32px; }

.post-back {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 14px; font-weight: 600; color: var(--slate-500);
  margin-bottom: 24px;
}
.post-back:hover { color: var(--slate-900); }

.post-header h1 {
  font-size: clamp(32px, 5vw, 44px); font-weight: 800;
  letter-spacing: -0.04em; line-height: 1.1; margin-bottom: 12px;
}

.post-meta { font-size: 14px; color: var(--slate-400); display: flex; align-items: center; gap: 12px; }

.post-content { padding: 0 0 48px; }

.post-content h2 {
  font-size: 24px; font-weight: 700; letter-spacing: -0.03em;
  margin: 40px 0 12px; color: var(--slate-900);
}

.post-content h3 {
  font-size: 20px; font-weight: 700; letter-spacing: -0.02em;
  margin: 32px 0 10px; color: var(--slate-900);
}

.post-content p { margin: 0 0 18px; color: var(--slate-600); font-size: 17px; line-height: 1.7; }

.post-content ul, .post-content ol {
  margin: 0 0 18px; padding-left: 24px; color: var(--slate-600); font-size: 17px; line-height: 1.7;
}

.post-content li { margin-bottom: 6px; }

.post-content blockquote {
  border-left: 3px solid var(--accent); margin: 24px 0;
  padding: 16px 20px; background: var(--slate-50); border-radius: 0 12px 12px 0;
  color: var(--slate-600); font-size: 17px; font-style: italic;
}

.post-content strong { color: var(--slate-900); }
.post-content a:not(.btn-download) { color: var(--accent); font-weight: 600; }
.post-content a:not(.btn-download):hover { text-decoration: underline; }

/* ========================================
   DOWNLOAD CTA (bottom of posts)
   ======================================== */
.download-cta {
  background: var(--slate-50); border: 1px solid var(--slate-200);
  border-radius: 20px; padding: 32px; text-align: center; margin: 48px 0 80px;
}

.download-cta h3 {
  font-size: 22px; font-weight: 800; letter-spacing: -0.03em; margin-bottom: 8px;
}

.download-cta p { color: var(--slate-500); font-size: 15px; margin-bottom: 20px; }

.download-buttons { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

.btn-download {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 12px 24px; border-radius: 999px;
  font-weight: 700; font-size: 15px; cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  border: none;
}
.btn-download:hover { transform: translateY(-1px); }

.btn-ios { background: var(--accent); color: white; box-shadow: 0 8px 24px rgba(255, 104, 71, 0.25); }
.btn-ios:hover { background: var(--accent-dark); }

.btn-android { background: white; color: var(--slate-900); border: 1px solid var(--slate-300); box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06); }
.btn-android:hover { border-color: var(--slate-400); }

/* ========================================
   FOOTER
   ======================================== */
.footer { background: var(--slate-100); }

.footer-inner {
  max-width: 1200px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 24px; flex-wrap: wrap; gap: 12px;
}

.footer-left { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.footer-copy { font-size: 13px; color: var(--slate-500); }
.footer-links { display: flex; gap: 16px; font-size: 13px; color: var(--slate-500); }
.footer-links a:hover { color: var(--slate-900); }

/* ========================================
   RESPONSIVE
   ======================================== */
@media (max-width: 768px) {
  .nav-links { gap: 16px; }
  .blog-hero h1 { font-size: 36px; }
  .download-buttons { flex-direction: column; align-items: center; }
  .btn-download { width: 100%; max-width: 280px; }
}

@media (max-width: 480px) {
  .nav-links { display: none; }
  .header-inner { padding: 16px; }
  .container { padding: 0 16px; }
}
