/* ==========================================================
   MoveMate — Shared Styles
   Extracted 2026-03-07 to eliminate 14-file duplication.
   Each page keeps only page-specific CSS inline.
   ========================================================== */

/* ---- Design Tokens ---- */
:root {
  --accent: #ecf95a;
  --accent-text: #5C6E00;
  --accent-hover: #d4e050;
  --accent-light: #f5fcd5;
  --accent-glow: rgba(236, 249, 90, 0.15);
  --accent-glow-strong: rgba(236, 249, 90, 0.25);
  --text: #191314;
  --text-secondary: #6B7280;
  --text-subtle: #9CA3AF;
  --bg: #FFFFFF;
  --bg-alt: #F8F9FC;
  --bg-dark: #191314;
  --border: #E5E7EB;
  --border-light: #F3F4F6;
  --radius: 20px;
  --radius-sm: 14px;
  --radius-xs: 10px;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.04), 0 4px 12px rgba(0,0,0,0.04);
  --shadow-md: 0 4px 24px rgba(0,0,0,0.08);
  --shadow-lg: 0 12px 40px rgba(0,0,0,0.12);
  --shadow-accent: 0 8px 30px rgba(236, 249, 90, 0.25);
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --bounce: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--text-secondary);
  background: var(--bg);
  font-size: 16px;
  line-height: 1.7;
  overflow-x: hidden;
}

a { color: var(--text); text-decoration: none; transition: var(--transition); font-weight: 500; }
a:hover { color: var(--accent-text); }
img { max-width: 100%; display: block; }

::selection { background: rgba(236, 249, 90, 0.3); color: var(--text); }

/* ---- Layout ---- */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* ---- Navigation ---- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-light);
  transition: var(--transition);
}
.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 22px;
  font-weight: 700;
  color: var(--text);
  text-decoration: none;
  letter-spacing: -0.02em;
}
.nav-logo svg { width: 32px; height: 32px; }
.nav-logo span { color: var(--accent-text); }
.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}
.nav-links a {
  font-size: 15px;
  font-weight: 500;
  color: var(--text-secondary);
  transition: var(--transition);
  position: relative;
}
.nav-links a:hover { color: var(--text); }
.nav-links a.active { color: var(--text); font-weight: 600; }
.nav-links a.active::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--accent);
}
.nav-cta {
  background: var(--bg-dark);
  color: #fff !important;
  padding: 10px 24px;
  border-radius: 100px;
  font-weight: 600;
  font-size: 14px;
  transition: var(--bounce);
  text-decoration: none;
}
.nav-cta:hover {
  background: #2d2225;
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(0,0,0,0.2);
  color: #fff !important;
}
.nav-mobile-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

/* ---- Badges ---- */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 6px 16px;
  border-radius: 100px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 100px;
  font-family: 'DM Sans', sans-serif;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: var(--bounce);
}
.btn-primary {
  background: var(--accent);
  color: var(--text);
  box-shadow: var(--shadow-accent);
}
.btn-primary:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-accent);
}
.btn-outline, .btn-secondary {
  background: transparent;
  color: var(--text);
  border: 2px solid var(--border);
}
.btn-outline:hover, .btn-secondary:hover {
  background: var(--bg-dark);
  color: #fff;
  border-color: var(--bg-dark);
  transform: translateY(-2px);
}
.btn-ghost {
  background: transparent;
  color: var(--text);
  padding: 14px 0;
}
.btn-ghost::after { content: '\2192'; transition: var(--transition); }
.btn-ghost:hover { color: var(--accent-text); }
.btn-ghost:hover::after { transform: translateX(4px); }

/* ---- Scroll Reveal ---- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}
.reveal.visible,
.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}
.reveal-d1 { transition-delay: 0.1s; }
.reveal-d2 { transition-delay: 0.2s; }
.reveal-d3 { transition-delay: 0.3s; }


/* ---- Hero Gradient (full-width, no side gaps) ---- */
.hero {
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background:
    radial-gradient(ellipse at 20% 50%, rgba(236,249,90,0.15) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 20%, rgba(59,130,246,0.06) 0%, transparent 45%),
    radial-gradient(ellipse at 60% 80%, rgba(236,249,90,0.08) 0%, transparent 45%);
  pointer-events: none;
  z-index: 0;
}
.hero > * {
  position: relative;
  z-index: 1;
}

