/* ================================================
   styles.css — Heelyess.com
   ================================================ */

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

/* Tokens */
:root {
  --bg:             #f5f5f7;
  --surface:        #ffffff;
  --text:           #1d1d1f;
  --text-secondary: #6e6e73;
  --border:         rgba(0,0,0,0.07);
  --shadow-sm:      0 1px 8px  rgba(0,0,0,0.04);
  --shadow-md:      0 2px 20px rgba(0,0,0,0.06);
  --shadow-lg:      0 20px 60px rgba(0,0,0,0.12);
  --radius-sm:      10px;
  --radius-md:      14px;
  --radius-lg:      18px;
  --space-xl:       52px;
  --page-max:       1140px;
}

body.dark-mode, html.dark-mode body {
  --bg:             #0a0a0a;
  --surface:        #1c1c1e;
  --text:           #f5f5f7;
  --text-secondary: #98989d;
  --border:         rgba(255,255,255,0.11);
  --shadow-sm:      0 1px 8px  rgba(0,0,0,0.3);
  --shadow-md:      0 2px 20px rgba(0,0,0,0.4);
  --shadow-lg:      0 20px 60px rgba(0,0,0,0.6);
}

/* Base */
html, body { height:100%; overflow-x:hidden; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "San Francisco", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  transition: background 0.4s, color 0.4s;
}

/* Navbar */
header {
  width: 100%; position: fixed; top:0; left:0;
  display: flex; align-items: center;
  padding: 18px var(--space-xl);
  z-index: 100;
  background: rgba(245,245,247,0.65);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  transition: background 0.4s;
}
body.dark-mode header { background: rgba(10,10,10,0.65); }
header.scrolled { background: rgba(245,245,247,0.88); }
body.dark-mode header.scrolled { background: rgba(10,10,10,0.88); }

.nav-logo {
  font-size: 21px; font-weight: 700; letter-spacing: -0.03em;
  text-decoration: none; color: var(--text); margin-right: auto;
}
nav { display: flex; gap: 32px; }
nav a {
  text-decoration: none; font-weight: 500; font-size: 15px;
  letter-spacing: -0.01em; color: var(--text); transition: opacity 0.2s;
}
nav a:hover { opacity: 0.55; }

/* Page containers */
.page { max-width: var(--page-max); margin: 0 auto; padding: 0 var(--space-xl) 80px; }

/* Hero (inner pages) */
.hero { padding-top: 148px; padding-bottom: 40px; }
.hero h1 {
  font-size: clamp(40px, 5.5vw, 64px); font-weight: 700;
  letter-spacing: -0.05em; line-height: 1.02; margin-bottom: 14px;
}
.hero p { font-size: 16px; color: var(--text-secondary); line-height: 1.6; max-width: 440px; }

/* Breadcrumb */
.breadcrumb {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 500; color: var(--text-secondary); margin-bottom: 20px;
}
.breadcrumb a { color: var(--text-secondary); text-decoration: none; transition: color 0.2s; }
.breadcrumb a:hover { color: var(--text); }
.breadcrumb .sep { opacity: 0.35; font-size: 11px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 14px; font-weight: 600; padding: 10px 18px;
  border-radius: var(--radius-sm); text-decoration: none;
  border: none; cursor: pointer; font-family: inherit;
  transition: opacity 0.2s, box-shadow 0.2s, transform 0.15s;
  -webkit-tap-highlight-color: transparent; white-space: nowrap;
}
.btn:active { transform: scale(0.97); }
.btn i { font-size: 11px; }
.btn-primary { background: var(--text); color: var(--bg); }
.btn-primary:hover { opacity: 0.8; }
.btn-secondary { background: var(--bg); color: var(--text); border: 1px solid var(--border); }
.btn-secondary:hover { box-shadow: var(--shadow-md); }

/* Tags */
.tag {
  font-size: 10.5px; font-weight: 600; letter-spacing: 0.06em;
  text-transform: uppercase; color: var(--text-secondary);
  background: var(--bg); padding: 3px 10px;
  border-radius: 100px; border: 1px solid var(--border); white-space: nowrap;
}

/* Filter bar */
.filter-bar { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 40px; }
.filter-btn {
  padding: 7px 16px; border-radius: 100px;
  border: 1px solid var(--border); background: var(--surface);
  color: var(--text-secondary); font-size: 13px; font-weight: 500;
  cursor: pointer; font-family: inherit; transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.filter-btn:hover { color: var(--text); }
.filter-btn.active { background: var(--text); color: var(--bg); border-color: var(--text); }

/* Animation */
@keyframes rise {
  from { opacity:0; transform:translateY(16px); }
  to   { opacity:1; transform:translateY(0); }
}

/* Empty state */
.empty-state {
  display: none; text-align: center; padding: 80px 0;
  color: var(--text-secondary); font-size: 15px;
  flex-direction: column; align-items: center; gap: 12px;
}
.empty-state i { font-size: 36px; opacity: 0.2; }
.empty-state.visible { display: flex; }

/* ── Footer ── */
.site-footer { position: relative; z-index: 2; background: var(--bg); padding: 64px 0; margin-top: 80px; }
.footer-row {
  max-width: var(--page-max); margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  gap: 32px; padding: 0 var(--space-xl); flex-wrap: wrap;
}
.footer-logo { font-size: 21px; font-weight: 700; letter-spacing: -0.04em; color: var(--text); text-decoration: none; flex-shrink: 0; }
.footer-tagline { font-size: 13px; color: var(--text-secondary); line-height: 1.5; flex: 1; }
.footer-links { display: flex; gap: 24px; }
.footer-links a { font-size: 13px; font-weight: 500; color: var(--text-secondary); text-decoration: none; transition: color 0.2s; }
.footer-links a:hover { color: var(--text); }
.footer-social { display: flex; gap: 10px; }
.footer-social a {
  width: 34px; height: 34px; border-radius: 9px;
  background: var(--surface); border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; color: var(--text-secondary); text-decoration: none;
  transition: color 0.2s, background 0.2s;
}
.footer-social a:hover { color: var(--text); background: var(--border); }

@media (max-width: 960px) {
  .site-footer { padding: 52px 0; }
  .footer-row { padding: 0 28px; gap: 24px; }
  .footer-tagline { flex: none; width: 100%; order: 3; }
}
@media (max-width: 600px) {
  .site-footer { padding: 40px 0; }
  .footer-row { padding: 0 20px; flex-direction: column; align-items: flex-start; gap: 20px; }
}