/*
 Theme Name:   GeneratePress Topic (child)
 Theme URI:    https://generatepress.com
 Description:  Default GeneratePress child theme
 Author:       Tom Usborne
 Author URI:   https://tomusborne.com
 Template:     generatepress
 Version:      0.1
*/

/* === Spacing scale === */

/* Desktop default values */
:root {
  --spacer-xxs: 8px;
  --spacer-xs: 16px;
  --spacer-s: 24px;
  --spacer-m: 40px;
  --spacer-l: 56px;
  --spacer-xl: 80px;
  --spacer-xxl: 120px;
  --spacer-xxxl: 160px;
}

/* Tablet */
@media (max-width: 1024px) {
  :root {
    --spacer-xxs: 4px;
    --spacer-xs: 8px;
    --spacer-s: 16px;
    --spacer-m: 32px;
    --spacer-l: 48px;
    --spacer-xl: 64px;
    --spacer-xxl: 96px;
    --spacer-xxxl: 120px;
  }
}

/* Mobile */
@media (max-width: 768px) {
  :root {
    --spacer-xxs: 4px;
    --spacer-xs: 8px;
    --spacer-s: 16px;
    --spacer-m: 24px;
    --spacer-l: 40px;
    --spacer-xl: 48px;
    --spacer-xxl: 72px;
    --spacer-xxxl: 88px;
  }
}

/* === Dossier Accordion === */

.gb-accordion .gb-dossier-lijst {
    margin-top: var(--spacer-l);
}

.gb-accordion__item {
/*  border-bottom: 2px solid #000; */
    padding: 0.25rem 0;
}

/* Toggle: titel + plus/min rechts */
.gb-dossier-lijst .gb-accordion__toggle {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 0.75em 0;
    font-weight: 700;
    font-size: 1.15rem;
    color: #111;
    cursor: pointer;
    background: none;
    border: 0;
    text-align: left;
    border-bottom: 3px solid #000;
}

.gb-accordion__toggle:hover,
.gb-accordion__toggle:focus {
    color: #000;
}

/* Plus/min weergave */
.gb-dossier-lijst .gb-accordion__toggle-icon::before {
    content: "+";
    font-size: 1.5rem;
    line-height: 1;
    font-weight: 400;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.gb-dossier-lijst .gb-accordion__toggle[aria-expanded="true"] .gb-accordion__toggle-icon::before {
    content: "–";
}

/* Accordion content */
.gb-accordion__content {
    display: none;
    padding: 0.75rem 0 1.25rem;
}
.gb-accordion__toggle[aria-expanded="true"] + .gb-accordion__content {
    display: block;
}

/* Subdossiers grid */
.dossier-children-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1rem 2rem;
    list-style: none;
    margin: 0;
    margin-bottom: var(--spacer-l);
    padding: 0;
}

.dossier-child {
    display: flex;
    flex-direction: column;
    border-bottom: 1px solid #000;
    padding-bottom: 0.75rem;
}

.dossier-link {
    color: #111;
    font-weight: 600;
    text-decoration: none;
    margin-bottom: 0.25rem;
}

.dossier-link:hover {
    text-decoration: underline;
}

/* Aantal artikelen */
.artikel-count {
    color: #4b8a3d;
    font-size: 0.9rem;
    font-weight: 500;
}

.artikel-count::after {
    content: " ›";
    color: #aaa;
    font-weight: 400;
    margin-left: 2px;
}



/* === Vakgebieden panel === */

/* Basis grid-layout voor de container */
.vakpanel-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* Drie kolommen op desktop */
    column-gap: 2rem;
    list-style: none;
    padding: 0;
    margin: 0;
}

/* Stijl voor de lijstitems */
.vakpanel-container li {
    display: flex;
    align-items: center;
    margin: 0;
}

/* Pijltje toevoegen als pseudo-element */
.vakpanel-container li::before {
    content: "›";
    margin-right: 0.75rem;
    color: #000000;
    font-size: 1rem;
    transition: transform 0.3s ease-in, color 0.3s ease-in;
}

/* Stijl voor de links */
.vakpanel-container a {
    text-decoration: none;
    color: #75966f;
    font-size: 1rem;
    font-weight: 600;
    transition: color 0.3s ease-in;
}

/* Hover-effecten */
.vakpanel-container li:hover::before {
    transform: translateX(5px);
}

.vakpanel-container li:hover a {
    color: #2c3e50;
}

/* Responsive styling */
@media (max-width: 1024px) {
    .vakpanel-container {
        grid-template-columns: repeat(2, 1fr); /* Twee kolommen op tablets */
        column-gap: 1.5rem;
    }
}

@media (max-width: 768px) {
    .vakpanel-container {
        grid-template-columns: 1fr; /* Één kolom op mobiel */
    }

    .vakpanel-container a {
        font-size: 0.9rem;
        padding: 0.4rem;
    }
}

/* === Sponsored logo bij artikel === */

.article-collaboration {
    padding: 1.5rem;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    background: #fff;
}

.collaboration-intro {
    margin: 0 0 1rem;
    font-size: 0.875rem;
    color: #666;
}

.collaboration-card {
    text-align: center;
}

.collaboration-link {
    display: block;
    text-decoration: none;
    transition: opacity 0.2s ease;
}

.collaboration-link:hover {
    opacity: 0.8;
}

.collaboration-logo {
    max-width: 100%;
    height: auto;
    margin: 0 auto;
    display: block;
}

.collaboration-name-large {
    display: block;
    font-weight: 600;
    color: #000;
    font-size: 1.25rem;
}

/* === Referenties: vanilla core/details blok === */

