/* discover.css: the Instinct Chat home (Discover). Mobile first: the base rules are the
   phone layout, and the min-width blocks at the bottom widen it for tablet and desktop. */
.dsc-body { background: #0b0b0f; padding-bottom: calc(64px + env(safe-area-inset-bottom)); }
.dsc { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 16px; position: relative; z-index: 1; }
.dsc h1, .dsc h2 { font-family: "Outfit", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }

/* Top nav */
.dsc-nav { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 0; }
.dsc-links { display: none; gap: 26px; }
.dsc-link { color: var(--muted); text-decoration: none; font-weight: 600; font-size: 14.5px; padding: 6px 0; border-bottom: 2px solid transparent; }
.dsc-link:hover { color: var(--text); }
.dsc-link.active { color: var(--accent); border-bottom-color: var(--accent); }
.dsc-nav-right { display: flex; align-items: center; gap: 10px; }
.dsc-signin { color: var(--text); text-decoration: none; font-weight: 600; font-size: 14px; padding: 10px 8px; }
.dsc-signin:hover { color: var(--accent); }
.dsc-join { background: #fff; color: #0b0b0f; text-decoration: none; font-weight: 700; font-size: 14px; padding: 10px 18px; border-radius: 999px; white-space: nowrap; }
.dsc-join:hover { background: #ffe3ef; color: #0b0b0f; }

/* Hero */
.dsc-hero { border-radius: 18px; overflow: hidden; border: 1px solid rgba(255, 255, 255, 0.06);
  background:
    radial-gradient(620px 320px at 100% 0%, rgba(255, 45, 135, 0.55), transparent 70%),
    radial-gradient(520px 300px at 70% 100%, rgba(120, 20, 70, 0.55), transparent 70%),
    linear-gradient(120deg, #17070f 0%, #2a0a1b 55%, #3d0d27 100%); }
.dsc-hero-inner { padding: 30px 20px 26px; }
.dsc-hero h1, .dsc-hero-title { font-size: 34px; line-height: 1.06; font-weight: 800; letter-spacing: -0.8px; color: #fff; }
.dsc-hero-title span { color: var(--accent); }
.dsc-hero p { color: rgba(255, 255, 255, 0.82); font-size: 15.5px; line-height: 1.5; margin: 12px 0 20px; max-width: 460px; }
.dsc-hero-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.dsc-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 0 24px; border-radius: 999px; font-weight: 700; font-size: 15px; text-decoration: none; }
.dsc-btn.white { background: #fff; color: #e0196f; }
.dsc-btn.white:hover { background: #ffe3ef; color: #c01560; }
.dsc-btn.ghost { border: 1px solid rgba(255, 255, 255, 0.35); color: #fff; }
.dsc-btn.ghost:hover { background: rgba(255, 255, 255, 0.1); color: #fff; }
.dsc-live { margin-top: 20px; color: #fff; font-size: 14.5px; display: flex; align-items: center; gap: 7px; }
.dsc-live b { font-weight: 700; }
.dsc-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #3ddc84; flex: none; }

/* Photo hero: switched on by adding class "photo" to .dsc-hero once the image files exist in
   /assets/hero/. Tall crop on phones, wide crop from tablet up. The dark gradient on top keeps
   the white headline readable over any part of the photo. */
.dsc-hero.photo { background:
    linear-gradient(180deg, rgba(15, 10, 14, 0) 0, rgba(15, 10, 14, 0) 26vw, #0f0a0e 56vw),
    url("/assets/hero/hero-tall.webp") center top / 100% auto no-repeat, #0f0a0e; }
.dsc-hero.photo .dsc-hero-inner { padding-top: 46vw; }
@media (min-width: 640px) {
  .dsc-hero.photo { background:
      linear-gradient(90deg, rgba(11, 11, 15, 0.72) 0%, rgba(11, 11, 15, 0.3) 45%, rgba(11, 11, 15, 0) 70%),
      url("/assets/hero/hero-wide.webp") right center / cover no-repeat, #17070f; }
  .dsc-hero.photo .dsc-hero-inner { padding-top: 44px; }
}
@media (min-width: 960px) { .dsc-hero.photo .dsc-hero-inner { padding-top: 56px; } }

/* Sections */
.dsc-section { margin-top: 30px; scroll-margin-top: 12px; }
.dsc-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.dsc-head h2 { font-size: 21px; font-weight: 700; color: #fff; letter-spacing: -0.2px; }
.dsc-seeall { color: var(--text); text-decoration: none; font-size: 14px; font-weight: 600; padding: 8px 0 8px 12px; }
.dsc-seeall:hover { color: var(--accent); }

/* Random chat sits directly under the Trending cards: no section margin, just enough room
   that the heading does not touch the cards. */
#trending + #random { margin-top: 12px; }
#trending + #random .dsc-head { margin-bottom: 10px; }

/* Cover tones (gradient covers until licensed room photos are added) */
.tone-pink { --c1: #ff2d87; --c2: #5a0f33; }
.tone-amber { --c1: #e08a2c; --c2: #4a2409; }
.tone-crimson { --c1: #e0263d; --c2: #3d0714; }
.tone-violet { --c1: #9b5cff; --c2: #2c1456; }
.tone-slate { --c1: #7d8ea6; --c2: #1d2634; }
.tone-teal { --c1: #1fb6a6; --c2: #093a36; }
.tone-blue { --c1: #3d8bff; --c2: #0d2552; }

/* Trending: a touch-scrollable row of tall cards */
.dsc-row { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x proximity; -webkit-overflow-scrolling: touch;
  margin: 0 -16px; padding: 2px 16px 0; scrollbar-width: none; }
.dsc-row::-webkit-scrollbar { display: none; }
.dsc-card { position: relative; flex: 0 0 148px; height: 196px; border-radius: 16px; overflow: hidden; scroll-snap-align: start;
  display: flex; flex-direction: column; justify-content: flex-end; padding: 12px; text-decoration: none; color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: radial-gradient(140% 90% at 80% 0%, var(--c1), transparent 70%), var(--c2); }
/* Card layers, bottom to top: tone background (or photo), ONE continuous shade, then content.
   The photo and shade both fill the whole card edge to edge, so there is no seam behind the title. */
.dsc-card.has-cover { background: #0e0e13; }
.dsc-cimg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center top; display: block; z-index: 0; }
.dsc-cshade { position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(to bottom, rgba(8, 8, 12, 0.05) 20%, rgba(8, 8, 12, 0.45) 55%, rgba(8, 8, 12, 0.95) 100%); }
.dsc-card .dsc-cbody { position: relative; z-index: 2; }
.dsc-card .dsc-cicon, .dsc-card .dsc-cgo, .dsc-card .dsc-18 { z-index: 2; }
.dsc-card.has-cover .dsc-cicon { display: none; }
.dsc-card:hover { border-color: rgba(255, 255, 255, 0.3); color: #fff; }
.dsc-cicon { position: absolute; top: 14px; left: 14px; font-size: 40px; line-height: 1; }
.dsc-cbody { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.dsc-cname { font-family: "Outfit", sans-serif; font-weight: 700; font-size: 17px; color: #fff; }
.dsc-ccount { display: flex; align-items: center; gap: 6px; font-size: 12.5px; color: rgba(255, 255, 255, 0.9); }
.dsc-ccount em { font-style: normal; }
.dsc-ccount.quiet { color: rgba(255, 255, 255, 0.65); }
.dsc-ccount.quiet .dsc-dot { background: rgba(255, 255, 255, 0.35); }
.dsc-cgo { position: absolute; right: 10px; bottom: 10px; width: 28px; height: 28px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  background: rgba(0, 0, 0, 0.35); border: 1px solid rgba(255, 255, 255, 0.18); font-size: 14px; color: #fff; }
.dsc-18 { position: absolute; top: 10px; right: 10px; background: var(--accent); color: #fff; font-weight: 800; font-size: 11.5px; padding: 3px 8px; border-radius: 999px; z-index: 1; }

/* All rooms: two-up tiles on phones */
.dsc-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.dsc-tile { position: relative; display: flex; align-items: center; gap: 10px; min-height: 68px; padding: 12px; border-radius: 14px; text-decoration: none; color: #fff;
  background: #15151b; border: 1px solid rgba(255, 255, 255, 0.07); }
.dsc-tile:hover { border-color: var(--accent); background: #1c1c24; color: #fff; }
.dsc-tile .dsc-cicon { position: static; font-size: 22px; width: 40px; height: 40px; border-radius: 11px; display: flex; align-items: center; justify-content: center; flex: none;
  background: linear-gradient(140deg, var(--c1), var(--c2)); }
.dsc-tile .dsc-cname { font-size: 15px; line-height: 1.2; overflow-wrap: break-word; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
.dsc-tile .dsc-18 { top: -8px; right: 10px; font-size: 10.5px; padding: 2px 7px; }
.dsc-tile .dsc-ccount em { white-space: nowrap; }
.dsc-tile .dsc-cbody { flex: 1; }
/* Narrow phones: tighten the tile so long names like "International" stay on one line */
@media (max-width: 399px) {
  .dsc-tile { gap: 8px; padding: 10px; }
  .dsc-tile .dsc-cicon { width: 34px; height: 34px; font-size: 19px; border-radius: 10px; }
  .dsc-tile .dsc-cname { font-size: 14px; }
}
/* Smallest phones: one tile per row, two would split words */
@media (max-width: 349px) {
  .dsc-grid { grid-template-columns: minmax(0, 1fr); }
}
.dsc-fine { color: var(--muted); font-size: 13px; line-height: 1.55; margin-top: 14px; }
.dsc-fine a { color: var(--accent); text-decoration: none; }
.dsc-fine a:hover { text-decoration: underline; }

/* Random chat cards */
.dsc-random { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; }
/* Heading: bolt + title, with the one-line pitch beside it (below it on phones). */
.dsc-head-random { flex-direction: column; align-items: flex-start; justify-content: flex-start; gap: 4px; }
.dsc-head-random h2 { display: flex; align-items: center; gap: 8px; }
.dsc-head-random p { color: rgba(255, 255, 255, 0.78); font-size: 14px; margin: 0; }
.dsc-bolt { width: 24px; height: 24px; flex: none; color: var(--accent); filter: drop-shadow(0 0 8px rgba(255, 45, 135, 0.55)); }
/* Cards: dark glass with a magenta sweep, a solid icon tile, and a pink arrow. */
.dsc-rcard { position: relative; overflow: hidden; display: flex; align-items: center; gap: 16px; min-height: 104px; padding: 18px; border-radius: 20px; text-decoration: none; color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.09);
  background:
    radial-gradient(120% 140% at 78% 110%, rgba(255, 45, 135, 0.30) 0%, rgba(255, 45, 135, 0) 55%),
    linear-gradient(115deg, rgba(110, 20, 62, 0.55) 0%, rgba(24, 14, 26, 0.9) 42%, #14121a 100%); }
.dsc-rcard.alt { background:
    radial-gradient(110% 150% at 100% 100%, rgba(255, 45, 135, 0.34) 0%, rgba(255, 45, 135, 0) 50%),
    linear-gradient(115deg, rgba(60, 22, 70, 0.55) 0%, rgba(18, 16, 30, 0.92) 45%, #12131c 100%); }
.dsc-rcard:hover { border-color: rgba(255, 45, 135, 0.7); color: #fff; }
.dsc-rcard:hover .dsc-arrow { transform: translateX(4px); }
.dsc-ricon { width: 64px; height: 64px; border-radius: 18px; display: flex; align-items: center; justify-content: center; flex: none;
  background: linear-gradient(150deg, #c2267a 0%, #7d1a55 100%); box-shadow: 0 8px 22px rgba(194, 38, 122, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.18); }
.dsc-ricon svg { width: 34px; height: 34px; display: block; }
.dsc-rtext { display: flex; flex-direction: column; gap: 4px; flex: 1; min-width: 0; }
.dsc-rtext b { font-family: "Outfit", sans-serif; font-size: 19px; font-weight: 700; line-height: 1.2; }
.dsc-rtext span { color: rgba(255, 255, 255, 0.78); font-size: 14px; line-height: 1.35; }
.dsc-arrow { color: var(--accent); font-size: 22px; font-weight: 700; flex: none; transition: transform 0.15s ease; }

/* Create-a-party call to action */
.dsc-partycta { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; padding: 22px 18px; border-radius: 18px;
  border: 1px solid rgba(255, 45, 135, 0.35);
  background: radial-gradient(520px 220px at 100% 0%, rgba(255, 45, 135, 0.38), transparent 70%), linear-gradient(120deg, #1d0a14 0%, #2a0a1b 100%); }
.dsc-partycta-ic { font-size: 32px; line-height: 1; }
.dsc-partycta-text h2 { font-family: "Outfit", sans-serif; font-size: 21px; line-height: 1.2; font-weight: 700; color: #fff; margin-bottom: 6px; }
.dsc-partycta-text p { color: rgba(255, 255, 255, 0.8); font-size: 14.5px; line-height: 1.5; }
.dsc-partycta-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 26px; border-radius: 999px; background: var(--accent); color: #fff;
  font-weight: 700; font-size: 15.5px; text-decoration: none; white-space: nowrap; align-self: stretch; }
.dsc-partycta-btn:hover { background: #ff479a; color: #fff; }
@media (min-width: 760px) {
  .dsc-partycta { flex-direction: row; align-items: center; gap: 20px; padding: 26px 30px; }
  .dsc-partycta-text { flex: 1; }
  .dsc-partycta-text h2 { font-size: 24px; }
  .dsc-partycta-btn { align-self: center; }
}

/* Rules and safety */
.dsc-rules { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; }
.dsc-rule { background: #15151b; border: 1px solid rgba(255, 255, 255, 0.07); border-radius: 16px; padding: 16px; }
.dsc-rule-ic { font-size: 22px; line-height: 1; display: block; margin-bottom: 8px; }
.dsc-rule h3 { font-family: "Outfit", sans-serif; font-size: 16.5px; font-weight: 700; color: #fff; margin-bottom: 4px; }
.dsc-rule p { color: var(--muted); font-size: 14px; line-height: 1.55; }
.dsc-rule-links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.dsc-rule-links a { color: #fff; text-decoration: none; font-size: 13.5px; font-weight: 600; padding: 10px 14px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, 0.16); }
.dsc-rule-links a:hover { border-color: var(--accent); color: #fff; background: rgba(255, 45, 135, 0.12); }
@media (min-width: 640px) { .dsc-rules { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 960px) { .dsc-rules { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

/* Footer */
.dsc-footer { margin-top: 44px; padding: 26px 0 30px; border-top: 1px solid rgba(255, 255, 255, 0.07); display: flex; flex-direction: column; gap: 16px; }
.dsc-footlinks { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.dsc-footlinks a { color: var(--muted); text-decoration: none; font-size: 14px; padding: 6px 0; }
.dsc-footlinks a:hover { color: var(--text); }
.dsc-copy { color: var(--muted); font-size: 12.5px; }

/* Mobile tab bar */
.dsc-tabs { position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; display: flex; background: rgba(11, 11, 15, 0.96);
  border-top: 1px solid rgba(255, 255, 255, 0.08); padding-bottom: env(safe-area-inset-bottom); }
.dsc-tab { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; min-height: 58px;
  color: var(--muted); text-decoration: none; font-size: 11.5px; font-weight: 600; }
.dsc-tab span { font-size: 19px; line-height: 1; filter: grayscale(1) brightness(1.4); }
.dsc-tab.active { color: var(--accent); }
.dsc-tab.active span { filter: none; }
.dsc-tab:hover { color: var(--text); }

/* Tablet */
@media (min-width: 640px) {
  .dsc { padding: 0 24px; }
  .dsc-hero-inner { padding: 44px 36px 38px; }
  .dsc-hero h1, .dsc-hero-title { font-size: 46px; }
  .dsc-row { margin: 0 -24px; padding: 2px 24px 0; }
  .dsc-card { flex-basis: 170px; height: 214px; }
  .dsc-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .dsc-random { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
  .dsc-head-random { flex-direction: row; align-items: baseline; gap: 16px; }
  .dsc-rcard { min-height: 124px; padding: 22px 26px; gap: 22px; }
  .dsc-ricon { width: 76px; height: 76px; border-radius: 22px; }
  .dsc-ricon svg { width: 40px; height: 40px; }
  .dsc-rtext b { font-size: 21px; }
  .dsc-rtext span { font-size: 15px; }
}

/* Desktop: real nav, no tab bar, trending becomes a six-up grid */
@media (min-width: 960px) {
  .dsc-body { padding-bottom: 0; }
  .dsc-links { display: flex; }
  .dsc-tabs { display: none; }
  .dsc-hero-inner { padding: 56px 48px 48px; }
  .dsc-hero h1, .dsc-hero-title { font-size: 54px; }
  .dsc-hero p { font-size: 17px; }
  .dsc-row { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); overflow: visible; margin: 0; padding: 0; }
  .dsc-card { height: 220px; }
  .dsc-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .dsc-tile { flex-direction: column; align-items: flex-start; min-height: 104px; }
  .dsc-footer { flex-direction: row; align-items: center; justify-content: space-between; flex-wrap: wrap; }
}
