/* =========================================================
   COLOR & TYPE VARIABLES
   Keeping these as variables means we only change a color
   once here, and it updates everywhere it's used below.
   ========================================================= */
:root {
  --forest-dark: #24402F;   /* main background */
  --forest-mid: #35573F;    /* section background, slightly lighter */
  --moss: #5E7F56;          /* secondary accent */
  --gold: #E0A83E;          /* buttons, highlights */
  --cream: #F3EDE0;         /* main text color */
  --bark: #2A1F16;          /* footer background */

  --font-heading: 'Fraunces', serif;
  --font-body: 'Work Sans', sans-serif;
}

/* =========================================================
   RESET
   Browsers add their own default spacing to things like
   headings and lists — this removes that so we start from
   a predictable blank slate.
   ========================================================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background-color: var(--forest-dark);
  color: var(--cream);
  font-family: var(--font-body);
  line-height: 1.5;
}

/* =========================================================
   HEADER
   ========================================================= */
.site-header {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 2rem;
}

.logo {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.logo-accent {
  /* This is the placeholder for the decorative "O" — swap this
     for your real logo graphic whenever it's ready. */
  font-size: 1.2rem;
}

.header-actions {
  display: flex;
  gap: 0.75rem;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

/* =========================================================
   BUTTONS
   Two styles: solid (main action) and ghost (secondary action)
   ========================================================= */
.btn {
  display: inline-block;
  padding: 0.6rem 1.4rem;
  border-radius: 6px;
  text-decoration: none;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.95rem;
}

.btn-solid {
  background-color: var(--gold);
  color: var(--bark);
}

.btn-ghost {
  background-color: transparent;
  color: var(--cream);
  border: 1px solid var(--moss);
}

/* =========================================================
   HERO SECTION
   ========================================================= */
.hero {
  max-width: 640px;
  margin: 5rem auto 6rem auto;
  padding: 0 2rem;
  text-align: left;
}

.hero h1 {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 600;
  line-height: 1.2;
  margin-bottom: 1.25rem;
}

.hero-sub {
  font-size: 1.1rem;
  color: var(--cream);
  opacity: 0.85;
  margin-bottom: 2rem;
  max-width: 55ch;
}

.hero-actions {
  display: flex;
  gap: 1rem;
}

/* =========================================================
   "WHY BYOME" SECTION
   A simple three-column layout that stacks on narrow screens.
   ========================================================= */
.why {
  background-color: var(--forest-mid);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  padding: 4rem 2rem;
}

.why-item h2 {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 0.6rem;
}

.why-item p {
  color: var(--cream);
  opacity: 0.85;
  font-size: 0.98rem;
}

/* Stack the three columns on smaller screens */
@media (max-width: 700px) {
  .why {
    grid-template-columns: 1fr;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .hero-actions {
    flex-direction: column;
  }
}

/* =========================================================
   AUTH PAGES (sign up / log in)
   ========================================================= */
.auth-page {
  display: flex;
  justify-content: center;
  padding: 4rem 2rem;
}

.auth-card {
  background-color: var(--forest-mid);
  border-radius: 10px;
  padding: 2.5rem;
  max-width: 420px;
  width: 100%;
}

.auth-card h1 {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.auth-sub {
  color: var(--cream);
  opacity: 0.85;
  margin-bottom: 1.75rem;
  font-size: 0.98rem;
}

.stacked-form {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.stacked-form label {
  display: block;
  font-size: 0.9rem;
  margin-top: 0.75rem;
}

.stacked-form input {
  display: block;
  width: 100%;
  background-color: var(--forest-dark);
  border: 1px solid var(--moss);
  border-radius: 6px;
  padding: 0.6rem 0.8rem;
  color: var(--cream);
  font-family: var(--font-body);
  font-size: 1rem;
}

.stacked-form button {
  margin-top: 1.5rem;
  border: none;
  cursor: pointer;
  font-size: 1rem;
}

.auth-message {
  margin-top: 1rem;
  font-size: 0.9rem;
  min-height: 1.2em; /* keeps the layout from jumping when a message appears */
}

.auth-switch {
  margin-top: 1.5rem;
  font-size: 0.9rem;
  opacity: 0.85;
}

.auth-switch a {
  color: var(--gold);
}

/* =========================================================
   HAMBURGER MENU
   ========================================================= */
.hamburger-btn {
  background: none;
  border: none;
  cursor: pointer;
  width: 2.2rem;
  height: 2.2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  padding: 0;
}

.hamburger-btn span {
  display: block;
  width: 22px;
  height: 2px;
  background-color: var(--cream);
  border-radius: 2px;
}

.nav-menu {
  position: absolute;
  top: 4.5rem;
  right: 2rem;
  background-color: var(--forest-mid);
  border-radius: 10px;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  min-width: 210px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  z-index: 10;
}

.nav-menu[hidden] {
  display: none;
}

.nav-menu a.btn,
.nav-menu button.btn {
  text-align: left;
  width: 100%;
  cursor: pointer;
}

.nav-menu hr {
  border: none;
  border-top: 1px solid var(--moss);
  margin: 0.4rem 0;
}

.nav-menu .header-username {
  padding: 0.3rem 0.2rem;
}

/* The page you're on */
.nav-menu a.btn-ghost[aria-current="page"] {
  border-color: var(--gold);
  color: var(--gold);
}

.nav-menu [hidden] {
  display: none;
}

/* =========================================================
   BACK LINK
   ========================================================= */
.back-link {
  display: inline-block;
  color: var(--cream);
  opacity: 0.8;
  text-decoration: none;
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.back-link:hover,
.back-link:focus-visible {
  opacity: 1;
}

/* =========================================================
   FOOTER
   ========================================================= */
.site-footer {
  background-color: var(--bark);
  text-align: center;
  padding: 2rem;
  font-size: 0.9rem;
  color: var(--cream);
  opacity: 0.7;
}

/* =========================================================
   FEED (logged-in message board)
   ========================================================= */
.header-username {
  align-self: center;
  color: var(--gold);
  font-weight: 500;
}

.header-actions button.btn {
  cursor: pointer;
}

.feed-page {
  max-width: 640px;
  margin: 2rem auto 5rem auto;
  padding: 0 2rem;
}

.feed-page h1 {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 600;
  margin-bottom: 1.25rem;
}

.composer {
  background-color: var(--forest-mid);
  border-radius: 10px;
  padding: 1rem;
}

.composer textarea {
  width: 100%;
  resize: vertical;
  background-color: var(--forest-dark);
  border: 1px solid var(--moss);
  border-radius: 6px;
  padding: 0.7rem 0.8rem;
  color: var(--cream);
  font-family: var(--font-body);
  font-size: 1rem;
}

.composer-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 0.75rem;
}

.composer-footer button {
  border: none;
  cursor: pointer;
  font-size: 1rem;
}

.char-count {
  font-size: 0.85rem;
  opacity: 0.7;
}

.feed {
  margin-top: 1.5rem;
}

.post {
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--moss);
}

.post-meta {
  display: flex;
  gap: 0.75rem;
  align-items: baseline;
  margin-bottom: 0.4rem;
  font-size: 0.9rem;
}

.post-author {
  font-weight: 600;
  color: var(--gold);
}

.post-meta time {
  opacity: 0.7;
}

.post-body {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  max-width: 65ch;
}

.post-delete {
  margin-top: 0.6rem;
  background: none;
  border: none;
  color: var(--cream);
  opacity: 0.7;
  font-family: var(--font-body);
  font-size: 0.85rem;
  cursor: pointer;
  text-decoration: underline;
}

.post-delete:hover,
.post-delete:focus-visible {
  opacity: 1;
}

.feed-empty {
  opacity: 0.8;
  padding: 1rem 0;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.composer textarea:focus-visible,
.btn:focus-visible,
.post-delete:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

/* =========================================================
   POST HEADINGS, ACTIONS, COMMENTS
   ========================================================= */
.composer-title {
  width: 100%;
  margin-bottom: 0.6rem;
  background-color: var(--forest-dark);
  border: 1px solid var(--moss);
  border-radius: 6px;
  padding: 0.6rem 0.8rem;
  color: var(--cream);
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 600;
}

.composer-title:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

.post-title {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 0.3rem;
  overflow-wrap: anywhere;
}

.post-actions {
  display: flex;
  gap: 1.25rem;
  align-items: center;
  margin-top: 0.75rem;
}

.action-btn {
  background: none;
  border: none;
  padding: 0.25rem 0;
  color: var(--cream);
  opacity: 0.75;
  font-family: var(--font-body);
  font-size: 0.9rem;
  cursor: pointer;
}

.action-btn:hover,
.action-btn:focus-visible {
  opacity: 1;
}

.action-btn:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

.action-btn:disabled {
  cursor: default;
  opacity: 0.5;
}

.like-btn.is-liked {
  color: var(--gold);
  opacity: 1;
}

.comments {
  margin-top: 1rem;
  padding: 1rem;
  background-color: var(--forest-mid);
  border-radius: 10px;
}

.comment-form textarea {
  width: 100%;
  resize: vertical;
  background-color: var(--forest-dark);
  border: 1px solid var(--moss);
  border-radius: 6px;
  padding: 0.6rem 0.8rem;
  color: var(--cream);
  font-family: var(--font-body);
  font-size: 0.95rem;
}

.comment-form textarea:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

.comment-form-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-top: 0.5rem;
}

.comment-form-footer .btn {
  border: none;
  cursor: pointer;
  padding: 0.4rem 1rem;
  font-size: 0.9rem;
}

.comment-form-footer .btn:disabled {
  opacity: 0.6;
  cursor: default;
}

.comment-list {
  margin-top: 0.75rem;
}

.comment {
  padding: 0.75rem 0;
}

.comment-body {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font-size: 0.95rem;
}

.comment .post-actions {
  margin-top: 0.25rem;
}

.reply-holder {
  margin-top: 0.5rem;
}

.replies {
  margin-left: 0.75rem;
  padding-left: 1rem;
  border-left: 1px solid var(--moss);
}

.replies-flat {
  margin-left: 0;
  padding-left: 0;
  border-left: none;
}

.comments .feed-empty {
  padding: 0.75rem 0 0 0;
}

/* =========================================================
   LEAF LIKE BUTTON
   ========================================================= */
:root {
  --leaf: #8DBB6E; /* fresh green, readable on the dark forest background */
}

.like-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.leaf-icon {
  width: 1.15rem;
  height: 1.15rem;
}

.leaf-body {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linejoin: round;
}

.leaf-vein {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
}

.like-btn.is-liked {
  color: var(--leaf);
  opacity: 1;
}

.like-btn.is-liked .leaf-body {
  fill: currentColor;
}

/* on a filled leaf the vein needs to be dark to show */
.like-btn.is-liked .leaf-vein {
  stroke: var(--forest-dark);
}

/* =========================================================
   LOGO LINK
   Still clickable (takes you home), but styled as plain text
   instead of the browser's default purple underlined link.
   ========================================================= */
a.logo {
  color: inherit;
  text-decoration: none;
}

a.logo:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 4px;
  border-radius: 4px;
}

/* =========================================================
   REVIEWS, SELECTS, HIDDEN FIX
   ========================================================= */
/* .btn sets display, which was overriding the hidden attribute */
[hidden] {
  display: none !important;
}

.composer select {
  width: 100%;
  margin-bottom: 0.6rem;
  background-color: var(--forest-dark);
  border: 1px solid var(--moss);
  border-radius: 6px;
  padding: 0.6rem 0.8rem;
  color: var(--cream);
  font-family: var(--font-body);
  font-size: 1rem;
}

.composer select:focus-visible,
.composer textarea:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

.field-label {
  display: block;
  font-size: 0.85rem;
  margin: 0.4rem 0 0.25rem 0;
  opacity: 0.85;
}

.review-product {
  color: var(--leaf);
  font-weight: 500;
  font-size: 0.95rem;
}

.review-rating {
  letter-spacing: 0.1em;
  margin: 0.2rem 0 0.4rem 0;
}

.inline-link {
  color: var(--gold);
}

#done-link {
  margin-top: 0.5rem;
}

/* =========================================================
   ROUND 2: LINKS, FORM POLISH, LEAF RATING
   Paste at the very bottom of style.css (after the earlier additions).
   ========================================================= */

/* Links: cream instead of the browser's purple/blue. Class-based
   colors (gold links, buttons) still win because they're more specific. */
a {
  color: var(--cream);
}

/* Review form */
.composer {
  padding: 1.25rem;
}

.composer select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 2.4rem;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%23F3EDE0' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.9rem center;
  background-size: 0.75rem;
}

.composer select:hover {
  border-color: var(--gold);
}

.composer select option {
  background-color: var(--forest-dark);
  color: var(--cream);
}

/* Leaf rating */
.rating-field {
  border: none;
  padding: 0;
  margin: 0 0 0.6rem 0;
  min-width: 0;
}

.rating-leaves {
  display: flex;
  gap: 0.35rem;
}

.rating-leaf {
  position: relative;
  display: inline-flex;
  color: var(--cream);
  opacity: 0.55;
  cursor: pointer;
}

.rating-leaf .leaf-icon {
  width: 1.9rem;
  height: 1.9rem;
}

.rating-leaf.on {
  color: var(--leaf);
  opacity: 1;
}

.rating-leaf.on .leaf-body {
  fill: currentColor;
}

.rating-leaf.on .leaf-vein {
  stroke: var(--forest-dark);
}

.rating-leaf:has(input:focus-visible) {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: 4px;
}

.rating-label {
  min-height: 1.5em; /* reserve space so the form doesn't jump */
  margin-top: 0.3rem;
  font-size: 0.9rem;
  color: var(--gold);
}

/* Small, non-clickable leaves on posted reviews */
.review-rating {
  display: flex;
  gap: 0.15rem;
  letter-spacing: normal;
}

.rating-leaf.static {
  cursor: default;
}

.rating-leaf.static .leaf-icon {
  width: 1.1rem;
  height: 1.1rem;
}

/* =========================================================
   ROUND 4 (REVISED): REVIEW PHOTOS, REPURCHASE, HOLY GRAIL
   This REPLACES the earlier "ROUND 4" block. Delete that whole
   block from style.css, then paste this at the very bottom
   (below the mobile block).
   ========================================================= */

/* ----- Review card: small photo beside name, rating and tags ----- */
.review-product-row {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  margin: 0.5rem 0 0.75rem 0;
}

.review-photo {
  width: 2.75rem;
  height: 2.75rem;
  flex-shrink: 0;
  object-fit: cover;
  border-radius: 6px;
  border: 1px solid var(--moss);
  background-color: var(--forest-mid);
}

.review-product-info {
  min-width: 0;
}

.review-product-info .review-product {
  margin: 0 0 0.25rem 0;
  overflow-wrap: anywhere;
}

.review-product-info .review-rating {
  margin: 0 0 0.4rem 0;
}

.review-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.review-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.8rem;
  padding: 0.15rem 0.65rem;
  border: 1px solid var(--moss);
  border-radius: 999px;
}

