/* ══════════════════════════════════════════
   WHAT'S ON — whats-on.css
   PinPint dark green theme
══════════════════════════════════════════ */

/* ── FILTER CHIPS ── */
.wo-filter-bar {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 0 0 8px;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.wo-filter-bar::-webkit-scrollbar { display: none; }
.wo-chip {
  flex-shrink: 0;
  padding: 6px 14px;
  border-radius: 99px;
  background: var(--app-card);
  border: 1px solid var(--app-border);
  color: var(--app-muted);
  font-size: 13px;
  font-weight: 600;
  font-family: 'DM Sans', sans-serif;
  cursor: pointer;
  transition: all 0.18s;
  white-space: nowrap;
}
.wo-chip.active,
.wo-chip:active {
  background: rgba(74,222,128,0.15);
  border-color: var(--app-green);
  color: var(--app-green);
}

/* ── POST EVENT BUTTON ── */
.wo-post-btn {
  width: 100%;
  padding: 14px;
  background: linear-gradient(135deg, #15803d, #16a34a);
  border: none;
  border-radius: var(--app-radius);
  color: #fff;
  font-size: 15px;
  font-weight: 800;
  font-family: 'DM Sans', sans-serif;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 16px;
  transition: opacity 0.2s, transform 0.15s;
  box-shadow: 0 4px 16px rgba(22,163,74,0.3);
}
.wo-post-btn:active { transform: scale(0.98); opacity: 0.9; }

/* ── EVENT CARD ── */
.wo-event-card {
  background: var(--app-card);
  border: 1px solid var(--app-border);
  border-radius: var(--app-radius);
  margin-bottom: 12px;
  overflow: hidden;
  transition: border-color 0.2s;
}
.wo-event-card:hover { border-color: rgba(74,222,128,0.3); }

.wo-event-header {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 14px 0;
}
.wo-event-type-badge {
  flex-shrink: 0;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  background: rgba(74,222,128,0.08);
  border: 1px solid var(--app-border);
}
.wo-event-meta { flex: 1; min-width: 0; }
.wo-event-title {
  font-size: 16px;
  font-weight: 800;
  color: var(--app-text);
  margin: 0 0 3px;
  line-height: 1.25;
}
.wo-event-pub {
  font-size: 13px;
  color: var(--app-green);
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.wo-event-badge {
  flex-shrink: 0;
  padding: 4px 10px;
  border-radius: 99px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.3px;
  text-transform: uppercase;
}
.wo-badge-public  { background: rgba(74,222,128,0.12); color: var(--app-green); }
.wo-badge-private { background: rgba(251,191,36,0.12); color: #fbbf24; }
.wo-badge-sold    { background: rgba(239,68,68,0.12);  color: #ef4444; }

.wo-event-body { padding: 10px 14px; }
.wo-event-desc {
  font-size: 13px;
  color: var(--app-muted);
  line-height: 1.5;
  margin: 0 0 10px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.wo-event-detail-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
}
.wo-detail-pill {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  color: var(--app-muted);
  font-weight: 600;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--app-border);
  border-radius: 99px;
  padding: 4px 10px;
}

.wo-event-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  border-top: 1px solid var(--app-border);
  gap: 8px;
}
.wo-attendees {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--app-muted);
  font-weight: 600;
}
.wo-attendee-bubbles { display: flex; }
.wo-attendee-dot {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: linear-gradient(135deg, #15803d, #4ade80);
  border: 2px solid var(--app-card);
  margin-left: -6px;
  font-size: 10px;
  font-weight: 700;
  color: #052e16;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.wo-attendee-dot:first-child { margin-left: 0; }

.wo-join-btn {
  padding: 8px 18px;
  border-radius: 99px;
  background: rgba(74,222,128,0.15);
  border: 1px solid rgba(74,222,128,0.35);
  color: var(--app-green);
  font-size: 13px;
  font-weight: 700;
  font-family: 'DM Sans', sans-serif;
  cursor: pointer;
  transition: all 0.2s;
  flex-shrink: 0;
  text-decoration: none;
}
.wo-join-btn:hover { background: rgba(74,222,128,0.25); }
.wo-join-btn.joined {
  background: var(--app-green);
  color: #052e16;
  border-color: var(--app-green);
}
.wo-share-btn {
  padding: 8px 14px;
  border-radius: 99px;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--app-border);
  color: var(--app-muted);
  font-size: 13px;
  font-weight: 600;
  font-family: 'DM Sans', sans-serif;
  cursor: pointer;
  transition: all 0.2s;
}
.wo-share-btn:hover { border-color: rgba(74,222,128,0.3); color: var(--app-text); }

/* ── BUS / ROUTE STOPS ── */
.wo-route-stops {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 10px;
}
.wo-stop-row {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
}
.wo-stop-time {
  width: 46px;
  font-weight: 700;
  color: var(--app-green);
  flex-shrink: 0;
  font-size: 12px;
}
.wo-stop-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--app-green);
  flex-shrink: 0;
  box-shadow: 0 0 6px rgba(74,222,128,0.5);
}
.wo-stop-line {
  width: 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  flex-shrink: 0;
}
.wo-stop-connector {
  width: 2px;
  height: 16px;
  background: var(--app-border);
  margin: 2px 0;
}
.wo-stop-name { color: var(--app-text); font-weight: 600; }

/* ── CRAWL STRIP ── */
.wo-crawl-strip {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: rgba(74,222,128,0.05);
  border-bottom: 1px solid var(--app-border);
}
.wo-crawl-strip-icon { font-size: 20px; }
.wo-crawl-strip-text { font-size: 12px; color: var(--app-muted); font-weight: 600; }
.wo-crawl-strip-text strong { color: var(--app-green); }

/* ── SECTION DIVIDER ── */
.wo-section-divider {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 20px 0 12px;
}
.wo-divider-line { flex: 1; height: 1px; background: var(--app-border); }
.wo-divider-label {
  font-size: 11px;
  font-weight: 700;
  color: var(--app-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  white-space: nowrap;
}

/* ── CREATE EVENT DRAWER ── */
.wo-drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.75);
  z-index: 400;
  backdrop-filter: blur(6px);
  display: none;
  align-items: flex-end;
}
.wo-drawer-overlay.open { display: flex; }
.wo-drawer {
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
  background: var(--app-surface);
  border-radius: 20px 20px 0 0;
  border-top: 1px solid var(--app-border);
  padding: 0 0 env(safe-area-inset-bottom);
  max-height: 92vh;
  overflow-y: auto;
  animation: drawerSlideUp 0.3s cubic-bezier(0.32,0.72,0,1);
}
@keyframes drawerSlideUp {
  from { transform: translateY(100%); }
  to   { transform: translateY(0); }
}
.wo-drawer-handle {
  width: 36px;
  height: 4px;
  background: rgba(255,255,255,0.15);
  border-radius: 2px;
  margin: 12px auto 0;
}
.wo-drawer-title {
  font-size: 18px;
  font-weight: 800;
  color: var(--app-text);
  padding: 16px 20px 0;
  margin: 0;
}
.wo-drawer-sub {
  font-size: 13px;
  color: var(--app-muted);
  padding: 4px 20px 16px;
  border-bottom: 1px solid var(--app-border);
}
.wo-form { padding: 16px 20px; }

