/* ===== GERRARDS MARKET RATES PAGE ===== */
/* Live scrap metal buying prices - gold, silver, platinum, palladium */

/* Remove default padding */
body.page-template-gerrards-market-rates .site-main {
  padding: 0 !important;
  max-width: none !important;
}

/* ===== HERO SECTION ===== */
.mr-hero {
  background: var(--gb-navy-light);
  color: var(--gb-white);
  padding: 3rem 2rem;
  text-align: center;
}

.mr-hero h1 {
  font-size: 2.25rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--gb-white);
}

.mr-hero .hero-subtitle {
  font-size: 1.15rem;
  color: rgba(255,255,255,0.9);
  margin-bottom: 1.5rem;
}

/* Phone Numbers */
.mr-phones {
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.mr-phones p {
  font-size: 1rem;
  color: rgba(255,255,255,0.9);
  margin: 0;
}

.mr-phones a {
  color: var(--gb-gold);
  text-decoration: none;
  font-weight: 600;
}

.mr-phones a:hover {
  text-decoration: underline;
}

/* ===== SILVER NOTICE ===== */
.mr-notice-section {
  background: var(--gb-gray);
  padding: 1.5rem 2rem 0;
}

.mr-notice {
  background: #fff8e1;
  border: 1px solid #f9a825;
  border-left: 4px solid #f9a825;
  border-radius: 4px;
  padding: 1rem 1.5rem;
  max-width: 900px;
  margin: 0 auto;
}

.mr-notice p {
  color: #5d4037;
  font-size: 0.95rem;
  line-height: 1.6;
  margin: 0;
  font-weight: 500;
}

/* ===== DASHBOARD SECTION ===== */
.mr-dashboard {
  background: var(--gb-gray);
  padding: 3rem 2rem;
}

/* Price Sections - reuse buying-prices pattern */
.market-rates-page .price-section {
  background: var(--gb-white);
  border-radius: 8px;
  padding: 2rem;
  margin: 0 auto 2rem;
  max-width: 900px; /* keep the tables compact on wide screens (Jason, 14 Sep 2026) */
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

/* Heading row: title left, live spot price right (component css does the layout) */
.market-rates-page .price-section .prices-heading-row {
  margin-bottom: 1.25rem;
}

.market-rates-page .price-section .prices-heading-row h2 {
  margin-bottom: 0;
}

.market-rates-page .price-section:last-child {
  margin-bottom: 0;
}

.market-rates-page .price-section h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--gb-navy);
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid var(--gb-border);
}

/* Metal-specific section colors */
.market-rates-page .price-section[data-metal="gold"] h2 {
  border-color: var(--gb-gold);
}

.market-rates-page .price-section[data-metal="silver"] h2 {
  border-color: #c0c0c0;
}

.market-rates-page .price-section[data-metal="platinum"] h2 {
  border-color: #e5e4e2;
}

.market-rates-page .price-section[data-metal="palladium"] h2 {
  border-color: #bfc1c2;
}

/* ===== COMPACT PRICE TABLES ===== */
.market-rates-page .table-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 0 -0.5rem;
  padding: 0 0.5rem;
}

.market-rates-page .compact-price-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
  white-space: nowrap;
}

.market-rates-page .compact-price-table th,
.market-rates-page .compact-price-table td {
  padding: 0.75rem 1rem;
  text-align: center;
  border: 1px solid var(--gb-border);
}

.market-rates-page .compact-price-table thead th {
  background: var(--gb-navy);
  color: var(--gb-white);
  font-weight: 600;
  font-size: 0.9rem;
}

