/*
 * seo-catalog.css — stijl voor de publieke catalogus-pagina's
 * (/boards, /components, /starter-kits + detailpagina's).
 * Bouwt voort op seo-landing.css (nav/footer/cta-band) en volgt dezelfde
 * visuele taal als view-home.php (kleuren, radius, schaduwen).
 */

/* ---- Listing-grids ---- */
.catalog-section { max-width: 1180px; margin: 0 auto; padding: 24px 20px 60px; }
.catalog-group-heading {
    font-size: 1.3rem; font-weight: 800; color: #1a202c; margin: 36px 0 16px;
    letter-spacing: -0.02em;
}
.catalog-grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 20px;
}
.catalog-card {
    background: #fff; border: 1px solid #e2e8f0; border-radius: 14px; padding: 18px;
    text-decoration: none; color: inherit; display: flex; flex-direction: column; gap: 10px;
    transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}
.catalog-card:hover {
    transform: translateY(-3px); box-shadow: 0 12px 28px rgba(47, 116, 200, 0.12);
    border-color: rgba(47, 116, 200, 0.45);
}
.catalog-card-image {
    height: 130px; display: flex; align-items: center; justify-content: center;
    background: #f5f7fb; border-radius: 10px; overflow: hidden;
}
.catalog-card-image img { max-width: 90%; max-height: 118px; object-fit: contain; }
.catalog-card-placeholder {
    font-size: 2rem; color: #a0aec0; width: 100%; height: 100%;
    display: flex; align-items: center; justify-content: center;
}
.catalog-card h3 { font-size: 1.02rem; font-weight: 700; color: #1a202c; margin: 0; }
.catalog-card p { font-size: 0.86rem; color: #718096; line-height: 1.5; margin: 0; flex-grow: 1; }
.catalog-chip {
    display: inline-block; align-self: flex-start; padding: 3px 10px; border-radius: 999px;
    background: rgba(47, 116, 200, 0.1); color: #2f74c8; font-size: 11px; font-weight: 700;
    letter-spacing: 0.06em; text-transform: uppercase;
}

/* ---- Detailpagina ---- */
.catalog-hero {
    max-width: 1180px; margin: 0 auto; padding: 30px 20px 10px;
    display: grid; grid-template-columns: 340px 1fr; gap: 36px; align-items: start;
}
@media (max-width: 820px) { .catalog-hero { grid-template-columns: 1fr; } }
.catalog-hero-image {
    background: #fff; border: 1px solid #e2e8f0; border-radius: 16px; padding: 24px;
    display: flex; align-items: center; justify-content: center; min-height: 240px;
}
.catalog-hero-image img { max-width: 100%; max-height: 300px; object-fit: contain; }
.catalog-hero h1 { font-size: 2.2rem; font-weight: 800; color: #1a202c; letter-spacing: -0.02em; margin: 8px 0 12px; }
.catalog-hero .catalog-lead { font-size: 1.05rem; color: #4a5568; line-height: 1.7; }
.catalog-breadcrumbs { font-size: 0.82rem; color: #718096; padding: 18px 20px 0; max-width: 1180px; margin: 0 auto; }
.catalog-breadcrumbs a { color: #2f74c8; text-decoration: none; }
.catalog-breadcrumbs a:hover { text-decoration: underline; }

/* ---- Tabellen (pinout, specs, connections) ---- */
.catalog-table-wrap { overflow-x: auto; }
table.catalog-table {
    width: 100%; border-collapse: collapse; background: #fff; border: 1px solid #e2e8f0;
    border-radius: 12px; overflow: hidden; font-size: 0.9rem;
}
table.catalog-table th {
    text-align: left; padding: 10px 14px; background: #f5f7fb; color: #4a5568;
    font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.08em;
    border-bottom: 1px solid #e2e8f0;
}
table.catalog-table td { padding: 10px 14px; border-bottom: 1px solid #edf2f7; color: #2d3748; vertical-align: top; }
table.catalog-table tr:last-child td { border-bottom: none; }
table.catalog-table code {
    background: rgba(47, 116, 200, 0.08); color: #2f74c8; padding: 1px 7px; border-radius: 6px;
    font-size: 0.85em; font-weight: 700;
}
.wire-swatch {
    display: inline-block; width: 12px; height: 12px; border-radius: 3px;
    border: 1px solid rgba(0,0,0,0.2); vertical-align: -1px; margin-right: 7px;
}

/* ---- Codevoorbeeld ---- */
.catalog-code-wrap { position: relative; }
.catalog-code-wrap pre {
    background: #0f172a; color: #e2e8f0; border-radius: 12px; padding: 20px;
    overflow-x: auto; font-size: 0.84rem; line-height: 1.55; margin: 0;
}
.catalog-code-copy {
    position: absolute; top: 10px; right: 10px; padding: 6px 14px; font-size: 12px;
    font-weight: 700; border: none; border-radius: 8px; cursor: pointer;
    background: rgba(255,255,255,0.12); color: #e2e8f0;
}
.catalog-code-copy:hover { background: rgba(255,255,255,0.22); }

/* ---- Wiring-canvas (hydrated door wiring-diagram.js) ---- */
.catalog-wiring-canvas {
    background: #fff; border: 1px solid #e2e8f0; border-radius: 12px;
    min-height: 60px; padding: 8px; margin-bottom: 18px;
}
.catalog-wiring-canvas:empty { display: none; }

/* ---- Sectiestructuur op detailpagina's ---- */
.catalog-detail-section { max-width: 1180px; margin: 0 auto; padding: 22px 20px; }
.catalog-detail-section > h2 {
    font-size: 1.4rem; font-weight: 800; color: #1a202c; margin-bottom: 14px; letter-spacing: -0.02em;
}
.catalog-detail-section > p.catalog-prose { color: #4a5568; line-height: 1.7; max-width: 860px; }
.catalog-meta-list { display: flex; flex-wrap: wrap; gap: 10px; margin: 14px 0; }
.catalog-meta-list span {
    background: #fff; border: 1px solid #e2e8f0; border-radius: 999px; padding: 6px 14px;
    font-size: 0.82rem; color: #2d3748; font-weight: 600;
}
.catalog-meta-list span b { color: #2f74c8; }

/* ---- Kit-detail ---- */
.catalog-kit-cta { margin-top: 18px; }

/* ---- 404-staat ---- */
.catalog-notfound { text-align: center; padding: 90px 20px; }
.catalog-notfound h1 { font-size: 2rem; color: #1a202c; margin-bottom: 12px; }
.catalog-notfound a { color: #2f74c8; font-weight: 700; }
