/* ==========================================================================
   LÉNAR BURGERS — SOCIAL MEDIA STRIP (INSTAGRAM & TIKTOK FEED)
   ========================================================================== */

.social-gallery-section {
  position: relative;
  z-index: 10;
  background: #120d0a;
  background: radial-gradient(circle at 50% 0%, #2b1910 0%, #120d0a 70%);
  padding: 4.5rem 0 5rem 0;
  overflow: hidden;
  border-top: 1px solid rgba(220, 167, 126, 0.15);
  border-bottom: 1px solid rgba(220, 167, 126, 0.15);
}

/* Ambient glow in background */
.social-gallery-ambient {
  position: absolute;
  top: 10%;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 350px;
  background: radial-gradient(ellipse, rgba(178, 115, 72, 0.18) 0%, transparent 70%);
  pointer-events: none;
  filter: blur(60px);
  z-index: 0;
}

/* Header */
.social-gallery-header {
  position: relative;
  z-index: 2;
  max-width: 1320px;
  margin: 0 auto 2.5rem auto;
  padding: 0 1.5rem;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem;
}

.social-gallery-header__left {
  max-width: 650px;
}

.social-gallery-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(220, 167, 126, 0.12);
  border: 1px solid rgba(220, 167, 126, 0.28);
  border-radius: 50px;
  padding: 0.35rem 0.95rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #dca77e;
  margin-bottom: 0.85rem;
}

.social-gallery-eyebrow .pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #00e676;
  box-shadow: 0 0 10px #00e676;
  animation: socialPulse 2s infinite ease-in-out;
}

@keyframes socialPulse {
  0%, 100% { transform: scale(1); opacity: 0.9; }
  50% { transform: scale(1.4); opacity: 0.4; }
}

.social-gallery-title {
  font-family: 'Poppins', sans-serif;
  font-size: clamp(1.8rem, 3.2vw, 2.75rem);
  font-weight: 800;
  color: #f7eee3;
  line-height: 1.15;
  margin: 0 0 0.5rem 0;
  letter-spacing: -0.02em;
}

.social-gallery-subtitle {
  font-size: 0.95rem;
  color: rgba(247, 238, 227, 0.65);
  margin: 0;
  line-height: 1.5;
}

/* Header Right: Account Badges & Auto-Sync Pill */
.social-gallery-header__right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.75rem;
}

.social-accounts-row {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-wrap: wrap;
}

.social-account-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 30px;
  padding: 0.45rem 1rem;
  color: #f7eee3;
  font-size: 0.8rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.25s ease;
  backdrop-filter: blur(10px);
}

.social-account-chip:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(220, 167, 126, 0.4);
  transform: translateY(-2px);
  color: #ffffff;
}

.social-account-chip--ig:hover {
  border-color: #e1306c;
  box-shadow: 0 4px 16px rgba(225, 48, 108, 0.25);
}

.social-account-chip--tt:hover {
  border-color: #00f2fe;
  box-shadow: 0 4px 16px rgba(0, 242, 254, 0.25);
}

.social-account-chip svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

/* 6-Hour Auto-Sync Status Indicator */
.social-sync-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.72rem;
  color: rgba(247, 238, 227, 0.5);
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  padding: 0.25rem 0.75rem;
  letter-spacing: 0.02em;
}

.social-sync-pill .sync-spin-icon {
  width: 12px;
  height: 12px;
  color: #dca77e;
  transition: transform 0.6s ease;
}

.social-sync-pill.is-syncing .sync-spin-icon {
  animation: syncRotate 1s linear infinite;
}

@keyframes syncRotate {
  100% { transform: rotate(360deg); }
}

/* Controls (Prev/Next Arrows) */
.social-gallery-nav {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.social-nav-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #f7eee3;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.social-nav-btn:hover {
  background: #b27348;
  border-color: #b27348;
  color: #fff;
  transform: scale(1.08);
}

/* ==========================================================================
   STRIP WRAPPER & TRACK
   ========================================================================== */

.social-strip-viewport {
  position: relative;
  z-index: 2;
  width: 100%;
  overflow: hidden;
  cursor: grab;
  user-select: none;
  -webkit-user-select: none;
  padding: 1rem 0 1.5rem 0;
}

.social-strip-viewport:active {
  cursor: grabbing;
}

.social-strip-track {
  display: flex;
  gap: 1.5rem;
  width: max-content;
  will-change: transform;
  align-items: center;
}

/* ==========================================================================
   SOCIAL POST CARD (HEIGHT ACCORDING TO POST SIZE)
   ========================================================================== */

.social-post-card {
  position: relative;
  flex-shrink: 0;
  /* Natural social post portrait height & width */
  width: 300px;
  height: 520px;
  border-radius: 22px;
  overflow: hidden;
  background: #19120e;
  box-shadow: 0 16px 38px rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(220, 167, 126, 0.18);
  transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.35s ease, border-color 0.35s ease;
  display: block;
  text-decoration: none;
  color: inherit;
}

.social-post-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.65), 0 0 30px rgba(178, 115, 72, 0.2);
  border-color: rgba(220, 167, 126, 0.45);
}

