/*
Theme Name: JorFytaal Blog
Theme URI: https://www.jorfytaal.nl/blog/
Author: JorFytaal
Description: Licht maatwerkthema voor het JorFytaal-blog. Gebouwd voor Gutenberg, zonder pagebuilder.
Version: 1.4.5
Requires at least: 6.6
Requires PHP: 8.1
Text Domain: jorfytaal-blog
*/

/*
 * De algemene JorFytaal-stijl (Bootstrap, kleuren, lokale fonts, header/footer)
 * wordt geladen vanaf /assets/ van de hoofdwebsite.
 * Dit bestand bevat alleen blog-specifieke aanvullingen.
 */

body.blog-theme{
  background:var(--jf-paper);
}

.blog-page-hero{
  padding-bottom:clamp(3rem,6vw,5rem);
}

.blog-page-hero .blog-intro{
  max-width:760px;
}

.blog-shell{
  padding:clamp(3.8rem,7vw,6.5rem) 0;
  background:#fff;
}

.blog-toolbar{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:1rem;
  margin-bottom:2.25rem;
}

.blog-toolbar .result-title{
  margin:0;
  font-size:clamp(1.65rem,3vw,2.5rem);
}

.blog-grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:1.5rem;
}

.jf-post-card{
  display:flex;
  flex-direction:column;
  min-width:0;
  height:100%;
  overflow:hidden;
  border:1px solid rgba(83,32,158,.09);
  border-radius:var(--jf-radius-md);
  background:#fff;
  color:inherit;
  text-decoration:none;
  box-shadow:0 10px 34px rgba(45,18,87,.06);
  transition:transform .2s ease,box-shadow .2s ease,border-color .2s ease;
}

.jf-post-card:hover,
.jf-post-card:focus-visible{
  color:inherit;
  text-decoration:none;
  transform:translateY(-4px);
  border-color:rgba(204,0,102,.18);
  box-shadow:0 18px 44px rgba(45,18,87,.11);
}

.jf-post-card:focus-visible{
  outline:3px solid rgba(83,32,158,.28);
  outline-offset:4px;
}

.jf-post-card-media{
  position:relative;
  aspect-ratio:16/10;
  overflow:hidden;
  background:
    radial-gradient(circle at 18% 18%,rgba(255,255,255,.82),transparent 28%),
    linear-gradient(145deg,var(--jf-purple-wash),var(--jf-pink-wash));
}

.jf-post-card-media img{
  width:100%;
  height:100%;
  object-fit:cover;
  transition:transform .35s ease;
}

.jf-post-card:hover .jf-post-card-media img{
  transform:scale(1.025);
}

.jf-post-card-mark{
  position:absolute;
  width:74%;
  right:-18%;
  top:-22%;
  opacity:.045;
  filter:grayscale(1);
}

.jf-post-card-placeholder{
  position:absolute;
  inset:0;
  display:grid;
  place-items:center;
}

.jf-post-card-placeholder i{
  width:76px;
  height:76px;
  display:grid;
  place-items:center;
  border-radius:50%;
  background:rgba(255,255,255,.85);
  color:var(--jf-purple);
  font-size:1.7rem;
  box-shadow:var(--jf-shadow-soft);
}

.jf-post-card-body{
  display:flex;
  flex-direction:column;
  flex:1;
  padding:1.35rem 1.35rem 1.45rem;
}

.jf-post-meta,
.article-meta{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:.55rem .85rem;
  margin-bottom:.75rem;
  color:var(--jf-muted);
  font-family:var(--jf-font-meta);
  font-size:.72rem;
  line-height:1.5;
}

.jf-post-meta .category,
.article-meta .category{
  color:var(--jf-pink);
  font-weight:700;
  text-transform:uppercase;
  letter-spacing:.045em;
}

.jf-post-card h2{
  margin:0 0 .7rem;
  font-size:clamp(1.35rem,2vw,1.72rem);
  line-height:1.18;
}

.jf-post-card-excerpt{
  margin-bottom:1rem;
  color:var(--jf-muted);
  font-size:.98rem;
}

.jf-post-card .text-link{
  margin-top:auto;
}

.blog-empty{
  padding:clamp(2rem,5vw,4rem);
  border:1px solid var(--jf-line);
  border-radius:var(--jf-radius-lg);
  background:linear-gradient(145deg,var(--jf-purple-wash),var(--jf-pink-wash));
  text-align:center;
}

.jf-pagination{
  margin-top:2.75rem;
}

.jf-pagination .nav-links{
  display:flex;
  justify-content:center;
  flex-wrap:wrap;
  gap:.45rem;
}

.jf-pagination .page-numbers{
  min-width:42px;
  height:42px;
  display:grid;
  place-items:center;
  padding:0 .75rem;
  border:1px solid rgba(83,32,158,.14);
  border-radius:999px;
  color:var(--jf-purple);
  background:#fff;
  font-weight:700;
  text-decoration:none;
}

