/* =============================================================
   Jiminy — The Hub Page Styles
   /css/hub.css

   Community discovery page. Renamed/migrated from the previous
   passport.html community landing. The personal profile page
   remains "My Passport" at creator.html — untouched.

   Selectors scoped to #page-hub / .hub-* so editing this file
   cannot accidentally affect other pages.
   Load LAST, after variables.css and shared.css, only on hub.html.
============================================================= */

#page-hub.hub-page {
  margin: -24px -14px 0;
  padding: 32px 14px 40px;
  min-height: 100%;
  position: relative;
  overflow: hidden;
}

/* ── HERO ─────────────────────────────────────────────────── */
.hub-hero-row {
  display: flex;
  align-items: stretch;
  gap: 20px;
  max-width: 1080px;
  margin: 0 auto 22px;
}
.hub-hero {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  flex: 1 1 380px;
  min-width: 0;
  text-align: left;
}
.hub-hero-image {
  width: 100%;
  height: auto;
  border-radius: 24px;
  display: block;
  box-shadow: 0 16px 40px rgba(7,31,65,.14);
}
/* Retained as unused dead code — no longer referenced in hub.html
   markup (replaced by .hub-hero-image), left in place per project
   convention rather than removed. */
.hub-hero-emblem {
  width: 90px;
  height: 90px;
  object-fit: contain;
  flex-shrink: 0;
  filter: drop-shadow(0 4px 16px rgba(244,184,37,.3));
}
.hub-hero-text { text-align: center; }
@media(max-width: 480px) {
  .hub-hero-emblem { width: 70px; height: 70px; }
}
.hub-title {
  font-family: Georgia, serif;
  font-size: clamp(28px, 7vw, 46px);
  font-weight: 900;
  color: var(--navy);
  letter-spacing: .04em;
  margin: 0 0 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  white-space: nowrap;
}
.hub-title-star { color: var(--gold); font-size: .5em; }
.hub-subtitle {
  font-size: 15px;
  color: var(--muted);
  line-height: 1.5;
  margin: 0;
  max-width: 44ch;
  margin-left: auto;
  margin-right: auto;
}

/* ── PARK PULSE ───────────────────────────────────────────── */
.hub-pulse-card {
  flex: 1 1 420px;
  min-width: 0;
  background: linear-gradient(160deg, var(--navy) 0%, #04172f 100%);
  border-radius: 24px;
  padding: 22px 22px 18px;
  box-shadow: 0 16px 40px rgba(7,31,65,.2);
  display: flex;
  flex-direction: column;
}
.hub-pulse-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.hub-pulse-title {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0;
  font-family: Georgia, serif;
  font-size: 19px;
  font-weight: 900;
  color: #fff;
  letter-spacing: .02em;
  text-transform: uppercase;
}
.hub-pulse-icon { width: 19px; height: 19px; color: var(--gold); flex-shrink: 0; }
.hub-pulse-view-all {
  flex-shrink: 0;
  font-size: 12.5px;
  font-weight: 900;
  color: var(--gold);
  text-decoration: none;
  white-space: nowrap;
}
.hub-pulse-view-all:hover { text-decoration: underline; }
.hub-pulse-subtitle {
  margin: 4px 0 16px;
  font-size: 13px;
  color: rgba(255,255,255,.68);
}

.hub-pulse-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  flex: 1;
}
.hub-pulse-tile {
  display: flex;
  flex-direction: column;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 16px;
  overflow: hidden;
  text-decoration: none;
  transition: border-color .18s, transform .18s;
}
.hub-pulse-tile:hover { border-color: rgba(244,184,37,.5); transform: translateY(-2px); }

.hub-pulse-tile-photo {
  position: relative;
  width: 100%;
  aspect-ratio: 4/5;
  background-size: cover;
  background-position: center;
  flex-shrink: 0;
}
.hub-pulse-tile-photo::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(4,20,45,.85) 0%, rgba(4,20,45,0) 55%);
}
.hub-pulse-tile-photo--disneyland { background-image: url('/images/disneyland-station.jpeg'); }
.hub-pulse-tile-photo--wdw        { background-image: url('/images/wdw-epcot.jpg'); }
.hub-pulse-tile-photo--dcl        { background-image: url('/images/disney-wish.jpg'); }

