/* ======================================================
   HOME.CSS — Ceza Hukuk Rehberi
   Front-page (Apple vari minimal, net hiyerarşi)
   ====================================================== */

.ygmr-front{
  padding: 18px 0 56px;
}

/* --------------------------------------------
   TYPOGRAPHY / BASE HELPERS
-------------------------------------------- */

.ygmr-h2{
  margin: 0;
  font-size: 18px;
  letter-spacing: -0.02em;
  color: rgba(0,0,0,.90);
}

.ygmr-muted{
  color: rgba(0,0,0,.60);
  margin: 0;
}

.ygmr-link{
  font-size: 13.5px;
  color: rgba(0,0,0,.74);
  text-decoration: none;
}
.ygmr-link:hover{ text-decoration: underline; }

/* Section spacing rhythm */
.ygmr-intro,
.ygmr-section{
  margin-top: 28px;
}

/* --------------------------------------------
   HERO (SENİN BEĞENDİĞİN KISIM - KORUNDU)
-------------------------------------------- */

.ygmr-hero{
  background: #fff;
  border: 1px solid rgba(0,0,0,.08);
  border-radius: 22px;
  padding: 28px 26px;
  margin: 6px 0 18px;
}

.ygmr-hero__inner{
  max-width: 820px;
}

.ygmr-hero__title{
  margin: 0 0 10px;
  font-size: 34px;
  line-height: 1.08;
  letter-spacing: -0.035em;
  font-weight: 650;
}

.ygmr-hero__lead{
  margin: 0 0 18px;
  font-size: 15.5px;
  line-height: 1.7;
  color: rgba(0,0,0,.64);
}

.ygmr-hero__cta{
  display:flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 14px;
}

.ygmr-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  height: 38px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid rgba(0,0,0,.14);
  background: #f5f5f7;
  color: rgba(0,0,0,.86);
  text-decoration:none;
  font-size: 13.5px;
  transition: background .15s ease, transform .15s ease;
}
.ygmr-btn:hover{
  background: #ececef;
  transform: translateY(-1px);
}
.ygmr-btn--ghost{
  background: #fff;
}

/* Search box */
.ygmr-home-search{ margin-top: 12px; }

.ygmr-home-search__box{
  display:flex;
  align-items:center;
  gap: 10px;
  background: #f5f5f7;
  border: 1px solid rgba(0,0,0,.10);
  border-radius: 999px;
  padding: 10px 12px;
}

.ygmr-home-search__icon svg{
  width: 18px;
  height: 18px;
  color: rgba(0,0,0,.55);
}

.ygmr-home-search__input{
  width: 100%;
  border: 0;
  outline: none;
  font-size: 15px;
  background: transparent;
  color: rgba(0,0,0,.86);
}

