/* ===== Yazar profil — editorial hero + makale arşivi ===== */

.yp-page {
  background: #f9f7f2;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow-x: clip;
}

.yp-shell {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

.yp-inner {
  padding-top: 24px;
  padding-bottom: 56px;
  min-width: 0;
}

/* Breadcrumb */
.yp-bc {
  margin-bottom: 18px;
}

.yp-bc-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 8px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-3);
  letter-spacing: -0.01em;
}

.yp-bc-list a {
  color: var(--ink-3);
  text-decoration: none;
  transition: color 0.15s;
}

.yp-bc-list a:hover {
  color: var(--ink);
}

.yp-bc-list [aria-current="page"] {
  color: var(--ink-2);
}

/* Hero — iki bantlı banner, fotoğraf bindirmeli */
.yp-hero {
  position: relative;
  margin-bottom: 28px;
  border-radius: calc(var(--radius) + 2px);
  overflow: visible;
  box-shadow:
    0 1px 0 oklch(100% 0 0 / 0.08) inset,
    0 24px 48px -28px oklch(22% 0.04 250 / 0.55);
}

.yp-hero-band {
  position: relative;
}

.yp-hero-band--top {
  min-height: 112px;
  padding: 28px 28px 28px 168px;
  border-radius: calc(var(--radius) + 2px) calc(var(--radius) + 2px) 0 0;
  overflow: hidden;
  background:
    radial-gradient(120% 180% at 100% 0%, oklch(42% 0.09 240 / 0.45), transparent 55%),
    linear-gradient(118deg, oklch(32% 0.055 248) 0%, oklch(26% 0.045 258) 52%, oklch(22% 0.04 265) 100%);
}

.yp-hero-band--top::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, oklch(100% 0 0 / 0.06) 0%, transparent 42%);
  pointer-events: none;
}

.yp-hero-band--bottom {
  padding: 14px 24px 14px 168px;
  background:
    linear-gradient(180deg, oklch(94% 0.018 75) 0%, oklch(91% 0.022 72) 100%);
  border-top: 1px solid oklch(100% 0 0 / 0.35);
  border-radius: 0 0 calc(var(--radius) + 2px) calc(var(--radius) + 2px);
  overflow: visible;
  z-index: 2;
}

.yp-hero-photo {
  position: absolute;
  left: 28px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  width: 128px;
  height: 128px;
}

.yp-hero-photo-ring {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  padding: 4px;
  background: linear-gradient(145deg, oklch(88% 0.04 75), oklch(100% 0 0), oklch(78% 0.06 240));
  box-shadow:
    0 18px 36px -14px oklch(18% 0.04 260 / 0.55),
    0 0 0 1px oklch(100% 0 0 / 0.65);
}

.yp-hero-photo-ring::before {
  content: "";
  position: absolute;
  inset: -8px;
  border-radius: 50%;
  border: 1px solid oklch(100% 0 0 / 0.18);
  pointer-events: none;
}

.yp-hero-photo-img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover;
  border-radius: 50%;
  display: block;
}

.yp-hero-copy {
  position: relative;
  z-index: 2;
  min-width: 0;
}

.yp-hero-role {
  margin: 0 0 6px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: oklch(82% 0.03 250 / 0.85);
}

.yp-hero-name {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(24px, 3.2vw, 34px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.08;
  color: oklch(98% 0.004 250);
  text-wrap: balance;
}

.yp-hero-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 10px;
}

.yp-hero-nav-link {
  appearance: none;
  border: 0;
  background: transparent;
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: -0.012em;
  color: var(--ink);
  padding: 8px 14px;
  border-radius: 999px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: background 0.18s, color 0.18s, box-shadow 0.18s;
}

.yp-hero-nav-link:hover,
.yp-hero-nav-link.is-open {
  background: oklch(100% 0 0 / 0.72);
  box-shadow: 0 1px 0 oklch(100% 0 0 / 0.8) inset;
}

.yp-hero-nav-link.is-on {
  background: var(--ink);
  color: oklch(98% 0.004 250);
}

.yp-hero-nav-link--drop svg {
  transition: transform 0.18s;
}

.yp-hero-nav-link--drop.is-open svg {
  transform: rotate(180deg);
}

.yp-contact-wrap {
  position: relative;
}

.yp-contact-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 260px;
  padding: 8px;
  border-radius: var(--radius-sm);
  background: var(--paper);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  z-index: 40;
  animation: yp-drop-in 0.18s ease;
}

@keyframes yp-drop-in {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.yp-contact-menu a,
.yp-contact-menu button {
  display: block;
  width: 100%;
  text-align: left;
  padding: 10px 12px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-2);
  text-decoration: none;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}

.yp-contact-menu a:hover,
.yp-contact-menu button:hover {
  background: var(--bg-2);
  color: var(--ink);
}

/* Hakkında paneli */
.yp-about {
  padding: 28px 32px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.yp-about-title {
  margin: 0 0 14px;
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--ink);
}

.yp-about-text {
  margin: 0 0 24px;
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink-2);
  max-width: 62ch;
}

.yp-about-meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin: 0;
}

.yp-about-meta div {
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  background: var(--bg);
  border: 1px solid var(--line);
}

.yp-about-meta dt {
  margin: 0 0 4px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.yp-about-meta dd {
  margin: 0;
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
}

.yp-about-meta a {
  color: var(--accent-2);
}

/* Sayım */
.yp-count {
  margin: 0 0 14px;
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-3);
  letter-spacing: -0.01em;
}