.review-tag.holy-grail {
  color: var(--gold);
  border-color: var(--gold);
  font-weight: 600;
}

.star-icon {
  width: 0.85rem;
  height: 0.85rem;
  fill: currentColor;
}

/* ----- Review form: repurchase + holy grail ----- */
.extras {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 0.75rem 1.25rem;
  margin-bottom: 1.1rem;
}

.extras-field {
  border: none;
  padding: 0;
  margin: 0;
  min-width: 0;
}

/* Yes / No as one joined pill. The chosen side fills leaf-green. */
.toggle-group {
  display: inline-flex;
  border: 1px solid var(--moss);
  border-radius: 999px;
  overflow: hidden;
}

.toggle-btn {
  -webkit-appearance: none;
  appearance: none;
  min-width: 3.75rem;
  padding: 0.35rem 1.1rem;
  background-color: transparent;
  color: var(--cream);
  border: none;
  font-family: var(--font-body);
  font-size: 0.9rem;
  line-height: 1.3;
  cursor: pointer;
}

.toggle-btn + .toggle-btn {
  border-left: 1px solid var(--moss);
}

.toggle-btn:hover {
  background-color: rgba(243, 237, 224, 0.1);
}

.toggle-btn[aria-pressed="true"] {
  background-color: var(--leaf);
  color: var(--forest-dark);
  font-weight: 600;
}

