/* ============================================================
   ANTARESTAR IDEA WALL — Mobile social app shared styles
   Faithful to "All Screens" handoff. Font: Archivo. Accent: #FF6B2B.
   ============================================================ */
@import url('https://fonts.googleapis.com/css2?family=Archivo:wght@400;500;600;700;800;900&display=swap');

:root {
  --accent: #FF6B2B;
  --accent-2: #FF7E3D;
  --accent-soft: #FF9A4D;
  --navy: #1A2E3B;
  --blue: #1A6BFF;
  --green: #16A34A;
  --amber: #D97706;
  --red: #ED4956;
  --gold: #F4B82E;

  --bg: #FAFAFC;
  --bg2: #EFEFF3;
  --card: #FFFFFF;
  --text: #12111E;
  --muted: #7A7A96;
  --faint: #BCBEC6;
  --border: #EAEAEF;
  --chip: #F2F2F5;

  --radius: 16px;
  --shadow-card: 0 2px 16px rgba(0, 0, 0, 0.06);
  --shadow-float: 0 8px 22px rgba(255, 107, 43, 0.50);
  --grad-accent: linear-gradient(135deg, var(--accent), var(--accent-2));
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Archivo', system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
}
body { min-height: 100vh; }

/* mobile phone constrained shell on wide viewports */
.app {
  max-width: 480px;
  margin: 0 auto;
  min-height: 100vh;
  background: var(--bg);
  position: relative;
}

button { font-family: inherit; cursor: pointer; }
input, textarea { font-family: inherit; }
a { color: inherit; text-decoration: none; }

/* ---------- brand logo lockup ---------- */
/* white rounded tile holding the real Antarestar A-mark */
.logo-tile {
  background: #fff; overflow: hidden; flex-shrink: 0;
  display: grid; place-items: center;
  box-shadow: 0 2px 8px rgba(255, 107, 43, 0.28);
}
.logo-tile img { width: 100%; height: 100%; object-fit: contain; }
.brand-lockup { display: flex; align-items: center; gap: 10px; min-width: 0; }
.brand-word { font-weight: 800; font-size: 17px; color: var(--text); letter-spacing: -0.01em; white-space: nowrap; }
.brand-word span { color: var(--accent); }
.live-dot {
  width: 8px; height: 8px; border-radius: 50%; background: var(--green);
  box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.2); flex-shrink: 0;
}

/* legacy fallback (still used by some gates) */
.brand-mark {
  border-radius: 11px;
  background: var(--grad-accent);
  display: grid; place-items: center; color: #fff; flex-shrink: 0;
}

/* ---------- Google G logo button ---------- */
.google-g { width: 20px; height: 20px; flex-shrink: 0; }

/* ---------- overflow menu (nav) ---------- */
.menu-wrap { position: relative; flex-shrink: 0; }
.menu-btn {
  width: 38px; height: 38px; border-radius: 50%; background: var(--chip);
  display: grid; place-items: center; font-size: 18px; border: none; color: var(--muted);
}
.menu-pop {
  position: absolute; top: 46px; right: 0; z-index: 60;
  background: var(--card); border: 1px solid var(--border); border-radius: 14px;
  box-shadow: 0 12px 30px rgba(0,0,0,0.14); padding: 6px; min-width: 184px;
  display: none; flex-direction: column;
}
.menu-pop.open { display: flex; }
.menu-pop a, .menu-pop button {
  display: flex; align-items: center; gap: 11px; padding: 11px 13px; border-radius: 10px;
  font-weight: 700; font-size: 14px; color: var(--text); background: none; border: none;
  text-align: left; width: 100%;
}
.menu-pop a:hover, .menu-pop button:hover { background: var(--chip); }
.menu-pop a .em, .menu-pop button .em { font-size: 17px; width: 22px; text-align: center; }
.menu-pop .sep { height: 1px; background: var(--border); margin: 5px 4px; }
.menu-pop .danger { color: var(--red); }

