/* ==========================================================================
   TBGFL INSTAGRAM LIVE FEED SLIDER
   Luxury Brand Styling, Responsive 4-5 Card Grid & Smooth Carousel
   ========================================================================== */

.tbgfl-ig-section {
  position: relative;
  width: 100%;
  padding: 60px 20px;
  background: linear-gradient(180deg, #FFFFFF 0%, #F8F6F1 100%);
  overflow: hidden;
}

.tbgfl-ig-container {
  max-width: 1320px;
  margin: 0 auto;
  position: relative;
}

/* Header & Profile Banner */
.tbgfl-ig-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 36px;
  flex-wrap: wrap;
}

.tbgfl-ig-header-left {
  max-width: 680px;
}

.tbgfl-ig-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border-radius: 60px;
  background: rgba(184, 138, 68, 0.10);
  color: var(--tbgfl-gold);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 12px;
  border: 1px solid rgba(184, 138, 68, 0.16);
}

.tbgfl-ig-badge svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
}

.tbgfl-ig-title {
  font-size: 36px;
  font-weight: 600;
  color: var(--tbgfl-black);
  line-height: 1.25;
  margin-bottom: 10px;
  letter-spacing: -0.5px;
}

.tbgfl-ig-subtitle {
  font-size: 16px;
  color: #666666;
  line-height: 1.7;
  margin: 0;
}

/* Profile Bar / Follow CTA */
.tbgfl-ig-profile-bar {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.tbgfl-ig-user-chip {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #FFFFFF;
  padding: 8px 18px 8px 10px;
  border-radius: 50px;
  border: 1px solid rgba(184, 138, 68, 0.18);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
  text-decoration: none;
  transition: all 0.3s ease;
}

.tbgfl-ig-user-chip:hover {
  transform: translateY(-2px);
  border-color: var(--tbgfl-gold);
  box-shadow: 0 8px 24px rgba(184, 138, 68, 0.14);
}

.tbgfl-ig-avatar-ring {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  padding: 2px;
  background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
  display: flex;
  align-items: center;
  justify-content: center;
}

.tbgfl-ig-avatar {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 2px solid #FFFFFF;
  object-fit: cover;
  background: #1E3A2B;
}

.tbgfl-ig-avatar-icon {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 2px solid #FFFFFF;
  background: #111111;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #FFFFFF;
}

.tbgfl-ig-avatar-icon svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

.tbgfl-ig-user-info {
  display: flex;
  flex-direction: column;
}

.tbgfl-ig-username {
  font-size: 14px;
  font-weight: 700;
  color: var(--tbgfl-black);
  display: flex;
  align-items: center;
  gap: 4px;
}

.tbgfl-ig-verified {
  width: 14px;
  height: 14px;
  fill: #1DA1F2;
}

.tbgfl-ig-hashtag {
  font-size: 12px;
  color: var(--tbgfl-gold);
  font-weight: 600;
}

.tbgfl-ig-follow-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 22px;
  border-radius: 50px;
  background: var(--tbgfl-gold);
  color: #FFFFFF !important;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(184, 138, 68, 0.25);
}

.tbgfl-ig-follow-btn:hover {
  background: #a37635;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(184, 138, 68, 0.35);
}

.tbgfl-ig-follow-btn svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

/* Slider Controls (Nav Buttons) */
.tbgfl-ig-nav-btns {
  display: flex;
  align-items: center;
  gap: 10px;
}

.tbgfl-ig-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #FFFFFF;
  border: 1.5px solid rgba(184, 138, 68, 0.28);
  color: var(--tbgfl-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.04);
}

.tbgfl-ig-btn:hover:not(:disabled) {
  background: var(--tbgfl-gold);
  color: #FFFFFF;
  border-color: var(--tbgfl-gold);
  transform: scale(1.06);
  box-shadow: 0 8px 20px rgba(184, 138, 68, 0.30);
}

.tbgfl-ig-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.tbgfl-ig-btn svg {
  width: 18px;
  height: 18px;
  stroke-width: 2.5;
}

/* Slider Main Wrapper */
.tbgfl-ig-slider-wrapper {
  position: relative;
  width: 100%;
  overflow: hidden;
  padding: 10px 0 20px 0;
  user-select: none;
  touch-action: pan-y;
}