/* ── FORM ELEMENTS ── */
.wo-form-group { margin-bottom: 14px; }
.wo-form-label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  color: var(--app-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 6px;
}
.wo-form-input,
.wo-form-textarea,
.wo-form-select {
  width: 100%;
  box-sizing: border-box;
  padding: 11px 14px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--app-border);
  border-radius: 10px;
  color: var(--app-text);
  font-size: 14px;
  font-family: 'DM Sans', sans-serif;
  outline: none;
  transition: border-color 0.2s, background 0.2s;
}
.wo-form-input:focus,
.wo-form-textarea:focus,
.wo-form-select:focus {
  border-color: rgba(74,222,128,0.45);
  background: rgba(74,222,128,0.04);
}
.wo-form-textarea { resize: vertical; min-height: 80px; }
.wo-form-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%234ade80' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
}
.wo-form-select option { background: #141f15; }
.wo-form-row { display: flex; gap: 10px; }
.wo-form-row .wo-form-group { flex: 1; }

/* ── TYPE PICKER GRID ── */
.wo-type-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.wo-type-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 10px 6px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--app-border);
  border-radius: 10px;
  cursor: pointer;
  font-family: 'DM Sans', sans-serif;
  font-size: 11px;
  font-weight: 600;
  color: var(--app-muted);
  transition: all 0.18s;
}
.wo-type-btn span:first-child { font-size: 22px; }
.wo-type-btn.selected {
  background: rgba(74,222,128,0.12);
  border-color: var(--app-green);
  color: var(--app-green);
}

