/* ══════════════════════════════════════════════════════════════
   ForkYeah Blog — Shared Stylesheet
   Brand palette: Primary #FF7F50 · Accent #FFAB40 · BG #FAFAFA
   Font: Noto Sans HK (matches Flutter app)
   ══════════════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+HK:wght@400;500;600;700&display=swap');

:root {
  --primary:      #FF7F50;
  --primary-dark: #E55A2B;
  --accent:       #FFAB40;
  --bg:           #FAFAFA;
  --bg-deep:      #F0EFED;
  --card:         #FFFFFF;
  --text:         #2D2D2D;
  --text-sec:     #757575;
  --divider:      #EEEEEE;
  --header-h:     56px;
  --bottom-h:     64px;
  --max-w:        720px;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Noto Sans HK', 'Noto Sans TC', 'PingFang HK', 'PingFang TC', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.85;
  padding-top: var(--header-h);
  padding-bottom: calc(var(--bottom-h) + 8px);
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--primary);
  text-decoration: none;
}
a:hover { text-decoration: underline; }

img { max-width: 100%; height: auto; }


/* ── Top Header ──────────────────────────────────────────────── */

.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--header-h);
  background: var(--primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  z-index: 200;
  box-shadow: 0 2px 8px rgba(0,0,0,.18);
}

.site-logo {
  color: #fff;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 6px;
}
.site-logo:hover { text-decoration: none; color: #fff; }

.burger-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
}
.burger-btn span {
  display: block;
  width: 22px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: transform .2s ease, opacity .2s ease;
}
.burger-btn.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger-btn.active span:nth-child(2) { opacity: 0; }
.burger-btn.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }


/* ── Mobile Slide-Down Menu ──────────────────────────────────── */

.mobile-nav {
  display: none;
  position: fixed;
  top: var(--header-h);
  left: 0; right: 0;
  background: var(--card);
  z-index: 190;
  border-bottom: 1px solid var(--divider);
  box-shadow: 0 6px 20px rgba(0,0,0,.1);
}
.mobile-nav.open { display: block; }

.mobile-nav a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 15px 20px;
  font-size: 15px;
  font-weight: 500;
  color: var(--text);
  border-bottom: 1px solid var(--divider);
  transition: background .15s;
}
.mobile-nav a:last-child { border-bottom: none; }
.mobile-nav a:hover {
  background: var(--bg-deep);
  text-decoration: none;
  color: var(--primary);
}
.mobile-nav a .mn-icon { font-size: 18px; }


/* ── Page Content Wrapper ────────────────────────────────────── */

.page-main {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 28px 16px 48px;
}


/* ═══════════════════════════════════════════════════════════════
   BLOG INDEX PAGE
   ═══════════════════════════════════════════════════════════════ */

.blog-hero {
  text-align: center;
  padding: 20px 0 32px;
  border-bottom: 2px solid var(--divider);
  margin-bottom: 28px;
}
.blog-hero h1 {
  font-size: 26px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 10px;
  line-height: 1.35;
}
.blog-hero .blog-subtitle {
  font-size: 14px;
  color: var(--text-sec);
  line-height: 1.6;
}

.article-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.article-card {
  display: block;
  background: var(--card);
  border-radius: 16px;
  padding: 20px;
  box-shadow: 0 2px 10px rgba(255,127,80,.1);
  transition: box-shadow .2s ease, transform .15s ease;
  text-decoration: none;
  color: inherit;
}
.article-card:hover {
  box-shadow: 0 8px 24px rgba(255,127,80,.22);
  transform: translateY(-2px);
  text-decoration: none;
  color: inherit;
}

.article-card .tag-pill {
  display: inline-block;
  background: rgba(255,127,80,.12);
  color: var(--primary);
  font-size: 11px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 20px;
  margin-bottom: 9px;
  letter-spacing: 0.01em;
}

.article-card h2 {
  font-size: 17px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.4;
  margin-bottom: 8px;
}

.article-card .snippet {
  font-size: 13px;
  color: var(--text-sec);
  line-height: 1.65;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.article-card .read-more {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 12px;
  font-size: 13px;
  font-weight: 600;
  color: var(--primary);
}


/* ═══════════════════════════════════════════════════════════════
   ARTICLE DETAIL PAGE
   ═══════════════════════════════════════════════════════════════ */

/* Breadcrumb */
.breadcrumb {
  font-size: 12px;
  color: var(--text-sec);
  margin-bottom: 18px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 5px;
}
.breadcrumb a { color: var(--primary); }
.breadcrumb .sep { color: var(--text-sec); }

/* Article header */
.art-tag {
  display: inline-block;
  background: rgba(255,127,80,.12);
  color: var(--primary);
  font-size: 12px;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 20px;
  margin-bottom: 12px;
}

h1.art-title {
  font-size: 24px;
  font-weight: 700;
  line-height: 1.4;
  color: var(--text);
  margin-bottom: 8px;
}

.art-meta {
  font-size: 12px;
  color: var(--text-sec);
  margin-bottom: 24px;
}

/* Intro block */
.art-intro {
  font-size: 15px;
  line-height: 1.9;
  color: var(--text);
  margin-bottom: 32px;
  padding: 16px 20px;
  background: rgba(255,127,80,.07);
  border-left: 3px solid var(--primary);
  border-radius: 0 10px 10px 0;
}

/* Section divider label */
.section-label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-sec);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.section-label::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--divider);
}

