/* ===== BUYING PRICES PAGE ===== */
/* Dashboard showing all metal buying prices in compact tables */

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

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

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

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

.buying-hero .hero-disclaimer {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.7);
  margin-bottom: 1.5rem;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
}

.buying-hero .btn {
  display: inline-block;
  padding: 0.75rem 2rem;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: 4px;
  transition: all 0.2s;
}

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

.buying-hero .btn-primary:hover {
  background: #dbb873;
}

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

/* Price Sections */
.price-section {
  background: var(--gb-white);
  border-radius: 8px;
  padding: 2rem;
  margin-bottom: 2rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

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

.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);
}

.price-section .section-intro {
  font-size: 0.95rem;
  color: var(--gb-text);
  margin-bottom: 1.5rem;
}

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

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

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

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

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

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

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

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

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

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

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

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

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

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

/* Tables with row headers (silver) */
.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;
}

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

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

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

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

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

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

.buying-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;
}

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

  .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;
  }

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

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