/* ==========================================================================
   Önce Öğrenci — Hikâyeler
   blog.css'in hero, rozet ve süzgeç bileşenleri üstüne yüklenir:
   öne çıkan video, video kartları, katılım bandı ve oynatıcı penceresi.
   ========================================================================== */

/* ------------------------------------------------------------------ hero */
.hk-hero__inner {
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
}

.hk-hero h1 {
  max-width: 13ch;
}

/* ------------------------------------------------------------------ ortak rozetler */
.hk-tur,
.hk-sure {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 11px;
  border-radius: 999px;
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  backdrop-filter: blur(8px);
}

.hk-tur {
  background: rgba(10, 12, 22, 0.62);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.16);
}

.hk-sure {
  background: rgba(10, 12, 22, 0.72);
  font-variant-numeric: tabular-nums;
}

/* ------------------------------------------------------------------ öne çıkan */
.hk-one {
  position: relative;
}

.hk-one::before {
  position: absolute;
  inset: 8% -4% -8% 8%;
  z-index: 0;
  border-radius: 32px;
  background: radial-gradient(60% 60% at 60% 50%, rgba(217, 58, 40, 0.42), transparent 70%);
  filter: blur(24px);
  content: "";
}

.hk-one__dugme {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 26px;
  color: #fff;
  background: #0b0d16;
  box-shadow: 0 36px 80px rgba(0, 0, 0, 0.45);
  text-align: left;
  cursor: pointer;
}

.hk-one__kapak {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.hk-one__dugme::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(8, 10, 18, 0) 38%, rgba(8, 10, 18, 0.88) 100%);
  content: "";
}

.hk-one__dugme:hover .hk-one__kapak {
  transform: scale(1.04);
}

.hk-one__dugme:focus-visible {
  outline: 3px solid rgba(240, 91, 69, 0.7);
  outline-offset: 4px;
}

/* ortadaki büyük oynat düğmesi ve nabız halkası */
.hk-one__oynat {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 2;
  display: grid;
  width: 84px;
  height: 84px;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: var(--btn);
  box-shadow: 0 18px 44px rgba(150, 20, 12, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.25);
  transform: translate(-50%, -62%);
  transition: transform 0.25s ease;
}

.hk-one__oynat::before {
  position: absolute;
  inset: -10px;
  border: 2px solid rgba(240, 91, 69, 0.5);
  border-radius: 50%;
  content: "";
  animation: hkNabiz 2.4s ease-out infinite;
}

.hk-one__oynat svg {
  width: 32px;
  height: 32px;
  margin-left: 4px;
}

.hk-one__dugme:hover .hk-one__oynat {
  transform: translate(-50%, -62%) scale(1.08);
}

.hk-one__icerik {
  position: absolute;
  right: 24px;
  bottom: 22px;
  left: 24px;
  z-index: 2;
  display: grid;
  gap: 8px;
}

.hk-one__ust {
  display: flex;
  gap: 8px;
}

.hk-one__ust .hk-tur {
  border: 0;
  background: var(--btn);
  box-shadow: none;
}

.hk-one__icerik strong {
  max-width: 26ch;
  font-size: clamp(1.15rem, 2vw, 1.5rem);
  font-weight: 800;
  line-height: 1.25;
}

.hk-one__meta {
  color: rgba(255, 255, 255, 0.66);
  font-size: 0.85rem;
  font-weight: 600;
}

@keyframes hkNabiz {
  from {
    opacity: 0.9;
    transform: scale(0.9);
  }
  to {
    opacity: 0;
    transform: scale(1.35);
  }
}

/* ------------------------------------------------------------------ liste */
.hk-liste {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

/* panelde hiç yayında hikâye yoksa */
.hk-bos {
  grid-column: 1 / -1;
  padding: 56px 16px;
  color: var(--bl-muted);
  font-weight: 600;
  text-align: center;
}

.hk-one[hidden] {
  display: none;
}

.hk-kart {
  border: 1px solid var(--bl-line);
  border-radius: 18px;
  background: #fff;
  overflow: hidden;
  transition: border-color 0.24s ease, box-shadow 0.24s ease, transform 0.24s ease;
}

.hk-kart:hover {
  border-color: rgba(217, 58, 40, 0.3);
  box-shadow: 0 20px 44px rgba(12, 18, 44, 0.1);
  transform: translateY(-3px);
}

.hk-kart__dugme {
  display: flex;
  width: 100%;
  height: 100%;
  flex-direction: column;
  padding: 12px;
  border: 0;
  color: inherit;
  background: none;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.hk-kart__dugme:focus-visible {
  outline: 3px solid rgba(217, 58, 40, 0.5);
  outline-offset: -3px;
  border-radius: 18px;
}

.hk-kart__kapak {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 13px;
  background: #11131d;
}

.hk-kart__kapak img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.hk-kart__kapak::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(8, 10, 18, 0.05) 40%, rgba(8, 10, 18, 0.5) 100%);
  content: "";
}

.hk-kart:hover .hk-kart__kapak img {
  transform: scale(1.06);
}

.hk-kart__kapak .hk-tur {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 1;
}

.hk-kart__kapak .hk-sure {
  position: absolute;
  right: 10px;
  bottom: 10px;
  z-index: 1;
}