/* Restaurant card */
.restaurant {
  background: var(--card);
  border-radius: 16px;
  padding: 20px;
  margin-bottom: 20px;
  box-shadow: 0 2px 10px rgba(255,127,80,.1);
}

.r-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  background: var(--primary);
  color: #fff;
  border-radius: 50%;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 10px;
  flex-shrink: 0;
}

.restaurant h2 {
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 12px;
  line-height: 1.3;
}

.r-meta {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 14px;
}

.r-meta-row {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  font-size: 13px;
  color: var(--text-sec);
  background: var(--bg-deep);
  padding: 7px 12px;
  border-radius: 8px;
  line-height: 1.5;
}
.r-meta-row .r-icon { font-size: 14px; flex-shrink: 0; margin-top: 1px; }
.r-meta-row strong { color: var(--text); font-weight: 600; margin-right: 3px; }

.restaurant p.r-desc {
  font-size: 14.5px;
  line-height: 1.9;
  color: var(--text);
}

/* CTA block */
.cta-block {
  text-align: center;
  padding: 32px 24px;
  margin-top: 36px;
  background: linear-gradient(135deg, rgba(255,127,80,.1) 0%, rgba(255,171,64,.08) 100%);
  border-radius: 20px;
  border: 1px solid rgba(255,127,80,.15);
}
.cta-block p {
  font-size: 15px;
  color: var(--text);
  line-height: 1.7;
  margin-bottom: 20px;
}
.cta-btn {
  display: inline-block;
  background: var(--primary);
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  padding: 14px 36px;
  border-radius: 50px;
  text-decoration: none;
  box-shadow: 0 4px 18px rgba(255,127,80,.4);
  transition: background .2s, transform .15s, box-shadow .2s;
}
.cta-btn:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(255,127,80,.5);
  text-decoration: none;
  color: #fff;
}


/* ── Bottom Navigation Bar ───────────────────────────────────── */

.bottom-nav {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  height: var(--bottom-h);
  background: var(--card);
  border-top: 1px solid var(--divider);
  display: flex;
  z-index: 200;
  box-shadow: 0 -2px 12px rgba(0,0,0,.07);
}

.bottom-nav .nav-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  color: var(--text-sec);
  text-decoration: none;
  font-size: 11px;
  font-weight: 500;
  transition: color .15s;
  padding: 4px 0;
}
.bottom-nav .nav-item .nav-icon {
  font-size: 22px;
  line-height: 1;
}
.bottom-nav .nav-item:hover {
  color: var(--primary);
  text-decoration: none;
}


/* ── AdSense Mid-Article Placeholder ────────────────────────── */

.ad-mid-article {
  margin: 28px 0;
  text-align: center;
  min-height: 90px;
  background: var(--bg-deep);
  border-radius: 8px;
  overflow: hidden;
}

/* ── Static Info Pages (About / Privacy / Terms) ─────────────── */

.static-hero {
  text-align: center;
  padding: 24px 0 28px;
  border-bottom: 2px solid var(--divider);
  margin-bottom: 32px;
}
.static-hero h1 {
  font-size: 24px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.35;
}
.static-hero .static-subtitle {
  font-size: 13px;
  color: var(--text-sec);
  margin-top: 8px;
}

.static-section {
  margin-bottom: 28px;
}
.static-section h2 {
  font-size: 16px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 8px;
}
.static-section p,
.static-section .section-body {
  font-size: 14.5px;
  line-height: 1.85;
  color: var(--text);
  white-space: pre-line;
}

/* ── Responsive ─────────────────────────────────────────────── */

@media (min-width: 600px) {
  .page-main { padding: 36px 24px 56px; }
  h1.art-title { font-size: 28px; }
  .restaurant h2 { font-size: 20px; }
  .blog-hero h1 { font-size: 30px; }
  .r-meta { flex-direction: row; flex-wrap: wrap; }
}

@media (min-width: 900px) {
  .site-header { padding: 0 32px; }
  .page-main { padding: 40px 24px 56px; }
}
