@import url("https://fonts.googleapis.com/css2?family=Manrope:wght@400;600;700;800&display=swap");

:root {
  color-scheme: light;
  --bg: #0b0d0f;
  --bg-alt: #14171c;
  --surface: #1b1f26;
  --ink: #f5f7fb;
  --muted: #9aa3b2;
  --accent: #e0ff5b;
  --accent-2: #72f2ff;
  --stroke: rgba(255, 255, 255, 0.08);
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Manrope", system-ui, sans-serif;
  background: radial-gradient(circle at top left, #1c2430 0%, transparent 45%),
    radial-gradient(circle at 20% 20%, rgba(224, 255, 91, 0.15) 0%, transparent 50%),
    radial-gradient(circle at 80% 10%, rgba(114, 242, 255, 0.15) 0%, transparent 40%),
    var(--bg);
  color: var(--ink);
  min-height: 100vh;
}

a {
  color: inherit;
  text-decoration: none;
}

.flash {
  max-width: 1100px;
  margin: 16px auto 0;
  padding: 12px 20px;
  border-radius: 999px;
  font-size: 14px;
  text-align: center;
}

.flash-notice {
  background: rgba(114, 242, 255, 0.18);
  color: #bff7ff;
  border: 1px solid rgba(114, 242, 255, 0.4);
}

.flash-alert {
  background: rgba(255, 88, 88, 0.18);
  color: #ffc4c4;
  border: 1px solid rgba(255, 88, 88, 0.4);
}

.page {
  max-width: 1100px;
  margin: 0 auto;
  padding: 48px 20px 140px;
}

.hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.presence-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--stroke);
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  width: fit-content;
}

.presence-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #4ade80;
  box-shadow: 0 0 10px rgba(74, 222, 128, 0.55);
}

.presence-pill.is-offline .presence-dot {
  background: #f87171;
  box-shadow: 0 0 10px rgba(248, 113, 113, 0.55);
}

.brand {
  display: flex;
  align-items: center;
  gap: 16px;
}

.brand-mark {
  width: 56px;
  height: 56px;
  display: block;
  border-radius: 18px;
  box-shadow: 0 0 24px rgba(224, 255, 91, 0.35);
}

.brand-label {
  margin: 0;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 13px;
  color: var(--accent-2);
}

.brand-sub {
  margin: 4px 0 0;
  color: var(--muted);
}

.hero-card,
.thread-hero {
  background: transparent;
  border: none;
  border-radius: 0;
  padding: 0;
  box-shadow: none;
  backdrop-filter: none;
}

.reddit-card {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  background: transparent;
  border: none;
  border-radius: 0;
  padding: 12px 0;
}

.composer.reddit-card {
  border: none;
  background: transparent;
  box-shadow: none;
}

.composer.reddit-card .field.minimal input,
.composer.reddit-card .field.minimal textarea {
  border-bottom: 1px solid rgba(224, 255, 91, 0.35);
}

.reddit-top {
  margin-bottom: 28px;
}

.hero-card h1,
.thread-hero h1 {
  font-family: "Manrope", system-ui, sans-serif;
  font-size: clamp(28px, 4vw, 40px);
  margin: 0 0 12px;
}

.hero-card p,
.thread-hero p {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.6;
}

.composer,
.feed {
  margin-top: 40px;
}

.composer-form {
  display: grid;
  gap: 14px;
}

.composer h2,
.feed h2 {
  font-family: "Manrope", system-ui, sans-serif;
  margin: 0 0 12px;
}

.form {
  display: grid;
  gap: 18px;
  background: var(--surface);
  border-radius: 20px;
  padding: 24px;
  border: 1px solid var(--stroke);
}

.error-box {
  background: rgba(255, 88, 88, 0.12);
  border: 1px solid rgba(255, 88, 88, 0.4);
  padding: 12px 16px;
  border-radius: 14px;
  color: #ffc4c4;
  font-size: 14px;
}

.error-box ul {
  margin: 8px 0 0 18px;
}

.field label {
  display: block;
  margin-bottom: 6px;
  font-weight: 600;
  color: var(--muted);
}

.field.minimal input,
.field.minimal textarea {
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 0;
  padding: 10px 4px 12px;
}

.field.minimal input:focus,
.field.minimal textarea:focus {
  border-bottom-color: var(--accent);
  box-shadow: none;
}

