/*
Theme Name: Belgiverse
Theme URI: https://belgiverse.be/
Author: Belgiverse
Author URI: https://belgiverse.be/
Description: A polished Dutch-language editorial magazine theme for Belgiverse.be with five focused categories and an optional automatic French translation switcher.
Version: 1.3.0
Requires at least: 6.5
Tested up to: 7.0
Requires PHP: 8.0
Text Domain: belgiverse
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Tags: news, blog, magazine, custom-logo, featured-images, translation-ready, one-column
*/

:root {
  --bv-ink: #101114;
  --bv-muted: #646973;
  --bv-line: #e4e5e8;
  --bv-paper: #ffffff;
  --bv-soft: #f5f5f3;
  --bv-red: #e1252f;
  --bv-yellow: #f2cb05;
  --bv-deep: #18243a;
  --bv-green: #0d7566;
  --bv-radius: 18px;
  --bv-shadow: 0 18px 50px rgba(16, 17, 20, 0.08);
  --bv-wrap: min(1240px, calc(100% - 40px));
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--bv-ink);
  background: var(--bv-paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.72;
  -webkit-font-smoothing: antialiased;
  overflow-wrap: break-word;
}
body.admin-bar .site-header { top: 32px; }
img { max-width: 100%; height: auto; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--bv-red); }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.screen-reader-text:focus { clip: auto !important; width: auto; height: auto; margin: 0; padding: 10px 14px; background: #fff; color: #000; z-index: 100000; }
.bv-wrap { width: var(--bv-wrap); margin-inline: auto; }
.bv-kicker { display: inline-flex; align-items: center; gap: 8px; color: var(--bv-red); font-size: .75rem; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; text-decoration: none; }
.bv-kicker::before { content: ""; width: 24px; height: 3px; background: currentColor; border-radius: 20px; flex: 0 0 auto; }
.bv-section { position: relative; isolation: isolate; clear: both; padding: 64px 0; }
.bv-section--soft { background: var(--bv-soft); }
.bv-section-head { display: flex; align-items: end; justify-content: space-between; gap: 24px; padding-bottom: 18px; margin-bottom: 30px; border-bottom: 1px solid var(--bv-line); }
.bv-section-title { margin: 0; font-size: clamp(1.65rem, 3vw, 2.45rem); line-height: 1.08; letter-spacing: -.04em; }
.bv-section-link { font-weight: 800; text-decoration: none; white-space: nowrap; }

/* Header */
.bv-topbar { background: var(--bv-ink); color: #fff; font-size: .78rem; }
.bv-topbar__inner { min-height: 35px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.bv-topbar__message { color: rgba(255,255,255,.74); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bv-topbar__date { font-weight: 700; }
.site-header { position: sticky; top: 0; z-index: 1000; background: rgba(255,255,255,.96); backdrop-filter: blur(18px); border-bottom: 1px solid rgba(16,17,20,.08); }
.bv-header-main { min-height: 88px; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 34px; }
.site-branding { display: flex; align-items: center; gap: 14px; min-width: 210px; }
.custom-logo-link { display: flex; align-items: center; }
.custom-logo { max-height: 54px; width: auto; }
.bv-wordmark { display: inline-flex; flex-direction: column; text-decoration: none; line-height: 1; }
.bv-wordmark__name { font-size: 1.65rem; font-weight: 950; letter-spacing: -.065em; text-transform: uppercase; }
.bv-wordmark__bars { display: grid; grid-template-columns: 1fr 1fr 1fr; width: 62px; height: 4px; margin-top: 6px; border-radius: 50px; overflow: hidden; }
.bv-wordmark__bars i:nth-child(1) { background: #111; }
.bv-wordmark__bars i:nth-child(2) { background: var(--bv-yellow); }
.bv-wordmark__bars i:nth-child(3) { background: var(--bv-red); }
.bv-wordmark__tagline { color: var(--bv-muted); font-size: .67rem; letter-spacing: .08em; margin-top: 7px; text-transform: uppercase; }
.main-navigation ul { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 8px 26px; list-style: none; margin: 0; padding: 0; }
.main-navigation a { display: block; color: var(--bv-ink); font-size: .9rem; font-weight: 750; text-decoration: none; }
.main-navigation .current-menu-item > a, .main-navigation a:hover { color: var(--bv-red); }
.bv-header-actions { display: flex; align-items: center; gap: 10px; }
.bv-language-switcher { display: flex; align-items: center; padding: 4px; border: 1px solid var(--bv-line); border-radius: 999px; background: #fff; }
.bv-language-button { border: 0; background: transparent; color: var(--bv-muted); font-size: .74rem; font-weight: 900; padding: 7px 9px; border-radius: 999px; }
.bv-language-button.is-active { background: var(--bv-ink); color: #fff; }
.bv-icon-button { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--bv-line); background: #fff; display: grid; place-items: center; color: var(--bv-ink); }
.bv-icon-button:hover { border-color: var(--bv-red); color: var(--bv-red); }
.bv-menu-toggle { display: none; }
#google_translate_element { position: absolute; width: 1px; height: 1px; overflow: hidden; opacity: 0; pointer-events: none; }
body > .skiptranslate { display: none !important; }
body { top: 0 !important; }

/* Search */
.bv-search-panel { display: none; border-top: 1px solid var(--bv-line); background: #fff; }
.bv-search-panel.is-open { display: block; }
.bv-search-panel form { display: grid; grid-template-columns: 1fr auto; gap: 10px; padding: 18px 0; }
.bv-search-panel input { width: 100%; border: 1px solid var(--bv-line); border-radius: 12px; padding: 13px 16px; outline: none; }
.bv-search-panel input:focus { border-color: var(--bv-ink); }
.bv-button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 18px; border: 1px solid var(--bv-ink); border-radius: 999px; background: var(--bv-ink); color: #fff; font-weight: 800; text-decoration: none; }
.bv-button:hover { background: var(--bv-red); border-color: var(--bv-red); color: #fff; }
.bv-button--light { background: #fff; color: var(--bv-ink); }

/* News strip */
.bv-news-strip { border-bottom: 1px solid var(--bv-line); background: #fff; }
.bv-news-strip__inner { min-height: 46px; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 18px; }
.bv-news-strip__label { color: #fff; background: var(--bv-red); font-size: .68rem; font-weight: 900; letter-spacing: .08em; padding: 5px 9px; border-radius: 5px; text-transform: uppercase; }
.bv-news-strip__headline { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: .88rem; font-weight: 700; text-decoration: none; }
.bv-news-strip__time { color: var(--bv-muted); font-size: .75rem; }

/* Hero */
.bv-hero { padding: 34px 0 22px; }
.bv-hero-grid { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(300px, .75fr); gap: 18px; }
.bv-hero-main, .bv-hero-side-card { position: relative; overflow: hidden; border-radius: var(--bv-radius); background: var(--bv-deep); color: #fff; }
.bv-hero-main { min-height: 550px; }
.bv-hero-main::after, .bv-hero-side-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(7,11,18,.05) 10%, rgba(7,11,18,.84) 88%); }
.bv-hero-main img, .bv-hero-side-card img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; transition: transform .6s ease; }
.bv-hero-main:hover img, .bv-hero-side-card:hover img { transform: scale(1.035); }
.bv-hero-content { position: absolute; z-index: 2; inset: auto 0 0; padding: clamp(26px, 5vw, 52px); min-width: 0; }
.bv-hero-main h1 { max-width: 840px; margin: 10px 0 14px; font-size: clamp(2rem, 4.2vw, 3.8rem); line-height: 1.02; letter-spacing: -.045em; overflow-wrap: anywhere; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden; }
.bv-hero-main h1 a, .bv-hero-side-card h2 a { color: #fff; text-decoration: none; }
.bv-hero-main .bv-excerpt { max-width: 690px; color: rgba(255,255,255,.82); font-size: 1.04rem; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden; }
.bv-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; color: var(--bv-muted); font-size: .78rem; line-height: 1.4; }
.bv-hero-main .bv-meta, .bv-hero-side-card .bv-meta { color: rgba(255,255,255,.7); }
.bv-hero-side { display: grid; grid-template-rows: 1fr 1fr; gap: 18px; min-width: 0; }
.bv-hero-grid--count-1 { grid-template-columns: 1fr; }
.bv-hero-grid--count-2 .bv-hero-side { grid-template-rows: 1fr; }
.bv-hero-side-card { min-height: 266px; }
.bv-hero-side-card .bv-hero-content { padding: 24px; }
.bv-hero-side-card h2 { margin: 8px 0 10px; font-size: clamp(1.15rem, 2vw, 1.65rem); line-height: 1.1; letter-spacing: -.035em; overflow-wrap: anywhere; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden; }
.bv-placeholder-art { position: absolute; inset: 0; background: radial-gradient(circle at 78% 18%, rgba(242,203,5,.58), transparent 18%), radial-gradient(circle at 30% 78%, rgba(225,37,47,.7), transparent 24%), linear-gradient(135deg, #17243c 0%, #233c62 52%, #101114 100%); }
.bv-placeholder-art::before { content: "BELGIVERSE"; position: absolute; right: -35px; top: 90px; transform: rotate(90deg); color: rgba(255,255,255,.09); font-size: 5rem; font-weight: 950; letter-spacing: -.08em; }

/* Cards */
.bv-grid, .bv-category-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 30px; align-items: stretch; }
.bv-card { min-width: 0; height: 100%; display: flex; flex-direction: column; overflow: hidden; }
.bv-card__media { position: relative; display: block; width: 100%; flex: 0 0 auto; aspect-ratio: 16/10; overflow: hidden; border-radius: 14px; background: #ddd; }
.bv-card__media img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .45s ease; }
.bv-card:hover .bv-card__media img { transform: scale(1.04); }
.bv-card__body { min-width: 0; flex: 1 1 auto; display: flex; flex-direction: column; padding-top: 16px; }
.bv-card__title { margin: 7px 0 10px; font-size: 1.28rem; line-height: 1.18; letter-spacing: -.025em; overflow-wrap: anywhere; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden; }
.bv-card__title a { text-decoration: none; }
.bv-card__excerpt { color: var(--bv-muted); margin: 0 0 12px; font-size: .93rem; line-height: 1.62; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden; }
.bv-card__body .bv-meta { margin-top: auto; padding-top: 2px; }
.bv-card--horizontal { display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: 18px; height: auto; padding-bottom: 20px; border-bottom: 1px solid var(--bv-line); }
.bv-card--horizontal .bv-card__media { aspect-ratio: 4/3; }
.bv-card--horizontal .bv-card__body { padding: 2px 0 0; }
.bv-card--horizontal .bv-card__title { font-size: 1.05rem; -webkit-line-clamp: 4; }
.bv-category-grid--count-1 { grid-template-columns: minmax(0, 760px); }
.bv-category-grid--count-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }

/* Main content and archives */
.site-content { min-height: 60vh; }
.bv-archive-shell { width: min(1050px, calc(100% - 40px)); margin: 52px auto 80px; }
.bv-page-header { margin-bottom: 34px; }
.bv-page-header h1 { margin: 8px 0 10px; font-size: clamp(2.1rem, 5vw, 4.1rem); line-height: 1; letter-spacing: -.055em; overflow-wrap: anywhere; }
.bv-page-header p, .bv-archive-description { color: var(--bv-muted); max-width: 760px; font-size: 1.05rem; }
.bv-post-list { display: grid; gap: 30px; }
.bv-post-list .bv-card { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 24px; height: auto; padding-bottom: 30px; border-bottom: 1px solid var(--bv-line); }
.bv-post-list .bv-card__body { padding-top: 4px; }
.bv-post-list .bv-card__title { font-size: 1.55rem; -webkit-line-clamp: 3; }
.bv-post-list .bv-card__excerpt { -webkit-line-clamp: 3; }

/* Single */
.bv-single-header { width: min(880px, calc(100% - 40px)); margin: 54px auto 34px; text-align: center; }
.bv-single-header h1 { margin: 12px 0 20px; font-size: clamp(1.9rem, 3.4vw, 3.15rem); line-height: 1.1; letter-spacing: -.04em; overflow-wrap: anywhere; }
.bv-single-header .bv-meta { justify-content: center; }
.bv-single-excerpt { color: var(--bv-muted); font-size: 1.12rem; max-width: 730px; margin: 20px auto 0; }
.bv-single-featured { width: min(1120px, calc(100% - 40px)); margin: 0 auto 45px; }
.bv-single-featured img { display: block; width: 100%; max-height: 660px; object-fit: cover; border-radius: 22px; }
.bv-article-layout { width: min(790px, calc(100% - 40px)); margin: 0 auto 80px; }
.entry-content { font-size: 1.06rem; }
.entry-content > * { max-width: 100%; }
.entry-content h2 { margin: 2.3em 0 .7em; font-size: clamp(1.65rem, 3vw, 2.35rem); line-height: 1.12; letter-spacing: -.035em; }
.entry-content h3 { margin-top: 1.8em; font-size: 1.35rem; line-height: 1.25; }
.entry-content p { margin: 0 0 1.45em; }
.entry-content a { color: var(--bv-red); font-weight: 650; }
.entry-content blockquote { margin: 2em 0; padding: 8px 0 8px 26px; border-left: 5px solid var(--bv-red); font-size: 1.28rem; line-height: 1.45; }
.entry-content img { border-radius: 14px; }
.entry-content table { width: 100%; border-collapse: collapse; margin: 2em 0; font-size: .94rem; }
.entry-content th, .entry-content td { border: 1px solid var(--bv-line); padding: 12px 14px; text-align: left; }
.entry-content th { background: var(--bv-soft); }
.bv-page-links { margin-top: 30px; font-weight: 800; }

/* Pages */
.bv-page-shell { width: min(920px, calc(100% - 40px)); margin: 54px auto 80px; }
.bv-page-shell .entry-header h1 { font-size: clamp(2.2rem, 5vw, 4.2rem); line-height: 1; letter-spacing: -.055em; overflow-wrap: anywhere; }
.bv-contact-card { padding: 28px; border-radius: 18px; background: var(--bv-soft); }

/* Pagination and empty states */
.navigation.pagination { margin-top: 40px; }
.nav-links { display: flex; flex-wrap: wrap; gap: 7px; }
.page-numbers { min-width: 38px; height: 38px; display: grid; place-items: center; border: 1px solid var(--bv-line); border-radius: 50%; text-decoration: none; font-weight: 800; }
.page-numbers.current { background: var(--bv-ink); border-color: var(--bv-ink); color: #fff; }
.bv-empty { padding: 54px; text-align: center; background: var(--bv-soft); border-radius: 20px; }

/* Cookie notice */
.bv-cookie-notice { position: fixed; z-index: 3000; left: 18px; bottom: 18px; width: min(430px, calc(100% - 36px)); padding: 20px; border-radius: 18px; background: #111; color: #fff; box-shadow: var(--bv-shadow); }
.bv-cookie-notice[hidden] { display: none; }
.bv-cookie-notice h3 { margin: 0 0 6px; font-size: 1rem; }
.bv-cookie-notice p { margin: 0 0 14px; color: rgba(255,255,255,.7); font-size: .82rem; line-height: 1.5; }
.bv-cookie-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.bv-cookie-actions button { border: 1px solid rgba(255,255,255,.28); border-radius: 999px; background: transparent; color: #fff; padding: 8px 12px; font-size: .76rem; font-weight: 800; }
.bv-cookie-actions button[data-cookie-choice="accept"] { background: #fff; color: #111; }
.bv-cookie-actions a { color: #fff; font-size: .76rem; padding: 8px 4px; }

/* Footer */
.site-footer { background: var(--bv-ink); color: #fff; }
.bv-footer-top { padding: 60px 0 40px; display: grid; grid-template-columns: 1.25fr .75fr .75fr; gap: 58px; }
.bv-footer-brand .bv-wordmark__name { color: #fff; font-size: 2rem; }
.bv-footer-brand p { max-width: 430px; color: rgba(255,255,255,.63); }
.bv-footer-title { font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; margin: 0 0 16px; }
.bv-footer-menu { list-style: none; margin: 0; padding: 0; }
.bv-footer-menu li { margin-bottom: 8px; }
.bv-footer-menu a { color: rgba(255,255,255,.72); text-decoration: none; }
.bv-footer-bottom { padding: 18px 0; border-top: 1px solid rgba(255,255,255,.12); display: flex; justify-content: space-between; gap: 20px; color: rgba(255,255,255,.55); font-size: .77rem; }

@media (max-width: 1050px) {
  .bv-header-main { grid-template-columns: 1fr auto; }
  .main-navigation { position: absolute; display: none; left: 0; right: 0; top: 100%; padding: 18px 20px 26px; background: #fff; border-bottom: 1px solid var(--bv-line); box-shadow: 0 20px 30px rgba(16,17,20,.08); }
  .main-navigation.is-open { display: block; }
  .main-navigation ul { align-items: flex-start; flex-direction: column; }
  .bv-menu-toggle { display: grid; }
  .bv-hero-grid { grid-template-columns: 1fr; }
  .bv-hero-side { grid-template-columns: 1fr 1fr; grid-template-rows: auto; }
}

@media (max-width: 760px) {
  :root { --bv-wrap: min(100% - 28px, 1240px); }
  body.admin-bar .site-header { top: 46px; }
  .bv-topbar__date { display: none; }
  .bv-header-main { min-height: 72px; gap: 12px; }
  .site-branding { min-width: 0; }
  .bv-wordmark__name { font-size: 1.35rem; }
  .bv-wordmark__tagline { display: none; }
  .bv-language-switcher { order: -1; }
  .bv-header-actions { gap: 5px; }
  .bv-icon-button { width: 36px; height: 36px; }
  .bv-news-strip__inner { grid-template-columns: auto 1fr; }
  .bv-news-strip__time { display: none; }
  .bv-hero-main { min-height: 500px; }
  .bv-hero-main h1 { font-size: 2.25rem; }
  .bv-hero-side { grid-template-columns: 1fr; }
  .bv-grid, .bv-category-grid, .bv-category-grid--count-2 { grid-template-columns: 1fr; }
  .bv-card--horizontal { grid-template-columns: 120px minmax(0, 1fr); }
  .bv-post-list .bv-card { grid-template-columns: 1fr; }
  .bv-post-list .bv-card__title { font-size: 1.35rem; }
  .bv-section { padding: 46px 0; }
  .bv-section-head { align-items: start; flex-direction: column; gap: 8px; }
  .bv-footer-top { grid-template-columns: 1fr; gap: 30px; }
  .bv-footer-bottom { flex-direction: column; }
}

@media (max-width: 460px) {
  .bv-language-button { padding: 6px 7px; }
  .bv-search-toggle { display: none; }
  .bv-hero-content { padding: 24px; }
  .bv-hero-main h1 { font-size: 1.9rem; }
  .bv-single-header h1 { font-size: 1.85rem; }
  .bv-search-panel form { grid-template-columns: 1fr; }
}
