/* ========================================================
   HorseSocialMedia — Design System v3
   Active / professional palette. Same variable & class
   names as v2 so existing views don't need markup changes.
   ======================================================== */

:root {
  --color-bg: #FAF7F2;
  --color-surface: #FFFFFF;
  --color-border: #E8E1D6;
  --color-text: #2B2420;
  --color-text-muted: #7D7264;

  /* Warm equestrian palette: sunset (coral/amber), pasture (teal),
     saddle leather (the "pink" vars, kept for backward-compat naming),
     dusk sky (the "blue" vars). Replaces a prior all-blue "corporate"
     pass that clashed with the coral/sunset branding used everywhere
     else (logo, hero photos, primary buttons). */
  --coral: #FF6B4A;
  --coral-dark: #E14420;
  --amber: #FFC857;
  --amber-dark: #E0A100;
  --pink: #A9744A;
  --pink-dark: #7A4E29;
  --blue: #5B84A6;
  --blue-dark: #3A5F80;
  --teal: #12C7B0;
  --teal-dark: #059E8C;
  --violet: #4A423A;
  --violet-dark: #2B2419;

  --gradient-brand: linear-gradient(135deg, #FFC857, #FF6B4A, #E14420);
  --gradient-warm: linear-gradient(135deg, #FFC857, #FF6B4A, #E14420);
  --gradient-cool: linear-gradient(135deg, #12C7B0, #5B84A6, #3A5F80);
  --gradient-header: linear-gradient(135deg, #FF6B4A, #E14420);

  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 22px;
  --radius-full: 999px;

  --shadow-sm: 0 1px 3px rgba(43, 36, 32, 0.08);
  --shadow-md: 0 6px 20px rgba(43, 36, 32, 0.13);
  --shadow-lg: 0 10px 36px rgba(43, 36, 32, 0.19);

  --font-display: 'Fraunces', Georgia, 'Times New Roman', serif;
  --font-body: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;

  --nav-height: 60px;
  --header-height: 84px;
  --container-max: 560px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font-body);
  background:
    radial-gradient(ellipse 900px 420px at 50% -12%, rgba(225,68,32,0.15), transparent 62%),
    radial-gradient(ellipse 640px 320px at 50% -6%, rgba(255,107,74,0.10), transparent 55%),
    var(--color-bg);
  color: var(--color-text);
  font-size: clamp(14px, 3.6vw, 16px);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  padding-bottom: calc(var(--nav-height) + 12px);
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

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

/* ---------- Top header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
}
.site-header .container { height: var(--header-height); display: flex; align-items: center; justify-content: space-between; width: 100%; }

/* ---------- Header horse strip — same visual ring language as the feed's
   .story rings, compact, hover-only tooltip (via [data-tooltip]) instead of
   a label underneath. Sits inline between the search and profile icons. ----------
   - 0 horses: a single "Add horse" ring.
   - 1 horse: a single ring linking straight to that horse.
   - 2+ horses: a toggle button (red horse-head icon) that reveals a grid
     overlay of all horses on hover (desktop) or tap (touch). ---------- */
.header-story { display: block; flex-shrink: 0; line-height: 0; }
.header-story .ring { width: 30px; height: 30px; border-radius: 50%; padding: 1.5px; background: var(--gradient-warm); display: block; }
.header-story .ring.add { background: var(--color-border); }
.header-story .ring.ring-celebrity { background: var(--gradient-brand); box-shadow: 0 0 0 2px var(--color-surface), 0 0 0 3px var(--amber-dark); }
.header-story .ring-inner {
  width: 100%; height: 100%; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-family: var(--font-display); font-size: 11px; color: #fff;
}
.header-story .add-inner {
  background: #FBF1E6; color: var(--pink-dark); display: flex; align-items: center;
  justify-content: center; width: 100%; height: 100%; border-radius: 50%;
}
/* Dropdown-overlay tiles get a bigger ring than the compact standalone
   header icon (0/1-horse case) — the overlay has room to spare and 30px
   circles looked cramped/hard to tap once several are shown in a grid. */
.horses-dropdown-grid .header-story .ring { width: 60px; height: 60px; padding: 3px; }
.horses-dropdown-grid .header-story .ring-inner { font-size: 22px; }
.horses-dropdown-grid .header-story .add-inner svg { width: 22px; height: 22px; }

/* ---------- Horses menu (2+ horses) — toggle button + dropdown grid ---------- */
.horses-menu { position: relative; display: flex; }
/* Invisible bridge spanning the visual gap between the toggle button and the
   dropdown panel below it. Without this, moving the mouse from the button
   down toward the panel exits .horses-menu's hoverable box for a few pixels
   partway through the trip, which drops the CSS :hover state and closes the
   panel before the cursor ever reaches it. */
.horses-menu::after {
  content: ''; position: absolute; top: 100%; left: -20px; right: -20px; height: 14px;
}
.horses-menu-toggle { background: none; border: none; padding: 0; margin: 0; cursor: pointer; display: block; line-height: 0; }
.horses-toggle-ring {
  width: 45px; height: 45px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  background: var(--color-border); position: relative;
}
.horses-toggle-icon {
  width: 60%; height: 60%;
  background-color: var(--coral-dark);
  -webkit-mask-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAgAAAAIACAMAAADDpiTIAAAAA3NCSVQICAjb4U/gAAAACXBIWXMAACQbAAAkGwEu9NzVAAAAGXRFWHRTb2Z0d2FyZQB3d3cuaW5rc2NhcGUub3Jnm+48GgAAAwBQTFRF////AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA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a/s4uRux3Kv+r2HL8mjxE5FcrfKnYeOT+NpfUdlADRze+aui6XpZAMJUX8+QNeWprBkukMJUpUwx6j5/3CcGWWhRKo5hX3v7YkleY+hpKrersByZ9syqOBu6GkK9s06f5xH6zey6LUgwqKhPod+4x49T/r0njUBqjgqdSky22PvTR93opNqc/Dv/4f29AUFqAmVGsAAAAASUVORK5CYII=");
  -webkit-mask-size: contain; mask-size: contain;
  -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
  -webkit-mask-position: center; mask-position: center;
}
.horses-toggle-icon--muted { background-color: var(--color-text-muted); }
.horses-toggle-plus-badge {
  position: absolute; bottom: -3px; right: -3px; width: 22px; height: 22px; border-radius: 50%;
  background: var(--coral-dark); color: #fff; display: flex; align-items: center; justify-content: center;
  border: 3px solid var(--color-surface);
}
.horses-dropdown-panel {
  display: none; position: absolute; top: calc(100% + 10px); right: -8px; z-index: 60;
  background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-md);
  box-shadow: var(--shadow-md); padding: 12px;
}
.horses-dropdown-grid { display: grid; gap: 12px; width: max-content; }
/* Hover reveals the panel only on devices with a real pointer (mouse) —
   touch devices rely purely on the tap-toggle .open class below, so a tap
   doesn't leave a "stuck" hover state the way it can on iOS Safari. */
@media (hover: hover) {
  .horses-menu:hover .horses-dropdown-panel { display: block; }
}
.horses-menu.open .horses-dropdown-panel { display: block; }
.brand {
  display: flex; align-items: center; gap: 8px;
}
.brand-logo { height: 42px; width: auto; display: block; }
.brand .mark {
  width: 30px; height: 30px; border-radius: var(--radius-full);
  background: var(--gradient-header); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-weight: 700; font-size: 15px;
  -webkit-text-fill-color: #fff;
}
.header-icons { display: flex; gap: 22px; align-items: center; }
.header-icons i { font-size: 22px; color: var(--pink-dark); }
.header-icons a.plain i { color: var(--color-text); }

/* ---------- Bottom nav ---------- */
.bottom-nav {
  position: fixed; bottom: 0; left: 50%; transform: translateX(-50%); z-index: 30;
  width: 100%; max-width: var(--container-max);
  height: var(--nav-height);
  background: var(--color-surface);
  border-top: 1px solid var(--color-border);
  border-left: 1px solid var(--color-border);
  border-right: 1px solid var(--color-border);
  display: flex; align-items: stretch;
  box-shadow: 0 -4px 16px rgba(43,36,32,0.06);
}
@media (min-width: 480px) {
  .bottom-nav { border-radius: var(--radius-lg) var(--radius-lg) 0 0; }
}
.bottom-nav a, .bottom-nav button {
  flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 2px; font-size: 11px; color: var(--color-text-muted);
  background: none; border: none; font-family: inherit; cursor: pointer;
}
.bottom-nav a.active i { color: var(--pink-dark); }
.bottom-nav a.active { color: var(--pink-dark); }
.bottom-nav .icon { font-size: 22px; line-height: 1; }
.bottom-nav .fab {
  color: #fff; background: var(--gradient-header);
  width: 46px; height: 46px; border-radius: var(--radius-full);
  display: flex; align-items: center; justify-content: center;
  font-size: 24px; margin: -6px auto 0; box-shadow: var(--shadow-md);
  flex: 0 0 46px;
  transition: transform 0.15s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.15s ease;
}
.bottom-nav .fab:active {
  transform: scale(0.86);
  box-shadow: 0 1px 4px rgba(43,36,32,0.18);
}
@media (hover: hover) {
  .bottom-nav a:hover .fab { transform: scale(1.06); }
}
@keyframes fab-tap-pop {
  0% { transform: scale(1); }
  35% { transform: scale(0.82); }
  70% { transform: scale(1.12); }
  100% { transform: scale(1); }
}
.bottom-nav .fab.js-fab-pop {
  animation: fab-tap-pop 0.38s cubic-bezier(0.34, 1.56, 0.64, 1);
}
@media (prefers-reduced-motion: reduce) {
  .bottom-nav .fab { transition: none; }
  .bottom-nav .fab.js-fab-pop { animation: none; }
}

/* ---------- Stories row ---------- */
.stories { display: flex; gap: 14px; overflow-x: auto; padding: 14px 2px; margin-bottom: 4px; }
.story { display: flex; flex-direction: column; align-items: center; text-align: center; flex-shrink: 0; width: 60px; }
.story a { display: block; }
.story .ring { width: 92px; height: 92px; border-radius: 50%; padding: 3px; background: var(--gradient-warm); }
.story .ring.add { background: var(--color-border); }
.story .ring.ring-celebrity { background: var(--gradient-brand); box-shadow: 0 0 0 2px var(--color-surface), 0 0 0 3px var(--amber-dark); }
.story .ring-inner { width: 100%; height: 100%; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 700; font-family: var(--font-display); font-size: 30px; color: #fff; }
.story .add-inner { background: #FBF1E6; color: var(--pink-dark); display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; border-radius: 50%; }
.story p { font-size: 11px; color: var(--color-text-muted); margin: 5px 0 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 60px; }

/* "Popular on HoofTrail" (feed) — circles sized 25% smaller than the
   standard .story ring (92px -> 69px), and a dismiss button that hides
   the whole card and remembers the choice indefinitely (see the inline
   script in feed/index.blade.php). */
.popular-horses-close {
  position: absolute; top: 10px; right: 10px; width: 24px; height: 24px; border-radius: 50%;
  background: var(--color-bg); border: none; color: var(--color-text-muted); cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background-color 0.15s ease;
}
.popular-horses-close:hover { background: var(--color-border); }
.popular-horse-story .ring { width: 69px; height: 69px; }
.popular-horse-story .ring-inner { font-size: 22px; }

/* Avatar gradient variants */
.avatar { border-radius: var(--radius-full); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700; font-family: var(--font-display); flex-shrink: 0; }
.avatar-lg { width: 68px; height: 68px; font-size: 26px; }
.avatar-sm { width: 36px; height: 36px; font-size: 14px; }
.avatar-xs { width: 28px; height: 28px; font-size: 14px; }
.grad-1 { background: linear-gradient(135deg, var(--coral), var(--coral-dark)); }
.grad-2 { background: linear-gradient(135deg, var(--teal), var(--blue-dark)); }
.grad-3 { background: linear-gradient(135deg, var(--blue), var(--violet-dark)); }
.grad-4 { background: linear-gradient(135deg, var(--amber-dark), var(--coral-dark)); }
.grad-5 { background: linear-gradient(135deg, var(--violet), var(--blue)); }

/* ---------- Cards ---------- */
.card { background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-md); padding: 16px; margin-bottom: 12px; box-shadow: var(--shadow-sm); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; width: 100%; padding: 13px 16px;
  font-size: 15px; font-weight: 600; border-radius: var(--radius-sm); border: none; cursor: pointer; font-family: inherit;
  transition: transform 0.16s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.16s ease, filter 0.16s ease;
}
@media (hover: hover) {
  .btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); filter: brightness(1.04); }
  .btn-outline:hover, .btn-danger:hover { background: rgba(43, 36, 32, 0.03); }
}
.btn:active { transform: scale(0.96) translateY(0); box-shadow: var(--shadow-sm); transition-duration: 0.08s; }
.btn-primary { background: var(--gradient-header); color: #fff; }
.btn-accent { background: var(--gradient-brand); color: #fff; }
.btn-outline { background: transparent; color: var(--pink-dark); border: 1.5px solid var(--pink); }
.btn-danger { background: transparent; color: var(--coral-dark); border: 1.5px solid var(--coral); }
.btn-forest { background: linear-gradient(135deg, var(--teal), var(--teal-dark)); color: #fff; }
.btn-sm { width: auto; padding: 8px 14px; font-size: 13px; }
@media (prefers-reduced-motion: reduce) {
  .btn { transition: none; }
  .btn:hover { transform: none; }
}

/* ---------- Forms ---------- */
.field { margin-bottom: 14px; }
.field label { display: block; font-size: 13px; font-weight: 600; color: var(--color-text-muted); margin-bottom: 6px; }
input[type="text"], input[type="email"], input[type="number"], textarea, select {
  width: 100%; padding: 12px 14px; font-size: 16px; font-family: inherit;
  border: 1.5px solid var(--color-border); border-radius: var(--radius-sm);
  background: var(--color-surface); color: var(--color-text);
}
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--pink-dark); }
textarea { resize: vertical; min-height: 80px; }
.otp-input { font-size: 26px; letter-spacing: 8px; text-align: center; font-weight: 700; }
.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

/* ---------- Date field (custom icon, hidden native indicator) ---------- */
.date-field { position: relative; }
.date-field input[type="date"] {
  width: 100%; padding: 12px 44px 12px 14px; font-size: 16px; font-family: inherit;
  border: 1.5px solid var(--color-border); border-radius: var(--radius-sm);
  background: var(--color-surface); color: var(--color-text);
  appearance: none; -webkit-appearance: none;
}
.date-field input[type="date"]::-webkit-calendar-picker-indicator {
  position: absolute; right: 0; top: 0; width: 100%; height: 100%;
  opacity: 0; cursor: pointer; margin: 0;
}
.date-field .date-icon {
  position: absolute; right: 14px; top: 50%; transform: translateY(-50%);
  color: var(--pink-dark); font-size: 19px; pointer-events: none;
}
.date-field input[type="date"]:focus { border-color: var(--pink-dark); }
.date-hint { font-size: 12.5px; color: var(--color-text-muted); margin-top: 5px; }

/* ---------- Upload zones (live preview) ---------- */
.upload-zone {
  position: relative; overflow: hidden; cursor: pointer;
  border-radius: var(--radius-md); border: 2px dashed var(--color-border);
  background: var(--color-bg);
  transition: border-color 0.15s ease, border-style 0.15s ease, background 0.15s ease;
}
.upload-zone:hover { border-color: var(--pink-dark); }
/* Once a photo is actually set, a dashed border reads as "still empty /
   something's wrong" — switch to a plain solid border so a filled zone
   looks intentional, not broken. */
.upload-zone.has-file { border-style: solid; border-color: var(--color-border); }
.upload-zone.has-file:hover { border-color: var(--pink-dark); }
.upload-zone input[type="file"] { position: absolute; inset: 0; opacity: 0; cursor: pointer; z-index: 2; }
.upload-zone-preview {
  width: 100%; height: 100%; background-size: cover; background-position: center;
  display: flex; align-items: center; justify-content: center;
}
.upload-zone--banner { height: 120px; }
.upload-zone--avatar { width: 88px; height: 88px; border-radius: 50%; flex-shrink: 0; }
.upload-zone--avatar .upload-zone-preview { border-radius: 50%; }
.upload-zone-empty { display: flex; flex-direction: column; align-items: center; gap: 6px; color: var(--color-text-muted); font-size: 14px; padding: 12px; text-align: center; }
.upload-zone-empty i { font-size: 22px; color: var(--pink-dark); }
.upload-zone.has-file .upload-zone-empty { display: none; }
.upload-zone-overlay {
  position: absolute; bottom: 0; left: 0; right: 0; z-index: 1;
  background: linear-gradient(0deg, rgba(43,36,32,0.78), transparent);
  color: #fff; font-size: 11px; font-weight: 600; padding: 8px 10px;
  display: flex; align-items: center; gap: 4px; opacity: 0;
  transition: opacity 0.15s ease; pointer-events: none;
}
.upload-zone:hover .upload-zone-overlay, .upload-zone.has-file .upload-zone-overlay { opacity: 1; }
/* Avatar variant: a small round "edit" badge pinned to the corner instead
   of stretching the bottom-strip overlay into a circle (which clipped
   into a stray, half-cut oval). Always visible — not hover-only — since
   this is a touch-first app and hover doesn't exist on mobile. */
.upload-zone--avatar .upload-zone-overlay {
  bottom: -2px; right: -2px; left: auto; top: auto; z-index: 3;
  width: 30px; height: 30px; border-radius: 50%;
  background: var(--pink-dark); border: 2px solid var(--color-surface);
  box-shadow: var(--shadow-sm);
  justify-content: center; text-align: center; padding: 0;
  opacity: 1; pointer-events: none;
}
.upload-zone--avatar:hover .upload-zone-overlay { background: var(--coral-dark); }
.upload-zone-badge {
  position: absolute; top: 8px; right: 8px; z-index: 1;
  background: var(--teal); color: #fff; font-size: 10.5px; font-weight: 700;
  padding: 3px 8px; border-radius: var(--radius-full); display: none;
}
.upload-zone.has-file .upload-zone-badge { display: block; }

.gallery-preview { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-top: 10px; }
.gallery-preview .thumb { position: relative; aspect-ratio: 1; border-radius: 8px; overflow: hidden; background: var(--color-bg); }
.gallery-preview .thumb img, .gallery-preview .thumb video { width: 100%; height: 100%; object-fit: cover; }
.thumb-converting { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; background: var(--color-bg); }

/* ---------- Horse profile gallery preview (3 tiles + "see all") ---------- */
.gallery-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; margin-bottom: 20px; }
.gallery-tile { position: relative; aspect-ratio: 1; border-radius: 8px; overflow: hidden; display: block; background: var(--color-bg); }
.gallery-tile img, .gallery-tile video { width: 100%; height: 100%; object-fit: cover; cursor: pointer; }
.gallery-tile-video-thumb { width: 100%; height: 100%; background: linear-gradient(135deg, var(--violet), var(--violet-dark)); }
/* Fallback for the rare case a Stream thumbnail 404s (e.g. requested in the
   few seconds before Cloudflare finishes generating it) — the <img>
   removes itself via onerror and this takes over so the tile never shows
   a broken-image icon. */
.gallery-tile.thumb-missing { background: linear-gradient(135deg, var(--violet), var(--violet-dark)); }
.gallery-tile-play {
  position: absolute; bottom: 6px; right: 6px; width: 22px; height: 22px; border-radius: 50%;
  background: rgba(43,36,32,0.55); color: #fff; display: flex; align-items: center; justify-content: center;
  pointer-events: none;
}
.gallery-tile-more {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  background: var(--color-bg); border: 1.5px solid var(--color-border); color: var(--pink-dark);
}
.gallery-tile-more span { font-size: 16px; font-weight: 700; font-family: var(--font-display); }
.gallery-tile-more small { font-size: 10.5px; color: var(--color-text-muted); font-weight: 600; }
@media (max-width: 420px) {
  .gallery-grid { grid-template-columns: repeat(4, 1fr); gap: 3px; }
}

/* ---------- Typography ---------- */
h1, h2, h3 { font-family: var(--font-display); margin: 0 0 8px; color: var(--color-text); }
h1 { font-size: clamp(20px, 6vw, 26px); }
h2 { font-size: clamp(17px, 4.6vw, 20px); }
.muted { color: var(--color-text-muted); font-size: 13px; }
.center { text-align: center; }
.stack { display: flex; flex-direction: column; gap: 10px; }
.hstack { display: flex; align-items: center; gap: 10px; }
.spread { display: flex; align-items: center; justify-content: space-between; }

/* ---------- Alerts ---------- */
.alert { padding: 12px 14px; border-radius: var(--radius-sm); font-size: 13.5px; margin-bottom: 14px; }
.alert-error { background: #FDEAE6; color: var(--coral-dark); border: 1px solid #F5C7BA; }
.alert-info { background: #FBF1E6; color: var(--blue-dark); border: 1px solid #F0DFC7; }

/* ---------- Badge / chip ---------- */
.badge { display: inline-flex; align-items: center; gap: 3px; background: var(--gradient-brand); color: #fff; font-size: 11px; font-weight: 700; padding: 2px 9px; border-radius: var(--radius-full); }
.chip { display: inline-block; font-size: 14px; color: var(--color-text-muted); background: var(--color-bg); border: 1px solid var(--color-border); padding: 4px 10px; border-radius: var(--radius-full); }

/* ---------- Profile / horse banner ---------- */
.banner { height: 96px; border-radius: var(--radius-lg) var(--radius-lg) 0 0; }
.banner-user { background: var(--gradient-cool); }
.banner-horse { background: var(--gradient-warm); }
.profile-head { padding: 0 4px 4px; margin-top: -34px; }
.profile-avatar-row { display: flex; align-items: flex-end; justify-content: space-between; }
.profile-avatar-row .avatar { border: 3px solid var(--color-surface); }
.stat { text-align: left; }
.stat .num { font-weight: 700; font-size: 15px; }
.stat .label { font-size: 12.5px; color: var(--color-text-muted); }

/* ---------- Horse list card ---------- */
.horse-card { display: flex; align-items: center; gap: 12px; padding: 12px; border: 1px solid var(--color-border); border-radius: var(--radius-md); margin-bottom: 8px; background: var(--color-surface); }
.horse-card .name { font-weight: 700; font-size: 15px; }
.horse-card .meta { color: var(--color-text-muted); font-size: 12.5px; margin-top: 2px; }

/* ---------- Post card ---------- */
.post { position: relative; background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-md); margin-bottom: 14px; overflow: hidden; box-shadow: var(--shadow-sm); }
.post-owner-menu { position: absolute; top: 10px; right: 10px; z-index: 3; }
.post-owner-menu-btn {
  width: 30px; height: 30px; border-radius: var(--radius-full); background: rgba(43,36,32,0.06); border: none;
  display: flex; align-items: center; justify-content: center; color: var(--color-text-muted); cursor: pointer;
  transition: background-color 0.15s ease, transform 0.1s ease;
}
.post-owner-menu-btn:hover { background: rgba(43,36,32,0.12); }
.post-owner-menu-btn:active { transform: scale(0.88); transition-duration: 0.06s; }
.post-owner-dropdown {
  position: absolute; top: 36px; right: 0; min-width: 140px;
  background: var(--color-surface); border: 1px solid var(--color-border);
  border-radius: var(--radius-sm); box-shadow: var(--shadow-md);
  overflow: hidden; padding: 4px;
}
.post-owner-dropdown-item {
  display: flex; align-items: center; gap: 8px; width: 100%;
  padding: 9px 10px; font-size: 13.5px; font-family: inherit;
  background: none; border: none; border-radius: 6px;
  color: var(--color-text); text-decoration: none; cursor: pointer; text-align: left;
}
.post-owner-dropdown-item:hover { background: var(--color-bg); }
.post-owner-dropdown-item--danger { color: var(--coral-dark); }
.autocomplete { position: relative; }
.autocomplete-list {
  position: absolute; top: calc(100% + 4px); left: 0; right: 0; z-index: 20;
  background: var(--color-surface); border: 1px solid var(--color-border);
  border-radius: var(--radius-sm); box-shadow: var(--shadow-md);
  overflow: hidden; max-height: 260px; overflow-y: auto;
}
.autocomplete-item {
  display: flex; align-items: center; gap: 10px; width: 100%;
  padding: 10px 12px; font-size: 14px; font-family: inherit;
  background: none; border: none; cursor: pointer; text-align: left; color: var(--color-text);
}
.autocomplete-item + .autocomplete-item { border-top: 1px solid var(--color-border); }
.autocomplete-item .text-col { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.autocomplete-item:hover, .autocomplete-item.is-active { background: var(--color-bg); }
.autocomplete-item .avatar { width: 34px; height: 34px; font-size: 14px; }
.autocomplete-item img.avatar { object-fit: cover; }
.autocomplete-item .uname { font-weight: 700; font-size: 14px; line-height: 1.3; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.autocomplete-item .dname { font-size: 12.5px; color: var(--color-text-muted); line-height: 1.3; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.autocomplete-empty { padding: 10px 12px; font-size: 13px; color: var(--color-text-muted); }
.field-hint { font-size: 12.5px; margin-top: 5px; }
.field-hint.ok { color: var(--teal-dark); }
.field-hint.bad { color: var(--coral-dark); }
.post-head { display: flex; align-items: center; gap: 10px; padding: 12px 14px; }
.post-head .name { font-weight: 700; font-size: 14px; }
.post-head .sub { font-size: 14px; color: var(--color-text-muted); }
.post-caption { padding: 4px 14px 10px; font-size: 14.5px; line-height: 1.5; }
.hashtag-link, .mention-link { color: var(--coral-dark); font-weight: 600; text-decoration: none; }
.hashtag-link:hover, .mention-link:hover { text-decoration: underline; }

.post-tag-badge {
  display: inline-flex; align-items: center; gap: 5px; margin: 6px 14px 0;
  font-size: 14px; font-weight: 700; padding: 4px 11px; border-radius: var(--radius-full);
  width: fit-content;
}
.post-tag-badge--events { background: rgba(91,132,166,0.14); color: var(--blue-dark); }
.post-tag-badge--milestones { background: rgba(255,200,87,0.22); color: var(--amber-dark); }
.post-media { position: relative; background: #000; display: flex; align-items: center; justify-content: center; }
.post-media img, .post-media video { width: 100%; max-height: 640px; object-fit: contain; }
.post-media img { cursor: pointer; }
.video-embed { position: relative; width: 100%; aspect-ratio: 16 / 9; background: #000; }
.video-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; }
.post-media-grid .video-embed { aspect-ratio: auto; position: absolute; inset: 0; }
.post-media-grid .video-embed iframe { position: absolute; inset: 0; }
/* Gallery grid thumbnails intentionally crop to fill each square tile */
.post-media-grid .post-media { aspect-ratio: 1; }
.post-media-grid .post-media img, .post-media-grid .post-media video { max-height: none; height: 100%; object-fit: cover; }
.post-media-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; }
.post-actions { display: flex; gap: 14px; padding: 10px 14px; border-top: 1px solid var(--color-border); align-items: center; }
.post-actions i { font-size: 22px; }
.post-actions .icon-heart { color: var(--coral-dark); }
.post-actions .icon-comment { color: var(--pink-dark); }
.post-actions .icon-share { color: var(--teal-dark); }

/* ---------- Reaction buttons (Like / Love) ---------- */
.reaction-btn {
  display: inline-flex; align-items: center; gap: 4px;
  background: none; border: none; padding: 4px 6px; cursor: pointer;
  font-family: inherit; font-size: 13px; color: var(--color-text-muted);
  border-radius: var(--radius-sm);
  transition: background-color 0.15s ease, transform 0.1s ease;
}
@media (hover: hover) {
  .reaction-btn:hover { background: rgba(43, 36, 32, 0.06); }
}
.reaction-btn:active { transform: scale(0.88); transition-duration: 0.06s; }
.reaction-btn i { font-size: 20px; }
.reaction-btn.active-like { color: var(--blue-dark); font-weight: 700; }
.reaction-btn.active-like i { color: var(--blue-dark); }
.reaction-btn.active-love { color: var(--coral-dark); font-weight: 700; }
.reaction-btn.active-love i { color: var(--coral-dark); }
.reaction-btn.active-like svg, .reaction-btn.active-love svg { animation: reaction-pop 0.35s cubic-bezier(0.34, 1.56, 0.64, 1); }
@keyframes reaction-pop {
  0% { transform: scale(1); }
  45% { transform: scale(1.35); }
  100% { transform: scale(1); }
}

.reaction-btn-sm {
  display: inline-flex; align-items: center; gap: 3px;
  background: none; border: none; padding: 0; cursor: pointer;
  font-family: inherit; font-size: 11.5px; color: var(--color-text-muted);
  transition: transform 0.1s ease;
}
.reaction-btn-sm:active { transform: scale(0.88); transition-duration: 0.06s; }
.reaction-btn-sm i { font-size: 14px; }
.reaction-btn-sm.active-like { color: var(--blue-dark); }
.reaction-btn-sm.active-like i { color: var(--blue-dark); }
.reaction-btn-sm.active-love { color: var(--coral-dark); }
.reaction-btn-sm.active-love i { color: var(--coral-dark); }
.reaction-btn-sm.active-like svg, .reaction-btn-sm.active-love svg { animation: reaction-pop 0.35s cubic-bezier(0.34, 1.56, 0.64, 1); }
@media (prefers-reduced-motion: reduce) {
  .reaction-btn, .reaction-btn-sm { transition: none; }
  .reaction-btn.active-like svg, .reaction-btn.active-love svg,
  .reaction-btn-sm.active-like svg, .reaction-btn-sm.active-love svg { animation: none; }
}
.share-post-btn { transition: transform 0.15s cubic-bezier(0.34, 1.56, 0.64, 1); }
@media (hover: hover) {
  .share-post-btn:hover { transform: scale(1.15) rotate(-8deg); }
}
.share-post-btn:active { transform: scale(0.85); transition-duration: 0.06s; }
@media (prefers-reduced-motion: reduce) {
  .share-post-btn { transition: none; }
  .share-post-btn:hover { transform: none; }
}
.post-fans { padding: 0 14px 6px; font-size: 13px; font-weight: 600; }

/* ---------- Comments ---------- */
.comment { display: flex; gap: 8px; padding: 8px 14px; }
.comment .bubble { background: var(--color-bg); border-radius: var(--radius-md); padding: 8px 12px; font-size: 13.5px; flex: 1; }
.comment .author { font-weight: 700; margin-right: 6px; color: var(--pink-dark); }
.comment-form { display: flex; gap: 8px; padding: 10px 14px 14px; }
.comment-form input { flex: 1; }
.comment-form button { width: auto; padding: 10px 16px; }

/* ---------- Fan button ---------- */
.follow-btn {
  border-radius: var(--radius-full); padding: 10px 20px; font-weight: 700; border: none; cursor: pointer;
  font-family: inherit; font-size: 14px; display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  transition: transform 0.16s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.16s ease, filter 0.16s ease;
}
@media (hover: hover) {
  .follow-btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-sm); filter: brightness(1.05); }
}
.follow-btn:active { transform: scale(0.94) translateY(0); transition-duration: 0.08s; }
.follow-btn.not-following { background: var(--gradient-brand); color: #fff; }
.follow-btn.is-following { background: var(--color-bg); color: var(--pink-dark); border: 1.5px solid var(--pink); }
.follow-btn.is-following svg { color: var(--coral-dark); }
@media (prefers-reduced-motion: reduce) {
  .follow-btn { transition: none; }
  .follow-btn:hover { transform: none; }
}

/* ---------- Empty states ---------- */
.empty-state { text-align: center; padding: 24px 20px; color: var(--color-text-muted); }
.empty-state .icon { font-size: 40px; margin-bottom: 10px; color: var(--pink-dark); }

/* ---------- Post composer pills ---------- */
.pill-group { display: flex; gap: 8px; flex-wrap: wrap; }
.pill { padding: 7px 14px; border-radius: var(--radius-full); border: 1.5px solid var(--color-border); font-size: 13px; font-weight: 600; color: var(--color-text-muted); cursor: pointer; background: var(--color-surface); transition: transform 0.05s ease; }
.pill.selected { background: var(--gradient-brand); border-color: transparent; color: #fff; box-shadow: 0 2px 8px rgba(225, 68, 32, 0.25); }
.pill:active { transform: scale(0.96); }

/* ---------- Auth screens ---------- */
.auth-wrap { min-height: 100vh; display: flex; flex-direction: column; justify-content: center; padding: 24px 20px; background: linear-gradient(180deg, #FF6B4A 0%, #E14420 100%); }
.auth-card { background: var(--color-surface); border-radius: var(--radius-lg); padding: 26px 20px; box-shadow: var(--shadow-lg); max-width: 400px; width: 100%; margin: 0 auto; }
.auth-hero { text-align: center; color: #fff; margin-bottom: 24px; }
.auth-hero .mark { width: 60px; height: 60px; margin: 0 auto 10px; background: #fff; color: var(--pink-dark); border-radius: var(--radius-full); display: flex; align-items: center; justify-content: center; font-size: 28px; box-shadow: var(--shadow-md); }
.auth-hero h1 { color: #fff; margin-bottom: 4px; }
.auth-hero p { color: #E8F0FE; font-size: 13.5px; margin: 0; }

/* Small screens */
@media (max-width: 340px) {
  .container { padding: 0 10px; }
  .row-2 { grid-template-columns: 1fr; }
  .post-actions { gap: 12px; }
  .gallery-preview { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 480px) {
  .card, .post, .auth-card { border-radius: var(--radius-lg); }
}

/* ---------- Accessibility ---------- */
.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 100;
  background: #fff; color: var(--pink-dark); padding: 10px 16px;
  font-weight: 700; border-radius: 0 0 var(--radius-sm) 0;
}
.skip-link:focus { left: 0; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
*:focus-visible { outline: 3px solid var(--pink-dark); outline-offset: 2px; }
button:focus-visible, a:focus-visible { outline: 3px solid var(--pink-dark); outline-offset: 2px; }

/* ---------- Solid "soft" button (visible, not transparent) ---------- */
.btn-soft {
  background: #FBF1E6; color: var(--pink-dark); border: none;
  font-weight: 700;
}
.btn-soft:hover { background: #F5E6D0; }
.btn-soft { transition: transform 0.16s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.16s ease, background-color 0.16s ease; }
.btn-icon-only {
  width: 42px; height: 42px; padding: 0; border-radius: var(--radius-full);
  display: inline-flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.btn-icon-only i { font-size: 19px; }

/* ---------- Icon-only bottom nav ---------- */
.bottom-nav a { font-size: 0; } /* hide any stray text nodes, icons remain via <i> */
.bottom-nav a .icon { font-size: 24px; }
.bottom-nav .fab i { font-size: 24px; }

/* ---------- Icon tooltips (hover on desktop, long-press on mobile) ----------
   Rendered as a single element teleported to <body> and positioned via JS
   with fixed coordinates (see the tooltip script in layouts/app.blade.php),
   rather than a per-icon ::after pseudo-element. This is deliberate: an
   absolutely-positioned ::after is clipped by any scrollable ancestor (e.g.
   the horizontally-scrolling horse-avatar strip in the header), because
   setting overflow-x without overflow-y implicitly turns overflow-y into
   "auto" too per the CSS spec — so a purely-CSS tooltip silently disappears
   the moment its icon sits inside any horizontally-scrolling row. A single
   fixed-position tooltip has no such ancestor and always renders on top. */
#global-tooltip {
  position: fixed; z-index: 200; pointer-events: none;
  background: var(--violet-dark); color: #fff; font-size: 11.5px; font-weight: 600; white-space: nowrap;
  padding: 5px 10px; border-radius: 7px; opacity: 0;
  transition: opacity 0.12s ease;
}
#global-tooltip.visible { opacity: 1; }
@media (prefers-reduced-motion: reduce) {
  #global-tooltip { transition: none; }
}

/* ---------- Loading spinner ---------- */
@keyframes spin { to { transform: rotate(360deg); } }
.spin { display: inline-block; animation: spin 0.8s linear infinite; }
.upload-status { display: flex; align-items: center; gap: 8px; }
/* Self-contained — no icon font/CDN dependency, so it can never silently
   fail to render the way the old Tabler CDN icon did. */
.loading-spinner {
  display: inline-block; width: 16px; height: 16px; flex-shrink: 0;
  border: 2px solid var(--color-border); border-top-color: var(--pink-dark);
  border-radius: 50%; animation: spin 0.7s linear infinite;
}
@media (prefers-reduced-motion: reduce) {
  .spin, .loading-spinner { animation: none; }
}
.infinite-scroll-loading { display: none; align-items: center; justify-content: center; padding: 28px 0; }
.infinite-scroll-loading .loading-spinner { width: 32px; height: 32px; border-width: 4px; }

/* ---------- Page-loading overlay (shown on real link/button navigation) ---------- */
#page-loading-overlay {
  position: fixed; inset: 0; z-index: 500;
  display: flex; align-items: center; justify-content: center;
  background: rgba(250, 247, 242, 0.82);
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity 0.15s ease;
}
#page-loading-overlay.visible {
  opacity: 1; visibility: visible; pointer-events: auto;
  /* A short delay before showing avoids an annoying flash for navigations
     that resolve almost instantly (e.g. on a fast connection); anything
     slower than that and the person gets clear, immediate feedback. */
  transition-delay: 0.12s;
}
.page-loading-box {
  display: flex; align-items: center; gap: 14px;
  background: var(--color-surface); border: 1px solid var(--color-border);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-lg);
  padding: 24px 34px; font-weight: 700; color: var(--color-text); font-size: 19px;
}
.page-loading-spinner { width: 30px; height: 30px; border-width: 3.5px; }
@media (prefers-reduced-motion: reduce) {
  #page-loading-overlay { transition: none; }
  #page-loading-overlay.visible { transition-delay: 0s; }
}

/* ========================================================
   PWA install banner (home, feed) — slim dismissible bar; tapping
   "Install" opens a full-screen looping screenshot walkthrough for the
   visitor's device (see public/js/pwa-install-prompt.js).
   ======================================================== */
.pwa-install-banner {
  display: none; align-items: center; gap: 10px;
  background: var(--color-surface); border: 1px solid var(--color-border);
  border-radius: var(--radius-md); box-shadow: var(--shadow-sm);
  padding: 10px 12px; margin: 0 0 32px; position: relative;
}
.pwa-install-banner-icon { width: 38px; height: 38px; border-radius: 10px; flex-shrink: 0; }
.pwa-install-banner-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.pwa-install-banner-text strong { font-size: 13.5px; color: var(--color-text); }
.pwa-install-banner-text span { font-size: 12px; color: var(--color-text-muted); }
.pwa-install-banner-btn { flex-shrink: 0; padding: 7px 16px; font-size: 13px; white-space: nowrap; }
.pwa-install-banner-close {
  flex-shrink: 0; width: 24px; height: 24px; border-radius: 50%;
  background: var(--color-bg); border: none; color: var(--color-text-muted); cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background-color 0.15s ease;
}
.pwa-install-banner-close:hover { background: var(--color-border); }

.pwa-install-overlay {
  display: none; position: fixed; inset: 0; z-index: 200;
  background: #17130f; flex-direction: column;
}
.pwa-install-overlay.open { display: flex; }

/* Header — makes it unmistakably a guided gallery (title + step count),
   not a stray popup, and gives Close a solid, high-contrast target
   instead of a small icon floating over a photo. */
.pwa-install-overlay-header {
  flex-shrink: 0; display: flex; align-items: center; justify-content: space-between;
  gap: 12px; padding: 14px 16px; padding-top: max(14px, env(safe-area-inset-top));
}
.pwa-install-overlay-heading { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.pwa-install-overlay-heading strong { color: #fff; font-size: 14.5px; }
.pwa-install-overlay-heading span { color: rgba(255,255,255,0.6); font-size: 12px; }
.pwa-install-overlay-close {
  flex-shrink: 0; display: flex; align-items: center; gap: 6px;
  padding: 9px 14px; border-radius: var(--radius-full);
  background: rgba(255,255,255,0.14); border: 1px solid rgba(255,255,255,0.22);
  color: #fff; font-size: 13.5px; font-weight: 700; cursor: pointer;
  transition: background-color 0.15s ease;
}
.pwa-install-overlay-close:hover { background: rgba(255,255,255,0.26); }

.pwa-install-overlay-stage {
  flex: 1; min-height: 0;
  display: flex; align-items: center; justify-content: center; padding: 0 12px;
}
.pwa-install-overlay-status { color: rgba(255,255,255,0.65); font-size: 13.5px; text-align: center; padding: 0 20px; }
.pwa-install-overlay-img {
  max-width: 100%; max-height: 100%; object-fit: contain;
  border-radius: var(--radius-md);
}

.pwa-install-overlay-footer {
  flex-shrink: 0; display: flex; flex-direction: column; align-items: center; gap: 14px;
  padding: 16px; padding-bottom: max(16px, env(safe-area-inset-bottom));
}
.pwa-install-dots { display: flex; gap: 6px; }
.pwa-install-dots .pwa-install-dot {
  width: 6px; height: 6px; border-radius: 50%; background: rgba(255,255,255,0.28);
  transition: background-color 0.15s ease, transform 0.15s ease;
}
.pwa-install-dots .pwa-install-dot.active { background: #fff; transform: scale(1.3); }
.pwa-install-overlay-nav { display: flex; gap: 10px; width: 100%; max-width: 320px; }
.pwa-install-overlay-nav .btn { width: auto; flex: 1; padding: 12px 16px; }
.pwa-install-overlay-back {
  background: rgba(255,255,255,0.1); color: #fff; border: 1px solid rgba(255,255,255,0.22);
}
.pwa-install-overlay-back:disabled { opacity: 0.35; pointer-events: none; }
@media (hover: hover) {
  .pwa-install-overlay-back:hover { background: rgba(255,255,255,0.18); }
}


/* ========================================================
   "Horses to follow" recommendation row (feed)
   ======================================================== */
/* ========================================================
   "Share something..." composer prompt (top of feed) — a
   thin gradient ring border and a gradient icon badge, using
   the current brand gradient, instead of the old flat grey
   pill + amber icon.
   ======================================================== */
/* ========================================================
   "Share something..." composer prompt (top of feed) — kept
   simple: a plain card with one accent colour, not a gradient.
   ======================================================== */
.composer-prompt {
  transition: box-shadow 0.15s ease, transform 0.15s ease;
}
.composer-prompt:hover { box-shadow: var(--shadow-md); transform: translateY(-1px); }
.composer-pill {
  flex: 1;
  padding: 10px 14px;
  border-radius: 999px;
  color: var(--color-text-muted);
  font-size: 14px;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
}
.composer-icon {
  flex-shrink: 0;
  width: 34px; height: 34px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--coral-dark);
}

.reco-row { display: flex; gap: 12px; overflow-x: auto; padding: 4px 14px 4px; scroll-snap-type: x proximity; }
.reco-card { flex: 0 0 112px; scroll-snap-align: start; text-align: center; }
.reco-card-link { display: block; margin-bottom: 8px; }
.reco-name { font-size: 12.5px; font-weight: 700; margin: 8px 0 1px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.reco-meta { font-size: 11px; color: var(--color-text-muted); margin: 0 0 8px; }
.reco-follow-btn { width: 100%; padding: 7px 10px; font-size: 12.5px; }

/* ========================================================
   Marketing / public pages (home, invest, terms, privacy) —
   a "real website" layout on wide screens. Logged-in app
   screens (feed, profiles, posts) deliberately keep the
   narrower boxed app-shell look at every width, matching the
   installed-PWA experience. Add class="marketing" to <body>
   (see @section('body_class', 'marketing') in a view) to opt
   a page into this behaviour.
   ======================================================== */
.desktop-nav { display: none; }
.marketing-hero { display: block; }
.marketing-hero-grid { display: block; }
.marketing-hero-copy h1 { margin-bottom: 6px; }
.marketing-cta-row { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; padding: 0 20px 20px; }
.marketing-cta-row .btn { flex: 1 1 auto; min-width: 160px; width: auto; }
.feature-grid { display: block; }
footer.site-footer .footer-grid { display: block; }
footer.site-footer a.footer-link { display: inline-block; }

@media (min-width: 900px) {
  body.marketing .container { max-width: 1240px; }
  body.marketing.authed .container { max-width: var(--container-max); }
  body.marketing .site-header { height: 108px; }
  body.marketing .site-header .container { height: 100%; }
  body.marketing .site-header .container { padding: 0 28px; }
  body.marketing .brand-logo { height: 51px; }
  body.marketing .desktop-nav { display: flex; align-items: center; gap: 30px; font-size: 14.5px; font-weight: 600; color: var(--color-text); }
  body.marketing .desktop-nav a:hover { color: var(--coral-dark); }
  body.marketing .desktop-nav .btn { width: auto; }
  body.marketing:not(.authed) .header-icons.mobile-only-icons { display: none; }
  body.marketing main.container { padding-top: 0; }

  body.marketing .marketing-hero {
    margin: 0 0 40px; border-radius: 0 0 var(--radius-lg) var(--radius-lg); overflow: hidden;
  }
  body.marketing .marketing-hero-grid {
    display: grid; grid-template-columns: 1.1fr 0.9fr; align-items: center; min-height: 460px;
  }
  body.marketing .marketing-hero-copy { padding: 0 20px 0 56px; max-width: 560px; }
  body.marketing .marketing-hero-copy h1 { font-size: 40px; line-height: 1.12; }
  body.marketing .marketing-hero-copy p { font-size: 16px; max-width: 480px; }
  body.marketing .marketing-hero-image { height: 100%; display: flex; align-items: center; justify-content: center; }
  body.marketing .marketing-hero-image img { height: 460px; width: 100%; object-fit: cover; }
  body.marketing .marketing-hero-image .marketing-cta-row { flex-direction: column; padding: 0; width: auto; }
  body.marketing .marketing-cta-row .btn { width: auto; padding-left: 28px; padding-right: 28px; }

  body.marketing .feature-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
  body.marketing .feature-grid .card { margin-bottom: 0; }

  body.marketing footer.site-footer { padding: 40px 0; }
  body.marketing footer.site-footer .footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 32px; text-align: left; }

  body.marketing .search-results-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
  body.marketing.authed .search-results-grid { display: block; }
  body.marketing .search-results-grid .horse-card { margin-bottom: 0; }
  body.marketing.authed .search-results-grid .horse-card { margin-bottom: 8px; }
  body.marketing .search-results-grid .empty-state { grid-column: 1 / -1; }
}

/* ========================================================
   "App glow" — reuses the exact same gradient treatment as
   the /login screen (.auth-wrap), full-strength across the
   whole page rather than a faded top wash. background-attachment:
   fixed keeps the full blue→coral range visible in the viewport
   at any scroll position, instead of the gradient stretching
   thin across a tall scrolling feed.
   ======================================================== */
/* Dimmed with a translucent white wash on top — full-strength colour (like
   /login) works for a single centered card, but on pages with text and
   buttons sitting directly on the background (not inside a white card),
   full saturation doesn't leave enough contrast to read reliably. */
/* Kept simple and plain — a full-page colour wash tested poorly with real
   users ("too colourful"). Colour now lives only in buttons, badges, and
   small accents, not as a background wash behind every screen. */
/* A gentle single-colour touch — not a full-page wash, just a soft warm
   glow near the top of the page that fades out quickly. One colour
   (coral, the same as buttons elsewhere), not a multi-colour spread. */
body.app-glow,
body.app-glow.glow-horse,
body.app-glow.glow-profile {
  background:
    radial-gradient(ellipse 900px 420px at 50% -12%, rgba(225,68,32,0.17), transparent 62%),
    radial-gradient(ellipse 640px 320px at 50% -6%, rgba(255,107,74,0.11), transparent 55%),
    var(--color-bg);
  background-repeat: no-repeat;
}

.pwa-install-overlay-error small { display: block; margin-top: 4px; font-size: 11px; }