.referenties summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    list-style: none;
    border-top: 3px solid #000;
    padding: 1em;
    font-weight: 700;
    font-size: 16px;
    color: #111;
    cursor: pointer;
}

.referenties summary::-webkit-details-marker {
    display: none;
}

.referenties summary::marker {
    display: none;
}

.referenties summary::after {
    content: "+";
    font-size: 1.5rem;
    font-weight: 400;
    line-height: 1;
    flex-shrink: 0;
}

.referenties[open] summary::after {
    content: "–";
}

.referenties > :not(summary) {
    font-size: 14px;
    font-weight: 400;
    padding: 1em;
}

/* === Auteursblok ==== */

.auteur-blok {
    border-top: 3px solid #000;
    float: left;
    width: 280px;
    margin-right: 1.5em;
    background-color: #b5b5b51a;
    padding: 0.75em;
    clear: left;
}

@media (max-width: 767px) {
    .auteur-blok {
        margin-bottom: var(--spacer-s);
        max-width: 100%;
        width: 100%;
        float: none;
    }
}

.auteur-blok + * {
    overflow: hidden; /* Zorg dat inhoud na het blok niet ook zweeft */
}

.editor-styles-wrapper .auteur-blok {
    float: none; /* Zorg dat het blok in de editor netjes uitgelijnd wordt */
    width: 100%;
}

/* === Specifieke tricks === */

/* Zet bladericons homepage editiecarrousel op juiste grootte  */
.topic-slider .gb-carousel-control-icon svg {
    width: 36px !important;
    height: 36px !important;
}

/* Basisstijl voor de container */
.vakpanel-container {
    display: grid; /* Gebruik CSS Grid voor een kolommenlayout */
    grid-template-columns: repeat(3, 1fr); /* Drie gelijke kolommen op desktop */
    column-gap: 3rem; /* Extra ruimte tussen de kolommen */
    row-gap: 1rem; /* Ruimte tussen de rijen */
    padding: 0;
    margin: 0;
    list-style: none; /* Geen standaard lijst-stijl */
}

/* Header shadow */
.site-header {
    -webkit-box-shadow: 0px 20px 25px -5px rgba(15, 23, 42, 0.1);
    -moz-box-shadow: 0px 20px 25px -5px rgba(15, 23, 42, 0.1);
    box-shadow: 0px 20px 25px -5px rgba(15, 23, 42, 0.1);
}

/* Drop cap */

.has-drop-cap:not(:focus):first-letter {
    /*
    float: left;
    font-size: 8.4em;
    font-style: normal;
    text-transform: uppercase;
    */
    color: #707CBC;
    font-weight: 800;
    margin: .05em .1em .3em 0;
}

/* Groen kader */
.wp-block-group.is-style-callout-green {
    background-color: rgba(149, 195, 141, 0.4);
    border-top: 3px solid var(--topic---groen);
    margin: var(--spacer-xs) 0 var(--spacer-s) 0;
}

.wp-block-group.is-style-callout-green h2,
.wp-block-group.is-style-callout-green h3 {
    margin-top: 0;
    color: var(--contrast);
}

/* Rood kader */
.wp-block-group.is-style-callout-red {
    background-color: var(--topic---rood);
    margin: var(--spacer-xs) 0 var(--spacer-s) 0;
    color: #ffffff;
}

.wp-block-group.is-style-callout-red h2,
.wp-block-group.is-style-callout-red h3 {
    margin-top: 0;
    color: #ffffff;
}

/* Topic citaat */
.wp-block-quote.is-style-topic-quote {
    border-left: 6px solid #0F172A;
    padding: var(--spacer-s);
    margin: var(--spacer-s) 0 var(--spacer-s) 0;
    font-size: 1.4em;
}

.wp-block-quote.is-style-topic-quote p {
    color: var(--topic---blauw);
    font-weight: 800;
    font-style: normal;
    text-transform: uppercase;
    line-height: 34px;
    margin: 0;
}

.wp-block-quote.is-style-topic-quote cite {
    display: block;
    margin-top: var(--spacer-s);
}

/* Editor alignment fix voor block styles */
.editor-styles-wrapper .wp-block-group.is-style-callout-green,
.editor-styles-wrapper .wp-block-group.is-style-callout-red,
.editor-styles-wrapper .wp-block-quote.is-style-topic-quote {
    max-width: var(--wp--style--global--content-size, 760px);
    margin-left: auto;
    margin-right: auto;
}

/* Artikelgrid controleren */
.artikel-loop {
    gap: var(--spacer-m);
}

.facetwp-checkbox {
    background: none;
    padding-left: 26px;
    position: relative;
}

/* Checkboxes en tekst bij WPFacet */

.facetwp-checkbox {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Crect x='1' y='1' width='14' height='14' rx='2' fill='white' stroke='%23ccc' stroke-width='1.5'/%3E%3C/svg%3E") !important;
  background-size: 28px 22px;
  background-position: left center;
  padding-left: 36px;
  font-size: 16px;
}
 
.facetwp-checkbox.checked {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Crect x='.5' y='.5' width='15' height='15' rx='2' fill='black'/%3E%3Cpath fill='none' stroke='white' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round' d='M3 8.5l3 3 6.5-6'/%3E%3C/svg%3E") !important;
}

/* Drop shadow sticky nav */

.sticky-enabled .main-navigation.is_stuck {
  box-shadow: 0px 20px 25px -5px rgba(15, 23, 42, 0.1);
}

/* Kruimelpad */

.breadcrumbs {
  font-size: 14px;
  margin-left: 40px;
  padding-top: var(--spacer-s);
}
.breadcrumbs a {
  text-decoration: none;
}