/* ═══════════════════════════════════════
   Yoruba Articles Plugin — CSS
   v4.0 — Clean rewrite
═══════════════════════════════════════ */

/* ── Single Article: Hero ── */
.yor-single{
  max-width:1100px;
  margin:0 auto;
  padding:0;
  font-family:'Inter',sans-serif;
}
.yor-single-hero{
  position:relative;
  width:100%;
  aspect-ratio:21/9;
  overflow:hidden;
  margin-bottom:48px;
}
.yor-single-hero-img{
  width:100%;height:100%;
  object-fit:cover;display:block;
}
.yor-single-hero-placeholder{
  width:100%;height:100%;
  background:linear-gradient(145deg,#333,#111);
}
.yor-single-hero-overlay{
  position:absolute;inset:0;
  background:linear-gradient(transparent 40%,rgba(0,0,0,.7));
  display:flex;flex-direction:column;justify-content:flex-end;
  padding:48px;
}
.yor-single-cat{
  font-size:.6rem;text-transform:uppercase;letter-spacing:.2em;
  color:rgba(255,255,255,.7);margin-bottom:8px;
}
.yor-single-title{
  font-size:clamp(1.8rem,4vw,3rem);
  font-weight:700;color:#fff;
  line-height:1.15;max-width:700px;
}

/* ── Single Article: Body ── */
.yor-single-body{
  display:grid;
  grid-template-columns:200px 1fr;
  gap:48px;
  padding:0 48px 64px;
  align-items:start;
}
.yor-single-meta{
  position:sticky;top:120px;
}
.yor-meta-item{
  padding:10px 0;
  border-bottom:1px solid rgba(0,0,0,.08);
}
.yor-meta-label{
  display:block;
  font-family:'DM Mono',monospace;
  font-size:.6rem;text-transform:uppercase;
  letter-spacing:.15em;color:#999;
  margin-bottom:2px;
}
.yor-meta-value{
  font-size:.85rem;font-weight:500;color:#111;
}
.yor-single-content{
  max-width:680px;
}
.yor-single-excerpt{
  font-size:1.15rem;
  line-height:1.6;
  font-weight:400;
  color:#333;
  margin-bottom:32px;
  padding-bottom:24px;
  border-bottom:1px solid rgba(0,0,0,.08);
}
.yor-single-content p{
  font-size:.95rem;line-height:1.75;
  color:#333;margin-bottom:20px;
}
.yor-single-content img{
  max-width:100%;height:auto;
  margin:28px 0;display:block;
}
.yor-single-content h2{
  font-size:1.3rem;font-weight:700;
  margin:40px 0 16px;
}
.yor-single-content h3{
  font-size:1.05rem;font-weight:600;
  margin:32px 0 12px;
}
.yor-single-content blockquote{
  margin:28px 0;padding:16px 24px;
  border-left:3px solid #111;
  font-family:'DM Mono',monospace;
  font-size:.85rem;line-height:1.7;
  color:#555;background:rgba(0,0,0,.02);
}
.yor-single-back{
  padding:0 48px 80px;
}
.yor-single-back a{
  font-family:'DM Mono',monospace;
  font-size:.78rem;color:#999;
  text-decoration:none;
  transition:color .25s;
}
.yor-single-back a:hover{color:#111}

/* ── Highlighted items in archive ── */
.arch-item.highlighted{
  outline:2.5px solid #111;
  outline-offset:2px;
}
.arch-item.highlighted .arch-label{
  transform:translateY(0);
  background:#111;color:#fff;
}
.arch-star{
  position:absolute;top:6px;right:6px;
  width:20px;height:20px;
  background:#111;color:#fff;
  border-radius:50%;
  display:none;
  align-items:center;justify-content:center;
  font-size:10px;line-height:1;z-index:2;
}
.arch-item.highlighted .arch-star{display:flex}

/* ── Bento divider ── */
.bento-divider{
  display:flex;align-items:center;gap:12px;
  padding:4px 0;margin-bottom:16px;
}
.bento-divider span{
  font-size:.6rem;text-transform:uppercase;letter-spacing:.2em;
  color:#999;font-family:'DM Mono',monospace;white-space:nowrap;
}
.bento-divider::before,.bento-divider::after{
  content:'';flex:1;height:1px;background:rgba(0,0,0,.08);
}
.bcard.hl-injected{
  border:1.5px solid #111;
}

/* ═══════════════════════════════════════
   SPLASH PAGE
═══════════════════════════════════════ */
.yor-splash{
  position:fixed;
  inset:0;
  z-index:9999;
  display:flex;
  align-items:center;
  justify-content:center;
  animation:splashIn .5s ease both;
}
.yor-splash-backdrop{
  position:absolute;
  inset:0;
  background:rgba(0,0,0,.45);
  cursor:pointer;
}
.yor-splash-card{
  position:relative;
  z-index:1;
  max-width:520px;
  width:88%;
  max-height:80vh;
  background:#fff;
  box-shadow:0 20px 60px rgba(0,0,0,.25);
  overflow:hidden;
  animation:splashCardIn .5s .15s ease both;
}
.yor-splash-x{
  position:absolute;
  top:12px;right:12px;
  z-index:2;
  width:32px;height:32px;
  border:none;
  background:rgba(255,255,255,.9);
  color:#111;
  font-size:16px;
  cursor:pointer;
  display:flex;
  align-items:center;
  justify-content:center;
  transition:background .2s;
}
.yor-splash-x:hover{
  background:#111;
  color:#fff;
}
.yor-splash-link{
  display:block;
  text-decoration:none;
  color:#111;
}
.yor-splash-img{
  width:100%;
  display:block;
  object-fit:cover;
}
.yor-splash-caption{
  padding:16px 20px;
  font-size:.85rem;
  font-weight:600;
  font-family:'Inter',sans-serif;
  border-top:1px solid rgba(0,0,0,.08);
}
.yor-splash-link:hover .yor-splash-caption{
  background:#111;
  color:#fff;
}
.yor-splash-out{
  animation:splashOut .4s ease forwards;
}
@keyframes splashIn{from{opacity:0}to{opacity:1}}
@keyframes splashCardIn{from{opacity:0;transform:translateY(30px) scale(.96)}to{opacity:1;transform:translateY(0) scale(1)}}
@keyframes splashOut{from{opacity:1}to{opacity:0}}

/* ═══════════════════════════════════════
   GLOBAL OVERRIDES
═══════════════════════════════════════ */

/* Sfondo bianco puro */
:root{--bg:#fff}
.yoruba-site{background:#fff}

/* Header: rettangolo bianco, senza bordi, senza sfumature, più basso */
.yoruba-site .yor-header{
  background:#fff;
  border:none;
  box-shadow:none;
  height:60px;
  padding-top:10px;
  padding-bottom:10px;
}

/* Logo: immagine proporzionata */
.yoruba-site .yor-logo-img{
  height:36px;
  width:auto;
  display:block;
  object-fit:contain;
}

/* Icone social nere solide */
.yoruba-site .yor-social a{
  color:#111;
  opacity:1;
  transition:color .25s ease;
}
.yoruba-site .yor-social a:hover{
  color:#777;
}

/* Desktop: Home NON scrollabile */
#page-home{
  overflow:hidden;
}

/* Footer desktop: pulito, solo nav */
footer.yor-footer{
  background:#fff;
  border-top:none;
  box-shadow:none;
  padding:12px 48px 20px;
}

/* Nav: tap reattivi */
.yor-nav a{
  touch-action:manipulation;
}

/* ═══════════════════════════════════════
   RESPONSIVE: Single Article
═══════════════════════════════════════ */
@media(max-width:768px){
  .yor-single-hero{aspect-ratio:16/9}
  .yor-single-hero-overlay{padding:24px}
  .yor-single-body{
    grid-template-columns:1fr;
    padding:0 20px 40px;
    gap:24px;
  }
  .yor-single-meta{
    position:static;
    display:flex;flex-wrap:wrap;gap:16px;
    border-bottom:1px solid rgba(0,0,0,.08);
    padding-bottom:16px;
  }
  .yor-meta-item{border-bottom:none;padding:0}
  .yor-single-back{padding:0 20px 40px}
}

/* ═══════════════════════════════════════
   MOBILE
═══════════════════════════════════════ */
@media(max-width:768px){

  /* Header più basso su mobile */
  .yoruba-site .yor-header{
    height:50px;
    padding:8px 20px;
  }
  .yoruba-site .yor-logo-img{
    height:28px;
  }

  /* Tutte le pagine tranne Home scrollano su mobile */
  .yoruba-site .yor-page{
    overflow-y:auto;
    -webkit-overflow-scrolling:touch;
  }
  /* Home rimane non scrollabile anche su mobile */
  .yoruba-site #page-home{
    overflow:hidden;
  }

  /* Footer mobile: nav nera, testo bianco */
  footer.yor-footer{
    background:#111;
    border-top:none;
    box-shadow:none;
    padding:0;
  }
  footer.yor-footer nav{
    background:#111;
    padding:12px 20px 16px;
    padding-bottom:calc(16px + env(safe-area-inset-bottom, 0px));
  }
  footer.yor-footer .yor-nav{
    gap:12px;
    flex-wrap:nowrap;
    justify-content:center;
  }
  footer.yor-footer .yor-nav a{
    color:rgba(255,255,255,.5);
    font-size:.68rem;
  }
  footer.yor-footer .yor-nav a.active{
    color:#fff;
  }
  footer.yor-footer .yor-nav a:hover{
    color:#fff;
  }

  /* Splash page su mobile */
  .yor-splash-card{
    max-width:90%;
    max-height:75vh;
  }
}
