/* My Shadow Track — Post styles */

/* ===== Post (shared) ===== */
.post-header {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 16px;
}
.post-bike-avatar {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--ink-2), #3a3c40);
  position: relative;
  display: grid; place-items: center;
  flex-shrink: 0;
  overflow: hidden;
}
.post-bike-avatar svg { width: 26px; height: 26px; color: white; }
.post-bike-avatar .verified {
  position: absolute; bottom: -2px; right: -2px;
  width: 18px; height: 18px; border-radius: 50%;
  background: var(--msk-blue);
  display: grid; place-items: center;
  border: 2px solid var(--surface);
  color: white; font-size: 10px;
}
.post-meta { flex: 1; min-width: 0; }
.post-meta-line1 {
  font-weight: 700; font-size: 15px; color: var(--ink-1);
  display: flex; align-items: center; gap: 6px; flex-wrap: wrap;
}
.post-meta-line1 .rider {
  color: var(--ink-3); font-weight: 400;
}
.post-meta-line2 {
  font-size: 12px; color: var(--ink-3);
  display: flex; align-items: center; gap: 6px; margin-top: 2px;
}
.post-meta-line2 .dot { width: 3px; height: 3px; background: var(--ink-4); border-radius: 50%; }
.post-followers {
  font-size: 11px; color: var(--msk-blue);
  font-weight: 600;
}
.post-action-btn {
  width: 36px; height: 36px; border-radius: 50%;
  background: transparent; border: none;
  display: grid; place-items: center;
  color: var(--ink-3);
}
.post-action-btn:hover { background: var(--bg); }
.post-action-btn svg { width: 20px; height: 20px; }

/* Caption */
.post-caption {
  padding: 0 16px 12px;
  font-size: 15px; line-height: 1.4; color: var(--ink-1);
}
.post-caption .hashtag { color: var(--msk-blue); font-weight: 500; }

/* Route name banner */
.post-route-banner {
  margin: 0 16px 12px;
  padding: 10px 14px;
  background: linear-gradient(90deg, var(--msk-blue-50), transparent);
  border-left: 3px solid var(--msk-blue);
  border-radius: 0 var(--r-md) var(--r-md) 0;
  display: flex; align-items: center; gap: 10px;
}
.post-route-banner .route-name {
  font-weight: 700; font-size: 15px; color: var(--ink-1);
}
.post-route-banner .route-loc {
  font-size: 12px; color: var(--ink-3);
}

/* ===== KPI strip ===== */
.kpi-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: var(--ink-1);
  color: white;
  position: relative;
}
.kpi-strip::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background:
    repeating-linear-gradient(90deg,
      #111 0, #111 12px, #fff 12px, #fff 24px);
  opacity: 0.7;
}
.kpi-cell {
  padding: 14px 12px;
  border-right: 1px solid rgba(255,255,255,0.08);
  position: relative;
}
.kpi-cell:last-child { border-right: none; }
.kpi-cell .label {
  font-size: 10px; font-weight: 600;
  color: rgba(255,255,255,0.6);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 4px;
}
.kpi-cell .value {
  font-size: 22px; font-weight: 700;
  font-family: var(--font-display);
  letter-spacing: -0.02em;
  display: flex; align-items: baseline; gap: 4px;
}
.kpi-cell .value .unit {
  font-size: 11px; font-weight: 500;
  color: rgba(255,255,255,0.55);
}
.kpi-cell .value .accent { color: var(--racing-orange); }
.kpi-cell .value .accent-red { color: var(--racing-red); }
.kpi-cell .value .accent-green { color: var(--racing-green); }

/* ===== Map preview (shared) ===== */
.post-map {
  position: relative;
  background: #f7f8fa;
  height: 320px;
  overflow: hidden;
}
.post-map.tall { height: 400px; }
.post-map.short { height: 220px; }