/* ---- Footer ---- */
.footer { background: #191314; color: #fff; padding: 64px 0 32px; }
.footer .container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.footer::before {
  content: '';
  display: block;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(236,249,90,0.4), transparent);
  margin-bottom: 0;
}
.footer-brand .nav-logo { display: flex; align-items: center; gap: 10px; font-size: 22px; font-weight: 700; color: #fff; margin-bottom: 12px; text-decoration: none; letter-spacing: -0.02em; }
.footer-brand .nav-logo svg { width: 32px; height: 32px; }
.footer-brand .nav-logo span { color: var(--accent-text); }
.footer-brand p { font-size: 14px; max-width: 280px; line-height: 1.6; color: rgba(255,255,255,0.6); }
.footer-links { display: flex; flex-direction: column; gap: 4px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.08); padding-top: 24px; display: flex; justify-content: space-between; align-items: center; font-size: 13px; color: rgba(255,255,255,0.4); }
/* ---- Accessibility ---- */
:focus-visible {
  outline: 2px solid var(--accent-text);
  outline-offset: 2px;
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ---- Responsive: Tablet ---- */

/* Canonical section spacing */
.section-padding { padding: 96px 0; }

/* Canonical card base */
.card-base {
    padding: 32px;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    background: var(--bg);
}
.card-base:hover {
    background: var(--accent);
    border-color: var(--accent);
    box-shadow: none;
    transform: translateY(-4px);
}

/* Back to top button */
.back-to-top {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 44px;
    height: 44px;
    border-radius: 100px;
    background: var(--bg-dark);
    color: #fff;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 999;
    box-shadow: var(--shadow-md);
}
.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}
.back-to-top:hover {
    background: var(--accent);
    color: var(--text);
}
.back-to-top:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

/* Breadcrumb */
.breadcrumb {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 16px;
}
.breadcrumb a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: var(--transition);
}
.breadcrumb a:hover {
    color: var(--text);
}

/* ---- Navigation ---- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-light);
  transition: var(--transition);
}
.nav.scrolled { box-shadow: var(--shadow-sm); }
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 72px; max-width: 1200px; margin: 0 auto; padding: 0 24px;
}
.nav-logo {
  display: flex; align-items: center; gap: 10px;
  font-size: 22px; font-weight: 700; color: var(--text);
  letter-spacing: -0.02em; text-decoration: none;
}
.nav-logo svg { width: 32px; height: 32px; }
.nav-logo span { color: #5C6E00; }
.nav-links {
  display: flex; align-items: center; gap: 32px;
  list-style: none; padding: 0; margin: 0;
}
.nav-links li { list-style: none; }
.nav-links > li > a {
  font-size: 15px; font-weight: 500; color: var(--text);
  transition: var(--transition); text-decoration: none;
}
.nav-links > li > a:hover { color: #5C6E00; }
.nav-links > li > a.active { color: var(--accent-text); font-weight: 600; }
.nav-cta {
  background: var(--text); color: #fff !important; padding: 10px 24px;
  border-radius: 100px; font-weight: 700; font-size: 14px;
  transition: var(--transition); text-decoration: none;
}
.nav-cta:hover { background: #333; transform: translateY(-2px); }
.nav-mobile-toggle { display: none; background: none; border: none; cursor: pointer; padding: 8px; }

/* ---- Navigation Dropdown ---- */
.nav-dropdown {
  position: relative;
}
.nav-dropdown > a {
  display: flex;
  align-items: center;
  gap: 4px;
}
.nav-dropdown > a svg {
  flex-shrink: 0;
  transition: transform 0.2s ease;
}
.nav-dropdown:hover > a svg {
  transform: rotate(180deg);
}
.nav-dropdown-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  min-width: 200px;
  background: white;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 8px 0;
  box-shadow: var(--shadow-md);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.2s, visibility 0.2s;
  z-index: 1000;
}
.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
/* Bridge the gap between trigger and dropdown */
.nav-dropdown::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  height: 12px;
}
.nav-dropdown-menu a {
  display: block;
  padding: 10px 20px;
  color: var(--text);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: background 0.15s;
}
.nav-dropdown-menu a:hover {
  background: var(--bg-alt);
}
.nav-dropdown-menu a:last-child {
  font-weight: 600;
  color: var(--accent-text);
}

/* ---- What to Read Next ---- */
.read-next {
  padding: 48px 0;
  background: var(--bg-alt);
}
.read-next h3 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 24px;
  color: var(--text);
}
.read-next-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.read-next-card {
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg);
  transition: var(--transition);
  text-decoration: none;
  color: var(--text);
  display: block;
}
.read-next-card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--accent);
  transform: translateY(-4px);
}
.read-next-card .card-emoji {
  font-size: 28px;
  margin-bottom: 12px;
  display: block;
}
.read-next-card h4 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text);
}
.read-next-card p {
  font-size: 14px;
  color: var(--text-secondary);
  margin: 0;
  line-height: 1.5;
}