.toggle-btn:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: -3px;
}

/* Holy grail: small gold outline that fills in gold when selected */
.holy-grail-btn {
  -webkit-appearance: none;
  appearance: none;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.3rem 0.8rem;
  background-color: transparent;
  color: var(--gold);
  border: 1px solid var(--gold);
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: 0.85rem;
  line-height: 1.3;
  cursor: pointer;
}

.holy-grail-btn:hover:not(:disabled) {
  background-color: rgba(224, 168, 62, 0.15);
}

.holy-grail-btn[aria-pressed="true"] {
  background-color: var(--gold);
  color: var(--bark);
  font-weight: 600;
}

.holy-grail-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.holy-grail-btn:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

.extras-hint {
  flex-basis: 100%;
  margin-top: -0.25rem;
  font-size: 0.85rem;
  opacity: 0.75;
}

/* ----- Mobile ----- */
@media (max-width: 600px) {
  .review-product-row {
    gap: 0.6rem;
  }

  .review-photo {
    width: 2.5rem;
    height: 2.5rem;
  }

  /* a little taller than desktop so they're easy to tap */
  .toggle-btn {
    min-height: 2.5rem;
    min-width: 4rem;
    padding: 0.5rem 1.2rem;
  }

  .holy-grail-btn {
    min-height: 2.5rem;
    padding: 0.5rem 1rem;
  }

  .extras {
    gap: 0.9rem 1rem;
  }
}

/* =========================================================
   ROUND 5: BRAND SEARCH, EDITING, REVIEW UPDATES
   Paste at the very bottom of style.css (below everything else).
   ========================================================= */

/* ----- Brand search box with suggestions underneath ----- */
.combo {
  position: relative;
  margin-bottom: 0.6rem;
}

.combo-input {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  background-color: var(--forest-dark);
  border: 1px solid var(--moss);
  border-radius: 6px;
  padding: 0.6rem 0.8rem;
  color: var(--cream);
  font-family: var(--font-body);
  font-size: 1rem;
}

.combo-input:hover {
  border-color: var(--gold);
}

.combo-input:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

.combo-input:disabled {
  opacity: 0.6;
}

.combo-list {
  position: absolute;
  top: calc(100% + 0.35rem);
  left: 0;
  right: 0;
  z-index: 20;
  list-style: none;
  max-height: 16rem;
  overflow-y: auto;
  padding: 0.3rem;
  background-color: var(--forest-dark);
  border: 1px solid var(--moss);
  border-radius: 8px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
}

