/* Ana sayfa — sosyal medya akışları (sadece CSS grid, carousel yok) */

.home-youtube-feed {
  width: 100%;
  min-width: 0;
}

.home-youtube-feed__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem 1rem;
  margin-bottom: 0.75rem;
}

.home-youtube-feed__heading {
  margin: 0;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(148, 163, 184, 0.85);
}

.home-youtube-feed__channel-link {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(96, 165, 250, 0.95);
  text-decoration: none;
  transition: color 0.15s ease;
}

.home-youtube-feed__channel-link:hover {
  color: #e8f2fc;
}

.home-youtube-feed__viewport {
  width: 100%;
  min-width: 0;
}

/* Mobil (site lg altı): 2 sütun */
.home-youtube-feed__track {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.5rem;
}

.home-youtube-feed__card {
  min-width: 0;
}

.home-youtube-feed__link {
  display: block;
  text-decoration: none;
  color: inherit;
  outline: none;
}

.home-youtube-feed__link:focus-visible .home-youtube-feed__thumb {
  outline: 2px solid rgba(56, 227, 255, 0.55);
  outline-offset: 2px;
}

.home-youtube-feed__thumb {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 0.5rem;
  border: 1.5px solid rgba(34, 211, 238, 0.55);
  box-shadow:
    0 0 0 1px rgba(34, 211, 238, 0.12),
    0 12px 32px -16px rgba(34, 211, 238, 0.2);
  background: #0c121c;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    transform 0.2s ease;
}

.home-youtube-feed__link:hover .home-youtube-feed__thumb {
  border-color: rgba(56, 227, 255, 0.85);
  box-shadow:
    0 0 0 1px rgba(56, 227, 255, 0.2),
    0 16px 40px -14px rgba(34, 211, 238, 0.35);
  transform: translateY(-2px);
}

.home-youtube-feed__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.home-youtube-feed__live-dot {
  position: absolute;
  top: 0.35rem;
  left: 0.35rem;
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 9999px;
  background: #ff4545;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.35);
  animation: home-youtube-live-pulse 1.4s ease-in-out infinite;
}

@keyframes home-youtube-live-pulse {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.75;
    transform: scale(1.08);
  }
}

.home-youtube-feed__age {
  position: absolute;
  right: 0.4rem;
  bottom: 0.4rem;
  padding: 0.12rem 0.35rem;
  border-radius: 0.35rem;
  background: rgba(0, 0, 0, 0.78);
  font-size: 0.5625rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #f8fafc;
  line-height: 1.2;
}

.home-youtube-feed__age--live {
  background: rgba(255, 30, 30, 0.92);
  text-transform: uppercase;
}

.home-youtube-feed__video-title {
  display: -webkit-box;
  margin-top: 0.4rem;
  font-size: 0.625rem;
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #f1f5f9;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Masaüstü (site lg+): 4 sütun */
@media (min-width: 1024px) {
  .home-youtube-feed__track {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
  }

  .home-youtube-feed__thumb {
    border-radius: 0.65rem;
    border-width: 2px;
  }

  .home-youtube-feed__live-dot {
    top: 0.5rem;
    left: 0.5rem;
    width: 0.55rem;
    height: 0.55rem;
  }

  .home-youtube-feed__age {
    font-size: 0.625rem;
    padding: 0.15rem 0.45rem;
  }

  .home-youtube-feed__video-title {
    margin-top: 0.55rem;
    font-size: 0.6875rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .home-youtube-feed__live-dot {
    animation: none;
  }

  .home-youtube-feed__link:hover .home-youtube-feed__thumb {
    transform: none;
  }
}

[data-theme="light"] .home-youtube-feed__heading {
  color: #475569;
}

[data-theme="light"] .home-youtube-feed__video-title {
  color: #0f172a;
}

[data-theme="light"] .home-youtube-feed__thumb {
  border-color: rgba(22, 119, 255, 0.45);
  background: #f1f5f9;
}
