/* Social Media Feed Section Styles */

.social-feed-section {
  background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
  position: relative;
  overflow: hidden;
}

.social-feed-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('../images/shape/shape-3.png') no-repeat center;
  opacity: 0.03;
  pointer-events: none;
}

.social-feed-wrapper {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 30px;
  margin-top: 40px;
  position: relative;
  z-index: 1;
}

/* Feed Containers */
.instagram-feed-container,
.youtube-feed-container,
.facebook-feed-container {
  background: #ffffff;
  border-radius: 20px;
  padding: 25px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
  transition: all 0.4s ease;
  border: 1px solid rgba(255, 107, 53, 0.1);
}

.instagram-feed-container:hover,
.youtube-feed-container:hover,
.facebook-feed-container:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 60px rgba(255, 107, 53, 0.15);
}

/* Feed Header */
.feed-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 20px;
  border-bottom: 2px solid #f1f5f9;
  margin-bottom: 20px;
}

.header-content {
  display: flex;
  align-items: center;
  gap: 15px;
}

.header-content i {
  font-size: 32px;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: linear-gradient(135deg, #ff6b35 0%, #ff8c5a 100%);
  color: #ffffff;
  box-shadow: 0 5px 20px rgba(255, 107, 53, 0.3);
}

.instagram-feed-container .header-content i {
  background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
}

.youtube-feed-container .header-content i {
  background: linear-gradient(135deg, #ff0000 0%, #cc0000 100%);
}

.facebook-feed-container .header-content i {
  background: linear-gradient(135deg, #1877f2 0%, #0c63d4 100%);
}

.header-content h4 {
  font-size: 22px;
  font-weight: 700;
  color: #1e293b;
  margin: 0;
}

.header-content p {
  font-size: 14px;
  color: #64748b;
  margin: 5px 0 0 0;
}

.follow-btn {
  padding: 12px 25px;
  background: linear-gradient(135deg, #ff6b35 0%, #ff8c5a 100%);
  color: #ffffff;
  border-radius: 25px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.3s ease;
  box-shadow: 0 5px 15px rgba(255, 107, 53, 0.3);
}

.follow-btn:hover {
  background: linear-gradient(135deg, #ff8c5a 0%, #ff6b35 100%);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(255, 107, 53, 0.4);
  color: #ffffff;
}

/* Instagram Posts Container */
.instagram-posts-container {
  width: 100%;
  max-height: 350px;
  overflow-y: auto;
  padding-right: 10px;
}

.instagram-posts-container::-webkit-scrollbar {
  width: 6px;
}

.instagram-posts-container::-webkit-scrollbar-track {
  background: #f1f5f9;
  border-radius: 10px;
}

.instagram-posts-container::-webkit-scrollbar-thumb {
  background: linear-gradient(135deg, #ff6b35 0%, #ff8c5a 100%);
  border-radius: 10px;
}

.instagram-posts-container::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(135deg, #ff8c5a 0%, #ff6b35 100%);
}

/* Instagram Post Card */
.instagram-post-card {
  display: flex;
  gap: 12px;
  padding: 12px;
  background: #f8fafc;
  border-radius: 10px;
  margin-bottom: 12px;
  transition: all 0.3s ease;
  cursor: pointer;
  border: 2px solid transparent;
}

.instagram-post-card:hover {
  background: #ffffff;
  border-color: #ff6b35;
  transform: translateX(5px);
  box-shadow: 0 5px 20px rgba(255, 107, 53, 0.1);
}

.instagram-post-card:last-child {
  margin-bottom: 0;
}

.instagram-post-image {
  width: 70px;
  height: 70px;
  border-radius: 8px;
  overflow: hidden;
  flex-shrink: 0;
  background: #e2e8f0;
}

.instagram-post-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.instagram-post-content {
  flex: 1;
  min-width: 0;
}

.instagram-post-caption {
  font-size: 13px;
  line-height: 1.5;
  color: #1e293b;
  margin: 0 0 8px 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-weight: 500;
}

.instagram-post-meta {
  display: flex;
  gap: 15px;
  font-size: 12px;
  color: #64748b;
}

.instagram-post-meta span {
  display: flex;
  align-items: center;
  gap: 5px;
}

.instagram-post-meta i {
  color: #ff6b35;
  font-size: 13px;
}

.instagram-post-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 15px;
  color: #ffffff;
  background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.9) 100%);
  transform: translateY(100%);
  transition: transform 0.3s ease;
  z-index: 2;
}

.instagram-post:hover .instagram-post-overlay {
  transform: translateY(0);
}

.post-content {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.post-caption {
  font-size: 12px;
  line-height: 1.4;
  color: #ffffff;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 5px;
}

.post-stats {
  display: flex;
  gap: 15px;
  font-size: 13px;
  font-weight: 600;
}

.post-stats span {
  display: flex;
  align-items: center;
  gap: 5px;
}

.post-timestamp {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.8);
  display: flex;
  align-items: center;
  gap: 5px;
}

.instagram-post-overlay i {
  font-size: 14px;
}

/* YouTube Grid */
.youtube-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 15px;
  max-height: 350px;
  overflow-y: auto;
  padding-right: 10px;
}

.youtube-grid::-webkit-scrollbar {
  width: 6px;
}

.youtube-grid::-webkit-scrollbar-track {
  background: #f1f5f9;
  border-radius: 10px;
}

.youtube-grid::-webkit-scrollbar-thumb {
  background: linear-gradient(135deg, #ff6b35 0%, #ff8c5a 100%);
  border-radius: 10px;
}

.youtube-grid::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(135deg, #ff8c5a 0%, #ff6b35 100%);
}

.youtube-video {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* 16:9 aspect ratio */
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.youtube-video:hover {
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  transform: scale(1.02);
}

.youtube-video iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
  border-radius: 12px;
}

.youtube-video-info {
  margin-top: 12px;
}

.youtube-video-info h5 {
  font-size: 16px;
  font-weight: 600;
  color: #1e293b;
  margin: 0 0 8px 0;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.youtube-video-info p {
  font-size: 13px;
  color: #64748b;
  margin: 0 0 10px 0;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.video-meta {
  display: flex;
  gap: 15px;
  font-size: 12px;
  color: #64748b;
  margin-top: 8px;
}

.video-meta span {
  display: flex;
  align-items: center;
  gap: 5px;
}

.video-meta i {
  font-size: 13px;
  color: #ff6b35;
}

/* Facebook Embed */
.facebook-embed {
  display: flex;
  justify-content: center;
  align-items: center;
  max-height: 350px;
  overflow: hidden;
}

.fb-page {
  width: 100%;
  max-width: 500px;
}

/* Loading Placeholder */
.loading-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  text-align: center;
}

.spinner-border {
  width: 50px;
  height: 50px;
  border: 4px solid #f1f5f9;
  border-top-color: #ff6b35;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-bottom: 20px;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.loading-placeholder p {
  font-size: 14px;
  color: #64748b;
  margin: 0;
}

/* Social Stats */
.social-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-top: 60px;
  padding-top: 60px;
  border-top: 2px solid rgba(255, 107, 53, 0.1);
}

.stat-item {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 30px;
  background: #ffffff;
  border-radius: 15px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
}

.stat-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(255, 107, 53, 0.15);
}

.stat-item i {
  font-size: 45px;
  width: 70px;
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: linear-gradient(135deg, #ff6b35 0%, #ff8c5a 100%);
  color: #ffffff;
  box-shadow: 0 5px 20px rgba(255, 107, 53, 0.3);
}

.stat-item:nth-child(1) i {
  background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
}

.stat-item:nth-child(2) i {
  background: linear-gradient(135deg, #ff0000 0%, #cc0000 100%);
}

.stat-item:nth-child(3) i {
  background: linear-gradient(135deg, #1877f2 0%, #0c63d4 100%);
}

.stat-content h3 {
  font-size: 32px;
  font-weight: 700;
  color: #1e293b;
  margin: 0;
  line-height: 1;
}

.stat-content p {
  font-size: 14px;
  color: #64748b;
  margin: 8px 0 0 0;
}

/* Responsive Design */
@media only screen and (max-width: 991px) {
  .social-feed-wrapper {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .instagram-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .social-stats {
    grid-template-columns: 1fr;
  }
}

@media only screen and (max-width: 767px) {
  .feed-header {
    flex-direction: column;
    gap: 15px;
    text-align: center;
  }

  .header-content {
    flex-direction: column;
    text-align: center;
  }

  .follow-btn {
    width: 100%;
    justify-content: center;
  }

  .instagram-posts-container {
    max-height: 320px;
  }

  .youtube-grid {
    max-height: 320px;
  }

  .facebook-embed {
    max-height: 320px;
  }

  .instagram-post-card {
    padding: 10px;
    gap: 10px;
  }

  .instagram-post-image {
    width: 65px;
    height: 65px;
  }

  .instagram-post-caption {
    font-size: 12px;
  }

  .instagram-post-meta {
    font-size: 11px;
    gap: 12px;
  }

  .social-feed-wrapper {
    gap: 20px;
    margin-top: 40px;
  }

  .stat-item {
    flex-direction: column;
    text-align: center;
    padding: 25px;
  }
}

@media only screen and (max-width: 480px) {
  .instagram-posts-container {
    max-height: 300px;
  }

  .youtube-grid {
    max-height: 300px;
  }

  .facebook-embed {
    max-height: 300px;
  }

  .instagram-post-card {
    padding: 10px;
    gap: 10px;
  }

  .instagram-post-image {
    width: 60px;
    height: 60px;
  }

  .instagram-post-caption {
    font-size: 11px;
    -webkit-line-clamp: 3;
  }

  .instagram-post-meta {
    flex-wrap: wrap;
    gap: 8px;
  }

  .header-content h4 {
    font-size: 18px;
  }

  .stat-content h3 {
    font-size: 28px;
  }
}