.ygmr-home-search__btn{
  border: 1px solid rgba(0,0,0,.14);
  background: #fff;
  border-radius: 999px;
  height: 34px;
  padding: 0 12px;
  font-size: 13px;
  color: rgba(0,0,0,.82);
  cursor: pointer;
}
.ygmr-home-search__btn:hover{ background: #f0f0f2; }

/* Chips */
.ygmr-home-search__chips{
  display:flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 10px;
}

.ygmr-chip{
  display:inline-flex;
  align-items:center;
  height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid rgba(0,0,0,.10);
  background: #fff;
  color: rgba(0,0,0,.78);
  text-decoration:none;
  font-size: 12.5px;
}
.ygmr-chip:hover{ background: #f5f5f7; }

/* --------------------------------------------
   INTRO (ŞU AN KÖTÜ GÖRÜNEN METİN BLOĞU → DÜZEN)
-------------------------------------------- */

.ygmr-intro{
  padding: 18px 18px 16px;
  background: #fff;
  border: 1px solid rgba(0,0,0,.06);
  border-radius: 18px;
}

.ygmr-prose{
  margin-top: 10px;
  max-width: 920px;
  color: rgba(0,0,0,.72);
  font-size: 15px;
  line-height: 1.8;
}

.ygmr-prose p{
  margin: 0 0 12px;
}

/* Intro içinde H2 biraz daha “section title” gibi dursun */
.ygmr-intro .ygmr-h2{
  font-size: 17px;
  letter-spacing: -0.02em;
}

/* --------------------------------------------
   SECTION HEAD (Kategoriler / Öne çıkanlar üst başlığı)
-------------------------------------------- */

.ygmr-section__head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 14px;
  margin-bottom: 12px;
}

.ygmr-section__head .ygmr-h2{
  display:flex;
  align-items:center;
  gap: 10px;
}

.ygmr-section__head .ygmr-h2::before{
  content:"";
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: rgba(0,0,0,.14);
}

/* --------------------------------------------
   CATEGORY GRID (ŞU AN “zayıf kart” → landing hissi)
-------------------------------------------- */

.ygmr-catgrid{
  display:grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.ygmr-catcard{
  background: #fff;
  border: 1px solid rgba(0,0,0,.08);
  border-radius: 18px;
  overflow: hidden;
  transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease;
}

.ygmr-catcard__a{
  display:block;
  padding: 16px 16px 14px;
  text-decoration:none;
  color: inherit;
}

.ygmr-catcard__top{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap: 10px;
}

.ygmr-catcard__name{
  margin: 0;
  font-size: 15px;
  letter-spacing: -0.01em;
  color: rgba(0,0,0,.90);
}

.ygmr-catcard__desc{
  margin: 8px 0 0;
  font-size: 13.5px;
  line-height: 1.65;
  color: rgba(0,0,0,.66);
}

.ygmr-catcard__cta{
  display:inline-flex;
  align-items:center;
  gap: 8px;
  margin-top: 12px;
  font-size: 13px;
  color: rgba(0,0,0,.78);
}

.ygmr-catcard__cta::after{
  content:"→";
  opacity: .75;
}

.ygmr-catcard__chev{
  width: 9px;
  height: 9px;
  border-right: 2px solid rgba(0,0,0,.30);
  border-bottom: 2px solid rgba(0,0,0,.30);
  transform: rotate(-45deg);
  margin-top: 4px;
  flex: 0 0 auto;
}

.ygmr-catcard:hover{
  transform: translateY(-2px);
  border-color: rgba(0,0,0,.12);
  box-shadow: 0 10px 30px rgba(0,0,0,.06);
}

/* --------------------------------------------
   POST GRID (Öne çıkan yazılar → kart hiyerarşisi)
-------------------------------------------- */

.ygmr-postgrid{
  display:grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.ygmr-postcard{
  background: #fff;
  border: 1px solid rgba(0,0,0,.08);
  border-radius: 18px;
  overflow: hidden;
  transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease;
}

.ygmr-postcard__a{
  display:block;
  padding: 16px 16px 14px;
  text-decoration:none;
  color: inherit;
}

.ygmr-postcard__title{
  margin: 0 0 8px;
  font-size: 15px;
  line-height: 1.35;
  letter-spacing: -0.01em;
  color: rgba(0,0,0,.92);
}

.ygmr-postcard__excerpt{
  margin: 0 0 12px;
  font-size: 13.5px;
  line-height: 1.65;
  color: rgba(0,0,0,.66);
}

.ygmr-postcard__meta{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 10px;
  font-size: 12.5px;
  color: rgba(0,0,0,.55);
}

.ygmr-postcard__meta::after{
  content:"Devam →";
  color: rgba(0,0,0,.70);
}

.ygmr-postcard:hover{
  transform: translateY(-2px);
  border-color: rgba(0,0,0,.12);
  box-shadow: 0 10px 30px rgba(0,0,0,.06);
}

/* --------------------------------------------
   MOBILE
-------------------------------------------- */

@media (max-width: 980px){
  .ygmr-catgrid{ grid-template-columns: 1fr; }
  .ygmr-postgrid{ grid-template-columns: 1fr; }
  .ygmr-intro{ padding: 16px 14px 14px; }
}

@media (max-width: 680px){
  .ygmr-hero{ padding: 20px 16px; }
  .ygmr-hero__title{ font-size: 24px; }
  .ygmr-hero__lead{ font-size: 14.5px; }
  .ygmr-home-search__box{ padding: 9px 10px; }
  .ygmr-postcard__a, .ygmr-catcard__a{ padding: 14px 14px 12px; }
}
/* PHP’ye dokunmadan: home body içeriklerini içe al */
.home .site-main,
.home main{
  padding-left: 18px;
  padding-right: 18px;
}
.home .site-main > *,
.home main > *{
  max-width: 1120px;
  margin-left: auto;
  margin-right: auto;
}