/* Global layout ---------------------------------------------- */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  color: #222;
}

/* Mesa Boogie tweed background - repeating cloth pattern */
body {
  background-color: #d9c08e;
  background-image: url("Mesa-Boogie-Tweed.jpg");
  background-size: 260px 260px; /* tweak if the pattern looks too big/small */
  background-repeat: repeat;
}

.page {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1.5rem 1.5rem 2.2rem;
}

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

.app-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.7rem;
  margin-bottom: 1.7rem;
}

/* New logo “badge”, big, no extra frame */
.logo-card {
  width: 130px;
  height: 130px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 20%, #ffffff33, #000000aa);
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo-card img {
  max-width: 112px;
  max-height: 112px;
}

/* Centered title pill, sized to content */
.title-pill {
  display: inline-block;
  border-radius: 999px;
  background:
    radial-gradient(circle at 18% 0%, #4b445f, #05030a 70%);
  padding: 0.65rem 2.3rem 0.8rem;
  box-shadow:
    inset 0 2px 4px rgba(255, 255, 255, 0.25),
    inset 0 -4px 8px rgba(0, 0, 0, 0.6),
    0 26px 52px rgba(0, 0, 0, 0.92);
  color: #fff;
  text-align: center;
}

.title-main {
  text-transform: uppercase;
  letter-spacing: 0.38em;
  font-weight: 650;
  font-size: 1.02rem;
}

.title-sub {
  margin-top: 0.18rem;
  font-size: 0.86rem;
  opacity: 0.85;
}

/* Layout: two columns ---------------------------------------- */

.content {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.layout-two-col {
  display: grid;
  grid-template-columns: minmax(0, 2.2fr) minmax(0, 1fr);
  gap: 1.4rem;
  align-items: flex-start;
}

.layout-main,
.layout-side {
  min-width: 0;
}

/* Cards / surfaces ------------------------------------------- */

.search-card {
  border-radius: 42px;
  background:
    radial-gradient(circle at 20% 0%, #ffffff88, transparent 68%),
    #fbead2;
  padding: 1.45rem 1.8rem 1.55rem;
  box-shadow:
    inset 0 2px 4px rgba(255, 255, 255, 0.22),
    inset 0 -4px 8px rgba(0, 0, 0, 0.45),
    0 28px 54px rgba(0, 0, 0, 0.9);
}

/* Slightly tighter card on the sidebar */
.side-card {
  padding: 1.1rem 1.4rem 1.2rem;
}

/* Form layout ------------------------------------------------ */

.field-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1.1rem;
  margin-bottom: 0.9rem;
}

.field-row.align-end {
  align-items: flex-end;
}

.field-group {
  flex: 1;
  min-width: 160px;
}

.field-group label,
.field-label {
  display: block;
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #777;
  margin-bottom: 0.3rem;
}

.field-label {
  margin-bottom: 0.4rem;
}

/* Inputs ----------------------------------------------------- */

#search-query,
#min-price,
#max-price {
  width: 100%;
  border-radius: 999px;
  padding: 0.65rem 1.1rem;
  border: none;
  outline: none;
  background: #05030a;
  color: #fbead2;
  font-size: 0.95rem;
  box-shadow: inset 0 0 0 2px #05030a;
}

#search-query::placeholder,
#min-price::placeholder,
#max-price::placeholder {
  color: #777;
}

/* 3D Woodgrain buttons (teak-ft.jpg) ------------------------- */

.search-button {
  width: 100%;
  border-radius: 999px;
  border: none;
  padding: 0.9rem 1.1rem;
  background-image:
    linear-gradient(145deg, rgba(255, 255, 255, 0.35), rgba(0, 0, 0, 0.55)),
    url("teak-ft.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-blend-mode: overlay, normal;
  color: #ffffff;
  font-size: 0.9rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 700;
  cursor: pointer;
  box-shadow:
    0 12px 24px rgba(0, 0, 0, 0.7),
    inset 0 1px 0 rgba(255, 255, 255, 0.6);
  transition: transform 0.12s ease-out, box-shadow 0.12s ease-out,
    filter 0.12s ease-out;
}

.search-button:hover {
  transform: translateY(-1px);
  box-shadow:
    0 16px 30px rgba(0, 0, 0, 0.8),
    inset 0 1px 0 rgba(255, 255, 255, 0.7);
  filter: brightness(1.06);
}

.search-button:active {
  transform: translateY(1px);
  box-shadow:
    0 9px 18px rgba(0, 0, 0, 0.6),
    inset 0 2px 3px rgba(0, 0, 0, 0.6);
}

/* Facebook button reuses same style but with slightly smaller text */
.fb-button {
  font-size: 0.8rem;
}

/* Source toggles --------------------------------------------- */

.source-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.source-chip {
  position: relative;
  display: inline-flex;
  align-items: center;
  padding: 0.32rem 0.75rem;
  border-radius: 999px;
  background:
    radial-gradient(circle at 20% 0%, #ffffff55, transparent 65%),
    #05030a;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow:
    inset 0 2px 3px rgba(255, 255, 255, 0.2),
    inset 0 -3px 5px rgba(0, 0, 0, 0.6),
    0 18px 32px rgba(0, 0, 0, 0.9);
}

.source-chip input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

/* Always-visible yellow text in source pills */
.source-chip span {
  position: relative;
  z-index: 1;
  color: #f5cf5c !important;
}

/* Search status ---------------------------------------------- */

.search-status {
  display: none;
  align-items: center;
  gap: 0.4rem;
  margin-top: 0.45rem;
}

.search-status.active {
  display: inline-flex;
}

.search-spinner-img {
  width: 18px;
  height: 18px;
}

.search-status-text {
  font-size: 0.78rem;
  color: #777;
}

/* Results ---------------------------------------------------- */

.results-section {
  margin-top: 1.15rem;
}

/* Results header as black pill with gold text, full 3D */
.results-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.35rem 0.9rem;
  background:
    radial-gradient(circle at 20% 0%, rgba(255, 255, 255, 0.26), transparent 70%),
    rgba(0, 0, 0, 0.94);
  color: #ffd96a;
  border-radius: 999px;
  font-size: 0.82rem;
  margin-bottom: 0.9rem;
  box-shadow:
    inset 0 2px 4px rgba(255, 255, 255, 0.28),
    inset 0 -4px 7px rgba(0, 0, 0, 0.65),
    0 26px 50px rgba(0, 0, 0, 0.95);
}

.results-count:first-child {
  font-weight: 600;
}

/* Grid of cards */
.results-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 1rem;
}

/* Individual card */
.result-card {
  border-radius: 26px;
  background: #05030a;
  color: #fff;
  padding: 0.8rem 0.8rem 0.9rem;
  box-shadow:
    inset 0 2px 4px rgba(255, 255, 255, 0.16),
    inset 0 -4px 8px rgba(0, 0, 0, 0.65),
    0 28px 54px rgba(0, 0, 0, 0.95);
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

/* Source + price */
.result-badge-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.75rem;
  margin-bottom: 0.4rem;
}

.result-source-pill {
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  background:
    radial-gradient(circle at 20% 0%, #ffffff, #f5cf5c 70%);
  color: #05030a;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  box-shadow:
    inset 0 1px 3px rgba(255, 255, 255, 0.65),
    inset 0 -3px 5px rgba(0, 0, 0, 0.5),
    0 18px 32px rgba(0, 0, 0, 0.9);
}

/* Image */
.result-image-box {
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: 18px;
  overflow: hidden;
  background: #18141f;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.35rem;
}

.result-image-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.no-image-label {
  font-size: 0.78rem;
  color: #aaa;
}

/* Title */
.result-title {
  font-size: 0.88rem;
  font-weight: 600;
  line-height: 1.2;
  margin-bottom: 0.25rem;
}

.result-title a {
  color: inherit;
  text-decoration: none;
}

.result-title a:hover {
  text-decoration: underline;
}

/* Meta */
.result-meta {
  font-size: 0.8rem;
  color: #ccc;
  margin-bottom: 0.4rem;
}

/* Card actions */
.result-actions {
  display: flex;
  gap: 0.4rem;
  margin-top: auto;
}

.result-button {
  flex: 1;
  border-radius: 999px;
  border: none;
  padding: 0.4rem 0.4rem;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  background: #1a1720;
  color: #fbead2;
  box-shadow:
    0 10px 20px rgba(0, 0, 0, 0.75),
    inset 0 1px 2px rgba(255, 255, 255, 0.12);
}

.result-button.primary {
  background: #f5cf5c;
  color: #05030a;
  font-weight: 700;
}

.result-button:disabled {
  cursor: default;
  opacity: 0.45;
  box-shadow: none;
}

/* No results message */
.no-results {
  margin-top: 1rem;
  font-size: 0.82rem;
  color: #775c3a;
}

.no-results.hidden {
  display: none;
}

/* Right sidebar ---------------------------------------------- */

.layout-side .search-card {
  background:
    radial-gradient(circle at 20% 0%, #ffffff88, transparent 68%),
    #fdeedb;
}

/* Sidebar headings & text */
.retail-card-title {
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 600;
  color: #777;
  margin-bottom: 0.25rem;
}

.side-section-heading:first-of-type {
  margin-top: 0.5rem;
}

.side-section-heading {
  margin-top: 0.7rem;
}

.side-text {
  font-size: 0.8rem;
  margin: 0 0 0.35rem 0;
  line-height: 1.3;
}

/* Retail links list */
.retail-links-list {
  list-style: none;
  padding: 0;
  margin: 0 0 0.45rem 0;
}

.retail-links-list li + li {
  margin-top: 0.2rem;
}

.retail-links-list a {
  font-size: 0.9rem;
  color: #222;
  text-decoration: none;
}

.retail-links-list a:hover {
  text-decoration: underline;
}

/* Retail sidebar link emphasis */
.retail-link-boost {
  font-size: 1.02rem;
  font-weight: 600;
  color: #333;
}

.retail-link-boost:hover {
  text-decoration: underline;
  opacity: 0.8;
}

.side-divider {
  margin: 0.5rem 0;
  border: none;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}

/* Sidebar vertical tweak so it fits better (raised more) */
.layout-side {
  margin-top: -38px;
}

/* Responsive layout ------------------------------------------ */

/* Only stack on smaller screens (or very zoomed-in browsers). */
@media (max-width: 820px) {
  .layout-two-col {
    grid-template-columns: minmax(0, 1fr);
  }

  .layout-side {
    order: -1;
    margin-top: 0;
  }

  .search-card {
    border-radius: 32px;
    padding: 1.2rem 1.2rem 1.1rem;
  }

  .side-card {
    padding: 1.1rem;
  }
}

/* Clipboard toast pill */
.clipboard-toast {
  position: fixed;
  left: 50%;
  bottom: 26px;
  transform: translateX(-50%) translateY(18px);
  padding: 10px 18px;
  border-radius: 999px;
  background:
    radial-gradient(circle at 20% 0%, rgba(255,255,255,0.22), transparent 70%),
    rgba(0,0,0,0.92);
  color: #ffd96a;
  font-size: 0.88rem;
  letter-spacing: 0.06em;
  box-shadow:
    inset 0 2px 4px rgba(255,255,255,0.20),
    inset 0 -4px 7px rgba(0,0,0,0.65),
    0 18px 34px rgba(0,0,0,0.75);
  opacity: 0;
  transition: opacity 0.22s ease, transform 0.22s ease;
  z-index: 9999;
  pointer-events: none;
}

.clipboard-toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.hidden {
  display: none;
}
/* ===== Patch: two-column layout for current index.html (.layout/.sidebar) ===== */
.layout{
  display: grid;
  grid-template-columns: minmax(560px, 1fr) minmax(340px, 460px);
  gap: 26px;
  align-items: start;
}

/* Keep sidebar from stretching full width */
.sidebar{
  width: 100%;
}

/* If screen gets narrow, stack cleanly */
@media (max-width: 1100px){
  .layout{
    grid-template-columns: 1fr;
  }
}

/* ===== Patch: Copy toast (Copied! pill) ===== */
.copy-toast{
  position: fixed;
  left: 50%;
  bottom: 28px;
  transform: translateX(-50%) translateY(14px);
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(0,0,0,0.78);
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: .2px;
  box-shadow: 0 14px 30px rgba(0,0,0,.35);
  opacity: 0;
  pointer-events: none;
  transition: opacity .18s ease, transform .18s ease;
  z-index: 9999;
  max-width: min(92vw, 520px);
  text-align: center;
}

.copy-toast.show{
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
.manual-hint{
  display: inline-block;
  margin-top: 8px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(0,0,0,0.06);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: .2px;
}
