/**
 * Section: Social Section
 *
 * Manuel içerik (görsel/video/YouTube) - Instagram Section ile aynı görünüm.
 *
 * @package Alpaya_x_Retodi
 */

/* Arka plan tam genişlik */
.entry-content .section--social,
.entry-content .wp-block-alpaya-section .section--social {
  width: 100vw;
  min-width: 100vw;
  max-width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  position: relative;
  box-sizing: border-box;
}

.section--social {
  padding: calc(var(--spacing, 1rem) * 3) 0;
}

.section__social-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.section__social-title {
  margin: 0 0 var(--section-title-content-gap) 0;
  font-size: var(--section-title-font-size);
  font-weight: 100;
}

.section__social-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: var(--section-title-content-gap);
}

.section__social-icon {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}

.section__social-icon svg {
  width: 24px;
  height: 24px;
}

.section__social-content {
  font-size: var(--section-content-font-size);
}

/* Grid: web 3, mobil 1 */
.section__social-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.section__social-item {
  display: block;
  text-decoration: none;
  color: inherit;
}

.section__social-media {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  background: #f5f5f5;
}

.section__social-media img,
.section__social-media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* YouTube embed */
.section__social-youtube {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.section__social-youtube iframe {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  height: 100%;
  min-width: 100%;
  min-height: 100%;
  object-fit: cover;
}

/* Hover overlay: beyaz gölgelik + ikon + açıklama */
.section__social-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: rgba(255, 255, 255, 0.82);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  transition: opacity 0.3s ease;
  text-align: center;
}

.section__social-item:hover .section__social-overlay {
  opacity: 1;
}

.section__social-overlay-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.75rem;
  flex-shrink: 0;
}

.section__social-overlay-icon svg {
  width: 36px;
  height: 36px;
  color: #333;
}

.section__social-caption {
  margin: 0;
  font-size: 0.85rem;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.section__social-play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  color: #333;
  z-index: 1;
}

.section__social-empty {
  padding: 2rem;
  text-align: center;
  color: #888;
  font-size: 0.9rem;
}

@media (max-width: 768px) {
  .section__social-grid {
    grid-template-columns: 1fr;
  }
}
