/* ==============================
   Estilos do Feed Instagram Carrossel
   ============================== */

.instagram-feed {
  padding: 30px 0;
  background: linear-gradient(135deg, #0a0a1a, #1c1c3c);
  border-top: 1px solid linear-gradient(135deg, #0a0a1a, #1c1c3c);
  font-family: Arial, sans-serif;
}

.instagram-feed .container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 16px;
}

.instagram-feed h2 {
  font-size: 1.5rem;
  margin-bottom: 16px;
  font-weight: bold;
  color: #333;
}

/* Área do carrossel */
.ig-posts {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin; /* Firefox */
  scrollbar-color: #ccc transparent;
  padding-bottom: 10px;
}

/* Scrollbar personalizada */
.ig-posts::-webkit-scrollbar {
  height: 8px;
}
.ig-posts::-webkit-scrollbar-track {
  background: transparent;
}
.ig-posts::-webkit-scrollbar-thumb {
  background-color: #aaa;
  border-radius: 4px;
}

/* Cada post */
.ig-post {
  flex: 0 0 auto;
  width: 220px;
  height: 220px;
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  scroll-snap-align: start;
  background: #eee;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  transition: transform 0.3s ease;
}

.ig-post:hover {
  transform: translateY(-4px);
}

/* Imagem */
.ig-post img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Overlay Instagram */
.ig-overlay {
  position: absolute;
  top: 8px;
  right: 8px;
  background: rgba(0,0,0,0.4);
  color: #fff;
  padding: 6px 8px;
  border-radius: 50%;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Mensagem de erro */
.ig-error {
  color: #b00020;
  margin-top: 10px;
  font-size: 0.95rem;
}

/* Ações abaixo do carrossel */
.ig-actions {
  margin-top: 12px;
  text-align: center;
}
.ig-actions a {
  text-decoration: none;
  padding: 8px 14px;
  border-radius: 6px;
  border: 1px solid #333;
  display: inline-block;
  background: #fff;
  color: #333;
  font-weight: 500;
  transition: background 0.2s ease;
}
.ig-actions a:hover {
  background: #333;
  color: #fff;
}