/* ── BUS STOPS BUILDER ── */
.wo-stops-builder { display: flex; flex-direction: column; gap: 8px; }
.wo-stop-input-row {
  display: flex;
  gap: 8px;
  align-items: center;
}
.wo-stop-input-row .wo-form-input { flex: 1; }
.wo-stop-time-input { width: 90px; flex-shrink: 0; }
.wo-stop-del {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--app-danger-bg);
  border: 1px solid rgba(239,68,68,0.2);
  color: var(--app-danger);
  font-size: 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.wo-add-stop-btn {
  padding: 8px 16px;
  background: rgba(74,222,128,0.06);
  border: 1px dashed rgba(74,222,128,0.3);
  border-radius: 10px;
  color: var(--app-green);
  font-size: 13px;
  font-weight: 600;
  font-family: 'DM Sans', sans-serif;
  cursor: pointer;
  text-align: center;
  width: 100%;
  box-sizing: border-box;
}

/* ── PRIVACY ROW ── */
.wo-privacy-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--app-border);
  border-radius: 10px;
}
.wo-privacy-info { flex: 1; }
.wo-privacy-label { font-size: 14px; font-weight: 600; color: var(--app-text); }
.wo-privacy-sub   { font-size: 12px; color: var(--app-muted); margin-top: 2px; }

/* ── PAYMENT STRIP ── */
.wo-payment-strip {
  background: rgba(74,222,128,0.06);
  border: 1px solid rgba(74,222,128,0.2);
  border-radius: 10px;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}
.wo-payment-icon  { font-size: 28px; flex-shrink: 0; }
.wo-payment-info  { flex: 1; }
.wo-payment-title { font-size: 14px; font-weight: 700; color: var(--app-text); }
.wo-payment-sub   { font-size: 12px; color: var(--app-muted); margin-top: 2px; }
.wo-payment-price { font-size: 20px; font-weight: 800; color: var(--app-green); flex-shrink: 0; }

/* ── SUBMIT BUTTON ── */
.wo-submit-btn {
  width: 100%;
  padding: 14px;
  background: linear-gradient(135deg, #15803d, #16a34a);
  border: none;
  border-radius: 12px;
  color: #fff;
  font-size: 15px;
  font-weight: 800;
  font-family: 'DM Sans', sans-serif;
  cursor: pointer;
  transition: opacity 0.2s, transform 0.15s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 4px 16px rgba(22,163,74,0.25);
}
.wo-submit-btn:active   { transform: scale(0.98); opacity: 0.9; }
.wo-submit-btn:disabled { opacity: 0.5; cursor: not-allowed; }

/* ── SHARE MODAL ── */
.wo-share-modal {
  background: var(--app-card);
  border-radius: 20px 20px 0 0;
  border-top: 1px solid var(--app-border);
  padding: 20px 20px env(safe-area-inset-bottom);
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
  animation: drawerSlideUp 0.25s ease;
}
.wo-share-title {
  font-size: 16px;
  font-weight: 800;
  color: var(--app-text);
  margin: 0 0 4px;
}
.wo-share-sub { font-size: 12px; color: var(--app-muted); margin: 0 0 16px; }
.wo-share-link-row {
  display: flex;
  gap: 8px;
  margin-bottom: 14px;
}
.wo-share-link-input {
  flex: 1;
  padding: 10px 12px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--app-border);
  border-radius: 10px;
  color: var(--app-muted);
  font-size: 13px;
  font-family: 'DM Sans', sans-serif;
  outline: none;
}
.wo-copy-btn {
  padding: 10px 16px;
  background: rgba(74,222,128,0.15);
  border: 1px solid rgba(74,222,128,0.35);
  border-radius: 10px;
  color: var(--app-green);
  font-size: 13px;
  font-weight: 700;
  font-family: 'DM Sans', sans-serif;
  cursor: pointer;
}
.wo-share-options {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-bottom: 14px;
}
.wo-share-option {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 12px 6px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--app-border);
  border-radius: 12px;
  cursor: pointer;
  font-size: 11px;
  font-weight: 600;
  color: var(--app-muted);
  font-family: 'DM Sans', sans-serif;
  transition: all 0.18s;
}
.wo-share-option span:first-child { font-size: 22px; }
.wo-share-option:hover { border-color: rgba(74,222,128,0.3); color: var(--app-text); }
.wo-share-cancel {
  width: 100%;
  padding: 12px;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--app-border);
  border-radius: 10px;
  color: var(--app-muted);
  font-size: 14px;
  font-weight: 600;
  font-family: 'DM Sans', sans-serif;
  cursor: pointer;
}

