/* ─────────────────────────────────────────────────────────────
   style.css — Rydxy shared global styles
   ───────────────────────────────────────────────────────────── */

/* ── Custom properties ──────────────────────────────────────── */
:root {
  --accent:        #d93a1e;
  --accent-hover:  #b52e17;
  --accent-soft:   oklch(96% 0.04 22);
  --text:          #111110;
  --text-2:        #6b6b6b;
  --text-3:        #9a9a9a;
  --border:        #e8e8e6;
  --surface:       #ffffff;
  --bg:            #fafaf9;
  --bg-2:          #f4f4f2;
  --card-radius:   12px;
  --shadow:        0 1px 3px rgba(0,0,0,.06), 0 4px 16px rgba(0,0,0,.06);
  --shadow-hover:  0 4px 8px rgba(0,0,0,.08), 0 12px 32px rgba(0,0,0,.12);
  --max-w:         1200px;
  --gutter:        max(24px, calc((100vw - var(--max-w)) / 2));
  --section-pad:   64px var(--gutter);
}

/* ── Reset ──────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html  { scroll-behavior: smooth; }
body  {
  font-family: 'Inter', sans-serif;
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a   { color: inherit; text-decoration: none; }
button { cursor: pointer; font-family: inherit; }

/* ── Typography ─────────────────────────────────────────────── */
.t-display {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.1;
}
.t-heading {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 22px;
  letter-spacing: -0.01em;
}
.t-subheading {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
}
.t-label {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 10px;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}
.t-body { font-family: 'Inter', sans-serif; }
.t-small { font-size: 13px; color: var(--text-2); }
.t-muted { color: var(--text-3); }
.text-accent { color: var(--accent); }

/* ── Section layout ─────────────────────────────────────────── */
.section { padding: var(--section-pad); }
.section--alt { background: var(--bg-2); }
.section-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 32px;
  gap: 16px;
}
.section-header__left { display: flex; flex-direction: column; gap: 5px; }
.section-title { font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: 22px; letter-spacing: -0.01em; }
.section-subtitle { font-size: 13px; color: var(--text-3); font-family: 'Inter', sans-serif; }
.section-link { font-size: 13px; color: var(--accent); font-weight: 500; white-space: nowrap; transition: opacity .15s; }
.section-link:hover { opacity: .7; }

/* ── Buttons ────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: 8px;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  font-size: 14px;
  border: none;
  transition: background .15s, color .15s, border-color .15s, transform .15s;
  white-space: nowrap;
}
.btn--primary {
  background: var(--accent);
  color: #fff;
}
.btn--primary:hover { background: var(--accent-hover); }

.btn--ghost {
  background: transparent;
  color: var(--text-2);
  border: 1.5px solid var(--border);
}
.btn--ghost:hover { background: var(--text); color: #fff; border-color: var(--text); }

.btn--glass {
  background: rgba(255,255,255,.12);
  color: #fff;
  border: 1px solid rgba(255,255,255,.2);
  backdrop-filter: blur(4px);
}
.btn--glass:hover { background: rgba(255,255,255,.22); }

.btn--pill {
  padding: 5px 14px;
  border-radius: 100px;
  font-size: 12px;
  font-weight: 500;
  font-family: 'Inter', sans-serif;
  background: transparent;
  color: var(--text-2);
  border: 1px solid var(--border);
}
.btn--pill:hover { background: #f0f0ee; }
.btn--pill.active { background: var(--text); color: #fff; border-color: var(--text); }

.btn--sm { padding: 8px 16px; font-size: 13px; }
.btn--lg { padding: 13px 28px; font-size: 15px; border-radius: 10px; }

/* ── Tag / pill badge ───────────────────────────────────────── */
.tag {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 100px;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-soft);
}

/* ── Metadata row ───────────────────────────────────────────── */
.meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  color: var(--text-3);
  font-family: 'Inter', sans-serif;
}
.meta--light { color: rgba(255,255,255,.65); }
.meta__item {
  display: flex;
  align-items: center;
  gap: 4px;
}
.meta__item svg { flex-shrink: 0; }

