/* ============================================================
   Mosey Blog — extends /assets/css/style.css
   ============================================================ */

:root {
  --color-bg-dark: #1C1C1E;
  --color-bg-light: #FFFFFF;
  --color-bg-section: #F5F5F7;
  --color-accent: #007AFF;
  --color-text-primary: #1C1C1E;
  --color-text-secondary: #6E6E73;
  --color-text-on-dark: #FFFFFF;
  --color-border: #D1D1D6;
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  --max-width: 1100px;
  --post-max-width: 740px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-sans);
  color: var(--color-text-primary);
  background: var(--color-bg-light);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--color-accent); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ---- HERO WITH PHOTO ---- */
.post-hero.has-photo {
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
  position: relative;
}
.post-hero.has-photo::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, rgba(8,8,12,0.68) 0%, rgba(8,8,12,0.88) 100%);
  z-index: 0;
}
.post-hero.has-photo .post-hero-inner {
  position: relative;
  z-index: 1;
}

/* ---- INLINE ARTICLE PHOTO ---- */
.post-photo {
  margin: 40px 0;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(0,0,0,0.1);
}
.post-photo img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  display: block;
}
.post-photo figcaption {
  background: var(--color-bg-section);
  padding: 10px 16px;
  font-size: 0.8125rem;
  color: var(--color-text-secondary);
  line-height: 1.5;
}

/* ---- SITE NAV BAR ---- */
.blog-topbar {
  background: var(--color-bg-dark);
  padding: 0 20px;
  height: 52px;
  display: flex;
  align-items: center;
  gap: 0;
}
.blog-topbar-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  width: 100%;
  display: flex;
  align-items: center;
  gap: 8px;
}
.topbar-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  color: rgba(255,255,255,0.85);
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
}
.topbar-logo:hover { color: #fff; text-decoration: none; }
.topbar-logo svg { flex-shrink: 0; }
.topbar-sep { color: rgba(255,255,255,0.25); margin: 0 4px; font-size: 0.9rem; }
.topbar-section { color: rgba(255,255,255,0.5); font-size: 0.875rem; font-weight: 400; }
.topbar-spacer { flex: 1; }
.topbar-cta {
  background: var(--color-accent);
  color: #fff;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.8125rem;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}
.topbar-cta:hover { background: #0056CC; text-decoration: none; }

/* ---- BLOG LISTING PAGE ---- */
.blog-hero {
  background: var(--color-bg-dark);
  color: #fff;
  padding: 64px 20px 72px;
  text-align: center;
}
.blog-hero h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}
.blog-hero h1 span { color: var(--color-accent); }
.blog-hero p {
  color: rgba(255,255,255,0.65);
  font-size: 1.0625rem;
  max-width: 500px;
  margin: 0 auto;
}
.blog-listing {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 56px 20px 80px;
}
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 28px;
  margin-top: 40px;
}
.blog-card {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: 16px;
  overflow: hidden;
  transition: box-shadow 0.2s, transform 0.2s;
  display: flex;
  flex-direction: column;
}
.blog-card:hover {
  box-shadow: 0 8px 32px rgba(0,0,0,0.1);
  transform: translateY(-2px);
  text-decoration: none;
}
.blog-card-img {
  background: linear-gradient(135deg, #1C1C1E 0%, #2C2C2E 100%);
  height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.blog-card-img img { width: 100%; height: 100%; object-fit: cover; }
.blog-card-city {
  position: absolute;
  bottom: 12px;
  left: 12px;
  background: rgba(0,0,0,0.65);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 20px;
  backdrop-filter: blur(4px);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.blog-card-body {
  padding: 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.blog-card-meta {
  font-size: 0.8125rem;
  color: var(--color-text-secondary);
  margin-bottom: 8px;
}
.blog-card h2 {
  font-size: 1.0625rem;
  font-weight: 700;
  line-height: 1.4;
  color: var(--color-text-primary);
  margin-bottom: 10px;
}
.blog-card p {
  font-size: 0.9375rem;
  color: var(--color-text-secondary);
  flex: 1;
  line-height: 1.55;
}
.blog-card-footer {
  margin-top: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.tour-chip {
  background: var(--color-bg-section);
  color: var(--color-text-secondary);
  font-size: 0.75rem;
  font-weight: 500;
  padding: 3px 10px;
  border-radius: 12px;
}
.blog-card-link {
  margin-left: auto;
  color: var(--color-accent);
  font-size: 0.875rem;
  font-weight: 600;
  white-space: nowrap;
}

/* ---- POST PAGE ---- */
.post-hero {
  background: var(--color-bg-dark);
  color: #fff;
  padding: 52px 20px 64px;
}
.post-hero-inner {
  max-width: var(--post-max-width);
  margin: 0 auto;
}
.post-category {
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-accent);
  margin-bottom: 16px;
}
.post-hero h1 {
  font-size: clamp(1.75rem, 4.5vw, 2.5rem);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
}
.post-byline {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  color: rgba(255,255,255,0.55);
  font-size: 0.875rem;
}
.post-byline-dot { opacity: 0.4; }
.mosey-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(0,122,255,0.2);
  border: 1px solid rgba(0,122,255,0.4);
  color: #6eb8ff;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 12px;
}

/* Tour stats card */
.tour-stats-card {
  background: var(--color-bg-section);
  border: 1px solid var(--color-border);
  border-radius: 16px;
  padding: 24px;
  margin: 40px 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 20px;
  text-align: center;
}
.tour-stat-item {}
.tour-stat-value {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--color-text-primary);
  line-height: 1;
  margin-bottom: 4px;
}
.tour-stat-label {
  font-size: 0.8125rem;
  color: var(--color-text-secondary);
  font-weight: 500;
}
.tour-stat-icon {
  font-size: 1.25rem;
  margin-bottom: 6px;
}

/* Post body */
.post-body {
  max-width: var(--post-max-width);
  margin: 0 auto;
  padding: 48px 20px 64px;
}
.post-body p {
  font-size: 1.0625rem;
  line-height: 1.75;
  color: #333;
  margin-bottom: 20px;
}
.post-body h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-text-primary);
  margin: 48px 0 16px;
  letter-spacing: -0.01em;
}
.post-body h3 {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--color-text-primary);
  margin: 32px 0 8px;
}

