/* ==========================================================================
   INSTAGRAM FEED SECTION STYLES
   Tirana Luggage Storage (@tirana_luggage_storage)
   ========================================================================== */

.instagram-section {
  padding: 90px 0;
  background: linear-gradient(180deg, #ffffff 0%, #f9f9fb 100%);
  position: relative;
  overflow: hidden;
}

.instagram-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
}

.insta-header-card {
  max-width: 900px;
  margin: 0 auto 50px auto;
  background: #ffffff;
  border-radius: 20px;
  padding: 30px;
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.06);
  border: 1px solid rgba(225, 228, 235, 0.8);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 25px;
  flex-wrap: wrap;
}

.insta-profile-info {
  display: flex;
  align-items: center;
  gap: 20px;
}

.insta-avatar-wrapper {
  position: relative;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  padding: 3px;
  background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
  transition: transform 0.3s ease;
}

.insta-avatar-wrapper:hover {
  transform: scale(1.06) rotate(3deg);
}

.insta-avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  border: 2px solid #ffffff;
  background: #1e1e24;
}

.insta-badge-icon {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 24px;
  height: 24px;
  background: #0095f6;
  border-radius: 50%;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  border: 2px solid #fff;
}

.insta-details h2 {
  font-size: 1.4rem;
  font-weight: 700;
  color: #1e1e24;
  margin: 0 0 4px 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.insta-handle {
  font-size: 0.95rem;
  color: #8e8e8e;
  font-weight: 500;
  margin: 0 0 10px 0;
}

.insta-bio {
  font-size: 0.9rem;
  color: #555555;
  margin: 0;
  max-width: 450px;
  line-height: 1.4;
}

.insta-action-btns {
  display: flex;
  align-items: center;
  gap: 12px;
}

.btn-insta-follow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
  color: #ffffff !important;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 12px 24px;
  border-radius: 50px;
  box-shadow: 0 6px 20px rgba(220, 39, 67, 0.3);
  transition: all 0.3s ease;
  text-decoration: none;
}

.btn-insta-follow:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(220, 39, 67, 0.45);
  color: #ffffff;
}

.btn-insta-follow svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

/* Grid Layout */
.insta-grid-container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 20px;
}

.insta-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
}

.insta-card {
  position: relative;
  aspect-ratio: 1 / 1;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.07);
  background: #111;
  cursor: pointer;
  transition: transform 0.35s cubic-bezier(0.165, 0.84, 0.44, 1), box-shadow 0.35s ease;
}

.insta-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 35px rgba(0, 0, 0, 0.15);
}

.insta-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

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

.insta-overlay {
  position: absolute;
  inset: 0;
  background: rgba(15, 15, 20, 0.65);
  backdrop-filter: blur(4px);
  opacity: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 24px;
  color: #ffffff;
  transition: opacity 0.3s ease;
}

.insta-card:hover .insta-overlay {
  opacity: 1;
}

.insta-overlay-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.insta-badge-tag {
  background: rgba(255, 255, 255, 0.2);
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.insta-type-icon {
  width: 24px;
  height: 24px;
  fill: #ffffff;
}

.insta-overlay-center {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 25px;
  font-size: 1.1rem;
  font-weight: 700;
}

.insta-stat {
  display: flex;
  align-items: center;
  gap: 8px;
}

.insta-stat svg {
  width: 20px;
  height: 20px;
  fill: #ffffff;
}

.insta-overlay-bottom {
  font-size: 0.85rem;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.9);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Lightbox Modal */
.insta-modal {
  position: fixed;
  inset: 0;
  z-index: 999999;
  background: rgba(10, 10, 15, 0.85);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.insta-modal.active {
  opacity: 1;
  visibility: visible;
}

.insta-modal-content {
  background: #ffffff;
  border-radius: 20px;
  max-width: 920px;
  width: 100%;
  max-height: 90vh;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  overflow: hidden;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.4);
  position: relative;
  transform: scale(0.92);
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.insta-modal.active .insta-modal-content {
  transform: scale(1);
}

.insta-modal-image {
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.insta-modal-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  max-height: 600px;
}

.insta-modal-sidebar {
  padding: 30px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.insta-modal-header {
  display: flex;
  align-items: center;
  gap: 15px;
  padding-bottom: 20px;
  border-bottom: 1px solid #eeeeee;
}

.insta-modal-header img {
  width: 48px;
  height: 48px;
  border-radius: 50%;
}

.insta-modal-header h4 {
  font-size: 1rem;
  font-weight: 700;
  margin: 0;
  color: #1e1e24;
}

.insta-modal-header span {
  font-size: 0.85rem;
  color: #8e8e8e;
}

.insta-modal-body {
  margin: 20px 0;
  font-size: 0.95rem;
  line-height: 1.6;
  color: #444444;
  overflow-y: auto;
  max-height: 250px;
}

.insta-modal-body .hashtags {
  color: #0095f6;
  font-weight: 500;
  margin-top: 10px;
  display: block;
}

.insta-modal-footer {
  padding-top: 20px;
  border-top: 1px solid #eeeeee;
}

.insta-modal-close {
  position: absolute;
  top: 15px;
  right: 20px;
  background: rgba(255, 255, 255, 0.9);
  border: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-size: 20px;
  font-weight: bold;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  transition: background 0.2s;
}

.insta-modal-close:hover {
  background: #ffffff;
}

/* Responsive queries */
@media (max-width: 992px) {
  .insta-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .insta-modal-content {
    grid-template-columns: 1fr;
    max-height: 85vh;
    overflow-y: auto;
  }
  .insta-modal-image img {
    max-height: 350px;
  }
}

@media (max-width: 600px) {
  .insta-grid {
    grid-template-columns: 1fr;
  }
  .insta-header-card {
    flex-direction: column;
    text-align: center;
    justify-content: center;
  }
  .insta-profile-info {
    flex-direction: column;
  }
  .insta-details h2 {
    justify-content: center;
  }
}