.hk-kart__oynat {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 1;
  display: grid;
  width: 54px;
  height: 54px;
  place-items: center;
  border-radius: 50%;
  color: var(--bl-red);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 12px 28px rgba(8, 10, 18, 0.35);
  transform: translate(-50%, -50%) scale(0.92);
  transition: transform 0.25s ease, color 0.25s ease, background 0.25s ease;
}

.hk-kart__oynat svg {
  width: 22px;
  height: 22px;
  margin-left: 3px;
}

.hk-kart:hover .hk-kart__oynat {
  color: #fff;
  background: var(--bl-red);
  transform: translate(-50%, -50%) scale(1);
}

.hk-kart__govde {
  display: grid;
  gap: 7px;
  padding: 14px 6px 6px;
}

.hk-kart__govde strong {
  color: var(--bl-ink);
  font-size: 1.02rem;
  font-weight: 800;
  line-height: 1.35;
}

.hk-kart__ozet {
  color: var(--bl-muted);
  font-size: 0.86rem;
  line-height: 1.55;
}

.hk-kart__meta {
  margin-top: 4px;
  color: #9a9db0;
  font-size: 0.78rem;
  font-weight: 600;
}

/* ------------------------------------------------------------------ katıl bandı */
.hk-katil {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-top: 46px;
  padding: 34px 38px;
  border-radius: 24px;
  color: #fff;
  background:
    radial-gradient(60% 120% at 92% 10%, rgba(240, 91, 69, 0.3), transparent 62%),
    linear-gradient(118deg, #4a1519 0%, #330f14 46%, #1d070b 100%);
}

.hk-katil__ust {
  color: #ffb3a5;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hk-katil h2 {
  margin-top: 8px;
  font-size: clamp(1.35rem, 2.4vw, 1.8rem);
  font-weight: 800;
  line-height: 1.2;
}

.hk-katil p {
  margin-top: 8px;
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.93rem;
}

.hk-katil__eylem {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* ------------------------------------------------------------------ oynatıcı */
/* genişlik, 16:9 videonun ekran yüksekliğine de sığacağı değerle sınırlanır */
.hk-oynatici {
  width: min(100% - 32px, 980px, (100svh - 200px) * 16 / 9 + 36px);
  max-width: none;
  max-height: calc(100svh - 16px);
  overflow: auto;
  margin: auto;
  padding: 0;
  border: 0;
  color: #fff;
  background: transparent;
}

.hk-oynatici::backdrop {
  background: rgba(5, 7, 14, 0.84);
  backdrop-filter: blur(6px);
}

.hk-oynatici[open] .hk-oynatici__kutu {
  animation: hkAcil 0.32s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.hk-oynatici__kutu {
  display: grid;
  gap: 14px;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 24px;
  background: linear-gradient(162deg, #0b111d 0%, #13080d 100%);
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.6);
}

.hk-oynatici__ust {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 2px 4px 0;
}

.hk-oynatici__tur {
  color: #ffb3a5;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.hk-oynatici__ust h2 {
  margin-top: 4px;
  font-size: clamp(1.05rem, 2vw, 1.3rem);
  font-weight: 800;
  line-height: 1.3;
}

.hk-oynatici__kapat,
.hk-gezin {
  display: grid;
  flex: none;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 50%;
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.hk-oynatici__kapat:hover,
.hk-gezin:hover {
  border-color: rgba(240, 91, 69, 0.6);
  background: rgba(240, 91, 69, 0.18);
}

.hk-oynatici__kapat svg,
.hk-gezin svg {
  width: 18px;
  height: 18px;
}

.hk-oynatici__video {
  overflow: hidden;
  border-radius: 16px;
  background: #000;
}

.hk-oynatici__video video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
}

.hk-oynatici__alt {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 0 4px 2px;
}

.hk-oynatici__ozet {
  color: rgba(255, 255, 255, 0.66);
  font-size: 0.9rem;
  line-height: 1.55;
}

.hk-oynatici__gezin {
  display: flex;
  flex: none;
  gap: 8px;
}

@keyframes hkAcil {
  from {
    opacity: 0;
    transform: translateY(16px) scale(0.97);
  }
}

/* ------------------------------------------------------------------ duyarlı */
@media (max-width: 1000px) {
  .hk-hero__inner {
    grid-template-columns: minmax(0, 1fr);
  }

  .hk-liste {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 620px) {
  .hk-one__dugme {
    aspect-ratio: 4 / 3;
  }

  .hk-one__oynat,
  .hk-one__dugme:hover .hk-one__oynat {
    width: 64px;
    height: 64px;
    transform: translate(-50%, -118%);
  }

  .hk-one__oynat svg {
    width: 24px;
    height: 24px;
  }

  .hk-one__icerik {
    right: 16px;
    bottom: 14px;
    left: 16px;
  }

  .hk-liste {
    grid-template-columns: minmax(0, 1fr);
  }

  .hk-katil {
    padding: 26px 22px;
  }

  .hk-katil__eylem,
  .hk-katil__eylem .btn {
    flex: 1 1 auto;
  }

  .hk-oynatici {
    width: calc(100% - 20px);
  }

  .hk-oynatici__kutu {
    padding: 12px;
    border-radius: 18px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hk-one__oynat::before,
  .hk-oynatici[open] .hk-oynatici__kutu {
    animation: none;
  }

  .hk-one__kapak,
  .hk-kart__kapak img,
  .hk-kart {
    transition: none;
  }
}