/* ── LOCKED OVERLAY (logged-out users) ── */
.wo-lock-overlay { position: relative; }
.wo-lock-overlay::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--app-radius);
  background: linear-gradient(to bottom, transparent 40%, var(--app-bg) 100%);
  pointer-events: none;
}
.wo-login-prompt {
  text-align: center;
  padding: 20px 16px 28px;
  background: var(--app-card);
  border: 1px solid var(--app-border);
  border-radius: var(--app-radius);
  margin-top: -4px;
}
.wo-login-prompt-icon { font-size: 32px; margin-bottom: 8px; }
.wo-login-prompt-text { font-size: 14px; color: var(--app-muted); margin-bottom: 14px; line-height: 1.5; }
.wo-login-prompt-btn {
  display: inline-block;
  padding: 11px 28px;
  background: var(--app-green);
  color: #052e16;
  border-radius: 99px;
  font-weight: 800;
  font-size: 14px;
  text-decoration: none;
  cursor: pointer;
  border: none;
  font-family: 'DM Sans', sans-serif;
}

/* ── STRIPE PAYMENT MODAL ── */
.wo-stripe-modal {
  background: var(--app-card);
  border-radius: 20px 20px 0 0;
  border-top: 1px solid var(--app-border);
  padding: 24px 20px env(safe-area-inset-bottom);
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
  animation: drawerSlideUp 0.3s cubic-bezier(0.32,0.72,0,1);
}
.wo-stripe-header { text-align: center; margin-bottom: 20px; }
.wo-stripe-logo   { font-size: 36px; margin-bottom: 6px; }
.wo-stripe-title  { font-size: 18px; font-weight: 800; color: var(--app-text); margin: 0 0 4px; }
.wo-stripe-sub    { font-size: 13px; color: var(--app-muted); margin: 0; }
.wo-stripe-amount {
  font-size: 40px;
  font-weight: 800;
  color: var(--app-green);
  text-align: center;
  margin: 16px 0;
}
.wo-stripe-card-field {
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--app-border);
  border-radius: 10px;
  padding: 14px;
  margin-bottom: 12px;
  color: var(--app-muted);
  font-size: 13px;
}
.wo-stripe-note {
  font-size: 11px;
  color: var(--app-muted);
  text-align: center;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
}
.wo-stripe-pay-btn {
  width: 100%;
  padding: 14px;
  background: linear-gradient(135deg, #15803d, #16a34a);
  border: none;
  border-radius: 12px;
  color: #fff;
  font-size: 16px;
  font-weight: 800;
  font-family: 'DM Sans', sans-serif;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(22,163,74,0.3);
  margin-bottom: 10px;
}
.wo-stripe-cancel {
  width: 100%;
  padding: 12px;
  background: transparent;
  border: none;
  color: var(--app-muted);
  font-size: 14px;
  font-weight: 600;
  font-family: 'DM Sans', sans-serif;
  cursor: pointer;
}

/* ── SPINNER ── */
.wo-spinner {
  width: 28px;
  height: 28px;
  border: 3px solid rgba(74,222,128,0.15);
  border-top-color: var(--app-green);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin: 40px auto;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ── EMBEDDED IN APP: TAB SPACING ── */
#tab-whatson {
  padding: 16px;
  padding-bottom: 32px;
}

/* ── EVENT CARD: SMOOTHER HOVER ── */
.wo-event-card {
  transition: border-color 0.2s, transform 0.15s, box-shadow 0.2s;
  -webkit-tap-highlight-color: transparent;
}
.wo-event-card:hover {
  border-color: rgba(74,222,128,0.3);
  transform: translateY(-1px);
  box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}
.wo-event-card:active {
  transform: translateY(0);
}

/* ── JOIN BTN PRESSED STATE ── */
.wo-join-btn:active { transform: scale(0.96); }

/* ── POST BUTTON: PULSE ON LOAD ── */
.wo-post-btn {
  letter-spacing: -0.2px;
}


/* ── AD SLOTS (same fill-gated behaviour as app.css) ── */
.app-ad-slot{width:100%;max-height:0;min-height:0;margin:0;overflow:hidden;border:none;background:transparent;transition:max-height .3s ease}
.app-ad-slot.ad-filled{max-height:300px;min-height:60px;margin:12px 0;border-radius:10px;background:rgba(255,255,255,0.03);border:1px solid rgba(255,255,255,0.06)}
.app-ad-slot ins.adsbygoogle[data-ad-status="unfilled"]{display:none!important}
