/* chalplex.blog — blog styles */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  line-height: 1.7; color: #333; background: #fafbfd;
}
.container { max-width: 1100px; margin: 0 auto; padding: 0 20px; }

/* nav */
nav.blog-nav {
  position: sticky; top: 0; width: 100%;
  background: rgba(255,255,255,.95); backdrop-filter: blur(10px);
  z-index: 1000; padding: 16px 0; box-shadow: 0 2px 10px rgba(0,0,0,.05);
}
nav.blog-nav .container { display: flex; justify-content: space-between; align-items: center; }
nav.blog-nav .logo {
  font-size: 22px; font-weight: 700; text-decoration: none;
  background: linear-gradient(135deg, #0d47a1 0%, #2196F3 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
nav.blog-nav ul { display: flex; list-style: none; gap: 26px; }
nav.blog-nav a { text-decoration: none; color: #333; font-weight: 500; }
nav.blog-nav ul a:hover { color: #2196F3; }
@media (max-width: 640px) { nav.blog-nav ul { gap: 14px; font-size: 14px; } }

/* article */
.post { max-width: 760px; margin: 0 auto; padding: 44px 20px 30px; }
.post-badge {
  display: inline-block; font-size: 13px; font-weight: 600; letter-spacing: .3px;
  color: #0d47a1; background: #e3f0fd; border-radius: 999px; padding: 4px 14px;
  text-decoration: none; margin-bottom: 16px;
}
.post-badge:hover { background: #d2e6fb; }
.post h1 { font-size: clamp(28px, 4.5vw, 40px); line-height: 1.22; margin-bottom: 12px; color: #16233b; }
.post-meta { color: #7a869a; font-size: 14px; margin-bottom: 30px; }
.post h2 { font-size: 24px; margin: 38px 0 12px; color: #16233b; }
.post h3 { font-size: 18px; margin: 22px 0 6px; color: #16233b; }
.post p { margin-bottom: 16px; }
.post a { color: #1565c0; }

/* app card */
.app-card {
  background: #fff; border: 1px solid #e6ebf2; border-radius: 16px;
  padding: 22px; margin: 26px 0 30px; box-shadow: 0 4px 18px rgba(13,71,161,.06);
}
.app-card-head { display: flex; align-items: center; gap: 16px; margin-bottom: 12px; }
.app-card-head img.app-icon {
  width: 68px; height: 68px; border-radius: 15px; flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(0,0,0,.12);
}
.app-card-name { font-size: 20px; font-weight: 700; color: #16233b; }
.app-platform {
  display: inline-block; font-size: 12px; font-weight: 600; margin-top: 3px;
  color: #5a6b85; background: #eef2f8; padding: 2px 10px; border-radius: 999px;
}
.app-card p.app-blurb { margin: 6px 0 14px; }
.shots { display: flex; gap: 12px; overflow-x: auto; padding: 4px 2px 10px; -webkit-overflow-scrolling: touch; }
.shots img {
  height: 250px; width: auto; border-radius: 12px; border: 1px solid #e6ebf2;
  flex-shrink: 0; background: #f2f5f9;
}
.app-buttons { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 14px; }
.btn-store {
  display: inline-block; text-decoration: none; font-weight: 600; font-size: 15px;
  color: #fff; background: linear-gradient(135deg, #0d47a1 0%, #2196F3 100%);
  padding: 10px 22px; border-radius: 999px; transition: transform .15s, box-shadow .15s;
}
.btn-store:hover { transform: translateY(-1px); box-shadow: 0 6px 16px rgba(33,150,243,.35); }
.btn-about {
  display: inline-block; text-decoration: none; font-weight: 600; font-size: 15px;
  color: #0d47a1; background: #e3f0fd; padding: 10px 22px; border-radius: 999px;
}
.btn-about:hover { background: #d2e6fb; }

/* faq */
.faq { background: #fff; border: 1px solid #e6ebf2; border-radius: 16px; padding: 6px 24px 10px; margin-top: 10px; }
.faq h3 { font-size: 17px; }
.faq p { color: #4a586e; }

/* related */
.related { max-width: 760px; margin: 0 auto; padding: 8px 20px 60px; }
.related h2 { font-size: 22px; margin-bottom: 16px; color: #16233b; }
.related-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 14px; }
.related-card {
  display: block; background: #fff; border: 1px solid #e6ebf2; border-radius: 14px;
  padding: 16px 18px; text-decoration: none; transition: box-shadow .15s, transform .15s;
}
.related-card:hover { box-shadow: 0 6px 18px rgba(13,71,161,.10); transform: translateY(-2px); }
.related-card .t { font-weight: 650; color: #16233b; line-height: 1.35; }
.related-card .d { font-size: 13.5px; color: #7a869a; margin-top: 6px; }

/* blog index */
.blog-hero { text-align: center; padding: 60px 20px 26px; }
.blog-hero h1 {
  font-size: clamp(32px, 5vw, 46px);
  background: linear-gradient(135deg, #0d47a1 0%, #2196F3 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
  margin-bottom: 14px;
}
.blog-hero p { max-width: 640px; margin: 0 auto 6px; color: #4a586e; font-size: 17px; }
.cluster-nav { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; padding: 14px 20px 8px; max-width: 900px; margin: 0 auto; }
.cluster-nav a {
  font-size: 13.5px; font-weight: 600; color: #0d47a1; background: #e3f0fd;
  text-decoration: none; padding: 6px 14px; border-radius: 999px;
}
.cluster-nav a:hover { background: #d2e6fb; }
.cluster-section { padding: 34px 0 6px; }
.cluster-section h2 { font-size: 26px; color: #16233b; margin-bottom: 6px; }
.cluster-section .cluster-intro { color: #4a586e; max-width: 720px; margin-bottom: 18px; }
.post-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 16px; margin-bottom: 18px; }
.post-card {
  display: flex; flex-direction: column; background: #fff; border: 1px solid #e6ebf2;
  border-radius: 16px; padding: 20px; text-decoration: none;
  transition: box-shadow .15s, transform .15s;
}
.post-card:hover { box-shadow: 0 8px 22px rgba(13,71,161,.10); transform: translateY(-2px); }
.post-card .t { font-weight: 700; color: #16233b; font-size: 17px; line-height: 1.35; }
.post-card .d { font-size: 14px; color: #64748c; margin: 8px 0 14px; flex: 1; }
.post-card .icons { display: flex; gap: 8px; }
.post-card .icons img { width: 34px; height: 34px; border-radius: 8px; box-shadow: 0 1px 4px rgba(0,0,0,.12); }

/* footer */
footer.blog-footer { border-top: 1px solid #e6ebf2; margin-top: 40px; padding: 28px 20px 36px; text-align: center; color: #7a869a; font-size: 14px; background: #fff; }
footer.blog-footer a { color: #1565c0; text-decoration: none; margin: 0 8px; }