/* Media (Video or Image) */
.social-card-media-wrap {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.social-card-media {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.social-post-card:hover .social-card-media {
  transform: scale(1.05);
}

/* Video element specific */
video.social-card-media {
  background: #000;
}

/* Dark gradient scrims */
.social-card-gradient-top {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 100px;
  background: linear-gradient(180deg, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0) 100%);
  pointer-events: none;
  z-index: 2;
}

.social-card-gradient-bottom {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 180px;
  background: linear-gradient(0deg, rgba(14, 9, 6, 0.95) 0%, rgba(14, 9, 6, 0.65) 60%, rgba(14, 9, 6, 0) 100%);
  pointer-events: none;
  z-index: 2;
}

/* Top Bar: Platform Badge & Controls */
.social-card-header {
  position: absolute;
  top: 14px;
  left: 14px;
  right: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 3;
}

/* Platform Badges */
.social-platform-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.35rem 0.8rem;
  border-radius: 50px;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
  color: #fff;
}

.social-platform-badge--ig {
  background: rgba(225, 48, 108, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.social-platform-badge--tt {
  background: rgba(18, 18, 20, 0.88);
  border: 1px solid rgba(0, 242, 254, 0.4);
}

.social-platform-badge svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
}

/* Video Type Badge */
.social-type-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: rgba(0, 0, 0, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 20px;
  padding: 0.25rem 0.55rem;
  font-size: 0.68rem;
  color: #fff;
  font-weight: 600;
}

/* Interactive Sound Toggle for In-Website Playback */
.social-sound-btn {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 4;
  transition: all 0.2s ease;
  backdrop-filter: blur(8px);
}

.social-sound-btn:hover {
  background: #b27348;
  border-color: #b27348;
  transform: scale(1.1);
}

.social-sound-btn svg {
  width: 15px;
  height: 15px;
}

/* Play/Pause Center Indicator */
.social-center-play-indicator {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.9);
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.65);
  border: 2px solid rgba(255, 255, 255, 0.4);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 3;
  opacity: 0;
  transition: all 0.25s ease;
  backdrop-filter: blur(8px);
  pointer-events: none;
}

.social-post-card:hover .social-center-play-indicator {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.social-center-play-indicator svg {
  width: 22px;
  height: 22px;
  margin-left: 3px;
}

/* Bottom Content: Author, Caption, Likes & CTA */
.social-card-footer {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1.1rem 1.1rem 1.25rem 1.1rem;
  z-index: 3;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.social-card-author-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.social-card-author {
  font-size: 0.8rem;
  font-weight: 700;
  color: #dca77e;
  letter-spacing: 0.02em;
}

.social-card-stats {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.7);
  font-weight: 600;
}

.social-card-stats span {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

.social-card-stats svg {
  width: 13px;
  height: 13px;
  fill: #ff4757;
}

.social-card-caption {
  font-size: 0.82rem;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.9);
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

.social-card-cta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 0.55rem;
  margin-top: 0.2rem;
}

.social-card-cta {
  font-size: 0.75rem;
  font-weight: 700;
  color: #fff;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  transition: color 0.2s ease;
}

.social-post-card:hover .social-card-cta {
  color: #dca77e;
}

.social-card-cta svg {
  width: 13px;
  height: 13px;
  transition: transform 0.2s ease;
}

.social-post-card:hover .social-card-cta svg {
  transform: translate(2px, -2px);
}

.social-card-time {
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.45);
}

/* ==========================================================================
   VIDEO LIGHTBOX MODAL (FOR ENLARGED IN-WEBSITE PLAYBACK)
   ========================================================================== */

.social-video-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 100000;
  background: rgba(10, 7, 5, 0.94);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  padding: 1.5rem;
}

.social-video-modal.is-open {
  opacity: 1;
  pointer-events: auto;
}

.social-modal-container {
  position: relative;
  width: 100%;
  max-width: 480px;
  background: #17110c;
  border: 1px solid rgba(220, 167, 126, 0.25);
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.8);
  display: flex;
  flex-direction: column;
}

.social-modal-video-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 9 / 16;
  background: #000;
  max-height: 70vh;
}

.social-modal-video {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.social-modal-close-btn {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: all 0.2s ease;
}

.social-modal-close-btn:hover {
  background: #ff4757;
  border-color: #ff4757;
  transform: rotate(90deg);
}

.social-modal-info {
  padding: 1.25rem 1.5rem 1.5rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.social-modal-caption {
  font-size: 0.9rem;
  color: #f7eee3;
  line-height: 1.5;
  margin: 0;
}

.social-modal-post-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.25rem;
  background: linear-gradient(135deg, #b27348 0%, #874e2a 100%);
  border-radius: 12px;
  color: #fff;
  font-weight: 700;
  font-size: 0.85rem;
  text-decoration: none;
  transition: all 0.25s ease;
}

.social-modal-post-link:hover {
  filter: brightness(1.15);
  transform: translateY(-2px);
}

/* ==========================================================================
   RESPONSIVE ADJUSTMENTS
   ========================================================================== */

@media (max-width: 992px) {
  .social-gallery-header {
    flex-direction: column;
    align-items: flex-start;
  }
  .social-gallery-header__right {
    align-items: flex-start;
    width: 100%;
  }
  .social-post-card {
    width: 270px;
    height: 480px;
  }
}

@media (max-width: 576px) {
  .social-gallery-section {
    padding: 3rem 0 3.5rem 0;
  }
  .social-post-card {
    width: 240px;
    height: 420px;
    border-radius: 18px;
  }
  .social-card-footer {
    padding: 0.85rem;
  }
}
