/* Bubs960 Collectibles — shared site CSS.
   This is the single source of truth for color tokens, base reset,
   navigation, rope dividers, buttons, forms, and footer. Page-specific
   styling stays inline in each page's <style> block and cascades over
   this file. Edit a token here once and the whole site updates. */

:root {
  /* Brand colors */
  --primary-red: #e62429;
  --primary-blue: #1c3b70;
  --accent-yellow: #f1c40f;
  --accent-gold: #d4a017;
  --money-green: #2ecc71;

  /* Surfaces */
  --bg-dark: #0a0e17;
  --bg-panel: #111826;
  --bg-panel-2: #0a1120;
  --metal-dark: #1a1f2c;
  --metal-light: #2a3142;

  /* Text */
  --text-light: #f4f4f4;
  --text-muted: #9aa3b2;

  /* Glows */
  --red-glow: rgba(230, 36, 41, 0.55);
}

/* Reset */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background-color: var(--bg-dark);
  color: var(--text-light);
  font-family: 'Montserrat', sans-serif;
  min-height: 100vh;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }

/* Marquee — announcements ticker above the nav.
   Color is overridable per-page (default red, We Buy uses green). */
.marquee {
  background: var(--primary-red);
  color: white;
  font-weight: 800;
  letter-spacing: 2px;
  text-transform: uppercase;
  font-size: 0.8rem;
  border-bottom: 3px solid var(--accent-yellow);
  overflow: hidden;
  white-space: nowrap;
  padding: 0.45rem 0;
  position: relative;
  z-index: 51;
}
.marquee-track {
  display: inline-block;
  padding-left: 100%;
  animation: marquee 35s linear infinite;
  will-change: transform;
}
.marquee-track span { margin-right: 3rem; }
.marquee-track span::before { content: '★ '; color: var(--accent-yellow); }
@keyframes marquee {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-100%); }
}

/* Navigation */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  background: rgba(10, 14, 23, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 2px solid var(--primary-red);
}
.nav-brand {
  font-family: 'Bangers', cursive;
  font-size: 1.75rem;
  color: var(--accent-yellow);
  letter-spacing: 2px;
  text-shadow: 2px 2px 0 var(--primary-red);
}
.nav-links {
  display: flex;
  gap: 1.5rem;
  list-style: none;
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.9rem;
  letter-spacing: 1px;
}
.nav-links a { transition: color 0.2s ease, background-color 0.2s ease, transform 0.15s ease; }
.nav-links a:hover { color: var(--accent-yellow); }

/* Top announcement bar — global CTA above the marquee.
   Drives sellers to the We Buy intake. Visible on every page load. */
.announce-bar {
  display: block;
  background: linear-gradient(90deg, #1ea155 0%, var(--money-green) 50%, #3de87a 100%);
  color: #000;
  text-align: center;
  padding: 0.55rem 1rem;
  font-family: 'Bangers', cursive;
  letter-spacing: 2px;
  font-size: 0.95rem;
  text-transform: uppercase;
  border-bottom: 2px solid var(--accent-yellow);
  transition: background-color 0.2s ease;
  position: relative;
  z-index: 52;
}
.announce-bar:hover { background: #3de87a; }
.announce-bar strong { text-decoration: underline; text-underline-offset: 3px; }
.announce-bar .arrow { display: inline-block; transition: transform 0.2s ease; }
.announce-bar:hover .arrow { transform: translateX(4px); }
@media (max-width: 500px) {
  .announce-bar { font-size: 0.8rem; letter-spacing: 1.5px; padding: 0.5rem 0.75rem; }
}

/* Scroll-reveal utility — elements with .reveal start hidden and
   fade/slide in when they enter the viewport. Zero-JS fallback: if
   JS disabled or observer unavailable, content is visible. */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}
.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* Save vs eBay savings badge — yellow pill, appears on cards and
   product pages where compareAtPrice > price. */
.savings-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  background: var(--money-green);
  color: #000;
  font-family: 'Bangers', cursive;
  font-size: 0.85rem;
  letter-spacing: 1px;
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  border: 2px solid var(--accent-yellow);
  text-transform: uppercase;
  font-weight: 800;
  white-space: nowrap;
}
.savings-badge::before { content: '💵'; font-size: 0.9rem; }
.savings-badge.lg { font-size: 1rem; padding: 0.35rem 0.8rem; }

/* Nav CTA — visually emphasized link (We Buy) */
.nav-links a.nav-cta {
  background: var(--money-green);
  color: #000;
  padding: 0.35rem 0.8rem;
  border-radius: 4px;
  border: 2px solid var(--accent-yellow);
  font-weight: 800;
}
.nav-links a.nav-cta:hover {
  background: #3de87a;
  color: #000;
  transform: translateY(-1px);
}

