/* coin.css — single-coin.php specific styling.
   Reuses rs-fact-card / rs-section-title / rs-fact-pill from rog-state.css.
   Added 2026-04-26. */

.coin-hero {
  background: linear-gradient(135deg, #0f1419 0%, #1a1f2e 100%);
  color: #fff;
  padding: 80px 0 60px;
}
.coin-hero .coin-title { color: #fff; font-size: clamp(1.6rem, 3vw, 2.4rem); font-family: var(--font-heading, Cinzel), serif; margin: 0 0 16px; }
.coin-hero .coin-summary { color: rgba(255,255,255,0.85); margin: 16px 0 0; font-size: 1.05rem; line-height: 1.6; }

.coin-hero-img-wrap {
  background: #ffffff;
  border: 1px solid rgba(0,0,0,0.10);
  border-radius: 14px;
  padding: 20px;
  box-shadow: 0 12px 32px rgba(0,0,0,0.18);
}
.coin-hero-img-main {
  text-align: center;
  padding: 8px 4px 16px;
  border-bottom: 1px solid var(--fmv-gold, #c5a028);
  margin-bottom: 16px;
}
.coin-hero-img-main img {
  max-width: 100%;
  height: auto;
  max-height: 340px;
  display: inline-block;
}
.coin-hero-img-placeholder {
  font-size: 8rem;
  color: rgba(197,160,40,0.25);
  padding: 60px 0;
}

.coin-badges { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0 0; }
.coin-badge {
  display: inline-flex; align-items: center;
  padding: 6px 14px;
  background: rgba(197,160,40,0.12);
  border: 1px solid rgba(197,160,40,0.28);
  border-radius: 999px;
  color: #f4d68a;
  font-size: 0.85rem;
  font-weight: 600;
}

.coin-cta-row { display: flex; flex-wrap: wrap; gap: 8px; }

.coin-stat-num {
  font-family: var(--font-heading, Cinzel), serif;
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--fmv-dark, #1a1f3a);
  margin: 8px 0 4px;
}

.coin-specs-table {
  width: 100%;
  font-size: 0.95rem;
}
.coin-specs-table th {
  width: 38%;
  font-weight: 600;
  color: var(--fmv-muted, #6c757d);
  padding: 10px 12px 10px 0;
  border-bottom: 1px solid rgba(0,0,0,0.06);
  vertical-align: top;
}
.coin-specs-table td {
  padding: 10px 0;
  border-bottom: 1px solid rgba(0,0,0,0.06);
  vertical-align: top;
}

.coin-related-card {
  display: block;
  text-decoration: none;
  color: inherit;
  border: 1px solid rgba(0,0,0,0.06);
  border-radius: 12px;
  padding: 16px;
  background: #fff;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
  height: 100%;
}
.coin-related-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(26,31,58,0.10);
  color: inherit;
}
.coin-related-img-wrap {
  position: relative;
  background: #ffffff;
  border-radius: 8px;
  height: 140px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 12px;
  overflow: hidden;
}
/* Img sits on top of the placeholder icon. If the src 404s the onerror in the
   template hides the img, revealing the icon underneath — no broken-image
   icon ever shown. */
.coin-related-img-wrap img {
  position: relative;
  z-index: 1;
  max-width: 100%; max-height: 100%;
}
.coin-related-img-wrap i,
.coin-related-img-wrap .coin-related-fallback {
  position: absolute;
  inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 3rem;
  color: rgba(197,160,40,0.5);
}
.coin-related-title {
  font-size: 0.95rem; font-weight: 700; margin: 0 0 4px; line-height: 1.3;
  font-family: var(--font-heading, Cinzel), serif;
}
.coin-related-meta { color: var(--fmv-muted, #6c757d); font-size: 0.82rem; margin: 0; }

/* Hero thumbs strip — lives INSIDE coin-hero-img-wrap, below the main image,
   separated by a thin divider. Click swaps the main image src. */
.coin-hero-thumbs {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
  padding: 4px 0 0;
}
.coin-hero-thumb {
  background: transparent;
  border: 0;
  padding: 0;
  cursor: pointer;
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.55;
  transition: opacity 0.18s ease, transform 0.18s ease;
}
.coin-hero-thumb img {
  max-width: 100%;
  max-height: 100%;
  display: block;
}
.coin-hero-thumb:hover { opacity: 0.85; }
.coin-hero-thumb.is-active { opacity: 1; transform: scale(1.06); }

.coin-overview ul { padding-left: 1.2rem; margin: 8px 0 0; }
.coin-overview li { margin-bottom: 6px; line-height: 1.5; }
.coin-overview .rs-section-title { margin-bottom: 18px; }
.coin-overview .coin-specs-table { background: #fff; border: 1px solid rgba(0,0,0,0.06); border-radius: 12px; padding: 8px 16px; }

.coin-history { background: #fafafa; }

/* Bootstrap modal — white card sized around the coin with breathing space,
   in-modal thumb strip below the main image with click-to-switch. */
.coin-image-modal-dialog {
  /* Tighter than modal-md (500px); just wide enough for a square coin + breathing. */
  max-width: 580px;
}
.coin-image-modal {
  background: #ffffff;
  color: var(--fmv-dark, #1a1f3a);
  border: 1px solid rgba(0,0,0,0.10);
  border-radius: 14px;
  box-shadow: 0 24px 60px rgba(0,0,0,0.35);
  overflow: visible;
  position: relative;
}
.coin-image-modal .modal-body {
  padding: 40px 20px 20px;
}
.coin-image-modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  opacity: 0.7;
}
.coin-image-modal-close:hover { opacity: 1; }

.coin-modal-img-main {
  text-align: center;
  padding: 8px 4px 16px;
  border-bottom: 1px solid var(--fmv-gold, #c5a028);
  margin-bottom: 16px;
}
.coin-modal-img-main img {
  max-width: 100%;
  max-height: 60vh;
  width: auto;
  height: auto;
  display: inline-block;
}

/* Thumbs inside the modal — same opacity-based active state as the hero strip,
   gold divider above to visually frame the strip. */
.coin-modal-thumbs {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
  padding: 4px 0 0;
}
.coin-modal-thumb {
  background: transparent;
  border: 0;
  padding: 0;
  cursor: pointer;
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.55;
  transition: opacity 0.18s ease, transform 0.18s ease;
}
.coin-modal-thumb img { max-width: 100%; max-height: 100%; display: block; }
.coin-modal-thumb:hover { opacity: 0.85; }
.coin-modal-thumb.is-active { opacity: 1; transform: scale(1.06); }

/* Hero "Last captured retail" snapshot — small uppercase label, price styled
   identically to .coin-title (white, Cinzel, bold, same clamp). */
.coin-hero-retail-wrap { margin-top: 20px; }
.coin-hero-retail-label {
  display: block;
  text-transform: uppercase;
  letter-spacing: 0.10em;
  font-size: 0.78rem;
  font-weight: 700;
  color: rgba(244,214,138,0.85);
  margin-bottom: 6px;
}
.coin-hero-retail-price {
  display: block;
  font-family: var(--font-heading, Cinzel), serif;
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 700;
  color: #fff;
  line-height: 1.2;
}
.coin-cat-section { padding-bottom: 40px; }
.coin-cat-section + .coin-cat-section { padding-top: 0; }
.coin-cat-title { margin-bottom: 24px; }
/* /coins/ archive — category filter pill row. Sticky at the top of the page
   under the navbar so the user can switch buckets without scrolling back up. */
.coin-filter-bar {
  position: sticky;
  top: 80px;
  z-index: 30;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border-bottom: 1px solid rgba(0,0,0,0.06);
  padding: 12px 0;
  margin-bottom: 24px;
}
.coin-filter-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.coin-filter-pill {
  background: rgba(197,160,40,0.08);
  border: 1px solid rgba(197,160,40,0.22);
  color: var(--fmv-dark, #1a1f3a);
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
  font-family: inherit;
}
.coin-filter-pill:hover { background: rgba(197,160,40,0.18); }
.coin-filter-pill.is-active {
  background: var(--fmv-gold, #c5a028);
  border-color: var(--fmv-gold, #c5a028);
  color: #fff;
}
.coin-filter-count {
  margin-left: 4px;
  opacity: 0.7;
  font-weight: 500;
}