.jf-pagination .page-numbers.current,
.jf-pagination .page-numbers:hover{
  border-color:transparent;
  color:#fff;
  background:linear-gradient(135deg,var(--jf-purple),var(--jf-pink));
}

.article-hero{
  padding:clamp(3rem,6vw,5.5rem) 0 clamp(2.5rem,5vw,4.5rem);
  overflow:hidden;
  background:linear-gradient(180deg,#fff,var(--jf-purple-wash));
}

.article-hero .article-title{
  max-width:980px;
}

.article-hero h1{
  margin-bottom:1.1rem;
}

.article-featured{
  margin-top:2rem;
  overflow:hidden;
  border-radius:var(--jf-radius-lg);
  box-shadow:var(--jf-shadow);
}

.article-featured img{
  display:block;
  width:100%;
  max-height:680px;
  object-fit:cover;
}

.article-wrap{
  background:#fff;
  padding:clamp(3.5rem,7vw,6.5rem) 0;
}

.article-content{
  max-width:800px;
  margin-inline:auto;
  font-size:1.08rem;
}

.article-content > *{
  margin-top:0;
  margin-bottom:1.35rem;
}

.article-content h2{
  margin-top:2.7rem;
  margin-bottom:1rem;
  font-size:clamp(1.9rem,4vw,2.85rem);
}

.article-content h3{
  margin-top:2.2rem;
  margin-bottom:.85rem;
}

.article-content h4{
  margin-top:1.8rem;
  margin-bottom:.7rem;
  font-size:1.22rem;
}

.article-content a{
  color:var(--jf-purple);
  text-decoration-thickness:.09em;
  text-underline-offset:.17em;
}

.article-content a:hover{
  color:var(--jf-pink);
}

.article-content ul,
.article-content ol{
  padding-left:1.3rem;
}

.article-content li{
  margin-bottom:.45rem;
}

.article-content blockquote{
  margin:2rem 0;
  padding:1.3rem 1.5rem;
  border-left:4px solid var(--jf-pink);
  border-radius:0 1rem 1rem 0;
  background:var(--jf-pink-wash);
  font-family:var(--jf-font-heading);
  font-size:1.25rem;
}

.article-content img{
  border-radius:1.15rem;
}

.article-content .wp-block-image,
.article-content .wp-block-gallery,
.article-content .wp-block-video,
.article-content .wp-block-embed{
  margin-top:2rem;
  margin-bottom:2rem;
}

.article-content .alignwide{
  width:min(1080px,calc(100vw - 2rem));
  max-width:none;
  margin-left:50%;
  transform:translateX(-50%);
}

.article-content .alignfull{
  width:100vw;
  max-width:none;
  margin-left:50%;
  transform:translateX(-50%);
}

.article-content .wp-block-button__link{
  border-radius:999px;
  background:linear-gradient(135deg,var(--jf-purple),var(--jf-pink));
  font-family:var(--jf-font-body);
  font-weight:700;
}

.article-content hr{
  margin:2.5rem 0;
  border:0;
  border-top:1px solid var(--jf-line);
  opacity:1;
}

.article-footer{
  max-width:800px;
  margin:3rem auto 0;
  padding-top:1.6rem;
  border-top:1px solid var(--jf-line);
}

.article-tags{
  display:flex;
  flex-wrap:wrap;
  gap:.5rem;
}

.article-tags a{
  padding:.42rem .68rem;
  border-radius:999px;
  background:var(--jf-purple-wash);
  color:var(--jf-purple);
  font-size:.83rem;
  font-weight:700;
  text-decoration:none;
}

.article-nav{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:1rem;
  max-width:1000px;
  margin:3rem auto 0;
}

.article-nav a{
  display:block;
  height:100%;
  padding:1.2rem;
  border:1px solid var(--jf-line);
  border-radius:1rem;
  color:inherit;
  text-decoration:none;
  transition:.18s ease;
}

.article-nav a:hover{
  border-color:rgba(83,32,158,.22);
  background:var(--jf-purple-wash);
}

.article-nav .next{
  text-align:right;
}

.article-nav small{
  display:block;
  margin-bottom:.35rem;
  color:var(--jf-muted);
  font-family:var(--jf-font-meta);
  font-size:.7rem;
  text-transform:uppercase;
}

.article-nav strong{
  font-family:var(--jf-font-heading);
  color:var(--jf-purple);
}

.blog-search-form{
  display:flex;
  width:min(100%,420px);
  min-height:48px;
  overflow:hidden;
  border:1px solid rgba(83,32,158,.15);
  border-radius:999px;
  background:#fff;
}

.blog-search-form input{
  min-width:0;
  flex:1;
  padding:.7rem 1rem;
  border:0;
  outline:0;
  background:transparent;
  color:var(--jf-ink);
}

.blog-search-form button{
  width:48px;
  border:0;
  background:transparent;
  color:var(--jf-purple);
}

.blog-search-form:focus-within{
  border-color:rgba(83,32,158,.35);
  box-shadow:0 0 0 3px rgba(83,32,158,.08);
}

.wp-caption,
.wp-block-image{
  max-width:100%;
}

.wp-caption-text,
.wp-element-caption{
  margin-top:.55rem;
  color:var(--jf-muted);
  font-size:.86rem;
}

.screen-reader-text{
  position:absolute!important;
  width:1px!important;
  height:1px!important;
  padding:0!important;
  margin:-1px!important;
  overflow:hidden!important;
  clip:rect(0,0,0,0)!important;
  white-space:nowrap!important;
  border:0!important;
}

.screen-reader-text:focus{
  width:auto!important;
  height:auto!important;
  margin:0!important;
  padding:.75rem 1rem!important;
  clip:auto!important;
  top:.5rem;
  left:.5rem;
  z-index:99999;
  border-radius:.5rem;
  background:#fff;
  color:var(--jf-purple);
  box-shadow:var(--jf-shadow);
}

@media (max-width:991.98px){
  .blog-grid{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
}

@media (max-width:767.98px){
  .blog-toolbar{
    align-items:stretch;
    flex-direction:column;
  }

  .blog-search-form{
    width:100%;
  }

  .blog-grid{
    grid-template-columns:1fr;
  }

  .article-content{
    font-size:1rem;
  }

  .article-nav{
    grid-template-columns:1fr;
  }

  .article-nav .next{
    text-align:left;
  }
}


/* v1.2 — rustigere artikelbreedte en gerelateerde blogs */
.article-heading-wrap{
  max-width:920px;
  margin-inline:auto;
}

.article-featured{
  max-width:1080px;
  margin-inline:auto;
  margin-top:2rem;
}

.article-content{
  max-width:900px;
}

.related-posts{
  background:var(--jf-purple-wash);
}

.related-posts-head{
  display:flex;
  justify-content:space-between;
  align-items:end;
  gap:1rem;
  margin-bottom:2rem;
}

.related-posts-head h2{
  margin-bottom:0;
}

.related-posts-head p{
  max-width:520px;
  margin:0;
  color:var(--jf-muted);
}

@media (max-width:767.98px){
  .article-heading-wrap,
  .article-content{
    max-width:100%;
  }

  .related-posts-head{
    align-items:start;
    flex-direction:column;
  }
}


/* v1.4.5 — label boven de lijn, uitgelijnd met knoptekst */
.article-share{
  max-width:800px;
  margin:2.5rem auto 0;
  padding:0;
}

.article-share-title{
  margin:0 0 .45rem;
  padding-left:2.55rem;
  font-family:var(--jf-font-body);
  font-size:.82rem;
  font-weight:600;
  line-height:1.3;
  color:var(--jf-muted);
}

.article-share-buttons{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:.55rem;
  padding-top:.7rem;
  border-top:1px solid var(--jf-line);
}

.article-share-button{
  appearance:none;
  width:100%;
  min-width:0;
  min-height:38px;
  display:flex;
  align-items:center;
  justify-content:flex-start;
  gap:.5rem;
  padding:.5rem .9rem;
  border:1px solid rgba(83,32,158,.13);
  border-radius:999px;
  background:#fff;
  color:var(--jf-purple);
  font:inherit;
  font-size:.84rem;
  font-weight:700;
  line-height:1.15;
  text-align:left;
  text-decoration:none;
  cursor:pointer;
  transition:background-color .18s ease,border-color .18s ease,transform .18s ease;
}

.article-share-button i{
  flex:0 0 1.15rem;
  width:1.15rem;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  font-size:.95rem;
  line-height:1;
  text-align:center;
}

.article-share-button span{
  min-width:0;
  white-space:nowrap;
}

.article-share-button:hover,
.article-share-button:focus-visible{
  color:var(--jf-purple);
  background:var(--jf-purple-wash);
  border-color:rgba(83,32,158,.25);
  text-decoration:none;
  transform:translateY(-1px);
}

.article-share-button:focus-visible{
  outline:3px solid rgba(83,32,158,.18);
  outline-offset:3px;
}

.article-share-status{
  margin:.55rem 0 0;
  color:var(--jf-muted);
  font-size:.8rem;
}

.article-share-status:empty{
  display:none;
}

.article-share-status.is-success{
  color:var(--jf-purple);
}

.article-share + .article-footer{
  margin-top:1.15rem;
}

@media (max-width:767.98px){
  .article-share-title{
    padding-left:2.45rem;
  }

  .article-share-buttons{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }

  .article-share-button{
    padding-inline:.8rem;
  }
}

@media (max-width:359.98px){
  .article-share-buttons{
    grid-template-columns:1fr;
  }
}
