/**
 * Ford Content Hub - Frontend Editorial Styling
 * Aligned with Ford Premium Experience Design System
 */

/* ==========================================================================
   1. Table of Contents (TOC)
   ========================================================================== */
.fch-toc-box {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-left: 4px solid var(--color-primary, #0f4c81);
  border-radius: 8px;
  padding: 18px 24px;
  margin: 28px 0;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03);
}

.fch-toc-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.fch-toc-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--color-primary-dark, #0b2341);
  display: inline-flex;
  align-items: center;
}

.fch-toc-toggle {
  background: none;
  border: none;
  color: var(--color-primary, #0f4c81);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  padding: 4px 8px;
}

.fch-toc-toggle:hover {
  text-decoration: underline;
}

.fch-toc-list {
  margin: 0;
  padding-left: 20px;
  list-style: decimal;
}

.fch-toc-list li {
  margin-bottom: 8px;
  line-height: 1.5;
}

.fch-toc-list a {
  color: #334155;
  text-decoration: none;
  font-size: 0.95rem;
  transition: color 0.2s ease;
}

.fch-toc-list a:hover {
  color: var(--color-primary, #0f4c81);
  text-decoration: underline;
}

.fch-toc-level-3 {
  margin-left: 18px;
  list-style: circle;
  font-size: 0.9rem;
}

/* ==========================================================================
   2. Source Verification Box
   ========================================================================== */
.fch-source-box {
  background: #f1f5f9;
  border: 1px dashed #cbd5e1;
  border-radius: 8px;
  padding: 16px 20px;
  margin: 32px 0 24px 0;
  font-size: 0.88rem;
  color: #475569;
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.fch-source-icon {
  font-size: 1.4rem;
  line-height: 1;
  color: #0f4c81;
}

.fch-source-info strong {
  color: #0b2341;
}

.fch-source-info a {
  color: #0f4c81;
  text-decoration: underline;
  word-break: break-all;
}

/* ==========================================================================
   3. Vehicle Card Widget (Inline Shortcode)
   ========================================================================== */
.fch-vehicle-card-widget {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
  display: grid;
  grid-template-columns: 320px 1fr;
  margin: 36px 0;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.fch-vehicle-card-widget:hover {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

@media (max-width: 768px) {
  .fch-vehicle-card-widget {
    grid-template-columns: 1fr;
  }
}

.fch-vc-media {
  position: relative;
  background: #f8fafc;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.fch-vc-media img {
  width: 100%;
  height: auto;
  max-height: 220px;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.fch-vc-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: #e36209;
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.fch-vc-info {
  padding: 24px 28px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.fch-vc-kicker {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--color-primary, #0f4c81);
  letter-spacing: 1px;
  margin-bottom: 4px;
}

.fch-vc-title {
  font-size: 1.45rem;
  font-weight: 800;
  color: #0b2341;
  margin: 0 0 6px 0;
}

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

.fch-vc-title a:hover {
  color: #0f4c81;
}

.fch-vc-price {
  font-size: 1.25rem;
  font-weight: 800;
  color: #0f4c81;
  margin-bottom: 12px;
}

.fch-vc-specs {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.85rem;
  color: #64748b;
  margin-bottom: 20px;
}

.fch-vc-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

/* ==========================================================================
   4. Price Table Widget
   ========================================================================== */
.fch-price-table-widget {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 24px;
  margin: 36px 0;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
  overflow-x: auto;
}

.fch-pt-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: #0b2341;
  margin: 0 0 16px 0;
}

.fch-price-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.95rem;
}

.fch-price-table th {
  background: #f1f5f9;
  color: #1e293b;
  font-weight: 700;
  padding: 12px 16px;
  border-bottom: 2px solid #cbd5e1;
}

.fch-price-table td {
  padding: 12px 16px;
  border-bottom: 1px solid #e2e8f0;
  vertical-align: middle;
}

.fch-pt-price {
  font-weight: 700;
  color: #0f4c81;
}

.fch-pt-note {
  font-size: 0.82rem;
  color: #64748b;
  font-style: italic;
  margin: 12px 0 0 0;
}

.fch-link-calc {
  color: #0f4c81;
  font-weight: 600;
  text-decoration: none;
}
.fch-link-calc:hover {
  text-decoration: underline;
}

/* ==========================================================================
   5. Comparison Widget
   ========================================================================== */
.fch-comparison-widget {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 24px;
  margin: 36px 0;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.05);
}

.fch-comp-title {
  font-size: 1.3rem;
  font-weight: 800;
  color: #0b2341;
  margin: 0 0 18px 0;
  text-align: center;
}

.fch-comp-table-wrap {
  overflow-x: auto;
}

.fch-comp-table {
  width: 100%;
  border-collapse: collapse;
}

.fch-comp-table th, .fch-comp-table td {
  padding: 14px 16px;
  border-bottom: 1px solid #e2e8f0;
}

.fch-comp-table th {
  background: #f8fafc;
  color: #0b2341;
  font-size: 1.05rem;
}

/* ==========================================================================
   6. Contextual CTA Box
   ========================================================================== */
.fch-cta-box {
  background: linear-gradient(135deg, #0b2341 0%, #104172 100%);
  color: #ffffff;
  border-radius: 14px;
  padding: 32px 36px;
  margin: 40px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  box-shadow: 0 8px 24px rgba(11, 35, 65, 0.25);
}

@media (max-width: 768px) {
  .fch-cta-box {
    flex-direction: column;
    text-align: center;
    padding: 24px 20px;
  }
}

.fch-cta-kicker {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 1.2px;
  color: #60a5fa;
  display: block;
  margin-bottom: 6px;
}

.fch-cta-heading {
  font-size: 1.45rem;
  font-weight: 800;
  color: #ffffff;
  margin: 0 0 8px 0;
  line-height: 1.3;
}

.fch-cta-lead {
  font-size: 0.95rem;
  color: #cbd5e1;
  margin: 0;
  max-width: 580px;
}

.fch-cta-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex-shrink: 0;
}

@media (min-width: 769px) {
  .fch-cta-actions {
    min-width: 200px;
  }
}

/* Buttons helper */
.fqt-btn-lg {
  padding: 12px 24px;
  font-size: 1rem;
  font-weight: 700;
  border-radius: 6px;
}

.fqt-btn-small {
  padding: 5px 12px;
  font-size: 0.82rem;
  font-weight: 600;
  border-radius: 4px;
}

.fqt-btn-outline-white {
  background: transparent;
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.4);
  text-decoration: none;
  text-align: center;
  transition: all 0.2s ease;
}

.fqt-btn-outline-white:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: #ffffff;
  color: #ffffff;
}