/* App screenshot in post */
.post-screenshot {
  margin: 32px 0;
  text-align: center;
}
.post-screenshot img {
  max-width: 320px;
  border-radius: 32px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.15);
  margin: 0 auto;
}
.post-screenshot figcaption {
  color: var(--color-text-secondary);
  font-size: 0.875rem;
  margin-top: 12px;
  font-style: italic;
}

/* Stop cards */
.stops-section { margin: 40px 0; }
.stop-card {
  border: 1px solid var(--color-border);
  border-radius: 16px;
  padding: 24px;
  margin-bottom: 16px;
  position: relative;
  background: #fff;
}
.stop-card-header {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 12px;
}
.stop-number {
  background: var(--color-accent);
  color: #fff;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.875rem;
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 2px;
}
.stop-number.meal { background: #34C759; }
.stop-header-text {}
.stop-name {
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--color-text-primary);
  line-height: 1.3;
}
.stop-kind {
  font-size: 0.8125rem;
  color: var(--color-text-secondary);
  margin-top: 2px;
}
.stop-dwell {
  margin-left: auto;
  font-size: 0.8125rem;
  color: var(--color-text-secondary);
  white-space: nowrap;
  flex-shrink: 0;
}
.stop-narration {
  background: var(--color-bg-section);
  border-left: 3px solid var(--color-accent);
  border-radius: 0 8px 8px 0;
  padding: 12px 16px;
  margin: 12px 0;
  font-size: 0.9375rem;
  color: #444;
  line-height: 1.6;
  font-style: italic;
}
.stop-narration.meal { border-left-color: #34C759; }
.stop-commentary {
  font-size: 0.9375rem;
  color: #555;
  line-height: 1.65;
  margin-top: 10px;
}

/* Download CTA block */
.post-cta {
  background: var(--color-bg-dark);
  border-radius: 20px;
  padding: 36px 28px;
  text-align: center;
  margin: 48px 0;
  color: #fff;
}
.post-cta h3 {
  font-size: 1.375rem;
  font-weight: 800;
  margin-bottom: 8px;
}
.post-cta p {
  color: rgba(255,255,255,0.65);
  font-size: 0.9375rem;
  margin-bottom: 20px;
}
.btn-download {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #fff;
  color: var(--color-text-primary);
  padding: 12px 24px;
  border-radius: 14px;
  font-weight: 700;
  font-size: 0.9375rem;
  text-decoration: none;
}
.btn-download:hover { background: #f0f0f0; text-decoration: none; }
.btn-download-sub { font-size: 0.75rem; font-weight: 400; opacity: 0.6; }

/* Tip box */
.post-tip {
  background: rgba(0,122,255,0.06);
  border: 1px solid rgba(0,122,255,0.2);
  border-radius: 12px;
  padding: 16px 20px;
  margin: 24px 0;
  font-size: 0.9375rem;
  color: #333;
  line-height: 1.6;
}
.post-tip strong { color: var(--color-accent); }

/* Footer */
.blog-footer {
  background: var(--color-bg-dark);
  padding: 40px 20px;
  text-align: center;
  color: rgba(255,255,255,0.5);
  font-size: 0.875rem;
}
.blog-footer a { color: rgba(255,255,255,0.65); }
.blog-footer a:hover { color: #fff; }
.blog-footer-links {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

/* ---- RESPONSIVE ---- */
@media (max-width: 600px) {
  .post-hero { padding: 36px 16px 48px; }
  .post-body { padding: 32px 16px 48px; }
  .tour-stats-card { grid-template-columns: repeat(2, 1fr); }
  .stop-dwell { display: none; }
  .blog-hero { padding: 48px 16px 56px; }
}