.combo-option {
  padding: 0.55rem 0.7rem;
  border-radius: 6px;
  cursor: pointer;
}

.combo-option:hover,
.combo-option.is-active {
  background-color: var(--forest-mid);
}

.combo-empty {
  padding: 0.7rem;
  font-size: 0.9rem;
  opacity: 0.85;
}

/* ----- Editing posts, reviews and product suggestions ----- */
.edit-form,
.update-form {
  margin: 0.75rem 0;
}

.edit-form textarea {
  width: 100%;
  resize: vertical;
  background-color: var(--forest-dark);
  border: 1px solid var(--moss);
  border-radius: 6px;
  padding: 0.6rem 0.8rem;
  color: var(--cream);
  font-family: var(--font-body);
  font-size: 1rem;
}

.edit-form textarea:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

.edit-buttons {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.edit-form .comment-form-footer .btn,
.edit-form .edit-buttons .btn {
  border: none;
  cursor: pointer;
  padding: 0.4rem 1.1rem;
  font-size: 0.9rem;
}

.edited-tag {
  font-size: 0.85rem;
  font-style: italic;
  opacity: 0.7;
}

/* leaf buttons in the review edit form (same look as the main form) */
button.rating-leaf {
  -webkit-appearance: none;
  appearance: none;
  background: none;
  border: none;
  padding: 0;
}

.rating-leaf:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ----- Review updates: clearly set apart from the original review ----- */
.review-updates {
  display: grid;
  gap: 0.6rem;
  margin-top: 0.9rem;
}

.review-update {
  padding: 0.7rem 0.9rem;
  background-color: var(--forest-mid);
  border-left: 3px solid var(--gold);
  border-radius: 0 8px 8px 0;
}

.review-update-label {
  margin-bottom: 0.25rem;
  font-size: 0.8rem;
  color: var(--gold);
  letter-spacing: 0.03em;
}

.review-update-label strong {
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.review-update-body {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font-size: 0.95rem;
}

.review-update .action-btn {
  margin-top: 0.25rem;
  font-size: 0.85rem;
}

/* ----- Mobile ----- */
@media (max-width: 600px) {
  .combo-input,
  .edit-form textarea {
    font-size: 1rem;
  }

  .combo-option {
    padding: 0.8rem 0.8rem;
  }

  .combo-list {
    max-height: 45vh;
  }

  .edit-buttons {
    gap: 0.75rem;
  }

  .review-update {
    padding: 0.65rem 0.75rem;
  }
}

/* =========================================================
   ROUND 5: BRAND SEARCH, EDITING, REVIEW UPDATES
   Paste at the very bottom of style.css (below everything else).
   ========================================================= */

/* ----- Brand search box with suggestions underneath ----- */
.combo {
  position: relative;
  margin-bottom: 0.6rem;
}

.combo-input {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  background-color: var(--forest-dark);
  border: 1px solid var(--moss);
  border-radius: 6px;
  padding: 0.6rem 0.8rem;
  color: var(--cream);
  font-family: var(--font-body);
  font-size: 1rem;
}

.combo-input:hover {
  border-color: var(--gold);
}

.combo-input:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

.combo-input:disabled {
  opacity: 0.6;
}

.combo-list {
  position: absolute;
  top: calc(100% + 0.35rem);
  left: 0;
  right: 0;
  z-index: 20;
  list-style: none;
  max-height: 16rem;
  overflow-y: auto;
  padding: 0.3rem;
  background-color: var(--forest-dark);
  border: 1px solid var(--moss);
  border-radius: 8px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
}

.combo-option {
  padding: 0.55rem 0.7rem;
  border-radius: 6px;
  cursor: pointer;
}

.combo-option:hover,
.combo-option.is-active {
  background-color: var(--forest-mid);
}

.combo-empty {
  padding: 0.7rem;
  font-size: 0.9rem;
  opacity: 0.85;
}

/* ----- Editing posts, reviews and product suggestions ----- */
.edit-form,
.update-form {
  margin: 0.75rem 0;
}

.edit-form textarea {
  width: 100%;
  resize: vertical;
  background-color: var(--forest-dark);
  border: 1px solid var(--moss);
  border-radius: 6px;
  padding: 0.6rem 0.8rem;
  color: var(--cream);
  font-family: var(--font-body);
  font-size: 1rem;
}

.edit-form textarea:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

.edit-buttons {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.edit-form .comment-form-footer .btn,
.edit-form .edit-buttons .btn {
  border: none;
  cursor: pointer;
  padding: 0.4rem 1.1rem;
  font-size: 0.9rem;
}

.edited-tag {
  font-size: 0.85rem;
  font-style: italic;
  opacity: 0.7;
}

/* leaf buttons in the review edit form (same look as the main form) */
button.rating-leaf {
  -webkit-appearance: none;
  appearance: none;
  background: none;
  border: none;
  padding: 0;
}

.rating-leaf:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ----- Review updates: clearly set apart from the original review ----- */
.review-updates {
  display: grid;
  gap: 0.6rem;
  margin-top: 0.9rem;
}

.review-update {
  padding: 0.7rem 0.9rem;
  background-color: var(--forest-mid);
  border-left: 3px solid var(--gold);
  border-radius: 0 8px 8px 0;
}

.review-update-label {
  margin-bottom: 0.25rem;
  font-size: 0.8rem;
  color: var(--gold);
  letter-spacing: 0.03em;
}

.review-update-label strong {
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.review-update-body {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font-size: 0.95rem;
}

.review-update .action-btn {
  margin-top: 0.25rem;
  font-size: 0.85rem;
}

/* ----- Mobile ----- */
@media (max-width: 600px) {
  .combo-input,
  .edit-form textarea {
    font-size: 1rem;
  }

  .combo-option {
    padding: 0.8rem 0.8rem;
  }

  .combo-list {
    max-height: 45vh;
  }

  .edit-buttons {
    gap: 0.75rem;
  }

  .review-update {
    padding: 0.65rem 0.75rem;
  }
}

/* =========================================================
   ROUND 6: PROFILES, POINTS, NOTIFICATIONS
   Paste at the very bottom of style.css (below everything else).
   ========================================================= */

/* ----- Usernames are now links to profiles ----- */
a.post-author {
  text-decoration: none;
}

a.post-author:hover,
a.post-author:focus-visible {
  text-decoration: underline;
}

/* ----- Standout tag (moderator-awarded) ----- */
.review-tag.standout {
  color: var(--leaf);
  border-color: var(--leaf);
  font-weight: 600;
}

/* ----- Profile page ----- */
.section-title {
  margin: 2rem 0 0.25rem 0;
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 600;
}

.section-title + .feed {
  margin-top: 0.25rem;
}

.profile-counts {
  margin-top: 0.5rem;
  font-size: 0.85rem;
  opacity: 0.7;
}

.points-panel {
  margin-top: 1.5rem;
  padding: 1rem 1.25rem 1.25rem 1.25rem;
  background-color: var(--forest-mid);
  border-radius: 10px;
}

.points-panel .section-title {
  margin-top: 0.25rem;
}

.points-stats {
  display: flex;
  gap: 2rem;
  margin: 0.75rem 0;
}

.points-stat {
  display: flex;
  flex-direction: column;
}

.points-number {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 600;
  line-height: 1.1;
  color: var(--gold);
}

/* Coin (community) and leaf (biome) icons: same size, matching their numbers */
.points-stat .points-icon {
  width: 1.5rem;
  height: 1.5rem;
  margin-bottom: 0.2rem;
  color: var(--gold);
}

.points-stat.biome .points-icon {
  color: var(--leaf);
}

.points-stat:last-child .points-number {
  color: var(--leaf);
}

.points-label {
  font-size: 0.85rem;
  opacity: 0.8;
}

.points-pending {
  font-size: 0.9rem;
  color: var(--gold);
}

.points-note {
  margin-top: 0.5rem;
  font-size: 0.85rem;
  opacity: 0.75;
}

.points-subtitle {
  margin: 1rem 0 0.4rem 0;
  font-size: 0.95rem;
  font-weight: 600;
}

.points-log {
  list-style: none;
  font-size: 0.9rem;
}

.points-log li {
  padding: 0.3rem 0;
  border-top: 1px solid rgba(94, 127, 86, 0.5);
}

.points-log li.is-revoked {
  opacity: 0.5;
  text-decoration: line-through;
}

/* ----- Notifications ----- */
.notification {
  padding: 0.9rem 0 0.9rem 0.75rem;
  border-bottom: 1px solid var(--moss);
  border-left: 3px solid transparent;
}

.notification.is-unread {
  border-left-color: var(--gold);
  background-color: rgba(53, 87, 63, 0.5);
}

.notification-text {
  display: block;
  overflow-wrap: anywhere;
}

a.notification-text {
  text-decoration: none;
}

a.notification-text:hover,
a.notification-text:focus-visible {
  text-decoration: underline;
}

.notification-time {
  display: block;
  margin-top: 0.2rem;
  font-size: 0.8rem;
  opacity: 0.65;
}

/* unread count in the menu, and a dot on the hamburger button */
.nav-badge {
  display: inline-block;
  min-width: 1.3rem;
  margin-left: 0.5rem;
  padding: 0 0.4rem;
  background-color: var(--gold);
  color: var(--bark);
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  text-align: center;
}

.hamburger-btn {
  position: relative;
}

.hamburger-btn.has-unread::after {
  content: "";
  position: absolute;
  top: 0.25rem;
  right: 0.25rem;
  width: 0.65rem;
  height: 0.65rem;
  background-color: var(--gold);
  border: 2px solid var(--forest-dark);
  border-radius: 50%;
}

/* ----- Mobile ----- */
@media (max-width: 600px) {
  .points-stats {
    gap: 1.5rem;
  }

  .points-panel {
    padding: 0.9rem 1rem 1rem 1rem;
  }

  .notification {
    padding: 0.8rem 0 0.8rem 0.6rem;
  }
}
select {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  background-color: var(--forest-dark);
  border: 1px solid var(--moss);
  border-radius: 6px;
  padding: 0.6rem 0.8rem;
  color: var(--cream);
  font-family: var(--font-body);
  font-size: 1rem;
  cursor: pointer;
}

select:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

#review-product,
#review-variation {
  width: 100%;
  margin-bottom: 0.6rem;
  background-color: var(--forest-dark);
  border: 1px solid var(--moss);
  border-radius: 6px;
  padding: 0.6rem 0.8rem;
  color: var(--cream);
  font-family: var(--font-body);
  font-size: 1rem;
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
}

#review-product:disabled,
#review-variation:disabled {
  background-color: var(--forest-dark);
  color: var(--cream);
  opacity: 0.6;
  cursor: not-allowed;
}

#review-product:hover,
#review-variation:hover {
  border-color: var(--gold);
}
#review-product,
#review-variation {
  width: 100%;
  margin-bottom: 0.6rem;
  background-color: var(--forest-dark);
  border: 1px solid var(--moss);
  border-radius: 6px;
  padding: 0.6rem 0.8rem;
  color: var(--cream);
  font-family: var(--font-body);
  font-size: 1rem;
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
}

