/* ════════════════════════════════════════════════════════════════════
   SafarCircle — UI Refresh Phase 2 additions
   Layered after app-refresh.css. Adds: Group Planning Hub day cards,
   Halal Trail numbered sections, Companion profile/reviews,
   Publish-Post wizard, member-avatar strip, vote buttons.
   ════════════════════════════════════════════════════════════════════ */

/* ─── Member avatar strip (mockup 3) ─── */
.member-strip {
  display: flex;
  gap: 0.65rem;
  overflow-x: auto;
  padding: 0.4rem 0.1rem 0.7rem;
  scrollbar-width: none;
}
.member-strip::-webkit-scrollbar { display: none; }
.member-strip .member {
  flex: 0 0 auto;
  display: flex; flex-direction: column; align-items: center;
  gap: 0.3rem;
  font-size: 0.72rem;
  color: var(--text-dim);
  max-width: 64px;
}
.member-strip .member .avatar {
  width: 52px; height: 52px;
  border-radius: 50%;
  background: linear-gradient(135deg, #213168, #0F1A42);
  border: 2px solid var(--gold);
  display: flex; align-items: center; justify-content: center;
  color: var(--gold-lt);
  font-weight: 700;
  background-size: cover; background-position: center;
  box-shadow: 0 4px 12px rgba(0,0,0,0.35);
  position: relative;
}
.member-strip .member .avatar.live::after {
  content: ''; position: absolute; right: 2px; bottom: 2px;
  width: 12px; height: 12px;
  background: #6FB495; border: 2px solid var(--bg-2);
  border-radius: 50%;
}
.member-strip .member .name { color: var(--text-dim); }

/* ─── Day card (planning hub mockup 3) ─── */
.day-card {
  display: flex; gap: 0.85rem;
  padding: 0.95rem 1rem;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  margin-bottom: 0.7rem;
  position: relative;
}
.day-card .day-marker {
  flex: 0 0 36px;
  text-align: center;
}
.day-card .day-marker .day-num {
  font-family: var(--serif);
  color: var(--gold);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}
.day-card .day-marker .day-dot {
  width: 10px; height: 10px;
  background: var(--gold);
  border-radius: 50%;
  margin: 0.35rem auto 0;
  box-shadow: 0 0 0 4px rgba(212,168,83,0.18);
}
.day-card .day-body { flex: 1; }
.day-card .day-title {
  font-family: var(--serif);
  font-size: 1.12rem; color: var(--text);
  margin-bottom: 0.2rem;
}
.day-card .day-meta { color: var(--text-dim); font-size: 0.84rem; line-height: 1.45; }
.day-card .day-chips {
  display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: 0.6rem;
}
.day-card .day-chip {
  display: inline-flex; align-items: center; gap: 0.3rem;
  background: rgba(212,168,83,0.12);
  border: 1px solid rgba(212,168,83,0.28);
  color: var(--gold-lt);
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  font-size: 0.75rem;
}
.day-card .day-vote {
  margin-top: 0.7rem;
  background: transparent;
  border: 1.5px solid rgba(212,168,83,0.45);
  color: var(--gold-lt);
  padding: 0.55rem 1.1rem;
  border-radius: 999px;
  font-weight: 600;
  cursor: pointer;
  transition: all .15s ease;
}
.day-card .day-vote:hover {
  background: var(--gold);
  color: #1B2349;
  border-color: var(--gold);
}
.day-card .day-vote.voted {
  background: var(--gold);
  color: #1B2349;
  border-color: var(--gold);
}

/* ─── Halal Trail / Place detail (mockup 2) ─── */
.trail-hero {
  position: relative;
  height: 180px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 1rem;
  background: var(--card);
  border: 1px solid var(--border-soft);
}
.trail-hero .trail-bg { position: absolute; inset: 0; background-size: cover; background-position: center; }
.trail-hero::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(10,19,48,0.1) 30%, rgba(10,19,48,0.85) 100%);
}
.trail-hero .trail-title {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 1rem 1.1rem;
  font-family: var(--serif);
  font-size: 1.6rem; color: #fff;
  z-index: 2;
  text-shadow: 0 1px 6px rgba(0,0,0,0.6);
}

