/* =============================== */
/* 📸 Instagram Widget – Modern Mode */
/* =============================== */

#instagram-widget {
  padding: 4rem 1rem;
  background: #f4f7fb;
  border-top: 1px solid #dde4ef;
  text-align: center;
}

.instagram-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 2rem;
}

.instagram-header h2 {
  font-size: 1.8rem;
  font-weight: 700;
  color: #102544;
  margin: 0;
  text-shadow: 0 1px 0 #ffffffcc;
}

.insta-button {
  background: linear-gradient(to right, #e1306c, #fd5d93);
  color: white;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.7rem 1.5rem;
  border-radius: 10px;
  text-decoration: none;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.1);
  transition: background 0.3s ease, transform 0.2s ease;
}

.insta-button:hover {
  background: linear-gradient(to right, #c6285f, #e63e7c);
  transform: translateY(-2px);
}

/* 📷 Embed container */
.instagram-embed {
  max-width: 1000px;
  margin: 0 auto;
  border-radius: 18px;
  overflow: hidden;
  background: #ffffff;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  padding: 0.25rem;
}

.instagram-embed iframe.lightwidget-widget {
  width: 100%;
  height: 360px;
  border: none;
  border-radius: 16px;
}

/* Default container */
.instagram-wrapper {
  border-radius: 20px;
  padding: 0.5rem;
  background: #ffffff;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  max-width: 1000px;
  margin: 0 auto;
  transition: all 0.3s ease;
}

.instagram-wrapper iframe {
  border-radius: 16px;
  width: 100%;
  height: 360px;
  display: block;
}

/* 🌈 Retro Mode Neon Frame */
body.retro-mode .instagram-wrapper {
  padding: 0.5rem;
  background: linear-gradient(135deg, #00ffff, #ff00ff, #00ffff);
  background-size: 400% 400%;
  animation: neonGradientShift 8s ease infinite;
  box-shadow: 0 0 22px #00ffff88, 0 0 42px #ff00ffaa inset;
  border-radius: 20px;
}

@keyframes neonGradientShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* 🌈 Neon Background Section Style */
.neon-gram {
  padding: 4rem 1.5rem;
  background: radial-gradient(circle at top, #200044 0%, #0c0122 80%);
  position: relative;
  z-index: 1;
  text-align: center;
  border-top: 4px solid #ff00ff55;
  border-bottom: 4px solid #00ffff66;
  box-shadow: inset 0 2px 20px #00ffff33, inset 0 -2px 20px #ff00ff33;
}

/* 🌀 Optional animated background pulse */
.neon-gram::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(130deg, #ff00ff22, #00ffff22, #ff00ff22);
  background-size: 300% 300%;
  animation: neonPulse 10s ease infinite;
  z-index: 0;
  pointer-events: none;
  border-radius: 20px;
}

@keyframes neonPulse {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

/* Ensure widget stays on top */
.neon-gram > * {
  position: relative;
  z-index: 2;
}
