/* el-base.css — 共用基礎樣式（色票 / body / 頂部列），給 trash / tags / review 子頁用。
   取自 member.php :root + _partials/header.php 的 .el-top-bar 系列。 */
* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --bg-main: #FAF6EE;
  --bg-soft: #F4EEE0;
  --bg-warm: #EFE5D0;
  --bg-card: #FFFFFF;

  --text-main: #2F2A24;
  --text-soft: #6B5F50;
  --text-light: #9A8E7C;
  --text-faint: #B5A893;
  --text-placeholder: #B5A893;

  --border: #E5D9C2;
  --border-soft: #EFE5D0;
  --border-input: #D4C8AE;
  --border-focus: #3B9778;
  --bg-input: #FAF6EE;

  --primary: #3B9778;
  --primary-dark: #2D7E63;
  --primary-soft: #5BB293;
  --primary-light: #C5E5D6;
  --primary-bg: #E8F4ED;

  --accent: #E8804E;
  --accent-yellow: #C99B40;
  --warning: #E8804E;
  --warning-bg: rgba(232, 128, 78, 0.08);
  --warning-border: rgba(232, 128, 78, 0.3);

  --shadow-sm: 0 1px 2px rgba(47, 42, 36, 0.04);
  --shadow-md: 0 2px 12px rgba(47, 42, 36, 0.06);
  --shadow-lg: 0 8px 32px rgba(47, 42, 36, 0.10);
}

body {
  font-family: 'Noto Sans TC', -apple-system, sans-serif;
  color: var(--text-main); background: var(--bg-main);
  line-height: 1.65; -webkit-font-smoothing: antialiased;
  min-height: 100vh; display: flex; flex-direction: column;
}
main { flex: 1; }

/* === Sticky Top Bar（子頁共用） === */
.el-top-bar {
  position: sticky; top: 0; z-index: 40;
  background: var(--bg-main);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border-soft);
  transition: background 0.2s, box-shadow 0.2s;
  padding-top: env(safe-area-inset-top); /* iPhone 瀏海 */
}
.el-top-bar.scrolled {
  background: rgba(250, 246, 238, 0.92);
  box-shadow: 0 1px 8px rgba(47, 42, 36, 0.04);
}
.el-top-bar-inner {
  max-width: 880px; margin: 0 auto;
  padding: 1rem 1.25rem;
  display: flex; justify-content: space-between; align-items: center;
}
.el-logo {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 1.5rem; font-weight: 800;
  color: var(--text-main); letter-spacing: -0.02em;
  text-decoration: none;
  display: inline-flex; align-items: baseline; gap: 1px;
}
.el-logo .el-logo-dot { color: var(--primary); }
.el-top-actions { display: flex; gap: 0.5rem; align-items: center; }
.el-nav-link {
  color: var(--text-soft); text-decoration: none;
  padding: 0.45rem 0.95rem; border-radius: 100px;
  font-size: 0.92rem; font-weight: 500; transition: all 0.18s;
  border: 1px solid transparent;
}
.el-nav-link:hover { color: var(--primary); background: rgba(59,151,120,0.06); }
.el-nav-cta {
  background: var(--primary); color: #fff !important;
  padding: 0.5rem 1.15rem; border-radius: 100px;
  font-weight: 600; font-size: 0.92rem;
  text-decoration: none; transition: background 0.15s;
}
.el-nav-cta:hover { background: var(--primary-dark); }
.el-review-btn {
  display: inline-flex; align-items: center; gap: 0.4rem;
  padding: 0.45rem 1rem; border-radius: 100px;
  background: white; color: var(--primary) !important;
  border: 1.5px solid var(--primary);
  font-weight: 600; font-size: 0.9rem;
  text-decoration: none; transition: all 0.2s; line-height: 1.2;
}
.el-review-btn:hover { background: var(--primary-bg); transform: translateY(-1px); }
.el-review-btn svg { flex-shrink: 0; width: 14px; height: 14px; }

@media (max-width: 600px) {
  .el-top-bar-inner { padding: 0.75rem 0.85rem; }
  .el-logo { font-size: 1.3rem; }
  .el-nav-link { font-size: 0.85rem; padding: 0.4rem 0.7rem; }
}

/* iOS 防呆：輸入框字級 < 16px 時，聚焦會自動放大畫面且不縮回。
   只在觸控裝置把文字輸入控件拉到 16px（桌機維持原設計）。 */
@media (pointer: coarse) {
  input, textarea, select,
  .tag-search-input, .meta-input, .meta-select { font-size: 16px !important; }
}
