/* Best Parts — Phase 4 Programmatic Content (2026-03-28) */
/* Design: Matches Parts Finder + EOSL (purple var(--icd-accent), card grids) */

.bp-page { padding-bottom: 60px; }
.bp-page .col-full { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* Breadcrumbs */
.bp-breadcrumbs { padding: 15px 0; font-size: 13px; color: #666; }
.bp-breadcrumbs a { color: #333; text-decoration: underline; text-underline-offset: 2px; }
.bp-breadcrumbs a:hover { color: var(--icd-accent); }

/* Hero */
.bp-hero { text-align: center; padding: 40px 20px 30px; }
.bp-hero h1 { font-size: 36px; font-weight: 700; color: #000; margin: 0 0 10px; }
.bp-hero-sub { font-size: 18px; color: #444; margin: 0 0 20px; max-width: 750px; margin-left: auto; margin-right: auto; line-height: 1.6; }

/* Stats row */
.bp-stats-row { display: flex; justify-content: center; gap: 40px; margin: 20px 0; flex-wrap: wrap; }
.bp-stat { text-align: center; }
.bp-stat-num { display: block; font-size: 28px; font-weight: 700; color: var(--icd-accent); }
.bp-stat-label { font-size: 13px; color: #666; }

/* Search box */
.bp-search-box { max-width: 600px; margin: 30px auto; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.bp-search-input { width: 100%; padding: 14px 18px; border: 2px solid #ddd; border-radius: 8px; font-size: 16px; outline: none; transition: border-color .2s; }
.bp-search-input:focus { border-color: var(--icd-accent); }
.bp-search-btn { padding: 14px 28px; background:var(--icd-tint); color:var(--icd-accent); border:1px solid var(--icd-accent); border-radius: 8px; font-size: 16px; font-weight: 600; cursor: pointer; transition: background .2s; }
.bp-search-btn:hover { background:var(--icd-tint2); }

/* Section titles */
.bp-section-title { font-size: 24px; font-weight: 700; color: #000; margin: 30px 0 20px; padding-bottom: 8px; border-bottom: 2px solid var(--icd-accent); display: inline-block; }

/* Model grid (landing page) */
.bp-model-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; margin: 20px 0; }
.bp-model-card { display: flex; flex-direction: column; padding: 24px 20px; background: #fff; border: 2px solid #eee; border-radius: 12px; text-decoration: none; color: #333; transition: border-color .2s, box-shadow .2s, transform .2s; }
.bp-model-card:hover { border-color: var(--icd-accent); box-shadow: 0 4px 20px rgba(110,43,203,.12); transform: translateY(-2px); }
.bp-model-brand { font-size: 12px; font-weight: 600; color: var(--icd-accent); text-transform:none; letter-spacing: 1px; margin-bottom: 4px; }
.bp-model-name { font-size: 20px; font-weight: 700; margin: 0 0 8px; color: #000; }
.bp-model-meta { font-size: 13px; color: #888; display: flex; gap: 12px; margin-bottom: 8px; }
.bp-model-specs { display: flex; gap: 12px; font-size: 12px; color: #555; margin-bottom: 12px; }
.bp-model-specs span { background: var(--icd-tint); padding: 3px 8px; border-radius: 4px; }

/* Category grid (model overview page) */
.bp-category-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; margin: 20px 0; }
.bp-category-card { display: flex; flex-direction: column; align-items: center; padding: 28px 20px; background: #fff; border: 2px solid #eee; border-radius: 12px; text-decoration: none; color: #333; text-align: center; transition: border-color .2s, box-shadow .2s, transform .2s; }
.bp-category-card:hover { border-color: var(--icd-accent); box-shadow: 0 4px 20px rgba(110,43,203,.12); transform: translateY(-2px); }
.bp-cat-name { font-size: 18px; font-weight: 700; margin: 0 0 6px; color: #000; }
.bp-cat-count { font-size: 14px; color: #666; margin-bottom: 12px; }

/* Card CTA */
.bp-card-cta { margin-top: auto; font-size: 14px; font-weight: 600; color: var(--icd-accent); }

/* Category tabs (category page) */
.bp-cat-tabs { display: flex; flex-wrap: wrap; gap: 6px; margin: 20px 0 16px; padding-bottom: 12px; border-bottom: 1px solid #eee; }
.bp-tab { padding: 8px 16px; border-radius: 6px; font-size: 13px; font-weight: 500; color: #555; text-decoration: none; background: #f8f9fa; transition: all .2s; white-space: nowrap; }
.bp-tab:hover { background: var(--icd-tint); color: var(--icd-accent); }
.bp-tab-active { background: var(--icd-accent); color: #fff !important; }
.bp-tab-active:hover { background: var(--icd-accent); }

/* Toolbar */
.bp-toolbar { display: flex; justify-content: space-between; align-items: center; margin: 16px 0; }
.bp-showing { font-size: 14px; color: #666; }

/* Sub-category chips */
.bp-subcat-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 20px; }
.bp-chip-small { padding: 5px 12px; background: #f8f9fa; border: 1px solid #eee; border-radius: 20px; font-size: 12px; color: #555; }
.bp-chip-small em { color: #888; font-style: normal; }

/* Category chips (landing) */
.bp-category-chips { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 30px; }
.bp-chip { padding: 8px 18px; background: var(--icd-tint); border: 1px solid #e8d5f0; border-radius: 24px; font-size: 14px; color: var(--icd-accent); font-weight: 500; }

/* Lifecycle notice */
.bp-lifecycle-notice { background: #fef9c3; border: 1px solid #fbbf24; border-radius: 8px; padding: 16px 20px; margin: 0 0 24px; font-size: 14px; color: #854d0e; line-height: 1.6; }
.bp-lifecycle-notice a { color: var(--icd-accent); font-weight: 600; }

/* Links section */
.bp-links-section { margin: 40px 0 20px; padding: 24px; background: #f8f9fa; border-radius: 12px; }
.bp-links-section h3 { font-size: 18px; font-weight: 700; margin: 0 0 12px; color: #000; }
.bp-links-section ul { list-style: none; padding: 0; margin: 0; }
.bp-links-section li { padding: 6px 0; }
.bp-links-section a { color: var(--icd-accent); text-decoration: none; font-weight: 500; font-size: 14px; }
.bp-links-section a:hover { text-decoration: underline; }

/* CTA block */
.bp-cta-block { text-align: center; padding: 40px 20px; margin: 30px 0; background: var(--icd-tint); border-radius: 12px; border: 1px solid #e8d5f0; }
.bp-cta-block h3 { font-size: 22px; font-weight: 700; color: #000; margin: 0 0 8px; }
.bp-cta-block p { font-size: 16px; color: #555; margin: 0 0 20px; }
.bp-btn-primary { display: inline-block; padding: 14px 32px; background:var(--icd-tint); color:var(--icd-accent); border-radius: 8px; font-size: 16px; font-weight: 600; text-decoration: none; transition: background .2s;border:1px solid var(--icd-accent)}
.bp-btn-primary:hover { background:var(--icd-tint2); color:var(--icd-accent); }

/* Empty state */
.bp-empty { text-align: center; padding: 60px 20px; color: #666; }
.bp-empty a { color: var(--icd-accent); font-weight: 600; }

/* Mobile responsive */
@media (max-width: 768px) {
    .bp-hero h1 { font-size: 26px; }
    .bp-hero-sub { font-size: 15px; }
    .bp-stats-row { gap: 20px; }
    .bp-stat-num { font-size: 22px; }
    .bp-search-box { flex-direction: column; }
    .bp-model-grid { grid-template-columns: 1fr; }
    .bp-category-grid { grid-template-columns: repeat(2, 1fr); }
    .bp-cat-tabs { gap: 4px; }
    .bp-tab { padding: 6px 12px; font-size: 12px; }
}
@media (max-width: 480px) {
    .bp-category-grid { grid-template-columns: 1fr; }
}

/* Clickable category chips (Apr 8, 2026) */
a.bp-chip { text-decoration: none; transition: all .2s; cursor: pointer; }
a.bp-chip:hover { background:var(--icd-tint2); color:var(--icd-accent); border-color: var(--icd-accent); }
a.bp-chip.bp-chip-active { background:var(--icd-tint); color:var(--icd-accent); border-color: var(--icd-accent);border:1px solid var(--icd-accent)}

/* Search form layout fix (Apr 8, 2026) */
.bp-search-box form { width: 100%; display: flex; flex-direction: column; align-items: center; gap: 12px; }