.field input,
.field textarea {
  width: 100%;
  border-radius: 14px;
  border: 1px solid transparent;
  padding: 12px 14px;
  background: #0f1116;
  color: var(--ink);
  font-size: 15px;
  font-family: inherit;
}

.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(224, 255, 91, 0.2);
}

.actions {
  display: flex;
  justify-content: flex-end;
}

.btn {
  background: var(--accent);
  color: #101214;
  border: none;
  padding: 12px 20px;
  font-weight: 700;
  border-radius: 999px;
  cursor: pointer;
  font-family: "Manrope", system-ui, sans-serif;
  letter-spacing: 0.02em;
}

.btn.small {
  padding: 8px 14px;
  font-size: 13px;
}

.feed-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 18px;
  color: var(--muted);
}

.reddit-feed {
  display: grid;
  gap: 18px;
}

.vote-count {
  font-size: 13px;
}

.vote-btn {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  border: none;
  background: rgba(255, 255, 255, 0.06);
  color: #9aa3b2;
  cursor: pointer;
  display: grid;
  place-items: center;
  font-size: 14px;
}

.vote-btn:hover {
  background: rgba(224, 255, 91, 0.2);
  color: var(--accent);
}

.post-content h3 {
  margin: 10px 0 6px;
  font-size: 19px;
}

.meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  font-size: 13px;
  color: var(--muted);
}

.post-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.post-card,
.comment-card {
  background: transparent;
  border-radius: 0;
  padding: 0;
  border: none;
}

.post-card h3 {
  margin: 12px 0 8px;
  font-size: 18px;
}

.post-card p,
.comment-card p {
  color: var(--muted);
  line-height: 1.5;
}

.post-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  color: var(--muted);
}

.pill {
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(114, 242, 255, 0.15);
  color: var(--accent-2);
  font-weight: 600;
}

.post-footer {
  margin-top: 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--muted);
  font-size: 14px;
}

.post-actions {
  margin-top: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.link {
  color: var(--accent);
  font-weight: 600;
}

.link.subtle {
  color: var(--muted);
}

.comment-stack {
  display: grid;
  gap: 16px;
}

.thread-body {
  margin-top: 16px;
}

.composer-sticky {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(11, 13, 15, 0.95);
  backdrop-filter: blur(12px);
  padding: 16px 20px 8px;
  z-index: 10;
}

.composer-sticky .composer-form {
  background: transparent;
}

.composer-sticky .actions {
  justify-content: flex-end;
}

.comment-card {
  border-left: 2px solid rgba(255, 255, 255, 0.08);
  background: transparent;
}

.comment-header {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--muted);
}

.comment-body {
  margin-top: 8px;
  color: var(--ink);
}