.yp-count strong {
  font-weight: 800;
  color: var(--ink-2);
}

/* Filtre çubuğu */
.yp-toolbar {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(180px, 220px);
  gap: 12px;
  margin-bottom: 22px;
  align-items: stretch;
}

.yp-field {
  position: relative;
  display: flex;
  align-items: center;
  min-width: 0;
}

.yp-field-icon {
  position: absolute;
  left: 14px;
  color: var(--ink-3);
  pointer-events: none;
  flex-shrink: 0;
}

.yp-input,
.yp-select {
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 500;
  width: 100%;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--paper);
  transition: border-color 0.15s, box-shadow 0.15s, background 0.15s;
}

.yp-field--search .yp-input {
  padding: 13px 16px 13px 42px;
}

.yp-field--date {
  gap: 8px;
  padding: 0 12px 0 42px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--paper);
}

.yp-field--date:focus-within {
  border-color: var(--accent-2);
  box-shadow: 0 0 0 3px oklch(48% 0.16 255 / 0.12);
}

.yp-field--date .yp-field-icon {
  left: 14px;
}

.yp-input--date {
  border: 0;
  padding: 12px 4px;
  background: transparent;
  min-width: 0;
  flex: 1;
}

.yp-input--date:focus {
  outline: none;
  box-shadow: none;
}

.yp-date-sep {
  color: var(--ink-3);
  font-size: 12px;
  flex-shrink: 0;
}

.yp-input::placeholder {
  color: var(--ink-3);
}

.yp-input:focus {
  outline: none;
  border-color: var(--accent-2);
  box-shadow: 0 0 0 3px oklch(48% 0.16 255 / 0.12);
}

.yp-field--select {
  position: relative;
}

.yp-select {
  appearance: none;
  padding: 13px 36px 13px 14px;
  cursor: pointer;
}

.yp-select-chevron {
  position: absolute;
  right: 14px;
  color: var(--ink-3);
  pointer-events: none;
}

/* Makale listesi */
.yp-feed {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.yp-card {
  position: relative;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.yp-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(180deg, var(--accent), var(--accent-2));
  opacity: 0;
  transition: opacity 0.22s ease;
}

.yp-card:hover {
  transform: translateY(-2px);
  border-color: var(--line-2);
  box-shadow: 0 16px 40px -24px oklch(18% 0.04 260 / 0.28);
}

.yp-card:hover::before {
  opacity: 1;
}

.yp-card-link {
  display: block;
  padding: 22px 24px 22px 26px;
  color: inherit;
  text-decoration: none;
}

.yp-card-link:hover {
  color: inherit;
}

.yp-card-title {
  margin: 0 0 8px;
  font-family: var(--font-serif);
  font-size: clamp(19px, 2.2vw, 24px);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.02em;
  color: var(--ink);
  transition: color 0.15s;
}

.yp-card:hover .yp-card-title {
  color: var(--accent-2);
}

.yp-card-date {
  display: block;
  margin-bottom: 10px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-3);
  letter-spacing: -0.01em;
}

.yp-card-excerpt {
  margin: 0;
  font-size: 15px;
  line-height: 1.58;
  color: var(--ink-2);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.yp-empty {
  padding: 48px 24px;
  text-align: center;
  color: var(--ink-3);
  font-size: 15px;
  background: var(--paper);
  border: 1px dashed var(--line);
  border-radius: var(--radius);
}

.yp-more-wrap {
  display: flex;
  justify-content: center;
  margin-top: 28px;
}

.yp-more-btn {
  appearance: none;
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: -0.012em;
  padding: 12px 22px;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, color 0.15s, box-shadow 0.15s;
}

.yp-more-btn:hover {
  border-color: var(--accent-2);
  color: var(--accent-2);
  box-shadow: var(--shadow);
}

/* Responsive */
@media (max-width: 900px) {
  .yp-toolbar {
    grid-template-columns: 1fr 1fr;
  }

  .yp-field--search {
    grid-column: 1 / -1;
  }

  .yp-field--date {
    grid-column: 1 / -1;
  }

  .yp-about-meta {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .yp-shell {
    padding-left: var(--gutter);
    padding-right: var(--gutter);
    box-sizing: border-box;
  }

  .yp-page .container.yp-inner {
    max-width: 100%;
    width: 100%;
    margin-left: 0;
    margin-right: 0;
    padding-left: 0;
    padding-right: 0;
  }

  .yp-inner {
    padding-top: 16px;
    padding-bottom: 36px;
  }

  .yp-hero-band--top {
    min-height: 96px;
    padding: 72px 18px 18px;
  }

  .yp-hero-band--bottom {
    padding: 12px 16px 14px;
  }

  .yp-hero-photo {
    left: 50%;
    top: 18px;
    transform: translateX(-50%);
    width: 96px;
    height: 96px;
  }

  .yp-hero-copy {
    text-align: center;
  }

  .yp-hero-nav {
    justify-content: center;
  }

  .yp-toolbar {
    grid-template-columns: 1fr;
  }

  .yp-card-link {
    padding: 18px 18px 18px 20px;
  }

  .yp-about {
    padding: 22px 18px;
  }
}

@media (max-width: 420px) {
  .yp-hero-name {
    font-size: 22px;
  }

  .yp-field--date {
    flex-wrap: wrap;
    padding-bottom: 8px;
  }

  .yp-date-sep {
    display: none;
  }
}