/* ── Image placeholder ──────────────────────────────────────── */
.img-ph {
  position: relative;
  width: 100%;
  overflow: hidden;
  background: #e8e8e6;
}
.img-ph svg { position: absolute; inset: 0; width: 100%; height: 100%; }

/* ── Cards (base) ───────────────────────────────────────────── */
.card {
  background: var(--surface);
  border-radius: var(--card-radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: box-shadow .25s, transform .25s;
  cursor: pointer;
}
.card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-3px);
}
.card__image { overflow: hidden; }
.card__image-inner {
  transition: transform .4s ease;
}
.card:hover .card__image-inner { transform: scale(1.04); }
.card__body { padding: 16px; }
.card__tag { margin-bottom: 6px; }
.card__title {
  font-size: 15px;
  font-weight: 600;
  font-family: 'Space Grotesk', sans-serif;
  line-height: 1.35;
  margin-bottom: 4px;
  color: var(--text);
}
.card__subtitle {
  font-size: 12px;
  color: var(--text-2);
  margin-bottom: 12px;
  font-family: 'Inter', sans-serif;
}

/* ── Header ─────────────────────────────────────────────────── */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250,250,249,.98);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s, background .2s;
  padding: 0 var(--gutter);
}
.header.scrolled {
  background: rgba(250,250,249,.92);
  border-bottom-color: var(--border);
}
.header__inner {
  display: flex;
  align-items: center;
  height: 60px;
  gap: 24px;
}
.header__logo {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 20px;
  color: var(--text);
  letter-spacing: -0.02em;
  flex-shrink: 0;
  text-decoration: none;
}
.header__logo span { color: var(--accent); }
.header__nav { display: flex; gap: 4px; flex: 1; }
.header__nav-link {
  padding: 6px 12px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-2);
  border-radius: 8px;
  transition: color .15s, background .15s;
  font-family: 'Inter', sans-serif;
  text-decoration: none;
}
.header__nav-link:hover { color: var(--text); background: #f0f0ee; }
.header__actions { display: flex; align-items: center; gap: 8px; }
.header__search-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-2);
  transition: background .15s;
}
.header__search-btn:hover { background: #f0f0ee; }
.header__search-wrap {
  display: flex;
  align-items: center;
  background: var(--surface);
  border: 1.5px solid var(--accent);
  border-radius: 8px;
  padding: 6px 12px;
  gap: 8px;
  width: 220px;
}
.header__search-input {
  border: none;
  outline: none;
  font-size: 14px;
  font-family: 'Inter', sans-serif;
  width: 100%;
  background: transparent;
  color: var(--text);
}

/* ── Footer ─────────────────────────────────────────────────── */
.footer {
  padding: 40px var(--gutter);
  border-top: 1px solid var(--border);
  background: var(--bg);
}
.footer__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}
.footer__logo {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 16px;
  color: var(--text);
  letter-spacing: -0.01em;
}
.footer__logo span { color: var(--accent); }
.footer__nav { display: flex; gap: 24px; }
.footer__nav a {
  font-size: 13px;
  color: var(--text-3);
  font-family: 'Inter', sans-serif;
  transition: color .15s;
}
.footer__nav a:hover { color: var(--text); }
.footer__copy { font-size: 12px; color: var(--text-3); font-family: 'Inter', sans-serif; }

/* ── Breadcrumbs ────────────────────────────────────────────── */
.breadcrumbs {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--text-3);
  font-family: 'Inter', sans-serif;
  flex-wrap: wrap;
}
.breadcrumbs a { color: var(--text-3); transition: color .15s; }
.breadcrumbs a:hover { color: var(--text); }
.breadcrumbs__sep { color: var(--border); }
.breadcrumbs__current { color: var(--text-2); font-weight: 500; }

/* ── Responsive helpers ─────────────────────────────────────── */
@media (max-width: 768px) {
  :root { --gutter: 16px; }
  .section { padding: 40px var(--gutter); }
  .section-header { flex-wrap: wrap; }
  .header__nav { display: none; }
  .header__actions .btn--sm { display: none; }
}