/* Metal-specific header colors */
.market-rates-page .price-section[data-metal="gold"] .compact-price-table thead th {
  background: linear-gradient(135deg, #c9a961 0%, #b8963f 100%);
  color: var(--gb-navy);
}

.market-rates-page .price-section[data-metal="silver"] .compact-price-table thead th {
  background: linear-gradient(135deg, #d0d0d0 0%, #a8a8a8 100%);
  color: var(--gb-navy);
}

.market-rates-page .price-section[data-metal="platinum"] .compact-price-table thead th {
  background: linear-gradient(135deg, #e8e8e8 0%, #d0d0d0 100%);
  color: var(--gb-navy);
}

.market-rates-page .price-section[data-metal="palladium"] .compact-price-table thead th {
  background: linear-gradient(135deg, #c8ccd0 0%, #a0a8b0 100%);
  color: var(--gb-navy);
}

.market-rates-page .compact-price-table tbody td {
  background: var(--gb-white);
  font-weight: 600;
  color: var(--gb-navy);
  font-size: 1rem;
}

.market-rates-page .compact-price-table tbody tr:hover td {
  background: rgba(201, 169, 97, 0.08);
}

/* Tables with row headers (silver) */
.market-rates-page .compact-price-table.has-row-headers tbody th {
  background: var(--gb-gray);
  font-weight: 600;
  color: var(--gb-navy);
  text-align: left;
  font-size: 0.85rem;
}

.market-rates-page .compact-price-table.has-row-headers thead th:first-child {
  background: var(--gb-gray);
  border-color: var(--gb-border);
}

/* Price note below tables */
.market-rates-page .price-note {
  font-size: 0.85rem;
  color: var(--gb-text-muted);
  margin-top: 0.75rem;
  text-align: right;
  font-style: italic;
}

/* ===== DISCLAIMER ===== */
.mr-disclaimer {
  background: var(--gb-white);
  border-radius: 8px;
  padding: 1.5rem 2rem;
  margin-top: 2rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.mr-disclaimer p {
  font-size: 0.9rem;
  color: var(--gb-text-muted);
  line-height: 1.7;
  margin: 0;
}

/* ===== BOTTOM CTA ===== */
.mr-cta {
  background: var(--gb-navy-light);
  color: var(--gb-white);
  padding: 3rem 2rem;
  text-align: center;
}

.mr-cta h2 {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--gb-white);
  margin-bottom: 1rem;
}

.mr-cta p {
  color: rgba(255,255,255,0.9);
  margin-bottom: 1.5rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.mr-cta .cta-buttons {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.mr-cta .btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: 4px;
  transition: all 0.2s;
}

.mr-cta .btn-primary {
  background: var(--gb-gold);
  color: var(--gb-navy);
}

.mr-cta .btn-primary:hover {
  background: #dbb873;
}

.mr-cta .btn-outline {
  border: 2px solid var(--gb-white);
  color: var(--gb-white);
  background: transparent;
}

.mr-cta .btn-outline:hover {
  background: var(--gb-white);
  color: var(--gb-navy);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .mr-hero {
    padding: 2.5rem 1.5rem;
  }

  .mr-hero h1 {
    font-size: 1.75rem;
  }

  .mr-hero .hero-subtitle {
    font-size: 1rem;
  }

  .mr-phones {
    flex-direction: column;
    gap: 0.5rem;
  }

  .mr-phones p {
    font-size: 0.9rem;
  }

  .mr-dashboard {
    padding: 2rem 1rem;
  }

  .market-rates-page .price-section {
    padding: 1.5rem 1rem;
  }

  .market-rates-page .price-section h2 {
    font-size: 1.25rem;
  }

  .market-rates-page .compact-price-table th,
  .market-rates-page .compact-price-table td {
    padding: 0.6rem 0.75rem;
    font-size: 0.85rem;
  }

  .market-rates-page .compact-price-table tbody td {
    font-size: 0.9rem;
  }

  .mr-cta {
    padding: 2.5rem 1.5rem;
  }

  .mr-cta h2 {
    font-size: 1.5rem;
  }
}

/* Mobile scroll hint */
@media (max-width: 600px) {
  .market-rates-page .table-scroll {
    position: relative;
  }

  .market-rates-page .table-scroll::after {
    content: '';
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: 20px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.8));
    pointer-events: none;
    opacity: 1;
    transition: opacity 0.3s;
  }

  .market-rates-page .table-scroll::-webkit-scrollbar {
    height: 4px;
  }

  .market-rates-page .table-scroll::-webkit-scrollbar-thumb {
    background: var(--gb-border);
    border-radius: 2px;
  }
}