.trail-section { margin-bottom: 1.2rem; }
.trail-section-head {
  display: flex; align-items: center; gap: 0.6rem;
  margin-bottom: 0.7rem;
}
.trail-section-head .trail-num {
  width: 26px; height: 26px;
  border-radius: 50%;
  background: var(--gold);
  color: #1B2349;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 0.85rem;
}
.trail-section-head h3 {
  font-family: var(--serif);
  font-size: 1.2rem;
  color: var(--text);
  margin: 0;
}

.trail-tiles {
  display: flex; gap: 0.6rem;
  overflow-x: auto;
  scrollbar-width: none;
  padding-bottom: 0.4rem;
}
.trail-tiles::-webkit-scrollbar { display: none; }
.trail-tile {
  flex: 0 0 140px;
  background: var(--card);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border-soft);
}
.trail-tile .tt-img {
  height: 90px;
  background: linear-gradient(135deg, #2A3858, #1A2755) center/cover no-repeat;
  position: relative;
}
.trail-tile .tt-badge {
  position: absolute; top: 6px; right: 6px;
  width: 22px; height: 22px;
  background: var(--gold); color: #1B2349;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.7rem; font-weight: 800;
}
.trail-tile .tt-body { padding: 0.55rem 0.7rem 0.7rem; }
.trail-tile .tt-name { font-size: 0.85rem; color: var(--text); font-weight: 600; }
.trail-tile .tt-rev  { font-size: 0.75rem; color: var(--gold-lt); margin-top: 0.2rem; }

/* ─── Companion profile (mockup 1) ─── */
.companion-profile-hero {
  text-align: center;
  padding: 0.4rem 0 0.8rem;
}
.companion-profile-hero .cp-avatar {
  width: 84px; height: 84px;
  border-radius: 50%;
  margin: 0 auto 0.5rem;
  background: linear-gradient(135deg, #213168, #0F1A42) center/cover no-repeat;
  border: 3px solid var(--gold);
  box-shadow: 0 8px 24px rgba(0,0,0,0.4);
}
.companion-profile-hero h2 {
  font-family: var(--serif);
  font-size: 1.7rem;
  color: var(--text);
}
.cp-stats-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  padding: 0.85rem 0;
  margin: 0.4rem 0 1.2rem;
  border-top: 1px solid var(--border-soft);
  border-bottom: 1px solid var(--border-soft);
}
.cp-stat { text-align: center; }
.cp-stat .v {
  font-family: var(--serif);
  font-size: 1.55rem;
  color: var(--gold-lt);
  font-weight: 700;
  display: inline-flex; align-items: center; gap: 0.2rem;
}
.cp-stat .v .star { color: var(--gold); font-size: 1.05rem; }
.cp-stat .l { font-size: 0.78rem; color: var(--text-dim); margin-top: 0.15rem; }
.cp-section-title {
  font-family: var(--serif);
  font-size: 1.3rem;
  color: var(--text);
  margin: 0.4rem 0 0.7rem;
}
.review-card {
  display: flex; gap: 0.7rem;
  padding: 0.85rem 0.9rem;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  margin-bottom: 0.6rem;
}
.review-card .rc-avatar {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: linear-gradient(135deg, #213168, #0F1A42) center/cover no-repeat;
  flex: 0 0 38px;
}
.review-card .rc-stars { color: var(--gold); font-size: 0.85rem; letter-spacing: 0.05em; }
.review-card .rc-body { color: var(--text-dim); font-size: 0.88rem; line-height: 1.4; margin-top: 0.2rem; font-style: italic; }

/* ─── Publish Post Wizard (mockup 11) ─── */
.pp-wizard {
  background: linear-gradient(180deg, rgba(255,255,255,0.04) 0%, rgba(255,255,255,0.015) 100%);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  padding: 1rem;
}
.pp-wizard .pp-step-head {
  font-family: var(--serif);
  font-size: 1rem;
  color: var(--text);
  font-weight: 700;
  margin: 0.8rem 0 0.5rem;
  display: flex; align-items: center; gap: 0.5rem;
}
.pp-wizard .pp-step-head:first-child { margin-top: 0; }
.pp-wizard .pp-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 22px; height: 22px;
  background: var(--gold); color: #1B2349;
  border-radius: 50%; font-weight: 800; font-size: 0.78rem;
}
.pp-wizard textarea {
  width: 100%;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border-soft);
  color: var(--text);
  border-radius: var(--radius-sm);
  padding: 0.75rem 0.9rem;
  font-size: 0.95rem;
  min-height: 86px;
  resize: vertical;
}
.pp-wizard textarea:focus { outline: none; border-color: var(--gold); }
.pp-wizard .pp-media-row {
  display: flex; gap: 0.5rem; flex-wrap: wrap;
}
.pp-wizard .pp-media-tile {
  flex: 0 0 80px;
  aspect-ratio: 1;
  border-radius: var(--radius-sm);
  background: var(--card) center/cover no-repeat;
  border: 1.5px dashed var(--border);
  display: flex; align-items: center; justify-content: center;
  color: var(--gold-lt);
  cursor: pointer;
}
.pp-wizard .pp-tag-row {
  display: flex; flex-wrap: wrap; gap: 0.4rem;
}
.pp-wizard .pp-tag {
  background: rgba(212,168,83,0.12);
  color: var(--gold-lt);
  border: 1px solid rgba(212,168,83,0.3);
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  font-size: 0.78rem;
  cursor: pointer;
}
.pp-wizard .pp-tag.active {
  background: linear-gradient(180deg, var(--gold-lt), var(--gold));
  color: #1B2349;
  border-color: var(--gold-dk);
}
.pp-wizard .pp-vis-row {
  display: flex; gap: 0.6rem; align-items: center;
}
.pp-wizard .pp-vis-slider {
  flex: 1;
  -webkit-appearance: none; appearance: none;
  height: 6px; border-radius: 999px;
  background: linear-gradient(90deg, var(--text-dim), var(--gold), var(--primary));
  outline: none;
}
.pp-wizard .pp-vis-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 22px; height: 22px;
  background: var(--gold); border: 2px solid #1B2349;
  border-radius: 50%; cursor: pointer;
  box-shadow: 0 2px 8px rgba(0,0,0,0.4);
}
.pp-wizard .pp-vis-label {
  font-size: 0.8rem; color: var(--text-dim); min-width: 80px;
  text-align: right;
}