#review-product:disabled,
#review-variation:disabled {
  background-color: var(--forest-dark);
  color: var(--cream);
  opacity: 0.6;
  cursor: not-allowed;
}

#review-product:hover,
#review-variation:hover {
  border-color: var(--gold);
}
css
/* =========================================================
   CUSTOM PRODUCT / VARIATION DROPDOWN
   Created by reviews.js -> enhanceSelect()
   ========================================================= */

.dropdown {
  position: relative;
  width: 100%;
  margin-bottom: 1rem;
}

.dropdown-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;

  padding: 0.7rem 2.4rem 0.7rem 0.8rem;

  background-color: var(--forest-dark);
  color: var(--cream);
  border: 1px solid var(--moss);
  border-radius: 6px;

  font-family: var(--font-body);
  font-size: 1rem;
  text-align: left;
  cursor: pointer;

  position: relative;
}

.dropdown-btn::after {
  content: "";
  position: absolute;
  right: 0.85rem;
  top: 50%;
  width: 0.5rem;
  height: 0.5rem;

  border-right: 2px solid var(--cream);
  border-bottom: 2px solid var(--cream);

  transform: translateY(-65%) rotate(45deg);
  pointer-events: none;
}

.dropdown-btn:hover {
  border-color: var(--gold);
}

.dropdown-btn:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

