@import url("../../shared/site-cards.css");

:root {
  --bg: #0a0a0a;
  --surface: #121214;
  --surface-2: #171a1f;
  --text: #f4f7fb;
  --muted: #aab1bf;
  --border: rgba(255, 255, 255, 0.09);
  --accent: #00ff9d;
  --accent-men: #ff7b7b;
  --accent-women: #ff9edb;
  --danger: #ff6e6e;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: "DM Sans", "Segoe UI", Roboto, sans-serif;
  background:
    radial-gradient(circle at 15% 10%, rgba(0, 255, 157, 0.1), transparent 35%),
    radial-gradient(circle at 85% 80%, rgba(0, 255, 157, 0.08), transparent 40%),
    var(--bg);
  color: var(--text);
  min-height: 100vh;
}

a {
  color: inherit;
}

.app-shell {
  width: min(100%, 1080px);
  margin: 0 auto;
  padding: 24px 16px 28px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 20px;
}

.brand {
  font-weight: 800;
  letter-spacing: 0.2px;
  color: var(--accent);
  text-decoration: none;
}

.brand small {
  color: var(--muted);
  font-weight: 600;
}

.top-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.btn,
.btn-outline {
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 10px 16px;
  font-size: 0.93rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}

.btn {
  background: var(--accent);
  color: #04130d;
}

.btn-google {
  margin-top: 8px;
  width: 100%;
  text-align: center;
}

.btn-outline {
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  border-color: var(--border);
}

.card {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.015));
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 16px;
}

.card + .card {
  margin-top: 14px;
}

.title {
  font-size: clamp(1.25rem, 2.8vw, 1.7rem);
  font-weight: 800;
  margin: 0 0 10px;
}

.sub {
  color: var(--muted);
  margin: 0;
}

.grid {
  display: grid;
  gap: 14px;
}

.grid.two {
  grid-template-columns: 1fr;
}

.discover-layout {
  display: grid;
  gap: 14px;
  grid-template-columns: 1fr;
}

.discover-main {
  min-width: 0;
}

.pane-title {
  margin: 0 0 8px;
  font-size: 1.05rem;
}

.profile-name {
  font-weight: 800;
  margin-bottom: 3px;
}

.profile-handle {
  color: var(--muted);
  margin-bottom: 8px;
}

.profile-bio {
  margin: 0;
  color: var(--text);
}

.profile-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 10px;
}

.search-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  align-items: center;
  margin-top: 12px;
}

.vibe-actions {
  margin-top: 10px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.action-btn {
  padding: 7px 11px;
  font-size: 0.82rem;
}

.vibe-reactions-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}

.emoji-btn {
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.03);
  border-radius: 999px;
  padding: 4px 10px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 5px;
  transition: all 0.2s ease;
  user-select: none;
}

.emoji-btn:hover {
  background: rgba(255,255,255,0.06);
  transform: translateY(-1px);
}

.emoji-btn.active {
  background: rgba(0, 255, 157, 0.12);
  border-color: var(--accent);
}

.emoji-btn .e {
  font-size: 1.1rem;
}

.emoji-btn .c {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--muted);
}

.emoji-btn.active .c {
  color: var(--accent);
}

.author-link {
  color: var(--accent);
  text-decoration: none;
}

.comment-item {
  border-top: 1px solid var(--border);
  padding: 10px 0;
}

.comment-meta {
  font-size: 0.84rem;
  color: var(--muted);
  margin-bottom: 4px;
}

.comment-meta strong {
  color: var(--accent);
}

.comment-item p {
  margin: 0;
}

.tag-btn {
  width: 100%;
  text-align: left;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.02);
  color: var(--text);
  font-weight: 700;
  padding: 9px 10px;
  margin-bottom: 8px;
  cursor: pointer;
}

.tag-btn:hover {
  border-color: rgba(0, 255, 157, 0.45);
}

.pill-link {
  color: var(--accent);
  text-decoration: none;
}

.field {
  display: grid;
  gap: 7px;
  margin-bottom: 12px;
}

label {
  color: var(--muted);
  font-weight: 600;
  font-size: 0.9rem;
}

input,
textarea,
select {
  width: 100%;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--surface-2);
  color: var(--text);
  padding: 12px 12px;
  font: inherit;
}

textarea {
  min-height: 130px;
  resize: vertical;
}

.modes {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.mode-chip {
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.02);
  color: var(--muted);
  font-weight: 700;
  font-size: 0.82rem;
  cursor: pointer;
}

.mode-chip.active {
  color: #111;
  border-color: transparent;
}

.mode-chip[data-mode="global"].active {
  background: var(--accent);
}

.mode-chip[data-mode="women"].active {
  background: var(--accent-women);
}

.mode-chip[data-mode="men"].active {
  background: var(--accent-men);
}

/* Mood Chips (Drop a Vibe) */
.mood-chips {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 8px;
  -webkit-overflow-scrolling: touch;
}

.mood-chip {
  flex-shrink: 0;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 8px 14px;
  background: rgba(255, 255, 255, 0.02);
  color: var(--muted);
  font-weight: 700;
  font-size: 0.88rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
}

.mood-chip:hover {
  background: rgba(255, 255, 255, 0.06);
}

.mood-chip.active {
  background: var(--accent);
  color: #111;
  border-color: transparent;
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(0, 255, 157, 0.2);
}

.nav-pills {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.pill {
  text-decoration: none;
  border-radius: 999px;
  padding: 9px 13px;
  border: 1px solid var(--border);
  color: var(--muted);
  font-weight: 700;
  font-size: 0.86rem;
}

.pill.active {
  color: #03140d;
  background: var(--accent);
  border-color: transparent;
}

.feed {
  display: grid;
  gap: 10px;
}

.vibe {
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.02);
}

.vibe .meta {
  color: var(--muted);
  font-size: 0.84rem;
  margin-bottom: 8px;
}

.vibe p {
  margin: 0;
  line-height: 1.45;
}

.notice {
  margin-top: 10px;
  color: var(--muted);
  font-size: 0.88rem;
}

.error {
  color: var(--danger);
  margin-top: 6px;
  font-size: 0.88rem;
}

.ok {
  color: var(--accent);
  margin-top: 6px;
  font-size: 0.9rem;
}

@media (min-width: 860px) {
  .app-shell {
    padding: 28px 20px 36px;
  }

  .grid.two {
    grid-template-columns: 1.35fr 1fr;
    align-items: start;
  }
}

@media (min-width: 1080px) {
  .page-discover,
  .page-discover body {
    overflow: hidden;
  }

  .page-discover .app-shell {
    height: 100vh;
    display: flex;
    flex-direction: column;
    padding-bottom: 14px;
  }

  .discover-layout {
    grid-template-columns: 228px minmax(0, 1fr) 292px;
    align-items: start;
    min-height: 0;
    flex: 1;
    overflow: hidden;
  }

  .discover-left,
  .discover-right {
    position: sticky;
    top: 0;
    max-height: 100%;
    overflow: hidden;
  }

  .discover-main {
    height: 100%;
    overflow-y: auto;
    padding-right: 4px;
  }
}

/* Align app shell cards with shared site-card glass (no grid here) */
.app-shell .card {
  border: 1px solid rgba(42, 210, 255, 0.14);
  border-radius: 16px;
  background: linear-gradient(160deg, rgba(15, 30, 58, 0.42) 0%, rgba(3, 5, 8, 0.88) 100%);
  backdrop-filter: blur(12px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
}

.app-shell .uneven-cards {
  margin-top: 14px;
}