/* Sticky floating "Sell Your Collection" CTA */
.float-cta {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 40;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.9rem 1.3rem;
  background: linear-gradient(180deg, #3de87a 0%, var(--money-green) 50%, #1ea155 100%);
  color: #000;
  font-family: 'Bangers', cursive;
  font-size: 1rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  border: 2px solid var(--accent-yellow);
  border-radius: 999px;
  box-shadow: 0 6px 18px rgba(46, 204, 113, 0.45), 0 0 0 2px rgba(0, 0, 0, 0.2);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  font-weight: 800;
  white-space: nowrap;
}
.float-cta:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 24px rgba(46, 204, 113, 0.6), 0 0 0 2px rgba(0, 0, 0, 0.2);
}
.float-cta::before { content: '💵'; font-size: 1.15rem; }
@media (max-width: 500px) {
  .float-cta { bottom: 1rem; right: 1rem; padding: 0.75rem 1rem; font-size: 0.85rem; }
}

/* Three-rope divider with turnbuckle end caps */
.rope {
  position: relative;
  height: 26px;
  background:
    linear-gradient(var(--primary-red), var(--primary-red)) center 2px / 100% 4px no-repeat,
    linear-gradient(var(--accent-yellow), var(--accent-yellow)) center 12px / 100% 4px no-repeat,
    linear-gradient(var(--primary-blue), var(--primary-blue)) center 22px / 100% 4px no-repeat,
    var(--bg-dark);
  box-shadow: 0 0 24px rgba(230, 36, 41, 0.25) inset;
}
.rope::before,
.rope::after {
  content: '';
  position: absolute;
  top: -6px;
  width: 12px;
  height: 38px;
  background: linear-gradient(#7a7f8a, #2a2f38 60%, #0f1118);
  border: 1px solid #000;
  border-radius: 3px;
  box-shadow: 0 0 4px rgba(0, 0, 0, 0.8);
}
.rope::before { left: 10px; }
.rope::after  { right: 10px; }

/* Buttons */
.btn {
  display: inline-block;
  font-family: 'Bangers', cursive;
  font-size: 1.25rem;
  padding: 0.9rem 1.75rem;
  border: 2px solid transparent;
  border-radius: 6px;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 2px;
  transition: transform 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
  text-align: center;
}
.btn-primary {
  background: linear-gradient(180deg, #ff3940 0%, var(--primary-red) 50%, #b01b1f 100%);
  color: white;
  box-shadow: 0 4px 0 #7a1216, 0 6px 12px rgba(230, 36, 41, 0.35);
  text-shadow: 1px 1px 0 rgba(0, 0, 0, 0.3);
}
.btn-primary:hover { transform: translateY(-2px) scale(1.03); box-shadow: 0 6px 0 #7a1216, 0 10px 18px rgba(230, 36, 41, 0.45); }
.btn-primary:active { transform: translateY(2px); box-shadow: 0 2px 0 #7a1216; }
.btn-ghost {
  background: transparent;
  color: var(--accent-yellow);
  border-color: var(--accent-yellow);
  box-shadow: 0 4px 0 rgba(212, 160, 23, 0.7);
}
.btn-ghost:hover { background: var(--accent-yellow); color: var(--bg-dark); transform: translateY(-2px) scale(1.03); }
.btn-ghost:active { transform: translateY(2px); box-shadow: 0 2px 0 rgba(212, 160, 23, 0.7); }
.btn-yellow {
  background: var(--accent-yellow);
  color: #111;
  box-shadow: 0 4px 0 #7a6a05;
}
.btn-yellow:hover { background: #e4b507; transform: translateY(-2px) scale(1.03); }
.btn-money {
  background: linear-gradient(180deg, #3de87a 0%, var(--money-green) 50%, #1ea155 100%);
  color: #000;
  box-shadow: 0 4px 0 #125f30, 0 6px 12px rgba(46, 204, 113, 0.4);
  text-shadow: 1px 1px 0 rgba(255, 255, 255, 0.2);
}
.btn-money:hover { transform: translateY(-2px) scale(1.03); box-shadow: 0 6px 0 #125f30, 0 10px 18px rgba(46, 204, 113, 0.5); }
.btn-money:active { transform: translateY(2px); box-shadow: 0 2px 0 #125f30; }

/* Form controls */
input[type="email"],
input[type="text"],
input[type="tel"],
input[type="number"],
input[type="search"],
textarea,
select {
  padding: 1rem;
  font-size: 1rem;
  font-family: 'Montserrat', sans-serif;
  border: 2px solid #333;
  border-radius: 5px;
  background: #111;
  color: white;
  outline: none;
  transition: border-color 0.3s ease;
  width: 100%;
}
textarea { min-height: 140px; resize: vertical; }
input:focus, textarea:focus, select:focus { border-color: var(--primary-red); }

/* Keyboard focus rings — accessibility */
a:focus-visible,
button:focus-visible,
.btn:focus-visible,
.chip:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--accent-yellow);
  outline-offset: 3px;
  border-radius: 4px;
}
input:focus-visible, textarea:focus-visible, select:focus-visible {
  border-color: var(--accent-yellow);
  box-shadow: 0 0 0 3px rgba(241, 196, 15, 0.25);
}

/* Skip-to-content for screen readers / keyboard */
.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--primary-red);
  color: white;
  padding: 0.75rem 1.25rem;
  font-weight: 800;
  z-index: 100;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 0.85rem;
}
.skip-link:focus { left: 1rem; top: 1rem; outline: 3px solid var(--accent-yellow); }

.form-status {
  min-height: 1.25rem;
  font-size: 0.9rem;
  font-weight: 700;
  padding-top: 0.25rem;
}
.form-status.ok  { color: #62d98a; }
.form-status.err { color: #ff6b6b; }
form[data-submitting="true"] button[type="submit"],
form.js-remote-form[data-submitting="true"] button[type="submit"] {
  opacity: 0.6;
  cursor: wait;
}

/* Footer */
.site-footer {
  border-top: 3px solid var(--primary-red);
  background: var(--bg-panel);
  padding: 3rem 2rem 1.5rem;
  margin-top: 2rem;
}
.footer-grid {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: 2rem;
}
.footer-col h4 {
  font-family: 'Bangers', cursive;
  font-size: 1.2rem;
  color: var(--accent-yellow);
  letter-spacing: 2px;
  margin-bottom: 0.75rem;
  text-transform: uppercase;
}
.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.footer-col a {
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 700;
  transition: color 0.15s ease;
}
.footer-col a:hover { color: var(--accent-yellow); }
.footer-brand {
  font-family: 'Bangers', cursive;
  font-size: 2rem;
  color: var(--accent-yellow);
  letter-spacing: 2px;
  text-shadow: 2px 2px 0 var(--primary-red);
  margin-bottom: 0.5rem;
}
.footer-tagline {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.5;
}
.footer-bottom {
  max-width: 1100px;
  margin: 2rem auto 0;
  padding-top: 1.5rem;
  border-top: 1px solid #1a2233;
  color: #555;
  font-size: 0.85rem;
  text-align: center;
}

/* Shared section / hero shells (page-specific overrides welcome) */
.section {
  padding: 4rem 2rem;
  max-width: 1100px;
  margin: 0 auto;
}
.section-title {
  font-family: 'Bangers', cursive;
  font-size: 2.75rem;
  letter-spacing: 2px;
  color: var(--accent-yellow);
  text-shadow: 2px 2px 0 var(--primary-red);
  text-align: center;
  margin-bottom: 0.5rem;
  text-transform: uppercase;
}
.section-kicker {
  text-align: center;
  color: var(--text-muted);
  font-style: italic;
  margin-bottom: 2.5rem;
}
.kicker {
  font-size: 0.85rem;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--accent-yellow);
  font-weight: 800;
  margin-bottom: 0.75rem;
}

/* Standard hero pattern */
.page-hero {
  text-align: center;
  padding: 5rem 2rem 3rem;
  background-image: radial-gradient(circle at center, #1c3b70 0%, #0a0e17 70%);
}
.page-hero .page-title {
  font-family: 'Bangers', cursive;
  font-size: 4.5rem;
  letter-spacing: 3px;
  color: var(--accent-yellow);
  text-shadow: 4px 4px 0 var(--primary-red);
  line-height: 1;
  text-transform: uppercase;
}
.page-hero .page-lead {
  font-size: 1.15rem;
  max-width: 700px;
  margin: 1rem auto 0;
  color: #dfe3ec;
  line-height: 1.55;
}

/* Legal/prose pages */
.legal-content {
  max-width: 780px;
  margin: 0 auto;
  color: #dfe3ec;
  line-height: 1.75;
  font-size: 1rem;
}
.legal-content h2 {
  font-family: 'Bangers', cursive;
  font-size: 1.75rem;
  letter-spacing: 1.5px;
  color: var(--accent-yellow);
  text-shadow: 2px 2px 0 var(--primary-red);
  margin-top: 2.5rem;
  margin-bottom: 0.75rem;
  text-transform: uppercase;
}
.legal-content h2:first-child { margin-top: 0; }
.legal-content h3 {
  font-family: 'Bangers', cursive;
  font-size: 1.25rem;
  letter-spacing: 1px;
  color: var(--text-light);
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
}
.legal-content p { margin-bottom: 1rem; }
.legal-content ul, .legal-content ol { margin: 0.5rem 0 1rem 1.5rem; }
.legal-content li { margin-bottom: 0.4rem; }
.legal-content strong { color: var(--accent-yellow); }
.legal-content a { color: var(--accent-yellow); text-decoration: underline; text-underline-offset: 3px; }
.legal-content a:hover { color: var(--primary-red); }
.legal-meta {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.9rem;
  font-style: italic;
  margin-bottom: 2.5rem;
}

@media (max-width: 700px) {
  .page-hero .page-title { font-size: 3rem; }
  .section-title { font-size: 2.25rem; }
  .section { padding: 3rem 1.25rem; }
}

/* Responsive footer */
@media (max-width: 760px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .nav { padding: 0.75rem 1rem; }
  .nav-links { gap: 1rem; font-size: 0.8rem; }
  .nav-brand { font-size: 1.4rem; }
}
@media (max-width: 500px) {
  .footer-grid { grid-template-columns: 1fr; }
}
