/* NOW! v0.5.4 — scoped NOW + CREATE NOW visual layer
   UI-only. No API, D1, auth, permissions, queue or push behavior changes. */

/* Core 4-tab navigation */
.bottom-nav {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.bottom-nav-item:first-child.active {
  background: linear-gradient(135deg, #173d30, #1d5f47);
  color: #f3fff9;
  box-shadow: inset 0 0 0 1px rgba(79, 217, 161, 0.16);
}

/* NOW hub — scoped only after js/ui-v054.js decorates the real /now route. */
.now-hub-hero {
  position: relative;
  overflow: hidden;
  border-color: rgba(63, 194, 139, 0.34);
  background:
    linear-gradient(145deg, rgba(21, 111, 82, 0.34), rgba(17, 21, 31, 0.96) 62%),
    #11151f;
  box-shadow:
    0 24px 60px rgba(0, 0, 0, 0.32),
    inset 0 1px 0 rgba(255, 255, 255, 0.025);
}
.now-hub-hero::after {
  content: "";
  position: absolute;
  width: 210px;
  height: 210px;
  right: -88px;
  top: -108px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(62, 225, 157, 0.22), transparent 68%);
  pointer-events: none;
}
.now-hub-hero .eyebrow {
  color: #8ce8bd;
}
.now-hub-hero h1 {
  max-width: 13ch;
  font-size: clamp(2.35rem, 10vw, 3.55rem);
  line-height: 0.98;
}
.now-hub-hero > p {
  max-width: 34rem;
  color: #bcc8c2;
  font-size: 0.98rem;
}
.now-hub-hero > .primary {
  border-color: #4bd59e;
  background: linear-gradient(135deg, #12845f, #20b67f);
  box-shadow: 0 14px 34px rgba(25, 176, 122, 0.25);
}

/* NOW filter tabs only — PICK tabs keep their own identity. */
.now-hub-tabs {
  background: rgba(12, 17, 23, 0.94);
  border-color: #25382f;
}
.now-hub-tabs button.active {
  background: linear-gradient(135deg, #173d30, #1d5f47);
  color: #e7fff4;
  box-shadow: inset 0 0 0 1px rgba(79, 217, 161, 0.18);
}

/* NOW cards. PICK cards are explicitly excluded. */
.now-feed-card:not(.pick-feed-card) {
  position: relative;
  overflow: hidden;
  border-color: #273c33;
  background:
    linear-gradient(140deg, rgba(22, 82, 61, 0.14), rgba(15, 20, 30, 0.98) 48%),
    #0f141e;
  padding: 16px;
  gap: 11px;
}
.now-feed-card:not(.pick-feed-card)::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  background: linear-gradient(180deg, #4bd59e, rgba(75, 213, 158, 0));
  opacity: 0.8;
}
.now-feed-card:not(.pick-feed-card) .pill {
  background: rgba(25, 91, 68, 0.5);
  color: #c8f7e3;
  border: 1px solid rgba(68, 199, 145, 0.2);
}
.now-feed-card:not(.pick-feed-card) .card-open-button {
  border-color: #315242;
  background: linear-gradient(135deg, #15281f, #18372a);
  color: #e5fff3;
}

/* CREATE NOW — strictly scoped to /now/create. */
.now-create-form {
  position: relative;
  overflow: visible;
  gap: 16px;
  border-color: rgba(55, 171, 124, 0.32);
  background:
    linear-gradient(160deg, rgba(18, 80, 59, 0.18), rgba(17, 21, 31, 0.97) 28%),
    #11151f;
}
.now-create-form > .eyebrow:first-child {
  color: #83e5b9;
  margin-bottom: -3px;
}
.now-create-form > h1 {
  font-size: clamp(2.25rem, 9vw, 3.3rem);
  margin-bottom: 4px;
}
.now-create-form .chip-grid {
  gap: 10px;
}
.now-create-form .choice-chip {
  min-height: 50px;
  border-radius: 16px;
  border-color: #2a3a34;
  background: linear-gradient(180deg, #151c1b, #11171b);
  color: #cbd7d1;
  transition:
    transform 0.16s ease,
    border-color 0.16s ease,
    background 0.16s ease,
    box-shadow 0.16s ease;
}
.now-create-form .choice-chip:active {
  transform: scale(0.985);
}
.now-create-form .choice-chip.selected {
  border-color: #43cf96;
  background: linear-gradient(135deg, #153f30, #176047);
  color: #f1fff8;
  box-shadow:
    0 0 0 2px rgba(67, 207, 150, 0.1),
    0 10px 26px rgba(17, 113, 79, 0.14);
}
.now-create-form .field input {
  border-color: #2b3d35;
  background: rgba(8, 14, 13, 0.88);
}
.now-create-form .field input:focus {
  border-color: #49cf99;
  box-shadow: 0 0 0 3px rgba(73, 207, 153, 0.12);
}
.now-create-form .section-title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
  color: #a6c8b9;
}
.now-create-form .section-title::after {
  content: "";
  height: 1px;
  flex: 1;
  background: linear-gradient(90deg, rgba(69, 191, 139, 0.32), transparent);
}
.now-create-form .audience-section {
  display: grid;
  gap: 11px;
  padding: 14px;
  border: 1px solid #293b33;
  border-radius: 19px;
  background: rgba(10, 16, 14, 0.5);
}
.now-create-form .audience-heading {
  color: #e7f5ee;
}
.now-create-form .audience-summary {
  margin: 0;
  padding: 11px 12px;
  border-radius: 13px;
  background: rgba(30, 98, 73, 0.18);
  color: #bfe9d6;
  font-size: 0.86rem;
}
.now-create-form .friend-checks {
  max-height: 250px;
  overflow: auto;
  padding-right: 2px;
  scrollbar-width: thin;
}
.now-create-form .check-row {
  border-color: #293a33;
  background: #101713;
}
.now-create-form .check-row input:checked {
  accent-color: #35c78d;
}
.now-create-form > button.primary:last-child {
  border-color: #54dba5;
  background: linear-gradient(135deg, #13845f, #1dbd83);
  box-shadow: 0 14px 34px rgba(23, 176, 121, 0.28);
  min-height: 54px;
  font-size: 0.92rem;
}

@media (max-width: 520px) {
  .app-shell {
    padding-left: 12px;
    padding-right: 12px;
  }
  .card {
    border-radius: 24px;
  }
  .now-hub-hero {
    padding: 22px 18px;
  }
  .now-hub-hero h1 {
    max-width: 11ch;
  }
  .bottom-nav {
    width: calc(100% - 24px);
  }
}

@media (max-width: 370px) {
  .now-create-form .chip-grid {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .now-create-form .choice-chip {
    transition: none;
  }
}
