/* Post a Plate — royal blue base, nine speech-bubble colors. */

:root {
  --royal: #1b3a9b;
  --royal-deep: #122a75;
  --royal-ink: #0d1f57;
  --paper: #f6f8ff;
  --card: #ffffff;
  --ink: #16213f;
  --muted: #5a6a94;

  --b-yellow: #ffd23f;
  --b-pink: #ff5d8f;
  --b-orange: #ff8c42;
  --b-lime: #a8d94e;
  --b-teal: #2ec4b6;
  --b-grape: #7b2d8b;
  --b-violet: #845ef7;
  --b-sky: #4dabf7;
  --b-peach: #ffb59e;

  --bubble-colors: var(--b-yellow), var(--b-pink), var(--b-orange), var(--b-lime),
    var(--b-teal), var(--b-grape), var(--b-violet), var(--b-sky), var(--b-peach);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: "Avenir Next", "Segoe UI", system-ui, -apple-system, sans-serif;
  background: var(--paper);
  color: var(--ink);
  line-height: 1.5;
}

/* ---------- Header ---------- */

.site-header {
  background: var(--royal);
  color: #fff;
  padding: 14px 20px;
  position: sticky;
  top: 0;
  z-index: 10;
  box-shadow: 0 2px 10px rgba(13, 31, 87, .35);
}
.brand { display: flex; align-items: center; gap: 14px; max-width: 880px; margin: 0 auto; }
.brand-logo { border-radius: 50%; background: #fff; }
.brand-name { display: block; font-size: 1.45rem; font-weight: 800; letter-spacing: .2px; }
.brand-mission { display: block; font-size: .85rem; opacity: .85; }

main { max-width: 880px; margin: 0 auto; padding: 0 16px 48px; }

/* ---------- Hero ---------- */

.hero { text-align: center; padding: 36px 8px 8px; }
.hero-logo { border-radius: 50%; box-shadow: 0 6px 24px rgba(27, 58, 155, .35); }
.hero h1 { font-size: 2.3rem; margin: 16px 0 8px; color: var(--royal-ink); }
.hero-sub { max-width: 620px; margin: 0 auto; color: var(--muted); }

.bubble-dots { display: flex; justify-content: center; gap: 8px; margin: 18px 0 4px; }
.bubble-dots span { width: 14px; height: 14px; border-radius: 50% 50% 50% 4px; display: block; }
.bubble-dots span:nth-child(1) { background: var(--b-yellow); }
.bubble-dots span:nth-child(2) { background: var(--b-pink); }
.bubble-dots span:nth-child(3) { background: var(--b-orange); }
.bubble-dots span:nth-child(4) { background: var(--b-lime); }
.bubble-dots span:nth-child(5) { background: var(--b-teal); }
.bubble-dots span:nth-child(6) { background: var(--b-grape); }
.bubble-dots span:nth-child(7) { background: var(--b-violet); }
.bubble-dots span:nth-child(8) { background: var(--b-sky); }
.bubble-dots span:nth-child(9) { background: var(--b-peach); }

/* ---------- Today's question ---------- */

.question-card {
  background: var(--royal);
  color: #fff;
  border-radius: 18px;
  padding: 22px 24px;
  margin: 22px 0;
  text-align: center;
  box-shadow: 0 8px 24px rgba(27, 58, 155, .3);
}
.question-label {
  margin: 0; text-transform: uppercase; letter-spacing: 2px;
  font-size: .75rem; font-weight: 700; color: var(--b-yellow);
}
.question-text { font-size: 1.35rem; font-weight: 700; margin: 8px 0 16px; }

/* ---------- Buttons ---------- */

.btn {
  font: inherit; font-weight: 700; cursor: pointer;
  border: 2px solid var(--royal); border-radius: 999px;
  background: #fff; color: var(--royal);
  padding: 8px 18px;
}
.btn:hover { filter: brightness(1.05); }
.btn:disabled { opacity: .55; cursor: wait; }
.btn-primary { background: var(--b-yellow); border-color: var(--b-yellow); color: var(--royal-ink); }
.btn-big { font-size: 1.05rem; padding: 12px 26px; background: var(--royal); color: #fff; }
.btn-ghost { border-color: transparent; background: transparent; color: var(--muted); }
.btn-small { padding: 4px 12px; font-size: .85rem; }

/* ---------- Composer ---------- */

.composer-wrap { text-align: center; margin: 8px 0 4px; }
.composer {
  text-align: left; background: var(--card); border-radius: 18px;
  padding: 20px 22px; margin-top: 16px;
  box-shadow: 0 4px 18px rgba(22, 33, 63, .12);
}
.composer h2 { margin-top: 0; color: var(--royal-ink); }
.field { display: block; margin-bottom: 16px; }
.field > span { display: block; font-weight: 700; margin-bottom: 6px; }
.field em { font-weight: 400; color: var(--muted); font-style: normal; font-size: .88rem; }
.field input[type="text"], .field select, .field textarea {
  width: 100%; font: inherit; padding: 10px 12px;
  border: 2px solid #c9d4f2; border-radius: 10px; background: #fbfcff;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--royal);
}
.file-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.file-pick {
  cursor: pointer; font-weight: 700; padding: 8px 16px;
  border: 2px dashed var(--royal); border-radius: 999px; color: var(--royal);
}
.file-pick:hover { background: #eef2ff; }
.file-name { color: var(--muted); font-size: .9rem; }
.preview { margin-top: 10px; }
.preview img, .preview video { max-width: 100%; max-height: 260px; border-radius: 12px; }
.form-error { color: #b00020; font-weight: 700; }
.form-actions { display: flex; gap: 10px; }
.house-rule { color: var(--muted); font-size: .88rem; margin-bottom: 0; }

/* ---------- Table filter chips ---------- */

.tables { margin: 26px 0 6px; }
.tables-label { font-weight: 700; color: var(--royal-ink); margin: 0 0 10px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  font: inherit; font-size: .9rem; font-weight: 700; cursor: pointer;
  border-radius: 999px; padding: 6px 14px; background: #fff;
  border: 2px solid var(--chip, var(--royal)); color: var(--ink);
}
.chip.active { background: var(--chip, var(--royal)); color: #fff; }
.chip[data-table=""] { --chip: var(--royal); }
.chip[data-table="Books & Movies"] { --chip: var(--b-violet); }
.chip[data-table="Dating"] { --chip: var(--b-pink); }
.chip[data-table="Vacations"] { --chip: var(--b-sky); }
.chip[data-table="Work"] { --chip: var(--royal); }
.chip[data-table="Dress Tips"] { --chip: var(--b-grape); }
.chip[data-table="Cooking & Grilling"] { --chip: var(--b-orange); }
.chip[data-table="Collectibles"] { --chip: var(--b-yellow); }
.chip[data-table="Stock Trading"] { --chip: var(--b-teal); }
.chip[data-table="Family Holidays"] { --chip: var(--b-lime); }
.chip[data-table="Wild Card"] { --chip: var(--b-peach); }

/* ---------- Feed / plates ---------- */

.feed { display: grid; gap: 22px; margin-top: 18px; }
.feed-empty { text-align: center; color: var(--muted); padding: 36px 0; font-size: 1.05rem; }

.plate {
  background: var(--card); border-radius: 18px; overflow: hidden;
  box-shadow: 0 4px 18px rgba(22, 33, 63, .12);
  border-top: 6px solid var(--royal);
}
.plate-media { background: var(--royal-deep); }
.plate-media img, .plate-media video { display: block; width: 100%; max-height: 480px; object-fit: cover; }
.plate-body { padding: 18px 20px 20px; }
.plate-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.plate-title { margin: 0; font-size: 1.3rem; color: var(--royal-ink); }
.plate-table {
  flex: none; font-size: .78rem; font-weight: 800; text-transform: uppercase;
  letter-spacing: .6px; padding: 4px 10px; border-radius: 999px;
  background: #eef2ff; color: var(--royal);
}
.plate-text { color: var(--ink); margin: 8px 0 4px; white-space: pre-wrap; }
.plate-meta { color: var(--muted); font-size: .85rem; margin: 4px 0 0; }

/* stars */
.stars { display: inline-flex; gap: 2px; vertical-align: middle; }
.star {
  font-size: 1.35rem; line-height: 1; background: none; border: none;
  cursor: pointer; color: #c9d4f2; padding: 0 1px;
}
.star.on { color: var(--b-yellow); text-shadow: 0 0 2px rgba(0,0,0,.25); }
.star.static { cursor: default; }
.rating-summary { font-weight: 700; color: var(--royal-ink); margin-left: 8px; }
.rate-row { display: flex; align-items: center; margin: 12px 0 4px; flex-wrap: wrap; }
.rate-label { font-weight: 700; margin-right: 8px; }

/* speech bubbles (reviews & remixes) */
.bubbles { display: grid; gap: 10px; margin: 10px 0; }
.bubble {
  position: relative; padding: 10px 14px; border-radius: 16px;
  background: var(--bubble, var(--b-sky)); color: var(--royal-ink);
  max-width: 92%;
}
.bubble::after {
  content: ""; position: absolute; left: 22px; bottom: -7px;
  border: 8px solid transparent; border-top-color: var(--bubble, var(--b-sky)); border-bottom: 0;
}
.bubble p { margin: 0; }
.bubble .bubble-actions { margin-top: 4px; }
.upvote-btn {
  font: inherit; font-size: .82rem; font-weight: 700; cursor: pointer;
  background: rgba(255,255,255,.65); border: none; border-radius: 999px; padding: 2px 10px;
}
.bubble.c0 { --bubble: var(--b-yellow); }
.bubble.c1 { --bubble: var(--b-pink); color: #fff; }
.bubble.c2 { --bubble: var(--b-orange); }
.bubble.c3 { --bubble: var(--b-lime); }
.bubble.c4 { --bubble: var(--b-teal); }
.bubble.c5 { --bubble: var(--b-grape); color: #fff; }
.bubble.c6 { --bubble: var(--b-violet); color: #fff; }
.bubble.c7 { --bubble: var(--b-sky); }
.bubble.c8 { --bubble: var(--b-peach); }
.bubble.c1::after { border-top-color: var(--b-pink); }
.bubble.c5::after { border-top-color: var(--b-grape); }
.bubble.c6::after { border-top-color: var(--b-violet); }

.inline-form { display: flex; gap: 8px; margin: 8px 0 2px; }
.inline-form input {
  flex: 1; font: inherit; padding: 8px 12px;
  border: 2px solid #c9d4f2; border-radius: 999px;
}
.inline-form input:focus { outline: none; border-color: var(--royal); }
.section-label { font-weight: 800; color: var(--royal-ink); margin: 16px 0 2px; }
.empty-note { color: var(--muted); font-size: .9rem; margin: 4px 0; }

/* verdict */
.verdict { margin-top: 18px; }
.verdict-bar { display: flex; height: 26px; border-radius: 999px; overflow: hidden; background: #e6ebfa; }
.verdict-serve { background: var(--b-sky); }
.verdict-sendback { background: var(--b-pink); }
.verdict-counts { display: flex; justify-content: space-between; font-size: .88rem; font-weight: 700; margin-top: 6px; }
.verdict-btns { display: flex; gap: 10px; margin-top: 8px; }
.btn-serve { border-color: var(--b-sky); color: var(--royal-ink); }
.btn-sendback { border-color: var(--b-pink); color: var(--royal-ink); }

.plate-foot { margin-top: 16px; display: flex; justify-content: flex-end; }
.report-btn {
  font: inherit; font-size: .82rem; background: none; border: none;
  color: var(--muted); cursor: pointer; text-decoration: underline;
}
.report-btn:disabled { color: var(--b-teal); text-decoration: none; cursor: default; }

/* ---------- Section nav ---------- */

.main-nav {
  display: flex; gap: 10px; max-width: 880px; margin: 12px auto 0;
}
.nav-btn {
  font: inherit; font-weight: 800; cursor: pointer;
  border: 2px solid rgba(255,255,255,.55); border-radius: 999px;
  background: transparent; color: #fff; padding: 8px 18px;
}
.nav-btn:hover { background: rgba(255,255,255,.15); }
.nav-btn.active { background: var(--b-yellow); border-color: var(--b-yellow); color: var(--royal-ink); }

/* ---------- Book & Movie Reviews ---------- */

.reviews-hero { text-align: center; padding: 32px 8px 4px; }
.reviews-hero h2 { font-size: 2rem; margin: 0 0 8px; color: var(--royal-ink); }

.field-row { display: flex; gap: 14px; }
.field-row .field { flex: 1; }
.field input[type="number"] {
  width: 100%; font: inherit; padding: 10px 12px;
  border: 2px solid #c9d4f2; border-radius: 10px; background: #fbfcff;
}
.field input[type="number"]:focus { outline: none; border-color: var(--royal); }
.checkbox-field { display: flex; gap: 10px; align-items: flex-start; cursor: pointer; }
.checkbox-field input[type="checkbox"] { width: 20px; height: 20px; margin-top: 2px; flex: none; accent-color: var(--royal); }
.checkbox-field > span { font-weight: 700; }
.checkbox-field em { font-weight: 400; color: var(--muted); font-style: normal; font-size: .88rem; }

.titles-grid {
  display: grid; gap: 18px; margin-top: 20px;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
}
.title-card {
  background: var(--card); border-radius: 18px; overflow: hidden; cursor: pointer;
  box-shadow: 0 4px 18px rgba(22, 33, 63, .12);
  border-top: 6px solid var(--b-violet);
  transition: transform .12s ease, box-shadow .12s ease;
}
.title-card:hover, .title-card:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(22, 33, 63, .18);
  outline: none;
}
.title-card-cover { display: block; width: 100%; height: 190px; object-fit: cover; background: var(--royal-deep); }
.cover-ph {
  display: flex; align-items: center; justify-content: center;
  font-size: 4rem; background: linear-gradient(135deg, var(--royal), var(--b-violet));
}
.title-card-body { padding: 14px 16px 16px; }
.type-badge {
  flex: none; font-size: .78rem; font-weight: 800; text-transform: uppercase;
  letter-spacing: .6px; padding: 4px 10px; border-radius: 999px; color: #fff;
}
.type-book { background: var(--b-violet); }
.type-movie { background: var(--b-pink); }
.card-ratings { display: grid; gap: 4px; margin: 10px 0 6px; }
.mini-label {
  display: inline-block; font-size: .75rem; font-weight: 800; text-transform: uppercase;
  letter-spacing: .8px; color: var(--muted); margin-right: 8px; min-width: 44px;
}
.rating-none { color: var(--muted); font-size: .9rem; }

/* title detail */
.back-btn { padding-left: 0; margin-top: 18px; }
.detail-head { display: flex; gap: 22px; margin: 10px 0 6px; align-items: flex-start; }
.detail-cover {
  width: 180px; height: 260px; object-fit: cover; border-radius: 14px; flex: none;
  box-shadow: 0 6px 20px rgba(22, 33, 63, .25); background: var(--royal-deep);
}
.detail-cover.cover-ph { font-size: 4.5rem; }
.detail-info { flex: 1; min-width: 0; }
.detail-title { margin: 0; font-size: 1.9rem; color: var(--royal-ink); }
.detail-meta { color: var(--muted); font-size: 1.05rem; margin: 6px 0 0; }
.rating-boxes { display: flex; gap: 14px; margin-top: 16px; flex-wrap: wrap; }
.rating-box {
  background: var(--card); border: 2px solid #c9d4f2; border-radius: 14px;
  padding: 12px 18px; min-width: 170px;
}
.rating-box.host-box { border-color: var(--b-yellow); background: #fffdf2; }
.rating-box .mini-label { min-width: 0; margin: 0 0 4px; display: block; }
.rating-big { font-size: 1.3rem; font-weight: 800; color: var(--royal-ink); margin: 4px 0 0; }
.rating-box .plate-meta { margin-top: 2px; }

/* long-form reviews */
.long-reviews { display: grid; gap: 16px; margin: 10px 0 4px; }
.long-review {
  background: var(--card); border-radius: 16px; padding: 18px 20px;
  box-shadow: 0 4px 14px rgba(22, 33, 63, .1);
  border-left: 6px solid var(--b-sky);
}
.long-review.host-review {
  border-left-color: var(--b-yellow);
  background: #fffdf2;
  box-shadow: 0 6px 20px rgba(22, 33, 63, .14);
}
.review-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.review-author { font-weight: 800; color: var(--royal-ink); }
.host-badge {
  background: var(--b-yellow); color: var(--royal-ink); border-radius: 999px;
  padding: 2px 10px; font-size: .8rem; margin-right: 6px;
}
.long-text {
  line-height: 1.75; max-width: 68ch; white-space: pre-wrap;
  margin: 10px 0 4px; font-size: 1.02rem;
}
.review-foot { display: flex; justify-content: space-between; align-items: center; margin-top: 12px; }
.helpful-btn { background: #eef2ff; padding: 4px 12px; }
.helpful-btn:disabled { opacity: .6; cursor: default; }
.spoiler-box { margin: 10px 0 4px; }
.spoiler-blur { filter: blur(7px); user-select: none; pointer-events: none; }
.spoiler-reveal { border-color: var(--b-orange); color: var(--royal-ink); }
.review-form { margin-top: 22px; }
.review-form h3 { margin-top: 0; color: var(--royal-ink); }

@media (max-width: 560px) {
  .detail-head { flex-direction: column; }
  .detail-cover { width: 140px; height: 200px; }
  .field-row { flex-direction: column; gap: 0; }
  .main-nav { flex-wrap: wrap; }
}

/* ---------- Footer ---------- */

.site-footer {
  background: var(--royal); color: #fff; text-align: center;
  padding: 30px 16px 36px; margin-top: 12px;
}
.footer-logo { border-radius: 50%; background: #fff; }
.footer-line { font-size: 1.25rem; font-weight: 800; margin: 10px 0 2px; }
.footer-follow { margin: 6px 0 10px; color: var(--b-yellow); font-weight: 700; letter-spacing: 1px; text-transform: uppercase; font-size: .8rem; }
.socials { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; }
.socials a {
  color: #fff; text-decoration: none; font-weight: 700;
  border: 2px solid rgba(255,255,255,.55); border-radius: 999px; padding: 6px 16px;
}
.socials a:hover { background: rgba(255,255,255,.15); }
.footer-mission { opacity: .8; font-size: .88rem; margin-bottom: 0; }

@media (max-width: 560px) {
  .hero h1 { font-size: 1.7rem; }
  .brand-mission { display: none; }
  .question-text { font-size: 1.1rem; }
}