.dropdown-btn.is-placeholder {
  color: rgba(243, 237, 224, 0.65);
}

.dropdown-btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.dropdown-panel {
  position: absolute;
  z-index: 1000;
  left: 0;
  right: 0;
  top: calc(100% + 0.35rem);

  padding: 0.5rem;

  background: var(--forest-dark);
  border: 1px solid var(--moss);
  border-radius: 6px;

  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
}

.dropdown-search {
  width: 100%;
  box-sizing: border-box;

  padding: 0.6rem 0.7rem;
  margin-bottom: 0.4rem;

  background: var(--forest-mid);
  color: var(--cream);
  border: 1px solid var(--moss);
  border-radius: 4px;

  font-family: var(--font-body);
  font-size: 0.95rem;
}

.dropdown-search:focus {
  outline: none;
  border-color: var(--gold);
}

.dropdown-list {
  list-style: none;
  margin: 0;
  padding: 0;

  max-height: 220px;
  overflow-y: auto;
}

.dropdown-list li {
  padding: 0.65rem 0.7rem;
  color: var(--cream);
  cursor: pointer;
  border-radius: 4px;
}

.dropdown-list li:hover,
.dropdown-list li.is-active {
  background: var(--forest-mid);
  color: var(--cream);
}

.dropdown-list li.is-placeholder {
  color: rgba(243, 237, 224, 0.65);
  cursor: default;
}


/* =========================================================
   ROUND 7: CATEGORIES
   Paste at the very bottom of style.css (below everything else).
   ========================================================= */

#post-category,
.category-filter {
  width: 100%;
  margin-bottom: 0.6rem;
  background-color: var(--forest-dark);
  border: 1px solid var(--moss);
  border-radius: 6px;
  padding: 0.6rem 0.8rem;
  color: var(--cream);
  font-family: var(--font-body);
  font-size: 1rem;
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
}

#post-category:hover,
.category-filter:hover {
  border-color: var(--gold);
}

#post-category:focus-visible,
.category-filter:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

.category-filter {
  margin: 0;
  max-width: 220px;
}

.filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.post-title-row {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.post-title-row .post-title {
  margin-bottom: 0;
}

/* Reusing the review-tag pill style for a post's category badge */
.post-category-tag {
  display: inline-flex;
  align-items: center;
  font-size: 0.8rem;
  padding: 0.15rem 0.65rem;
  border: 1px solid var(--moss);
  border-radius: 999px;
  margin-left: 0.6rem;
}

.product-category-tag {
  display: inline-flex;
  align-items: center;
  font-size: 0.8rem;
  padding: 0.15rem 0.65rem;
  border: 1px solid var(--moss);
  border-radius: 999px;
}

/* =========================================================
   CATEGORY FILTER BUTTONS (community feed)
   One pill per category. The chosen one fills leaf-green.
   ========================================================= */
.category-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0.75rem 0 1.25rem;
}

.category-chip {
  -webkit-appearance: none;
  appearance: none;
  padding: 0.35rem 0.95rem;
  background-color: transparent;
  color: var(--cream);
  border: 1px solid var(--moss);
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: 0.9rem;
  line-height: 1.3;
  cursor: pointer;
}

.category-chip:hover {
  border-color: var(--gold);
}

.category-chip[aria-pressed="true"] {
  background-color: var(--leaf);
  border-color: var(--leaf);
  color: var(--forest-dark);
  font-weight: 600;
}

.category-chip:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

/* =========================================================
   REVIEW SEARCH
   ========================================================= */
.review-search {
  margin-bottom: 0.75rem;
}

.search-input {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  background-color: var(--forest-dark);
  border: 1px solid var(--moss);
  border-radius: 999px;
  padding: 0.65rem 1.1rem;
  color: var(--cream);
  font-family: var(--font-body);
  font-size: 1rem;
}

.search-input::placeholder {
  color: var(--cream);
  opacity: 0.6;
}

.search-input:hover {
  border-color: var(--gold);
}

.search-input:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

.search-status {
  font-size: 0.9rem;
  opacity: 0.8;
  margin-bottom: 0.75rem;
}

/* =========================================================
   AUTOMOD: "waiting for review" note on held content
   ========================================================= */
.held-notice {
  font-size: 0.85rem;
  color: var(--gold);
  border-left: 3px solid var(--gold);
  padding: 0.2rem 0 0.2rem 0.6rem;
  margin: 0.4rem 0 0.6rem;
}

/* =========================================================
   BIOME SHELF (profile page) and BIOME SHOP
   ========================================================= */
.biome-section {
  margin: 1.5rem 0 2rem;
}

.biome-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.biome-head .section-title {
  margin: 0;
}

.biome-head .btn {
  cursor: pointer;
  font-size: 0.9rem;
  padding: 0.4rem 1rem;
}

.biome-shelf {
  position: relative;
  width: 100%;
  max-width: 420px;
  margin: 0.75rem auto 0;
}

.biome-shelf-img {
  display: block;
  width: 100%;
  height: auto;
}

/* One spot = the pot's square canvas, placed by biome.js */
.biome-slot {
  position: absolute;
  aspect-ratio: 1;
  padding: 0;
  margin: 0;
  border: none;
  background: none;
}

button.biome-slot {
  -webkit-appearance: none;
  appearance: none;
  cursor: pointer;
}

.biome-pot {
  display: block;
  width: 100%;
  height: 100%;
}

/* A potted plant: complete pot, then the plant, then the pot's front
   overlay, so the plant grows out of the pot. Positions match biome.js
   (the plant's y=462 lines up with the pot's y=110). */
.biome-pot {
  position: relative;
  z-index: 0;
}

.biome-plant {
  position: absolute;
  left: 0;
  top: -68.75%;
  width: 100%;
  z-index: 1;
}

.biome-pot-front {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  pointer-events: none;
}

/* Plants whose leaves spill over the rim sit in front of the whole pot */
.biome-plant.is-over-pot {
  z-index: 3;
}

/* Viewing (not arranging): items show an info box on hover, tap or focus */
div.biome-slot {
  cursor: help;
}

div.biome-slot:focus-visible,
.biome-shelf:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
  border-radius: 8px;
}