/* ---------- header (app bar) ---------- */
.head {
  position: sticky; top: 0; z-index: 30;
  background: var(--card);
  border-bottom: 1px solid var(--border);
  padding: 0 14px; height: 56px;
  display: flex; align-items: center; gap: 10px;
}
.head .logo-tile { width: 34px; height: 34px; border-radius: 9px; padding: 3px; }
.head-sub { font-weight: 600; font-size: 11px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.head-icon {
  width: 34px; height: 34px; border-radius: 50%; background: var(--chip);
  display: grid; place-items: center; font-size: 16px; border: none; flex-shrink: 0; overflow: hidden;
}
.head-icon .avatar { width: 34px; height: 34px; }

/* ---------- featured / trophy banner ---------- */
.featured {
  margin: 10px 16px 6px; padding: 12px 15px; border-radius: 14px;
  background: linear-gradient(105deg, #FFE9B0, #FBC850 55%, #F4B82E);
  display: flex; align-items: center; gap: 12px;
  box-shadow: 0 6px 16px rgba(244, 184, 46, 0.28);
  cursor: pointer; transition: transform .12s, box-shadow .12s;
}
.featured:hover { transform: translateY(-1px); box-shadow: 0 8px 22px rgba(244,184,46,0.42); }
.featured:active { transform: translateY(0); }
.card.flash { animation: iw-flash 1.6s ease; }
@keyframes iw-flash {
  0%, 100% { box-shadow: var(--shadow-card); }
  20% { box-shadow: 0 0 0 3px var(--accent), 0 8px 26px rgba(255,107,43,0.4); }
}
.featured .em { font-size: 28px; flex-shrink: 0; }
.featured .body { min-width: 0; flex: 1; }
.featured .kick { font-size: 10.5px; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; color: #7A5400; }
.featured .txt { font-size: 13px; font-weight: 600; color: #4A3500; margin-top: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.featured .likes { font-weight: 800; font-size: 14px; color: #5A3D00; flex-shrink: 0; }

/* ---------- avatar ---------- */
.avatar {
  border-radius: 50%; flex-shrink: 0;
  display: grid; place-items: center; color: #fff; font-weight: 800;
  background-size: cover; background-position: center;
}

/* ---------- status pills ---------- */
.pill {
  display: inline-flex; align-items: center; gap: 4px;
  font-weight: 700; font-size: 11.5px; padding: 4px 10px; border-radius: 999px;
  white-space: nowrap;
}
.pill.pending { background: #FFFBEB; color: #D97706; }
.pill.in_progress { background: #EEF3FF; color: #0040CC; }
.pill.done { background: #F0FDF4; color: #16A34A; }

/* ---------- feed cards ---------- */
.feed { padding: 16px 16px 110px; }
.card {
  background: var(--card);
  border-radius: calc(var(--radius) + 2px);
  border: 1px solid var(--border);
  margin-bottom: 14px;
  overflow: hidden;
  box-shadow: var(--shadow-card);
}
.card-head { display: flex; align-items: center; gap: 10px; padding: 11px 14px; }
.card-name { font-weight: 700; font-size: 14.5px; display: flex; align-items: center; gap: 6px; }
.card-time { font-weight: 600; font-size: 12px; color: var(--muted); margin-top: 1px; }
.card-num { font-weight: 600; font-size: 11px; color: var(--faint); margin-left: auto; letter-spacing: 0.04em; }
.card-photo {
  margin: 0; width: 100%; aspect-ratio: 1 / 1;
  background: var(--bg2); overflow: hidden;
  display: grid; place-items: center; cursor: zoom-in;
}
.card-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* row of minimal line-icon actions */
.card-act-row { display: flex; align-items: center; gap: 14px; padding: 10px 14px 4px; }
.hbtn {
  border: none; background: none; padding: 2px;
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 14px; font-weight: 700; color: var(--muted); line-height: 1;
  transition: transform .12s ease, color .12s ease;
}
.hbtn svg { width: 23px; height: 23px; display: block; stroke: var(--text); fill: none; stroke-width: 1.9; }
.hbtn .n { font-size: 13px; font-weight: 700; color: var(--text); }
.hbtn:active { transform: scale(0.88); }
.hbtn.like.on svg { fill: var(--red); stroke: var(--red); }
.hbtn.like.on .n { color: var(--red); }
.hbtn.cmt:hover svg { stroke: var(--accent); }
.card-act-row .card-num { margin-left: auto; }

.card-meta { padding: 0 16px 12px; }
.likes-line { font-weight: 700; font-size: 14px; color: var(--text); }
.card-text { font-size: 14.5px; line-height: 1.45; font-weight: 500; margin-top: 6px; color: var(--text); }
.card-text b { font-weight: 700; }
.see-cmt {
  display: block; font-size: 13.5px; color: var(--muted); font-weight: 600;
  margin-top: 8px; background: none; border: none; padding: 0; text-align: left;
}

/* trophy badge (max-likes idea) */
.card.trophy { box-shadow: var(--shadow-card), 0 0 0 2px rgba(244, 184, 46, 0.55); }
.trophy-tag {
  position: absolute; top: 12px; right: 12px; z-index: 5;
  width: 38px; height: 38px; border-radius: 12px;
  display: grid; place-items: center; font-size: 20px;
  background: linear-gradient(135deg, #FFD66B, #F4B82E);
  box-shadow: 0 0 0 3px rgba(244, 184, 46, 0.3), 0 6px 18px rgba(244, 184, 46, 0.55);
  animation: trophy-glow 2.2s ease-in-out infinite;
}
@keyframes trophy-glow {
  0%, 100% { box-shadow: 0 0 0 3px rgba(244, 184, 46, 0.28), 0 6px 18px rgba(244, 184, 46, 0.45); }
  50% { box-shadow: 0 0 0 6px rgba(244, 184, 46, 0.14), 0 8px 26px rgba(244, 184, 46, 0.75); }
}

/* ---------- comments ---------- */
.comments { padding: 0 16px 14px; border-top: 1px solid var(--border); margin: 0 0 0; }
.comments-inner { padding-top: 12px; }
.comment { display: flex; gap: 9px; margin-bottom: 11px; }
.comment .body { flex: 1; min-width: 0; }
.comment .meta { font-weight: 800; font-size: 12.5px; }
.comment .meta .t { font-weight: 600; color: var(--faint); font-size: 11px; margin-left: 6px; }
.comment .txt { font-size: 13.5px; line-height: 1.45; color: var(--text); margin-top: 2px; }
.comment-form { display: flex; gap: 8px; margin-top: 6px; }
.comment-form input {
  flex: 1; height: 40px; border-radius: 999px; border: 1.5px solid var(--border);
  background: var(--bg); padding: 0 14px; font-size: 13.5px; font-weight: 600; outline: none;
}
.comment-form button {
  height: 40px; padding: 0 16px; border-radius: 999px; border: none;
  background: var(--accent); color: #fff; font-weight: 800; font-size: 13.5px;
}

/* ---------- floating submit (round FAB) ---------- */
.fab {
  position: fixed; right: 18px; bottom: 24px;
  width: 56px; height: 56px; border-radius: 50%; border: none;
  background: var(--grad-accent); color: #fff; font-size: 26px;
  box-shadow: var(--shadow-float);
  display: grid; place-items: center; z-index: 40;
  transition: transform .14s ease;
}
.fab:active { transform: scale(0.92); }
.app .fab { left: auto; }
@media (min-width: 480px) {
  .fab { right: calc(50% - 240px + 18px); }
}
.fab .plus { font-size: 26px; line-height: 1; }

/* ---------- buttons ---------- */
.btn-primary {
  width: 100%; height: 50px; border-radius: 13px; border: none;
  background: var(--grad-accent); color: #fff; font-weight: 800; font-size: 16px;
  box-shadow: 0 6px 16px rgba(255, 107, 43, 0.40);
  display: flex; align-items: center; justify-content: center; gap: 8px;
  transition: transform .14s ease, box-shadow .14s ease;
}
.btn-primary:active { transform: translateY(1px); }
.btn-primary:disabled { opacity: 0.55; }
.btn-ghost {
  width: 100%; height: 48px; border-radius: 999px;
  border: 2px solid var(--accent); background: transparent; color: var(--accent);
  font-weight: 800; font-size: 15px;
}

/* ---------- forms / inputs ---------- */
.field {
  width: 100%; height: 48px; border-radius: var(--radius);
  border: 1.5px solid var(--border); background: var(--card); color: var(--text);
  padding: 0 15px; font-size: 15px; font-weight: 600; margin-bottom: 12px; outline: none;
}
.field:focus, .comment-form input:focus { border-color: var(--accent); }

/* ---------- toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: 90px; transform: translateX(-50%) translateY(20px);
  background: #14151A; color: #fff; font-weight: 700; font-size: 13.5px;
  padding: 12px 18px; border-radius: 12px; z-index: 90; opacity: 0;
  transition: opacity .25s ease, transform .25s ease; pointer-events: none; max-width: 90%;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.toast.err { background: var(--red); }

/* ---------- lightbox ---------- */
.lightbox {
  position: fixed; inset: 0; background: rgba(8, 9, 12, 0.92);
  display: none; align-items: center; justify-content: center; z-index: 100; padding: 24px;
}
.lightbox.show { display: flex; }
.lightbox img { max-width: 100%; max-height: 100%; border-radius: 12px; }

/* ---------- double-tap heart burst ---------- */
.heart-burst {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%) scale(0.3);
  font-size: 90px; opacity: 0; pointer-events: none; z-index: 6;
  filter: drop-shadow(0 4px 14px rgba(229, 72, 77, 0.6));
}
.heart-burst.go { animation: burst .8s cubic-bezier(0.16, 1, 0.3, 1) forwards; }
@keyframes burst {
  0% { opacity: 0; transform: translate(-50%, -50%) scale(0.3); }
  35% { opacity: 1; transform: translate(-50%, -50%) scale(1.1); }
  70% { opacity: 1; transform: translate(-50%, -50%) scale(1); }
  100% { opacity: 0; transform: translate(-50%, -55%) scale(1); }
}

/* ---------- profile gradient header ---------- */
.prof-grad {
  background: linear-gradient(145deg, var(--accent), var(--accent-2) 50%, var(--navy));
  padding: 16px 16px 28px; position: relative;
}
.prof-grad .back { font-size: 22px; color: rgba(255,255,255,0.85); display: inline-block; }
.prof-grad .center { display: flex; flex-direction: column; align-items: center; margin-top: 6px; gap: 8px; }
.prof-grad .pav {
  width: 76px; height: 76px; border-radius: 50%; font-size: 27px; color: #fff; font-weight: 800;
  display: grid; place-items: center; border: 3px solid rgba(255,255,255,0.5);
  background: linear-gradient(135deg, rgba(255,255,255,0.3), rgba(255,255,255,0.1));
  background-size: cover; background-position: center;
}
.prof-grad .pname { font-weight: 900; font-size: 20px; color: #fff; text-align: center; }
.prof-grad .phandle { font-size: 13px; color: rgba(255,255,255,0.7); font-weight: 600; margin-top: 2px; text-align: center; }
.prof-grad .pjoin { font-size: 12px; color: rgba(255,255,255,0.55); font-weight: 500; margin-top: 4px; text-align: center; }

/* stats card floats over gradient */
.stats-card {
  margin: -16px 14px 16px; background: var(--card); border-radius: var(--radius);
  box-shadow: var(--shadow-card); display: grid; grid-template-columns: 1fr 1fr 1fr; position: relative; z-index: 2;
}
.stats-card .cell { padding: 16px 8px; text-align: center; }
.stats-card .cell + .cell { border-left: 1px solid var(--border); }
.stats-card .cell .ic { font-size: 18px; margin-bottom: 4px; }
.stats-card .cell .n { font-weight: 900; font-size: 22px; color: var(--text); }
.stats-card .cell .l { font-size: 11.5px; color: var(--muted); font-weight: 600; margin-top: 2px; }

/* utility */
.empty { text-align: center; color: var(--muted); font-weight: 600; padding: 60px 20px; }
.kicker {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 800; font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 10px;
}
.kicker::before { content: ''; width: 22px; height: 3px; background: var(--accent); border-radius: 2px; }