.hub-pulse-live-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 1;
  background: #e0342f;
  color: #fff;
  font-size: 9.5px;
  font-weight: 1000;
  letter-spacing: .04em;
  padding: 3px 8px;
  border-radius: 999px;
}
.hub-pulse-count-badge {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 1;
  background: rgba(7,31,65,.7);
  color: #fff;
  font-size: 10.5px;
  font-weight: 900;
  padding: 3px 8px;
  border-radius: 999px;
  backdrop-filter: blur(2px);
}
.hub-pulse-avatar {
  position: absolute;
  left: 8px;
  bottom: 8px;
  z-index: 1;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 2px solid #fff;
  background-size: cover;
  background-position: center;
  box-shadow: 0 4px 10px rgba(0,0,0,.3);
}
.hub-pulse-avatar--1 { background: linear-gradient(150deg, #5a7ba8 0%, #2d4a6e 100%); }
.hub-pulse-avatar--2 { background: linear-gradient(150deg, #8a6a9a 0%, #4a2d6e 100%); }
.hub-pulse-avatar--3 { background: linear-gradient(150deg, #4ea89a 0%, #2d6e5e 100%); }

.hub-pulse-tile-info {
  padding: 9px 10px 11px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.hub-pulse-tile-name {
  font-size: 12.5px;
  font-weight: 900;
  color: #fff;
  line-height: 1.2;
}
.hub-pulse-tile-count {
  font-size: 10.5px;
  color: #4ade80;
  font-weight: 800;
}
.hub-pulse-tile-status {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 10px;
  color: rgba(255,255,255,.62);
  margin-top: 2px;
}
.hub-pulse-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #4ade80;
  flex-shrink: 0;
  box-shadow: 0 0 0 2px rgba(74,222,128,.25);
}

@media (max-width: 900px) {
  .hub-hero-row { flex-direction: column; }
  .hub-hero { align-items: center; text-align: center; }
}
@media (max-width: 560px) {
  .hub-pulse-row { grid-template-columns: 1fr; }
  .hub-pulse-tile-photo { aspect-ratio: 16/9; }
  .hub-pulse-card { padding: 18px 16px 14px; }
}

/* ── SEARCH ───────────────────────────────────────────────── */
.hub-search-form {
  max-width: 640px;
  margin: 0 auto 10px;
}
.hub-search-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #fff;
  border: 1.5px solid rgba(7,31,65,.2);
  border-radius: 999px;
  padding: 13px 18px;
}
.hub-search-icon { width: 20px; height: 20px; color: rgba(255,255,255,.5); flex-shrink: 0; }
.hub-search-input {
  flex: 1;
  min-width: 0;
  background: none;
  border: 0;
  outline: none;
  color: var(--navy);
  font-size: 15px;
  font-family: inherit;
}
.hub-search-input::placeholder { color: rgba(255,255,255,.4); }
.hub-search-filter {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 0;
  background: none;
  color: var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  cursor: pointer;
}
.hub-search-filter svg { width: 19px; height: 19px; }

.hub-search-helper {
  text-align: center;
  font-size: 13px;
  color: var(--muted);
  max-width: 460px;
  margin: 0 auto 32px;
}

/* ── SECTION HEAD ─────────────────────────────────────────── */
.hub-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1080px;
  margin: 0 auto 14px;
  gap: 12px;
}
.hub-section-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: Georgia, serif;
  font-size: clamp(16px, 3vw, 19px);
  font-weight: 900;
  color: var(--navy);
  letter-spacing: .04em;
  text-transform: uppercase;
  margin: 0;
}
.hub-star { color: var(--gold); font-size: .8em; }
.hub-view-all {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  color: var(--gold);
  font-size: 13px;
  font-weight: 900;
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
}
.hub-view-all:hover { opacity: .8; }

/* ── FEATURED EXPLORERS ROW ───────────────────────────────── */
.hub-explorer-row {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  -webkit-overflow-scrolling: touch;
  padding: 2px 2px 14px;
  margin: 0 auto 34px;
  max-width: 1080px;
  scrollbar-width: thin;
}
.hub-explorer-card {
  scroll-snap-align: start;
  flex: 0 0 148px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 8px;
  background: rgba(251,246,238,.94);
  border: 1px solid rgba(7,31,65,.12);
  border-radius: 20px;
  padding: 18px 12px 16px;
  text-decoration: none;
  transition: border-color .18s, transform .18s;
}
.hub-explorer-card:hover { border-color: rgba(244,184,37,.7); transform: translateY(-2px); }

.hub-explorer-avatar {
  width: 74px;
  height: 74px;
  border-radius: 50%;
  border: 2px solid var(--gold);
  background-size: cover;
  background-position: center;
  flex-shrink: 0;
}
.hub-explorer-avatar--1 { background: linear-gradient(150deg, #5a7ba8 0%, #2d4a6e 100%); }
.hub-explorer-avatar--2 { background: linear-gradient(150deg, #6b7a9a 0%, #2d3a5e 100%); }
.hub-explorer-avatar--3 { background: linear-gradient(150deg, #8a6a9a 0%, #4a2d6e 100%); }
.hub-explorer-avatar--4 { background: linear-gradient(150deg, #a87d4e 0%, #6e4a2d 100%); }
.hub-explorer-avatar--5 { background: linear-gradient(150deg, #4ea89a 0%, #2d6e5e 100%); }
.hub-explorer-avatar--6 { background: linear-gradient(150deg, #a84e6e 0%, #6e2d45 100%); }
.hub-explorer-avatar--7 { background: linear-gradient(150deg, #4e8a4e 0%, #2d5e2d 100%); }

.hub-explorer-name {
  font-size: 14px;
  font-weight: 900;
  color: var(--navy);
  line-height: 1.2;
}
.hub-explorer-handle {
  font-size: 12px;
  color: #8a6d1c;
}
.hub-explorer-stats {
  display: flex;
  gap: 10px;
  margin-top: 2px;
}
.hub-explorer-stats span {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  font-size: 11px;
  font-weight: 900;
  color: var(--navy);
  opacity: .78;
}
.hub-explorer-stats svg {
  width: 14px;
  height: 14px;
  color: var(--gold);
}

/* ── MY PASSPORT BRIDGE CARD ──────────────────────────────── */
.hub-passport-bridge {
  max-width: 1080px;
  margin: 0 auto 40px;
  background: rgba(10,28,61,.55);
  border: 1.5px solid rgba(244,184,37,.4);
  border-radius: 22px;
  padding: 22px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px;
}
.hub-bridge-icon {
  width: 60px;
  height: 74px;
  border: 2px solid var(--gold);
  border-radius: 10px;
  background: rgba(244,184,37,.08);
  color: var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.hub-bridge-icon svg { width: 30px; height: 30px; }
.hub-bridge-content { flex: 1 1 200px; min-width: 0; }
.hub-bridge-title {
  font-family: Georgia, serif;
  font-size: clamp(17px, 3vw, 21px);
  font-weight: 900;
  color: #fff;
  margin: 0 0 5px;
  text-transform: uppercase;
  letter-spacing: .02em;
}
.hub-bridge-copy {
  font-size: 13px;
  color: rgba(255,255,255,.6);
  margin: 0;
}
.hub-bridge-divider {
  width: 1px;
  align-self: stretch;
  background: rgba(244,184,37,.25);
  display: none;
}
.hub-bridge-action {
  flex: 1 1 260px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.hub-bridge-action-text {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  color: rgba(255,255,255,.75);
  line-height: 1.4;
}
.hub-bridge-action-text svg { width: 20px; height: 20px; color: var(--gold); flex-shrink: 0; margin-top: 1px; }
.hub-bridge-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--gold);
  color: #071026;
  font-weight: 1000;
  font-size: 14px;
  border-radius: 999px;
  padding: 12px 22px;
  text-decoration: none;
  align-self: flex-start;
}
.hub-bridge-btn svg { width: 18px; height: 18px; }
.hub-bridge-btn:hover { filter: brightness(1.06); }

/* ── TRENDING GRID ────────────────────────────────────────── */
.hub-trending-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  max-width: 1080px;
  margin: 0 auto;
}
.hub-trend-card {
  position: relative;
  aspect-ratio: 1 / 1.05;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(244,184,37,.28);
  text-decoration: none;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  background-size: cover;
  background-position: center;
}
.hub-trend-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(7,16,38,0) 45%, rgba(7,16,38,.88) 100%);
}
.hub-trend-card--1 { background: linear-gradient(165deg, #e8935a 0%, #3a2a5e 60%, #1a1a3e 100%); }
.hub-trend-card--2 { background: linear-gradient(165deg, #6a4a2a 0%, #3a2a1a 100%); }
.hub-trend-card--3 { background: linear-gradient(165deg, #5a8ac8 0%, #2a4a8e 100%); }
.hub-trend-card--4 { background: linear-gradient(165deg, #e8a55a 0%, #2a3a5e 60%, #0a1a3e 100%); }
.hub-trend-card--5 { background: linear-gradient(165deg, #d88a9a 0%, #6e4a5a 100%); }
.hub-trend-card--6 { background: linear-gradient(165deg, #8a6a4a 0%, #3a2a1a 100%); }
.hub-trend-card--7 { background: linear-gradient(165deg, #6a7ac8 0%, #4a2a8e 100%); }
.hub-trend-card--8 { background: linear-gradient(165deg, #4a8a6a 0%, #2a4a3a 100%); }

.hub-trend-play {
  position: absolute;
  top: 10px;
  left: 10px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(255,255,255,.92);
  color: #071026;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
}
.hub-trend-play svg { width: 14px; height: 14px; }

.hub-trend-footer {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px;
}
.hub-trend-avatar {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 1.5px solid #fff;
  flex-shrink: 0;
  background-size: cover;
  background-position: center;
}
.hub-trend-avatar--1 { background: linear-gradient(150deg, #5a7ba8, #2d4a6e); }
.hub-trend-avatar--2 { background: linear-gradient(150deg, #6b7a9a, #2d3a5e); }
.hub-trend-avatar--3 { background: linear-gradient(150deg, #8a6a9a, #4a2d6e); }
.hub-trend-avatar--4 { background: linear-gradient(150deg, #a87d4e, #6e4a2d); }
.hub-trend-avatar--5 { background: linear-gradient(150deg, #4ea89a, #2d6e5e); }
.hub-trend-avatar--6 { background: linear-gradient(150deg, #a84e6e, #6e2d45); }
.hub-trend-avatar--7 { background: linear-gradient(150deg, #4e8a4e, #2d5e2d); }

.hub-trend-meta { flex: 1; min-width: 0; }
.hub-trend-meta b {
  display: block;
  font-size: 12px;
  font-weight: 900;
  color: #fff;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.hub-trend-meta small {
  display: block;
  font-size: 10px;
  color: rgba(255,255,255,.6);
}
.hub-trend-likes {
  display: flex;
  align-items: center;
  gap: 3px;
  font-size: 11px;
  font-weight: 900;
  color: #fff;
  flex-shrink: 0;
}
.hub-trend-likes svg { width: 12px; height: 12px; color: #e0507a; }

#page-hub .footer-note {
  color: var(--muted);
  margin-top: 24px;
}

/* ── RESPONSIVE ───────────────────────────────────────────── */
@media(min-width: 640px) {
  .hub-bridge-divider { display: block; }
}
@media(min-width: 760px) {
  .hub-trending-grid { grid-template-columns: repeat(4, 1fr); }
}
@media(max-width: 480px) {
  #page-hub.hub-page { margin: -24px -14px 0; padding: 24px 10px 32px; }
  .hub-explorer-card { flex: 0 0 128px; padding: 14px 10px 12px; }
  .hub-explorer-avatar { width: 60px; height: 60px; }
  .hub-passport-bridge { padding: 18px; }
}
