/* Blog — liste ve yazı detayı */

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

@media only screen and (min-width: 768px) {
  .yd-blog-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media only screen and (min-width: 1200px) {
  .yd-blog-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

.yd-blog-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  text-decoration: none;
  color: inherit;
}

.yd-blog-card__media {
  position: relative;
  overflow: hidden;
  border-radius: 1.2rem;
  aspect-ratio: 16 / 10;
  background: rgba(127, 127, 127, .12);
}

.yd-blog-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .6s cubic-bezier(.16, 1, .3, 1);
}

.yd-blog-card:hover .yd-blog-card__media img { transform: scale(1.05); }

.yd-blog-card__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .8rem;
  margin-top: 1.6rem;
  font-size: 1.3rem;
  opacity: .65;
}

.yd-blog-card__title {
  margin-top: .8rem;
  font-size: 2.2rem;
  line-height: 1.25;
  font-weight: 600;
}

.yd-blog-card:hover .yd-blog-card__title { text-decoration: underline; }

.yd-blog-card__excerpt {
  margin-top: 1rem;
  font-size: 1.5rem;
  line-height: 1.6;
  opacity: .7;
}

.yd-blog-filters {
  display: flex;
  flex-wrap: wrap;
  gap: .8rem;
  margin-bottom: 3.2rem;
}

.yd-blog-empty {
  padding: 6rem 2rem;
  text-align: center;
  border: 1px dashed rgba(127, 127, 127, .35);
  border-radius: 1.2rem;
}

.yd-pagination {
  display: flex;
  flex-wrap: wrap;
  gap: .8rem;
  align-items: center;
  justify-content: center;
  margin-top: 5.6rem;
}

/* --- Yazı detayı --- */

.yd-article {
  max-width: 78rem;
  margin: 0 auto;
  font-size: 1.7rem;
  line-height: 1.75;
}

.yd-article > * + * { margin-top: 1.6rem; }

.yd-article h2 {
  margin-top: 4.8rem;
  margin-bottom: 1.6rem;
  font-size: 3.2rem;
  line-height: 1.2;
  font-weight: 600;
}

.yd-article h3 {
  margin-top: 3.6rem;
  margin-bottom: 1.2rem;
  font-size: 2.4rem;
  line-height: 1.25;
  font-weight: 600;
}

.yd-article h4 {
  margin-top: 2.8rem;
  font-size: 2rem;
  font-weight: 600;
}

.yd-article p { margin-bottom: 1.6rem; }

.yd-article a {
  text-decoration: underline;
  text-underline-offset: .3rem;
}

.yd-article ul,
.yd-article ol {
  margin: 0 0 1.6rem 2.2rem;
  padding: 0;
}

.yd-article ul { list-style: disc; }
.yd-article ol { list-style: decimal; }
.yd-article li { margin-bottom: .8rem; }

.yd-article img,
.yd-article video,
.yd-article iframe {
  max-width: 100%;
  height: auto;
  border-radius: 1.2rem;
  margin: 2.4rem 0;
}

.yd-article figure { margin: 2.4rem 0; }

.yd-article figcaption {
  margin-top: .8rem;
  font-size: 1.3rem;
  opacity: .6;
  text-align: center;
}

.yd-article blockquote {
  margin: 2.4rem 0;
  padding: 1.6rem 2.4rem;
  border-left: 3px solid currentColor;
  font-size: 1.9rem;
  line-height: 1.5;
  opacity: .85;
}

.yd-article pre {
  margin: 2.4rem 0;
  padding: 2rem;
  border-radius: 1.2rem;
  background: #16161a;
  color: #eaeaea;
  overflow-x: auto;
  font-size: 1.4rem;
  line-height: 1.6;
}

.yd-article code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: .92em;
}

.yd-article :not(pre) > code {
  padding: .2rem .6rem;
  border-radius: .5rem;
  background: rgba(127, 127, 127, .18);
}

.yd-article table {
  width: 100%;
  margin: 2.4rem 0;
  border-collapse: collapse;
  font-size: 1.5rem;
}

.yd-article th,
.yd-article td {
  padding: 1rem 1.2rem;
  border: 1px solid rgba(127, 127, 127, .28);
  text-align: left;
}

.yd-article th { font-weight: 600; background: rgba(127, 127, 127, .1); }

.yd-article hr {
  margin: 4rem 0;
  border: 0;
  border-top: 1px solid rgba(127, 127, 127, .28);
}

.yd-article-cover {
  width: 100%;
  border-radius: 1.6rem;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.yd-article-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.2rem;
  font-size: 1.4rem;
  opacity: .7;
}

.yd-share {
  display: flex;
  flex-wrap: wrap;
  gap: .8rem;
  align-items: center;
  margin-top: 4rem;
  padding-top: 2.4rem;
  border-top: 1px solid rgba(127, 127, 127, .25);
}
