/* "Bizden haberler" sosyal medya duvarı (anasayfa bölümü + sayfa) */
.social-wall {
  --sw-bg: #1b1816;
  --sw-text: #f2eeeb;
  --sw-muted: #c1b8b3;
  --sw-bronze: #c49c86;
  background: var(--sw-bg);
  color: var(--sw-text);
  padding: clamp(64px, 8vw, 112px) 0;
}
.social-wall--page { padding-top: clamp(48px, 6vw, 80px); }

.social-wall__head {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: clamp(16px, 4vw, 64px);
  align-items: end;
  margin-bottom: clamp(32px, 4vw, 52px);
}
.social-wall__title {
  margin: 0;
  font-size: clamp(2rem, 3.4vw, 3rem);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.026em;
  color: var(--sw-text);
}
.social-wall__intro p { margin: 0; max-width: 36em; font-size: 1.02rem; line-height: 1.65; color: var(--sw-muted); }
.social-wall__links { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 14px; }
.social-wall__links a {
  display: inline-flex; align-items: center; gap: 8px;
  padding-bottom: 3px;
  border-bottom: 1px solid rgba(196, 156, 134, 0.55);
  color: var(--sw-bronze);
  font-weight: 500;
  text-decoration: none;
}
.social-wall__links a:hover { color: #d9bba9; border-color: currentColor; }

/* Fotoğraf duvarı: ilk kare büyük, diğerleri kare ızgara */
.social-wall__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(8px, 1vw, 14px);
  margin: 0;
}
.social-wall__item--lead { grid-column: span 2; grid-row: span 2; }
.social-wall__grid--page { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }

.social-wall__item > a {
  position: relative;
  display: block;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: 14px;
  background: #2a2522;
  color: #fff;
}
.social-wall__item img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.4s ease; }
.social-wall__item > a:hover img,
.social-wall__item > a:focus-visible img { transform: scale(1.04); }
.social-wall__item > a:focus-visible { outline: 2px solid var(--sw-bronze); outline-offset: 3px; }

.social-wall__src {
  position: absolute; top: 10px; right: 10px;
  width: 30px; height: 30px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: rgba(20, 18, 16, 0.72); font-size: 14px;
}
.social-wall__play {
  position: absolute; left: 50%; top: 50%;
  width: 54px; height: 54px; margin: -27px 0 0 -27px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: rgba(20, 18, 16, 0.7); font-size: 18px; padding-left: 3px;
}
.social-wall__cap {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 36px 14px 12px;
  background: linear-gradient(transparent, rgba(10, 9, 8, 0.88));
  font-size: 13.5px; line-height: 1.45;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
  opacity: 0; transform: translateY(8px);
  transition: opacity 0.25s ease, transform 0.25s ease;
}
.social-wall__item > a:hover .social-wall__cap,
.social-wall__item > a:focus-visible .social-wall__cap { opacity: 1; transform: none; }
.social-wall__item--lead .social-wall__cap { font-size: 15px; opacity: 1; transform: none; }
.social-wall__date { display: block; margin-top: 8px; font-size: 13px; color: var(--sw-muted); }
.social-wall__lede { max-width: 46em; margin-bottom: 28px; }
.social-wall__empty { color: var(--sw-muted); }

@media (hover: none) {
  .social-wall__cap { opacity: 1; transform: none; -webkit-line-clamp: 2; }
}
@media (max-width: 991px) {
  .social-wall__head { grid-template-columns: 1fr; }
  .social-wall__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 575px) {
  .social-wall__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (prefers-reduced-motion: reduce) {
  .social-wall__item img, .social-wall__cap { transition: none; }
}

/* Site içi YouTube oynatıcı penceresi (assets/js/site-social.js) */
.yt-modal { position: fixed; inset: 0; z-index: 10000; display: flex; align-items: center; justify-content: center; padding: 20px; }
.yt-modal[hidden] { display: none; }
.yt-modal__backdrop { position: absolute; inset: 0; background: rgba(12, 10, 9, 0.88); backdrop-filter: blur(4px); }
.yt-modal__panel { position: relative; width: min(1100px, 100%); display: flex; flex-direction: column; gap: 10px; animation: yt-in 0.18s ease-out; }
.yt-modal.is-short .yt-modal__panel { width: min(420px, 100%, calc((100vh - 120px) * 9 / 16)); }
.yt-modal__bar { display: flex; align-items: center; gap: 12px; color: #f2eeeb; }
.yt-modal__title { flex: 1 1 auto; min-width: 0; margin: 0; font-size: 15px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.yt-modal__yt { flex: none; color: #c1b8b3; font-size: 14px; text-decoration: none; }
.yt-modal__yt:hover { color: #fff; }
.yt-modal__yt i { color: #ff3d3d; }
.yt-modal__close { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px; border: 1px solid rgba(242, 238, 235, 0.25); border-radius: 50%; background: rgba(255, 255, 255, 0.06); color: #f2eeeb; font-size: 17px; cursor: pointer; }
.yt-modal__close:hover, .yt-modal__close:focus-visible { background: rgba(255, 255, 255, 0.14); outline: none; border-color: #c49c86; }
.yt-modal__frame { position: relative; width: 100%; aspect-ratio: 16 / 9; border-radius: 14px; overflow: hidden; background: #000; box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55); }
.yt-modal.is-short .yt-modal__frame { aspect-ratio: 9 / 16; }
.yt-modal__frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
html.yt-modal-open { overflow: hidden; }
@keyframes yt-in { from { opacity: 0; transform: translateY(8px) scale(0.98); } to { opacity: 1; transform: none; } }
@media (max-width: 575px) {
  .yt-modal { padding: 12px; }
  .yt-modal__yt span, .yt-modal__title { font-size: 14px; }
}
@media (prefers-reduced-motion: reduce) { .yt-modal__panel { animation: none; } }

/* Instagram gömme oynatıcısı: dikey, beyaz zeminli Instagram sayfası */
.yt-modal.is-ig .yt-modal__panel { width: min(420px, 100%); }
.yt-modal.is-ig .yt-modal__frame { aspect-ratio: auto; height: min(calc(100vh - 110px), 780px); background: #fff; }
.yt-modal__yt .fa-instagram { color: #e1306c; }

/* Görselsiz (elle eklenen) paylaşım için markalı kapak */
.sf-cover { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; color: #fff; background: linear-gradient(150deg, #3a2f2a, #1f1b19); }
.sf-cover i { font-size: 46px; opacity: 0.95; }
.sf-cover b { font-size: 13px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; opacity: 0.9; }
.sf-cover--instagram { background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285aeb 90%); }
.sf-cover--youtube { background: linear-gradient(150deg, #e52d27, #8f1410); }
.sf-cover--facebook { background: linear-gradient(150deg, #1877f2, #0b4cad); }
.sf-cover--tiktok { background: linear-gradient(150deg, #111, #25f4ee 160%); }