/* ─── Companion list card upgrade ─── */
.companion-card-v2 {
  display: flex; gap: 0.85rem;
  padding: 0.9rem 1rem;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  margin-bottom: 0.7rem;
  align-items: center;
}
.companion-card-v2 .cc-avatar {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, #213168, #0F1A42) center/cover no-repeat;
  border: 2px solid var(--gold);
  flex: 0 0 56px;
}
.companion-card-v2 .cc-name { font-family: var(--serif); font-size: 1.05rem; color: var(--text); }
.companion-card-v2 .cc-meta { color: var(--text-dim); font-size: 0.82rem; }

/* AI banners polished */
.ai-banner {
  background: linear-gradient(135deg, rgba(212,168,83,0.14), rgba(201,117,96,0.10));
  border: 1px solid rgba(212,168,83,0.28);
  border-radius: var(--radius);
  padding: 0.9rem 1rem;
  display: flex; gap: 0.8rem; align-items: center;
  margin-bottom: 1rem;
  color: var(--text);
}
.ai-banner .ai-icon { width: 28px; height: 28px; stroke: var(--gold); fill: none; stroke-width: 2; flex: 0 0 28px; }
.ai-banner-title { font-family: var(--serif); color: var(--text); font-size: 1rem; font-weight: 700; }
.ai-banner-sub { color: var(--text-dim); font-size: 0.82rem; margin-top: 0.1rem; }

/* Interest grid */
.interests-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.5rem;
}
.interest-btn {
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border-soft);
  color: var(--text-dim);
  padding: 0.7rem 0.85rem;
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  transition: all .15s ease;
}
.interest-btn:hover { border-color: rgba(212,168,83,0.3); color: var(--text); }
.interest-btn.active {
  background: linear-gradient(180deg, rgba(212,168,83,0.22), rgba(212,168,83,0.10));
  border-color: var(--gold);
  color: var(--gold-lt);
}