/* Map overlay chips */
.map-overlay-tl {
  position: absolute; top: 12px; left: 12px;
  display: flex; gap: 6px; flex-wrap: wrap;
  z-index: 2;
}
.map-overlay-tr {
  position: absolute; top: 12px; right: 12px;
  z-index: 2;
}
.map-overlay-bl {
  position: absolute; bottom: 12px; left: 12px;
  z-index: 2;
}
.map-overlay-br {
  position: absolute; bottom: 12px; right: 12px;
  z-index: 2;
}
.map-chip {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(6px);
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 12px; font-weight: 600;
  color: var(--ink-1);
  box-shadow: var(--sh-1);
}
.map-chip svg { width: 14px; height: 14px; }
.map-chip.dark { background: rgba(0,0,0,0.7); color: white; backdrop-filter: blur(6px); }
.map-chip .swatch { width: 10px; height: 10px; border-radius: 2px; }

/* Curve legend overlay */
.map-legend {
  display: inline-flex; align-items: center; gap: 12px;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(6px);
  padding: 8px 12px;
  border-radius: var(--r-md);
  font-size: 11px; font-weight: 600;
  color: var(--ink-2);
  box-shadow: var(--sh-1);
}
.map-legend-item { display: flex; align-items: center; gap: 5px; }
.map-legend-item .dot {
  width: 10px; height: 3px; border-radius: 2px;
}

/* Compare button overlay */
.compare-floating {
  position: absolute; bottom: 12px; right: 12px;
  z-index: 3;
  background: var(--msk-blue);
  color: white;
  padding: 10px 14px;
  border: none;
  border-radius: var(--r-md);
  font-weight: 700; font-size: 13px;
  display: flex; align-items: center; gap: 6px;
  box-shadow: 0 6px 16px rgba(47,102,200,0.4);
}
.compare-floating:hover { background: var(--msk-blue-dark); }
.compare-floating svg { width: 16px; height: 16px; }

/* ===== Photos ===== */
.post-photos {
  display: grid;
  gap: 2px;
  background: var(--line);
}
.post-photos.count-1 { grid-template-columns: 1fr; }
.post-photos.count-2 { grid-template-columns: 1fr 1fr; }
.post-photos.count-3 { grid-template-columns: 2fr 1fr; grid-template-rows: 1fr 1fr; }
.post-photos.count-3 .photo:first-child { grid-row: 1 / span 2; }
.post-photos.count-4 { grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; }
.photo {
  background-size: cover;
  background-position: center;
  height: 200px;
  position: relative;
}
.photo.tall { height: 300px; }
.photo .more-overlay {
  position: absolute; inset: 0;
  background: rgba(0,0,0,0.55);
  display: grid; place-items: center;
  color: white; font-weight: 700; font-size: 28px;
}

/* ===== Reactions bar ===== */
.reactions-summary {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 16px;
  font-size: 13px; color: var(--ink-3);
  border-bottom: 1px solid var(--line);
}
.reactions-pile {
  display: flex; align-items: center; gap: 4px;
}
.reaction-blob {
  width: 22px; height: 22px;
  border-radius: 50%;
  display: grid; place-items: center;
  border: 2px solid var(--surface);
  font-size: 13px;
}
.reaction-blob:not(:first-child) { margin-left: -8px; }
.reaction-blob.r1 { background: var(--racing-red); }
.reaction-blob.r2 { background: var(--ink-1); }
.reaction-blob.r3 { background: var(--racing-green); }
.reactions-count { margin-left: 6px; }

/* ===== Action bar ===== */
.action-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  padding: 4px 8px;
  border-bottom: 1px solid var(--line);
}
.action-btn {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  background: transparent; border: none;
  padding: 10px;
  border-radius: var(--r-md);
  font-size: 14px; font-weight: 600;
  color: var(--ink-3);
  position: relative;
}
.action-btn:hover { background: var(--bg); }
.action-btn svg { width: 18px; height: 18px; }
.action-btn.compare { color: var(--msk-blue); }

/* Reaction picker tooltip */
.reaction-picker {
  position: absolute; bottom: 100%; left: 50%;
  transform: translateX(-50%) translateY(-4px);
  background: white;
  border-radius: 999px;
  padding: 6px;
  box-shadow: var(--sh-3);
  display: flex; gap: 4px;
  z-index: 5;
  white-space: nowrap;
}
.reaction-pick {
  width: 36px; height: 36px;
  border-radius: 50%;
  display: grid; place-items: center;
  font-size: 18px;
  cursor: pointer;
  transition: transform 0.15s;
  border: none; background: transparent;
}
.reaction-pick:hover { transform: scale(1.3) translateY(-4px); }

