/* ==========================================================================
   IC Nükleer Teknoloji — Hero içindeki haber şeridi
   Sürüklenebilir kart rayı, sayfalama ve yön düğmeleri
   ========================================================================== */

.news-dock {
  position: absolute;
  right: clamp(24px, 5vw, 82px);
  bottom: 28px;
  z-index: 4;
  width: min(860px, 52vw);
}

/* --------------------------------------------------------------------------
   Başlık satırı
   -------------------------------------------------------------------------- */
.news-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 5px 10px;
}

.news-heading > span {
  color: #ffffffe6;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-shadow: 0 2px 12px #041f1747;
}

.news-controls {
  display: flex;
  align-items: center;
  gap: 5px;
}

.news-controls button {
  display: grid;
  place-items: center;
  width: 27px;
  height: 27px;
  padding: 0;
  border: 1px solid #fff6;
  border-radius: 50%;
  background: #ffffff29;
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  color: #fff;
  font-size: 18px;
  line-height: 1;
  transition: color 0.25s, background 0.25s, transform 0.25s;
}

.news-controls button:hover {
  background: #0d7858;
  color: #fff;
  transform: translateY(-1px);
}

.news-heading a {
  display: flex;
  align-items: center;
  gap: 7px;
  color: #ffffffc7;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.news-heading svg {
  width: 13px;
  height: 13px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5px;
}

/* --------------------------------------------------------------------------
   Kart rayı
   -------------------------------------------------------------------------- */
.news-window {
  overflow: hidden;
  border-radius: 16px;
  cursor: grab;
  touch-action: pan-y;
  -webkit-user-select: none;
  user-select: none;
}

.news-window.dragging {
  cursor: grabbing;
}

.news-track {
  display: flex;
  gap: 14px;
  transition: transform 0.8s cubic-bezier(0.22, 0.75, 0.18, 1);
}

.news-track.no-transition,
.news-window.dragging .news-track {
  transition: none;
}

/* --------------------------------------------------------------------------
   Kart
   -------------------------------------------------------------------------- */
.news-card {
  position: relative;
  display: grid;
  grid-template-columns: 45% 1fr;
  flex: 0 0 44%;
  min-height: 168px;
  overflow: hidden;
  border: 1px solid #ffffff7a;
  border-radius: 19px;
  background: linear-gradient(135deg, #ffffff70, #daf0e645);
  -webkit-backdrop-filter: blur(32px) saturate(1.24);
  backdrop-filter: blur(32px) saturate(1.24);
  box-shadow: 0 18px 44px #04251b2e, inset 0 1px #ffffffe6, inset 0 -1px #0746340f;
}

.news-card::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 2;
  border-radius: inherit;
  background: linear-gradient(125deg, #ffffff61, #0000 32% 70%, #ffffff1f);
  pointer-events: none;
}

.news-card > img {
  width: calc(100% - 12px);
  height: calc(100% - 12px);
  min-height: 156px;
  margin: 6px;
  border-radius: 14px;
  object-fit: cover;
  pointer-events: none;
}

.news-card > img,
.news-card-body,
.news-card > i {
  position: relative;
  z-index: 3;
}

.news-card-body {
  display: grid;
  align-content: center;
  gap: 12px;
  min-width: 0;
  padding: 18px 40px 18px 17px;
  border-left: 1px solid #ffffff61;
  background: linear-gradient(90deg, #f6fbf870, #e8f6ef42);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.news-card time {
  color: #073527b3;
  font-size: 9.5px;
  font-weight: 550;
  letter-spacing: 0.01em;
}

.news-card strong {
  display: -webkit-box;
  overflow: hidden;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  color: #063b2c;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.018em;
  line-height: 1.38;
  text-shadow: 0 1px #ffffff73;
}

.news-card i {
  position: absolute;
  right: 11px;
  bottom: 11px;
  display: grid;
  place-items: center;
  width: 27px;
  height: 27px;
  border-radius: 50%;
  background: #0d7858;
  color: #fff;
  transition: transform 0.3s, background 0.3s;
}

.news-card:hover i {
  background: #11966d;
  transform: rotate(-8deg) scale(1.06);
}

.news-card i svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5px;
}

/* --------------------------------------------------------------------------
   Sayfalama
   -------------------------------------------------------------------------- */
.news-pagination {
  display: flex;
  justify-content: flex-end;
  gap: 5px;
  padding: 10px 5px 0;
}

.news-pagination button {
  width: 18px;
  height: 3px;
  padding: 0;
  border: 0;
  border-radius: 99px;
  background: #ffffff52;
  cursor: pointer;
  transition: width 0.35s, background 0.35s;
}

.news-pagination button.active {
  width: 35px;
  background: #ffffffeb;
}

/* --------------------------------------------------------------------------
   Duyarlı davranış
   -------------------------------------------------------------------------- */
@media (max-width: 1050px) {
  .news-dock {
    width: min(720px, 57vw);
  }
}

@media (max-width: 700px) {
  /* Mobilde ray, tarayıcının kendi yatay kaydırması ve snap'i ile çalışır */
  .news-dock {
    right: 0;
    bottom: 9px;
    width: 100%;
    padding-left: 16px;
    isolation: isolate;
  }

  .news-dock::before {
    content: '';
    position: absolute;
    right: 0;
    bottom: -9px;
    left: 0;
    z-index: -1;
    height: 250px;
    background: linear-gradient(#0000 0%, #05372812 36%, #042b1f36 100%);
    pointer-events: none;
  }

  .news-heading {
    padding: 0 17px 9px 3px;
  }

  .news-heading > span {
    color: #074533e0;
    text-shadow: 0 1px 10px #fff9;
  }

  .news-controls {
    gap: 9px;
  }

  .news-controls button {
    display: none;
  }

  .news-heading a {
    color: #07543f;
    font-size: 9px;
    text-shadow: 0 1px 8px #ffffff8c;
  }

  .news-window {
    overflow: auto hidden;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    overscroll-behavior-x: contain;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    touch-action: pan-x;
  }

  .news-window::-webkit-scrollbar {
    display: none;
  }

  .news-track {
    width: max-content;
    padding-right: 14px;
    transform: none !important;
  }

  .news-card {
    flex: 0 0 calc(100vw - 54px);
    grid-template-columns: 44% 1fr;
    min-height: 170px;
    border-color: #ffffff9e;
    border-radius: 22px;
    background: linear-gradient(135deg, #fafdfb8a, #d6efe357);
    -webkit-backdrop-filter: blur(32px) saturate(1.22);
    backdrop-filter: blur(32px) saturate(1.22);
    box-shadow: 0 18px 44px #03271c33, inset 0 1px #ffffffeb;
    scroll-snap-align: start;
    scroll-snap-stop: always;
  }

  .news-card > img {
    width: calc(100% - 14px);
    height: calc(100% - 14px);
    min-height: 156px;
    margin: 7px;
    border-radius: 16px;
  }

  .news-card-body {
    gap: 10px;
    padding: 18px 42px 18px 15px;
    background: linear-gradient(90deg, #fafdfb85, #e7f6ef57);
  }

  .news-card time {
    font-size: 10px;
    letter-spacing: 0.01em;
  }

  .news-card strong {
    font-size: 15.5px;
    line-height: 1.38;
  }

  .news-card i {
    right: 12px;
    bottom: 12px;
    width: 31px;
    height: 31px;
  }

  .news-pagination {
    justify-content: center;
    gap: 6px;
    padding: 9px 16px 0 0;
  }

  .news-pagination button {
    background: #07543f40;
  }

  .news-pagination button.active {
    background: #0b7657;
  }
}