.biome-tip {
  position: absolute;
  z-index: 5;
  width: max-content;
  max-width: min(240px, 90%);
  padding: 0.55rem 0.7rem;
  background-color: rgba(42, 31, 22, 0.94);
  color: var(--cream);
  border: 1px solid var(--moss);
  border-radius: 8px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
  font-size: 0.82rem;
  line-height: 1.35;
  pointer-events: none; /* never gets in the way of tapping or clicking */
}

.biome-tip-item + .biome-tip-item {
  margin-top: 0.45rem;
  padding-top: 0.45rem;
  border-top: 1px solid rgba(243, 237, 224, 0.2);
}

.biome-tip-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.6rem;
}

.biome-tip-text {
  margin-top: 0.2rem;
}

.biome-tip-earned {
  margin-top: 0.2rem;
  color: var(--gold);
  font-style: italic;
}

/* While arranging: outline around each spot's pot area */
.biome-slot-ring {
  position: absolute;
  left: 8.984%;
  top: 10.547%;
  width: 78.906%;
  height: 76.563%;
  border: 2px dashed transparent;
  border-radius: 10px;
  pointer-events: none;
  z-index: 4;
}

.biome-slot.is-empty .biome-slot-ring {
  border-color: rgba(243, 237, 224, 0.6);
  background-color: rgba(36, 64, 47, 0.25);
}

.biome-slot:hover .biome-slot-ring,
.biome-slot:focus-visible .biome-slot-ring {
  border-color: var(--gold);
}

.biome-slot:focus-visible {
  outline: none;
}

.biome-slot[aria-pressed="true"] .biome-slot-ring {
  border: 3px solid var(--gold);
}

.biome-hint {
  text-align: center;
  font-size: 0.9rem;
  opacity: 0.8;
  margin-top: 0.6rem;
}

/* Arranging panel under the shelf */
.biome-editor {
  margin-top: 1rem;
  padding: 1rem;
  background-color: var(--forest-mid);
  border-radius: 10px;
}

.biome-editor h3 {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  margin: 0.25rem 0 0.5rem;
}

.biome-editor h3 + .biome-tiles {
  margin-bottom: 1rem;
}

.biome-tiles {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(88px, 1fr));
  gap: 0.5rem;
}

.biome-tile {
  -webkit-appearance: none;
  appearance: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
  padding: 0.4rem;
  background-color: var(--forest-dark);
  color: var(--cream);
  border: 1px solid var(--moss);
  border-radius: 8px;
  font-family: var(--font-body);
  font-size: 0.8rem;
  line-height: 1.25;
  text-align: center;
  cursor: pointer;
}

.biome-tile:hover {
  border-color: var(--gold);
}

.biome-tile:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

.biome-tile[aria-pressed="true"] {
  border: 2px solid var(--gold);
}

.biome-tile:disabled {
  cursor: default;
  opacity: 0.5;
}

.biome-tile img,
.biome-tile-empty {
  width: 64px;
  height: 64px;
  object-fit: contain;
}

.biome-tile-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  opacity: 0.6;
}

.biome-tile-meta {
  font-size: 0.75rem;
  opacity: 0.75;
}

/* Rarity colors, used in the shop and editor */
.rarity {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.rarity-common { color: var(--cream); opacity: 0.75; }
.rarity-uncommon { color: var(--leaf); }
.rarity-rare { color: #8EC3E6; }
.rarity-legendary { color: var(--gold); }

/* ----- Shop ----- */
.shop-balance {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.05rem;
  margin: 0.5rem 0 0.25rem;
}

.shop-balance strong {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  color: var(--leaf);
}

.shop-balance .leaf-icon {
  width: 1.5rem;
  height: 1.5rem;
  color: var(--leaf);
}

.shop-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}

.shop-card {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 1rem;
  background-color: var(--forest-mid);
  border-radius: 10px;
}

.shop-card img {
  width: 100%;
  height: 150px;
  object-fit: contain;
}

.shop-card h3 {
  font-family: var(--font-heading);
  font-size: 1.1rem;
}

.shop-price {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  font-weight: 600;
  color: var(--leaf);
}

.shop-price .leaf-icon {
  width: 1.1rem;
  height: 1.1rem;
}

.shop-meta {
  font-size: 0.85rem;
  opacity: 0.8;
}

.shop-card .btn {
  margin-top: auto;
  cursor: pointer;
  border: none;
  text-align: center;
}

.shop-card .btn:disabled {
  cursor: default;
  opacity: 0.55;
}

/* ----- Points lists: "How to earn" and "Recent activity" ----- */
.earn-item,
.points-entry {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.earn-desc,
.entry-meta {
  font-size: 0.8rem;
  opacity: 0.75;
}

.points-entry.is-revoked .entry-title {
  text-decoration: line-through;
}

/* "+10" pills: gold = community points, green = biome points */
.chips {
  display: flex;
  flex-shrink: 0;
  gap: 0.35rem;
}

.chip {
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.1rem 0.55rem;
  border: 1px solid currentColor;
  border-radius: 999px;
  white-space: nowrap;
}

.chip-community {
  color: var(--gold);
}

.chip-biome {
  color: var(--leaf);
}

/* Spending shows as a minus in "Recent activity" */
.chip-spent {
  opacity: 0.8;
  border-style: dashed;
}

/* =========================================================
   REPORT FLAG + REPORT DIALOG
   Outline flag; turns red on hover, and stays red (filled)
   once you've reported something.
   ========================================================= */
:root {
  --report-red: #E07A5F;
}

.report-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  margin-left: auto; /* sits at the right end of the actions row */
}

.flag-icon {
  width: 1.1rem;
  height: 1.1rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linejoin: round;
  stroke-linecap: round;
}

.report-btn:hover,
.report-btn:focus-visible {
  color: var(--report-red);
}

.report-btn.is-reported {
  color: var(--report-red);
  opacity: 1;
  cursor: default;
}

.report-btn.is-reported .flag-cloth {
  fill: currentColor;
}

.report-label {
  font-size: 0.85rem;
}

.report-dialog {
  width: min(28rem, calc(100vw - 2rem));
  margin: auto;
  padding: 1.25rem;
  background-color: var(--forest-mid);
  color: var(--cream);
  border: 1px solid var(--moss);
  border-radius: 12px;
  font-family: var(--font-body);
}

.report-dialog::backdrop {
  background-color: rgba(0, 0, 0, 0.55);
}

.report-dialog h2 {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  margin-bottom: 0.4rem;
}

.report-intro {
  font-size: 0.9rem;
  opacity: 0.85;
  margin-bottom: 0.9rem;
}

.report-reasons {
  border: none;
  padding: 0;
  margin: 0 0 0.9rem;
}

.report-reason {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.3rem 0;
  cursor: pointer;
}

.report-reason input {
  accent-color: var(--report-red);
  width: 1.05rem;
  height: 1.05rem;
}

.report-dialog textarea {
  width: 100%;
  background-color: var(--forest-dark);
  border: 1px solid var(--moss);
  border-radius: 6px;
  padding: 0.6rem 0.8rem;
  color: var(--cream);
  font-family: var(--font-body);
  font-size: 1rem;
  resize: vertical;
}

.report-buttons {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 1.25rem;
  margin-top: 0.75rem;
}

.report-send {
  background-color: var(--report-red);
  color: var(--bark);
  border: none;
  cursor: pointer;
}

.report-send:disabled {
  opacity: 0.6;
  cursor: default;
}

/* Reports listed on the Moderate page */
.report-list {
  list-style: none;
  margin: 0.6rem 0 0;
  padding: 0.5rem 0.75rem;
  border-left: 3px solid var(--report-red);
  font-size: 0.9rem;
}

.report-list li + li {
  margin-top: 0.4rem;
}

.report-details {
  font-style: italic;
  opacity: 0.85;
}

/* =========================================================
   ACHIEVEMENTS (profile page)
   ========================================================= */
.achievements {
  margin: -0.5rem 0 2rem;
}

.achievement-list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.4rem;
}