/* ===== Comments ===== */
.comments {
  padding: 8px 16px 12px;
}
.comment {
  display: flex; gap: 8px; align-items: flex-start;
  margin-bottom: 8px;
}
.comment-avatar {
  width: 32px; height: 32px; border-radius: 50%;
  background: linear-gradient(135deg, #16a34a, #2f66c8);
  display: grid; place-items: center;
  color: white; font-weight: 700; font-size: 12px;
  flex-shrink: 0;
}
.comment-bubble {
  background: var(--bg);
  padding: 8px 12px;
  border-radius: 18px;
  font-size: 14px;
}
.comment-bubble .name {
  font-weight: 700; font-size: 13px;
  display: block; margin-bottom: 2px;
}
.comment-actions {
  display: flex; gap: 12px;
  margin-top: 4px; padding-left: 12px;
  font-size: 12px; color: var(--ink-3); font-weight: 600;
}

.comment-input-row {
  display: flex; align-items: center; gap: 8px;
  margin-top: 8px;
}
.comment-input {
  flex: 1;
  background: var(--bg);
  border-radius: 999px;
  padding: 8px 14px;
  display: flex; align-items: center; justify-content: space-between;
  color: var(--ink-3); font-size: 14px;
}
.comment-input-icons { display: flex; gap: 8px; }
.comment-input-icons svg { width: 16px; height: 16px; color: var(--ink-3); }

/* ===== Curve summary table (data variation) ===== */
.curves-table {
  margin: 0 16px 12px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  overflow: hidden;
  font-size: 12px;
}
.curves-table-header {
  display: grid;
  grid-template-columns: 36px 1fr 1fr 1fr 1fr;
  background: var(--ink-1);
  color: rgba(255,255,255,0.7);
  font-size: 10px; font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.curves-table-header > div { padding: 8px 10px; }
.curves-table-row {
  display: grid;
  grid-template-columns: 36px 1fr 1fr 1fr 1fr;
  border-bottom: 1px solid var(--line);
  font-weight: 500;
}
.curves-table-row:last-child { border-bottom: none; }
.curves-table-row > div { padding: 8px 10px; }
.curves-table-row .curve-id {
  background: var(--bg);
  font-weight: 700;
  color: var(--ink-2);
}
.curves-table-row .curve-class {
  display: flex; align-items: center; gap: 6px;
}
.curves-table-row .curve-class .swatch {
  width: 8px; height: 8px; border-radius: 2px;
}
.curves-table-row .lean-best { color: var(--racing-green); font-weight: 700; }

/* ===== Badges ===== */
.badges-row {
  display: flex; gap: 6px;
  padding: 0 16px 12px;
  flex-wrap: wrap;
}
.badge-chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 10px;
  background: var(--bg);
  border-radius: 999px;
  font-size: 12px; font-weight: 600;
  color: var(--ink-2);
}
.badge-chip.gold {
  background: linear-gradient(135deg, #fef3c7, #fbbf24);
  color: #78350f;
}
.badge-chip.shadow {
  background: var(--ink-1);
  color: white;
}
.badge-chip.fire {
  background: linear-gradient(135deg, #fee2e2, #fca5a5);
  color: #7f1d1d;
}
.badge-chip svg { width: 12px; height: 12px; }

/* ===== Compare callout (variation 3) ===== */
.compare-callout {
  margin: 0 16px 12px;
  padding: 12px;
  background: linear-gradient(135deg, var(--msk-blue-dark), var(--msk-blue));
  color: white;
  border-radius: var(--r-md);
  display: flex; align-items: center; justify-content: space-between;
  position: relative;
  overflow: hidden;
}
.compare-callout::before {
  content: ''; position: absolute;
  top: 0; right: 0; bottom: 0;
  width: 80px;
  background:
    repeating-linear-gradient(45deg,
      rgba(255,255,255,0.06) 0,
      rgba(255,255,255,0.06) 8px,
      transparent 8px, transparent 16px);
}
.compare-callout-text { z-index: 1; }
.compare-callout-text .label {
  font-size: 11px; font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.08em; opacity: 0.7;
}
.compare-callout-text .text {
  font-size: 14px; font-weight: 600;
  margin-top: 4px;
}
.compare-callout button {
  background: white;
  color: var(--msk-blue-dark);
  border: none;
  padding: 9px 14px;
  border-radius: var(--r-md);
  font-weight: 700; font-size: 13px;
  z-index: 1;
}

/* ===== Leaderboard mini (in feed) ===== */
.leaderboard-mini {
  margin: 0 16px 12px;
  padding: 12px;
  background: var(--bg);
  border-radius: var(--r-md);
}
.leaderboard-title {
  font-size: 11px; font-weight: 700;
  color: var(--ink-3);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 8px;
  display: flex; align-items: center; gap: 6px;
}
.leaderboard-row {
  display: grid;
  grid-template-columns: 24px 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 6px 0;
  font-size: 13px;
  border-bottom: 1px solid var(--line);
}
.leaderboard-row:last-child { border-bottom: none; }
.leaderboard-row.you { font-weight: 700; color: var(--msk-blue); }
.leaderboard-row .rank {
  font-weight: 700; font-family: var(--font-mono);
  color: var(--ink-3);
  text-align: center;
}
.leaderboard-row .rank.medal {
  color: white; background: var(--racing-orange);
  border-radius: 50%; width: 22px; height: 22px;
  display: grid; place-items: center;
  font-size: 11px;
}
.leaderboard-row .rank.medal-1 { background: #fbbf24; }
.leaderboard-row .rank.medal-2 { background: #94a3b8; }
.leaderboard-row .rank.medal-3 { background: #cd7f32; }
.leaderboard-row .time {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 13px;
}

/* ===== Right column widgets ===== */
.widget {
  background: var(--surface);
  border-radius: var(--r-lg);
  padding: 12px 16px;
  margin-bottom: 16px;
  box-shadow: var(--sh-1);
}
.widget-title {
  font-size: 14px; font-weight: 700; color: var(--ink-2);
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 10px;
}
.widget-title .more { color: var(--msk-blue); font-size: 13px; font-weight: 600; }

.bike-suggest {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
}
.bike-suggest:last-child { border-bottom: none; }
.bike-suggest-thumb {
  width: 44px; height: 44px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--ink-1), #3a3c40);
  display: grid; place-items: center;
  flex-shrink: 0;
}
.bike-suggest-thumb svg { width: 24px; height: 24px; color: white; }
.bike-suggest-info { flex: 1; min-width: 0; }
.bike-suggest-info .name { font-weight: 700; font-size: 13px; }
.bike-suggest-info .meta { font-size: 11px; color: var(--ink-3); margin-top: 2px; }
.bike-suggest-btn {
  background: var(--msk-blue-50);
  color: var(--msk-blue-dark);
  border: none;
  padding: 6px 12px;
  border-radius: var(--r-md);
  font-weight: 700; font-size: 12px;
}

/* Active rider strip */
.active-rider {
  display: flex; align-items: center; gap: 10px;
  padding: 6px 0;
}
.active-rider-avatar {
  width: 36px; height: 36px; border-radius: 50%;
  background: linear-gradient(135deg, #f59e0b, #e63946);
  display: grid; place-items: center;
  color: white; font-weight: 700; font-size: 12px;
  position: relative;
}
.active-rider-avatar .live {
  position: absolute; bottom: 0; right: 0;
  width: 10px; height: 10px;
  background: var(--racing-green);
  border: 2px solid var(--surface);
  border-radius: 50%;
}
.active-rider .name {
  font-size: 14px; font-weight: 600; color: var(--ink-2);
}
.active-rider .status {
  font-size: 11px; color: var(--ink-3);
}

/* Density variations container (artboards) */
.artboard-feed {
  width: 1280px;
  background: var(--bg);
  min-height: 1000px;
}