.tbgfl-ig-track {
  display: flex;
  gap: 18px;
  transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1);
  will-change: transform;
}

.tbgfl-ig-track.is-dragging {
  transition: none !important;
  cursor: grabbing;
}

/* Individual Post Card */
.tbgfl-ig-card {
  flex: 0 0 calc((100% - (4 * 18px)) / 5);
  min-width: 0;
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  background: #FFFFFF;
  border: 1px solid rgba(184, 138, 68, 0.16);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
  transition: all 0.4s ease;
}

.tbgfl-ig-card:hover {
  transform: translateY(-8px);
  border-color: rgba(184, 138, 68, 0.35);
  box-shadow: 0 22px 50px rgba(0, 0, 0, 0.10);
}

.tbgfl-ig-card-inner {
  display: block;
  width: 100%;
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
}

.tbgfl-ig-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.8s cubic-bezier(0.25, 1, 0.5, 1);
}

.tbgfl-ig-card:hover .tbgfl-ig-img {
  transform: scale(1.08);
}

/* Floating Instagram Corner Badge */
.tbgfl-ig-corner-badge {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.90);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 3;
  color: var(--tbgfl-gold);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
  transition: all 0.3s ease;
}

.tbgfl-ig-corner-badge svg {
  width: 17px;
  height: 17px;
  fill: currentColor;
}

.tbgfl-ig-card:hover .tbgfl-ig-corner-badge {
  background: var(--tbgfl-gold);
  color: #FFFFFF;
  transform: scale(1.1);
}

/* Card Hover Overlay with Engagement Stats & Caption */
.tbgfl-ig-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(17, 34, 23, 0.35) 0%, rgba(17, 34, 23, 0.88) 100%);
  z-index: 2;
  opacity: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 20px;
  transition: opacity 0.35s ease;
  backdrop-filter: blur(2px);
}

.tbgfl-ig-card:hover .tbgfl-ig-overlay {
  opacity: 1;
}

.tbgfl-ig-stats {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 10px;
  color: #FFFFFF;
  font-size: 14px;
  font-weight: 700;
}

.tbgfl-ig-stat-item {
  display: flex;
  align-items: center;
  gap: 6px;
}

.tbgfl-ig-stat-item svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

.tbgfl-ig-caption-text {
  color: rgba(255, 255, 255, 0.92);
  font-size: 13px;
  line-height: 1.5;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tbgfl-ig-card-date {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.65);
  margin-top: 6px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Pagination Dots */
.tbgfl-ig-dots {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 24px;
}

.tbgfl-ig-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(184, 138, 68, 0.25);
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  padding: 0;
}

.tbgfl-ig-dot.active {
  width: 26px;
  border-radius: 12px;
  background: var(--tbgfl-gold);
}

/* Responsive Grid & Breakpoints */
@media (max-width: 1200px) {
  .tbgfl-ig-card {
    flex: 0 0 calc((100% - (3 * 18px)) / 4); /* 4 visible */
  }
  .tbgfl-ig-title {
    font-size: 32px;
  }
}

@media (max-width: 991px) {
  .tbgfl-ig-card {
    flex: 0 0 calc((100% - (2 * 16px)) / 3); /* 3 visible */
    border-radius: 20px;
  }
  .tbgfl-ig-track {
    gap: 16px;
  }
  .tbgfl-ig-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }
}

@media (max-width: 767px) {
  .tbgfl-ig-section {
    padding: 40px 14px;
  }
  .tbgfl-ig-title {
    font-size: 26px;
  }
  .tbgfl-ig-subtitle {
    font-size: 14px;
  }
  .tbgfl-ig-card {
    flex: 0 0 calc((100% - 14px) / 2); /* 2 visible */
    border-radius: 18px;
  }
  .tbgfl-ig-track {
    gap: 14px;
  }
  .tbgfl-ig-profile-bar {
    width: 100%;
    justify-content: space-between;
  }
}

@media (max-width: 480px) {
  .tbgfl-ig-card {
    flex: 0 0 calc(82% - 10px); /* 1 full post + peek of next */
  }
  .tbgfl-ig-track {
    gap: 12px;
  }
  .tbgfl-ig-follow-btn {
    padding: 8px 16px;
    font-size: 12px;
  }
}