/* Skip link */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--bg-dark);
    color: #fff;
    padding: 8px 16px;
    z-index: 10000;
    font-size: 14px;
    text-decoration: none;
    border-radius: 0 0 8px 0;
    transition: top 0.2s;
}
.skip-link:focus {
    top: 0;
}

/* Table of Contents */
    .page-toc {
        position: sticky;
        top: 88px;
        background: var(--bg);
        border: 1px solid var(--border);
        border-radius: var(--radius-md, 14px);
        padding: 20px;
        margin-bottom: 32px;
        z-index: 10;
    }
    .page-toc h4 {
        font-size: 13px;
        font-weight: 700;
        color: var(--text-secondary);
        text-transform: uppercase;
        letter-spacing: 0.06em;
        margin-bottom: 12px;
    }
    .page-toc ul {
        list-style: none;
        padding: 0;
        margin: 0;
        display: flex;
        flex-wrap: wrap;
        gap: 6px;
    }
    .page-toc a {
        display: inline-block;
        font-size: 13px;
        padding: 6px 14px;
        border-radius: 100px;
        border: 1px solid var(--border);
        color: var(--text-secondary);
        text-decoration: none;
        transition: var(--transition);
        white-space: nowrap;
    }
    .page-toc a:hover, .page-toc a.active {
        background: var(--accent);
        color: var(--text);
        border-color: var(--accent);
    }

/* ---- TOC spacing fix ---- */
.page-toc {
  margin-top: 0 !important;
}


/* Standard interactive highlight — yellow hover for clickable items */
.interactive-item {
    transition: var(--transition);
    cursor: pointer;
}
.interactive-item:hover {
    background: var(--accent);
    border-color: var(--accent);
    box-shadow: none;
}

/* Styled icon containers for tip cards */
.tip-icon, .category-icon, .feature-icon {
    width: 48px;
    height: 48px;
    background: var(--accent-light);
    border-radius: var(--radius-xs, 8px);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    font-size: 22px;
    color: var(--accent-text, #5C6E00);
}
.tip-icon i, .category-icon i, .feature-icon i {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    font-size: 22px;
    line-height: 1;
}

/* ---- Footer ---- */
.footer { background: #191314; color: #fff; padding: 64px 0 32px; }
.footer .container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.footer::before { display: none; }
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}
.footer-brand .nav-logo {
  display: flex; align-items: center; gap: 10px;
  font-size: 22px; font-weight: 700; color: #fff;
  margin-bottom: 12px; text-decoration: none; letter-spacing: -0.02em;
}
.footer-brand .nav-logo svg { width: 32px; height: 32px; }
.footer-brand .nav-logo span { color: var(--accent-text); }
.footer-brand p {
  font-size: 14px; max-width: 280px; line-height: 1.6; color: rgba(255,255,255,0.6);
}
.footer-links h4 {
  color: var(--accent); font-size: 14px; font-weight: 700;
  margin-bottom: 16px; letter-spacing: 0.04em; text-transform: uppercase;
}
.footer-links a {
  display: block; font-size: 14px; color: rgba(255,255,255,0.6);
  text-decoration: none; transition: color 0.3s ease;
  padding: 4px 0;
}
.footer-links a:hover { color: #fff; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 24px;
  font-size: 13px; color: rgba(255,255,255,0.4);
}

/* ---- Responsive ---- */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    background: rgba(255,255,255,0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    flex-direction: column;
    padding: 24px;
    gap: 8px;
    border-bottom: 1px solid var(--border-light);
    z-index: 999;
  }
  .nav-links.show { display: flex; }
  .nav-links > li > a { font-size: 16px; padding: 8px 0; display: block; }
  .nav-mobile-toggle { display: flex; }
  .nav-cta { margin-top: 8px; text-align: center; display: block; }

  /* Dropdown inline on mobile */
  .nav-dropdown-menu {
    position: static;
    transform: none;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    box-shadow: none;
    border: none;
    border-radius: 0;
    padding: 0 0 0 16px;
    min-width: auto;
    background: transparent;
  }
  .nav-dropdown::after { display: none; }
  .nav-dropdown-menu a {
    padding: 6px 12px;
    font-size: 14px;
    color: var(--text-secondary);
  }

  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { text-align: center; }

  .read-next-grid { grid-template-columns: 1fr; gap: 16px; }
}

@media (max-width: 480px) {
  .container { padding: 0 16px; }
  .nav-inner { padding: 0 16px; }
}

/* Flaticon uicons font-family override */
.fi,
[class^="fi-"],
[class*=" fi-"] {
  font-family: uicons-thin-rounded !important;
  display: inline-block;
  font-style: normal;
  font-weight: normal;
  font-variant: normal;
  text-transform: none;
  line-height: 1;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
