/* ==============================
   SmartLifestyleDaily – Light Theme
   ============================== */

:root {
  --bg: #f6f7f9;
  --surface: #ffffff;
  --text: #1f2937;          /* slate-800 */
  --muted: #6b7280;         /* gray-500 */
  --line: #e5e7eb;          /* gray-200 */
  --accent: #2563eb;        /* blue-600 */
  --accent-soft: #eff6ff;   /* blue-50 */
  --shadow: 0 6px 20px rgba(0,0,0,.06);

  --radius: 16px;
  --radius-sm: 12px;
  --max: 1120px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial;
  line-height: 1.65;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
img { max-width: 100%; display: block; }

.container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 18px;
}

/* ---------- Top Navigation ---------- */

.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: #ffffff;
  border-bottom: 1px solid var(--line);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  gap: 16px;
  position: relative;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  color: var(--text);
}

.brand-badge {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 900;
}

.navlinks {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.navlinks a {
  font-size: 14px;
  color: var(--muted);
  padding: 8px 10px;
  border-radius: 8px;
}

.navlinks a:hover {
  background: var(--accent-soft);
  color: var(--accent);
  text-decoration: none;
}

/* ---------- Cards / Layout ---------- */

.section-title {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin: 36px 0 14px;
  gap: 12px;
}

.section-title h2 { margin: 0; font-size: 22px; color: var(--text); }
.section-title a { font-size: 14px; color: var(--accent); }

.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

@media (max-width: 980px) { .grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .grid { grid-template-columns: 1fr; } }

.card {
  background: var(--surface);
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.card-media {
  height: 160px;
  background: #f1f5f9;
  border-bottom: 1px solid var(--line);
  display: grid;
  place-items: center;
  overflow: hidden;
}

.card-body { padding: 16px; }

.kicker {
  font-size: 12px;
  color: var(--accent);
  font-weight: 700;
  margin: 0 0 6px;
  text-transform: uppercase;
  letter-spacing: .04em;
}

.card h3 { margin: 0 0 10px; font-size: 18px; color: var(--text); }
.card p { margin: 0 0 14px; color: var(--muted); }

.btnrow { margin-top: auto; padding: 0 16px 16px; }

.btn {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  padding: 10px 12px;
  border-radius: 10px;
  background: var(--accent);
  color: #ffffff;
  font-weight: 800;
  border: none;
}

.btn:hover { background: #1d4ed8; text-decoration: none; }

/* ---------- Article Pages ---------- */

.article {
  max-width: 860px;
  margin: 0 auto;
  padding: 36px 18px 0;
}

.breadcrumbs {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 10px;
}

.breadcrumbs a { color: var(--muted); }

.article h1 { font-size: 38px; margin: 10px 0; line-height: 1.15; }
.article .meta { font-size: 14px; color: var(--muted); margin-bottom: 18px; }
.article .lead { font-size: 18px; color: #374151; margin-bottom: 22px; }

.article h2 { margin-top: 32px; }
.article ul, .article ol { padding-left: 22px; }

.callout {
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 14px;
  margin: 22px 0;
}

/* ---------- EEAT Blocks ---------- */

.disclaimer-mini {
  background: #fffbeb;
  border: 1px solid #fde68a;
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  font-size: 14px;
  color: #92400e;
  margin: 20px 0;
}

.authorbox {
  display: flex;
  gap: 14px;
  margin-top: 28px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: #fafafa;
}

.avatar {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 900;
  display: grid;
  place-items: center;
}

.authorbox .name { font-weight: 900; margin: 0; color: var(--text); }
.authorbox .role { font-size: 13px; color: var(--muted); margin: 2px 0 0; }
.authorbox .bio { font-size: 14px; color: var(--muted); margin-top: 8px; }

/* ---------- Footer ---------- */

.footer {
  margin-top: 48px;
  padding: 28px 0 40px;
  border-top: 1px solid var(--line);
  background: #ffffff;
  color: var(--muted);
}

.footer a { color: var(--muted); }
.small { font-size: 13px; }

/* ==============================
   Mobile Hamburger Menu
   ============================== */

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: #ffffff;
  cursor: pointer;
  align-items: center;
  justify-content: center;
}

/* burger lines */
.menu-icon {
  width: 22px;
  height: 2px;
  background: var(--text);
  position: relative;
  border-radius: 2px;
}

.menu-icon::before,
.menu-icon::after {
  content: "";
  position: absolute;
  width: 22px;
  height: 2px;
  background: var(--text);
  left: 0;
  border-radius: 2px;
}

.menu-icon::before { top: -7px; }
.menu-icon::after  { top:  7px; }

@media (max-width: 820px) {
  .nav { flex-wrap: nowrap; }
  .menu-toggle { display: inline-flex; margin-left: auto; }

  /* collapse desktop links */
  .navlinks { display: none !important; }

  /* expanded menu */
  .navlinks.is-open {
    display: flex !important;
    flex-direction: column;
    position: absolute;
    top: 62px;
    left: 0;
    right: 0;
    background: #ffffff;
    border-bottom: 1px solid var(--line);
    padding: 12px;
    gap: 10px;
    z-index: 1000;
  }

  .navlinks.is-open a {
    padding: 14px;
    border-radius: 10px;
    border: 1px solid var(--line);
    background: #f9fafb;
    color: var(--text);
  }

  .navlinks.is-open a:hover {
    background: var(--accent-soft);
    border-color: #dbeafe;
    color: var(--accent);
    text-decoration: none;
  }
}

/* burger -> X */
.menu-toggle.is-open .menu-icon { background: transparent; }
.menu-toggle.is-open .menu-icon::before { transform: rotate(45deg); top: 0; }
.menu-toggle.is-open .menu-icon::after  { transform: rotate(-45deg); top: 0; }

.menu-icon,
.menu-icon::before,
.menu-icon::after { transition: all .2s ease; }