.comment-actions {
  margin-top: 8px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.comment-votes {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.reply-toggle {
  background: none;
  border: none;
  color: var(--accent);
  cursor: pointer;
  font-weight: 600;
  padding: 0;
}

.reply-box {
  display: none;
  margin-top: 10px;
  padding: 10px 0;
  background: transparent;
  border-radius: 0;
}

.reply-box.is-open {
  display: block;
}

.reply-form textarea {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--ink);
  padding: 6px 0 10px;
  font-family: inherit;
}

.post-item {
  padding: 16px 0;
}

.tag-row {
  margin-top: 8px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.feed-tabs {
  margin-bottom: 16px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}

.tab-link {
  font-size: 13px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.06);
  padding: 6px 12px;
  border-radius: 999px;
  text-decoration: none;
  transition: color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.tab-link.is-active {
  color: #111;
  background: var(--accent);
  box-shadow: 0 0 0 1px rgba(224, 255, 91, 0.35), 0 10px 18px rgba(224, 255, 91, 0.18);
}

.tab-link:hover {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.12);
}

.muted {
  color: var(--muted);
  font-size: 13px;
}

.empty-state {
  padding: 18px 0;
  font-size: 14px;
}

.tag {
  font-size: 12px;
  color: var(--accent-2);
  background: rgba(114, 242, 255, 0.12);
  padding: 4px 8px;
  border-radius: 999px;
}

.location-row {
  margin: 8px 0 4px;
}

.location-row .muted.is-error {
  color: #ffc4c4;
}

.post-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.post-footer-left {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.post-location {
  font-size: 13px;
  color: var(--muted);
}

.fab {
  position: fixed;
  right: 20px;
  bottom: 80px;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: none;
  background: var(--accent);
  color: #111;
  font-size: 28px;
  display: grid;
  place-items: center;
  cursor: pointer;
  box-shadow: var(--shadow);
}

.modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(5, 7, 9, 0.7);
  z-index: 20;
  padding: 24px;
}

.modal.is-open {
  display: grid;
  place-items: center;
}

.modal-card {
  width: min(560px, 95vw);
  background: #0f1216;
  padding: 20px;
  border-radius: 20px;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.icon-btn {
  background: transparent;
  border: none;
  color: var(--muted);
  font-size: 18px;
  cursor: pointer;
}

.input-with-action {
  position: relative;
}

.input-with-action textarea {
  padding-right: 44px;
  position: relative;
  z-index: 1;
}

.kite-btn {
  position: absolute;
  right: 4px;
  bottom: 6px;
  width: 34px;
  height: 34px;
  border: none;
  border-radius: 999px;
  background: rgba(224, 255, 91, 0.22);
  display: grid;
  place-items: center;
  cursor: pointer;
  z-index: 2;
}

.kite-btn svg {
  width: 18px;
  height: 18px;
  fill: var(--accent);
}

@media (max-width: 720px) {
  .feed-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .reddit-card {
    grid-template-columns: 1fr;
  }

  .post-meta {
    flex-direction: column;
    align-items: flex-start;
  }

  .actions {
    justify-content: stretch;
  }

  .btn {
    width: 100%;
  }
}


.post-images {
  margin-top: 12px;
  display: grid;
  gap: 10px;
}

.post-images img {
  width: 100%;
  max-height: 420px;
  object-fit: cover;
  border-radius: 14px;
}

.post-images--preview {
  grid-template-columns: 1fr;
}

.post-images--preview img {
  height: 220px;
  max-height: none;
  filter: blur(12px);
  transform: scale(1.05);
  border-radius: 16px;
  clip-path: inset(0 round 16px);
}

.post-images--full img {
  max-height: none;
  height: auto;
  object-fit: contain;
}

.post-image-link {
  display: grid;
  gap: 10px;
}

.post-image-link img {
  cursor: pointer;
}

.upload-row {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--muted);
  font-size: 13px;
}

.upload-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 999px;
  cursor: pointer;
  color: var(--ink);
  font-weight: 600;
}

.upload-input {
  display: none;
}

.image-previews {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.preview-image {
  width: 100%;
  height: auto;
  max-height: 280px;
  object-fit: cover;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.brand-link {
  display: inline-flex;
  align-items: center;
}

.app-splash {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  background: radial-gradient(circle at 20% 20%, rgba(114, 242, 255, 0.16), transparent 45%),
    radial-gradient(circle at 80% 10%, rgba(224, 255, 91, 0.12), transparent 45%),
    #0b0d0f;
  opacity: 0;
  pointer-events: none;
  z-index: 9999;
}

.app-splash.is-visible {
  opacity: 1;
}

.app-splash.is-hiding {
  opacity: 0;
  transition: opacity 0.5s ease;
}

.app-splash__logo {
  width: 96px;
  height: 96px;
  border-radius: 24px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
  animation: splash-pop 1.1s ease;
  z-index: 2;
}

.app-splash__orb {
  position: absolute;
  width: 220px;
  height: 220px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(114, 242, 255, 0.18), transparent 60%);
  animation: splash-orb 1.4s ease-out infinite;
}

.app-splash__ring {
  position: absolute;
  width: 180px;
  height: 180px;
  border-radius: 999px;
  border: 1px solid rgba(224, 255, 91, 0.35);
  animation: splash-ring 1.4s ease-out infinite;
}

@keyframes splash-pop {
  0% {
    transform: scale(0.7);
    opacity: 0;
  }
  45% {
    transform: scale(1.05);
    opacity: 1;
  }
  100% {
    transform: scale(1);
  }
}

@keyframes splash-orb {
  0% {
    transform: scale(0.6);
    opacity: 0.5;
  }
  100% {
    transform: scale(1.15);
    opacity: 0;
  }
}

@keyframes splash-ring {
  0% {
    transform: scale(0.7);
    opacity: 0.7;
  }
  100% {
    transform: scale(1.2);
    opacity: 0;
  }
}
