/*
Theme Name: De Bourgondische Tafel
Theme URI: https://huisvanbourgondie.nl
Author: Feeling Content
Author URI: https://huisvanbourgondie.nl
Description: Warm, tijdloos block-thema voor Huis van Bourgondië — wonen, sfeer en lekker tafelen op z'n Bourgondisch. Full-site editing (FSE) thema met receptenarchitectuur (gang, seizoen, gelegenheid), Recipe-schema-ondersteuning en een editorial, eetkamer-warme uitstraling.
Requires at least: 6.4
Tested up to: 6.7
Requires PHP: 7.4
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: bourgondische-tafel
Tags: full-site-editing, block-patterns, blog, food-and-drink, two-columns, custom-colors, custom-menu, featured-images, editor-style
*/

/*
 * Het overgrote deel van de styling staat in theme.json (kleuren, typografie,
 * spacing, layout en blok-stijlen). Onderstaande CSS is voor de paar details
 * die theme.json niet dekt: hover-animaties, de filterbare receptenhub en
 * fijne typografische nuances.
 */

:root {
  --bt-ease: cubic-bezier(0.2, 0.6, 0.2, 1);
}

/* ---- Algemene verfijning ---- */
body {
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a {
  transition: color 0.2s var(--bt-ease), opacity 0.2s var(--bt-ease);
}

/* Sierlijke kleine kapitalen voor labels/kicker-tekst */
.bt-kicker {
  font-family: var(--wp--preset--font-family--body);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--wp--preset--color--secondary);
}

/* ---- Knoppen: warme hover ---- */
.wp-block-button__link {
  transition: transform 0.2s var(--bt-ease), background-color 0.2s var(--bt-ease), box-shadow 0.2s var(--bt-ease);
}
.wp-block-button__link:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(94, 34, 48, 0.18);
}

/* ---- Afbeeldingen in cards: zachte zoom op hover ---- */
.bt-card figure img,
.wp-block-post-featured-image img {
  transition: transform 0.5s var(--bt-ease);
}
.bt-card:hover figure img {
  transform: scale(1.04);
}

/* ---- Navigatie-onderstreping ---- */
.wp-block-navigation .wp-block-navigation-item__content {
  position: relative;
}
.wp-block-navigation .wp-block-navigation-item__content::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0;
  height: 2px;
  background: var(--wp--preset--color--secondary);
  transition: width 0.25s var(--bt-ease);
}
.wp-block-navigation .wp-block-navigation-item__content:hover::after {
  width: 100%;
}

/* ===========================================================
   RECEPTENHUB — filterbare index
   (gebruikt door de "Recepten"-pagina en het receptenhub-pattern)
   =========================================================== */
.bt-rhub {
  --rhub-radius: 14px;
  font-family: var(--wp--preset--font-family--body, system-ui, sans-serif);
  color: var(--wp--preset--color--contrast, #2a2422);
}

.bt-rhub__filters {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 2.25rem;
}

.bt-rhub__filtergroup {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.6rem;
}

.bt-rhub__filterlabel {
  flex: 0 0 7.5rem;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--wp--preset--color--primary, #7a2e3a);
}

.bt-rhub__chip {
  appearance: none;
  border: 1px solid rgba(122, 46, 58, 0.28);
  background: transparent;
  color: var(--wp--preset--color--contrast, #2a2422);
  border-radius: 999px;
  padding: 0.42rem 0.95rem;
  font-size: 0.9rem;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.2s var(--bt-ease);
  line-height: 1.1;
}
.bt-rhub__chip:hover {
  border-color: var(--wp--preset--color--secondary, #c9743c);
  color: var(--wp--preset--color--primary, #7a2e3a);
}
.bt-rhub__chip[aria-pressed="true"] {
  background: var(--wp--preset--color--primary, #7a2e3a);
  border-color: var(--wp--preset--color--primary, #7a2e3a);
  color: #fff;
}

.bt-rhub__search {
  width: 100%;
  max-width: 26rem;
  border: 1px solid rgba(122, 46, 58, 0.28);
  border-radius: 999px;
  padding: 0.6rem 1.1rem;
  font-size: 0.95rem;
  font-family: inherit;
  background: var(--wp--preset--color--base, #fbf6ee);
}
.bt-rhub__search:focus {
  outline: 2px solid var(--wp--preset--color--secondary, #c9743c);
  outline-offset: 1px;
}

.bt-rhub__meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.25rem;
  font-size: 0.9rem;
  color: var(--wp--preset--color--muted, #6e6256);
}

.bt-rhub__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(255px, 1fr));
  gap: 1.6rem;
}

.bt-rhub__card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: var(--rhub-radius);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  box-shadow: 0 1px 2px rgba(42, 36, 34, 0.06);
  border: 1px solid rgba(42, 36, 34, 0.06);
  transition: transform 0.25s var(--bt-ease), box-shadow 0.25s var(--bt-ease);
}
.bt-rhub__card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 34px rgba(94, 34, 48, 0.16);
}
.bt-rhub__thumb {
  aspect-ratio: 4 / 3;
  width: 100%;
  object-fit: cover;
  background: #f0e6d6;
  display: block;
}
.bt-rhub__body {
  padding: 1rem 1.15rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  flex: 1;
}
.bt-rhub__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}
.bt-rhub__tag {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--wp--preset--color--secondary, #c9743c);
  background: rgba(201, 116, 60, 0.1);
  padding: 0.2rem 0.55rem;
  border-radius: 6px;
}
.bt-rhub__title {
  font-family: var(--wp--preset--font-family--heading, Georgia, serif);
  font-size: 1.18rem;
  line-height: 1.25;
  margin: 0.1rem 0 0;
  color: var(--wp--preset--color--contrast, #2a2422);
}
.bt-rhub__excerpt {
  font-size: 0.92rem;
  line-height: 1.5;
  color: var(--wp--preset--color--muted, #6e6256);
  margin: 0;
}
.bt-rhub__empty {
  text-align: center;
  padding: 3rem 1rem;
  color: var(--wp--preset--color--muted, #6e6256);
  font-style: italic;
  grid-column: 1 / -1;
}
.bt-rhub__reset {
  background: none;
  border: none;
  color: var(--wp--preset--color--primary, #7a2e3a);
  text-decoration: underline;
  cursor: pointer;
  font-family: inherit;
  font-size: 0.9rem;
}

@media (max-width: 600px) {
  .bt-rhub__filterlabel { flex-basis: 100%; }
}

/* ===========================================================
   Leesbare links op donkere secties + tegel-hover
   =========================================================== */
.wp-block-cover a,
.bt-footer a,
.has-primary-background-color a,
.has-primary-dark-background-color a,
.has-contrast-background-color a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s var(--bt-ease);
}
.wp-block-cover a:hover,
.bt-footer a:hover,
.has-primary-background-color a:hover,
.has-primary-dark-background-color a:hover,
.has-contrast-background-color a:hover {
  color: var(--wp--preset--color--accent);
}
.bt-footer ul { list-style: none; padding-left: 0; margin: 0; }

/* Zachte zoom op categorie-/sfeertegels met achtergrondfoto */
.wp-block-cover { overflow: hidden; }
.wp-block-cover .wp-block-cover__image-background {
  transition: transform 0.6s var(--bt-ease);
}
.wp-block-cover:hover .wp-block-cover__image-background { transform: scale(1.05); }

/* Categorie-tegel kop: blokvullende klikbare link */
.wp-block-cover h3 a { display: block; }
