/* Anasayfa yazarlar — referans kart düzeni */

.ha-section {
  padding: 26px 0 34px;
  margin-top: 22px;
  background: #f9f7f2;
}

.ha-inner {
  min-width: 0;
}

.ha-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}

.ha-title {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--ink);
  position: relative;
  padding-bottom: 10px;
}

.ha-title::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 34px;
  height: 3px;
  background: var(--accent);
  border-radius: 2px;
}

.ha-title a {
  color: inherit;
  text-decoration: none;
}

.ha-title a:hover {
  color: var(--accent-ink);
}

.ha-all-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 700;
  color: var(--accent);
  text-decoration: none;
  white-space: nowrap;
  padding-bottom: 6px;
  transition: gap 0.15s ease, color 0.15s ease;
}

.ha-all-link:hover {
  color: var(--accent-ink);
  gap: 9px;
}

.ha-track-wrap {
  overflow: hidden;
  min-width: 0;
}

.ha-track {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  --ha-cols: 3;
  --ha-card-width: calc((100% - (var(--ha-cols) - 1) * 20px) / var(--ha-cols));
}

.ha-track::-webkit-scrollbar {
  display: none;
}

.ha-card {
  flex: 0 0 var(--ha-card-width);
  width: var(--ha-card-width);
  min-width: 0;
  scroll-snap-align: start;
  display: grid;
  grid-template-columns: 44% minmax(0, 1fr);
  gap: 16px;
  align-items: stretch;
  padding: 16px 18px 16px 16px;
  background: #fff;
  border: 1px solid oklch(92% 0.006 250);
  border-radius: 12px;
  text-decoration: none;
  color: inherit;
  box-shadow: 0 1px 3px oklch(15% 0.02 260 / 0.04);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.ha-card:hover {
  border-color: oklch(86% 0.01 250);
  box-shadow: 0 10px 28px -18px oklch(15% 0.04 260 / 0.16);
}

.ha-photo-wrap {
  position: relative;
  width: 100%;
  min-width: 0;
}

.ha-photo {
  width: 100%;
  aspect-ratio: 3 / 4;
  border-radius: 10px;
  overflow: hidden;
  background: oklch(94% 0.008 250);
}

.ha-photo-img,
.ha-photo-img img {
  width: 100% !important;
  height: 100% !important;
  border-radius: 10px !important;
  object-fit: cover;
  object-position: top center;
  aspect-ratio: 3 / 4 !important;
}

.ha-card-body {
  min-width: 0;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding-top: 2px;
  overflow: hidden;
}

.ha-author {
  margin: 0 0 10px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  width: 100%;
  min-width: 0;
}

.ha-author-given,
.ha-author-surname {
  display: block;
  font-family: var(--font-sans);
  letter-spacing: 0.035em;
  text-transform: uppercase;
  color: var(--accent);
  line-height: 1.15;
}

.ha-author-given {
  font-size: 14px;
  font-weight: 500;
}

.ha-author-surname {
  font-size: 16px;
  font-weight: 800;
}

.ha-rule {
  display: block;
  width: 32px;
  height: 3px;
  background: var(--accent);
  border-radius: 2px;
  margin-bottom: 16px;
}

.ha-card-title {
  margin: 6px 0 0;
  flex: 1 1 auto;
  width: 100%;
  min-width: 0;
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.42;
  color: var(--ink);
  overflow-wrap: break-word;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.ha-cta {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: auto;
  padding-top: 14px;
  align-self: flex-end;
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 700;
  color: var(--ink-2);
  transition: gap 0.15s ease;
}

.ha-cta svg {
  flex-shrink: 0;
  color: var(--accent);
}

.ha-card:hover .ha-cta {
  gap: 8px;
}

@media (min-width: 1025px) {
  .ha-track {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
    overflow: visible;
    --ha-card-width: auto;
  }

  .ha-card {
    flex: none;
    width: auto;
    min-width: 0;
  }
}

/* Tablet / mobil: masaüstü kart genişliği — metin sütunu aynı satır kırılımı */
@media (max-width: 1024px) {
  .ha-track {
    --ha-card-width: min(100%, 353px);
    gap: 16px;
  }

  .ha-card {
    padding: 14px 16px 14px 14px;
  }
}

@media (max-width: 720px) {
  .ha-section {
    padding: 22px 0 28px;
    margin-top: 16px;
  }

  .ha-title {
    font-size: 22px;
  }

  .ha-all-link {
    font-size: 12px;
  }

  .ha-track {
    gap: 12px;
  }

  .ha-card {
    padding: 12px 14px 12px 12px;
    gap: 12px;
  }

  .ha-cta {
    padding-top: 10px;
    font-size: 11px;
  }
}