.achievement {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.25rem 0.75rem;
  border: 1px solid var(--gold);
  border-radius: 999px;
  color: var(--gold);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: default;
}

/* =========================================================
   POSSIBLE DUPLICATE PRODUCTS (suggest page + Moderate page)
   ========================================================= */
.similar-box {
  margin: 0.25rem 0 0.75rem;
  padding: 0.6rem 0.8rem;
  border-left: 3px solid var(--gold);
  background-color: rgba(224, 168, 62, 0.08);
  border-radius: 0 6px 6px 0;
  font-size: 0.9rem;
}

.similar-title {
  font-weight: 600;
  color: var(--gold);
  margin-bottom: 0.25rem;
}

.similar-box ul {
  margin: 0;
  padding-left: 1.1rem;
}

.similar-box li + li {
  margin-top: 0.2rem;
}

/* "Load more" at the bottom of the feed and reviews */
.load-more {
  display: block;
  margin: 1rem auto 2rem;
  cursor: pointer;
}

.load-more:disabled {
  opacity: 0.6;
  cursor: default;
}

/* =========================================================
   PROFILE PICTURES
   ========================================================= */
.avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
  border-radius: 50%;
  /* the ring: color comes from the member's choice (profile-fields.js) */
  border: 2px solid var(--gold);
  background-color: var(--moss);
  color: var(--cream);
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1;
}

.avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.avatar-small { width: 1.6rem; height: 1.6rem; font-size: 0.8rem; }
.avatar-large { width: 4.5rem; height: 4.5rem; font-size: 1.9rem; border-width: 3px; }
.avatar-xl { width: 7rem; height: 7rem; font-size: 2.8rem; border-width: 4px; }

/* picture + name next to posts, comments and reviews */
.post-author-wrap {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.post-author.is-deleted {
  font-style: italic;
  opacity: 0.75;
}

/* =========================================================
   EDIT PROFILE PAGE
   ========================================================= */
.edit-section {
  margin: 1.25rem 0 2rem;
}

.edit-section .section-title {
  margin-bottom: 0.75rem;
}

.avatar-editor {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
}

.avatar-buttons {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.4rem;
}

.file-btn {
  cursor: pointer;
}

.avatar-buttons input:focus-visible + .file-btn,
.file-btn:focus-within {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

.field-hint {
  font-size: 0.85rem;
  opacity: 0.75;
  margin: 0.25rem 0 0.75rem;
}

.profile-optional {
  margin-top: 1.25rem;
}

.text-input {
  width: 100%;
  background-color: var(--forest-dark);
  border: 1px solid var(--moss);
  border-radius: 6px;
  padding: 0.6rem 0.8rem;
  color: var(--cream);
  font-family: var(--font-body);
  font-size: 1rem;
}

.text-input:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

.choice-group {
  border: none;
  padding: 0;
  margin: 0 0 1.1rem;
}

.choice-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 0.35rem;
}

/* An option pill: the real radio/checkbox is hidden but still works with
   the keyboard and screen readers */
.choice {
  position: relative;
  cursor: pointer;
}

.choice input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
}

.choice span {
  display: inline-block;
  padding: 0.35rem 0.85rem;
  border: 1px solid var(--moss);
  border-radius: 999px;
  font-size: 0.9rem;
}

.choice:hover span {
  border-color: var(--gold);
}

.choice input:checked + span {
  background-color: var(--leaf);
  border-color: var(--leaf);
  color: var(--forest-dark);
  font-weight: 600;
}

.choice input:focus-visible + span {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

.danger-zone {
  padding: 1rem;
  border: 1px solid var(--report-red);
  border-radius: 10px;
}

.danger-zone p {
  margin-bottom: 0.75rem;
}

.check-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0.5rem 0 1rem;
  cursor: pointer;
}

.check-row input {
  accent-color: var(--report-red);
  width: 1.05rem;
  height: 1.05rem;
}

.btn-danger {
  margin-top: 0.75rem;
  background-color: var(--report-red);
  color: var(--bark);
  border: none;
  cursor: pointer;
}

.btn-danger:disabled {
  opacity: 0.5;
  cursor: default;
}

/* Profile page header: picture, name, skin & hair details */
.profile-head {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 0.5rem;
}

.profile-head h1 {
  margin: 0;
}

.profile-head-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-left: auto;
}

.profile-traits {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0.5rem 0 0.75rem;
}

/* Ring color picker on Edit profile: a color dot inside each option */
.ring-picker {
  margin-top: 1rem;
}

.ring-choice > span {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

/* (more specific than ".choice span", so the dot doesn't get pill styling) */
.choice .ring-swatch {
  display: inline-block;
  width: 0.9rem;
  height: 0.9rem;
  padding: 0;
  border-radius: 50%;
  border: 1px solid rgba(0, 0, 0, 0.25);
}
