/* Dekomir - Uygulamalar Instagram Fotoğraf Akışı & Lightbox Stilleri */

/* View Switcher Bar */
.gallery-view-switcher {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 0 auto 28px;
  padding: 6px;
  background: #f4f1ea;
  border-radius: 40px;
  width: fit-content;
  max-width: 95%;
  border: 1px solid #e5dfd3;
  box-shadow: 0 4px 14px rgba(11,37,82,.04);
}

.gallery-switcher-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 22px;
  border-radius: 30px;
  border: 0;
  background: transparent;
  color: #555;
  font-size: 13.5px;
  font-weight: 750;
  cursor: pointer;
  transition: all .2s cubic-bezier(0.16, 1, 0.3, 1);
  white-space: nowrap;
}

.gallery-switcher-btn:hover {
  color: #111;
  background: rgba(255,255,255,0.6);
}

.gallery-switcher-btn.active {
  background: var(--navy, #163a78);
  color: #fff;
  box-shadow: 0 4px 14px rgba(22,58,120,.28);
}

.gallery-switcher-btn.active .switcher-pill {
  background: rgba(255,255,255,.25);
  color: #fff;
}

.switcher-pill {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 800;
  background: rgba(0,0,0,.08);
  color: #666;
}

/* Instagram Photo Feed Grid */
.insta-feed-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 18px;
  margin-top: 10px;
}

.insta-feed-item {
  position: relative;
  aspect-ratio: 4/3;
  border-radius: 10px;
  overflow: hidden;
  background: #eeeae1;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(11,37,82,.06);
  transition: transform .25s ease, box-shadow .25s ease;
}

.insta-feed-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 25px rgba(11,37,82,.15);
}

.insta-feed-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .4s ease;
}

.insta-feed-item:hover img {
  transform: scale(1.06);
}

.insta-feed-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(11,37,82,0.92) 0%, rgba(11,37,82,0.4) 50%, rgba(11,37,82,0) 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 16px;
  opacity: 0;
  transition: opacity .25s ease;
}

.insta-feed-item:hover .insta-feed-overlay {
  opacity: 1;
}

.insta-feed-badge {
  display: inline-block;
  align-self: flex-start;
  padding: 3px 8px;
  border-radius: 4px;
  background: var(--orange, #f36f21);
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .05em;
  margin-bottom: 6px;
}

.insta-feed-title {
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  margin: 0;
  line-height: 1.3;
}

.insta-feed-zoom {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  background: rgba(255,255,255,0.9);
  color: var(--navy, #163a78);
  border-radius: 50%;
  font-size: 14px;
  font-weight: 900;
  box-shadow: 0 2px 8px rgba(0,0,0,.2);
}

/* Fullscreen Lightbox */
.deko-lightbox-overlay {
  position: fixed;
  inset: 0;
  background: rgba(6, 18, 41, 0.96);
  backdrop-filter: blur(14px);
  z-index: 100000;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s ease;
  user-select: none;
}

.deko-lightbox-overlay.is-open {
  opacity: 1;
  pointer-events: auto;
}

.lightbox-top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  color: #fff;
}

.lightbox-counter {
  font-size: 13px;
  font-weight: 700;
  color: rgba(255,255,255,0.7);
  background: rgba(255,255,255,0.1);
  padding: 5px 12px;
  border-radius: 20px;
}

.lightbox-close-btn {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: rgba(255,255,255,0.15);
  color: #fff;
  font-size: 20px;
  font-weight: 700;
  cursor: pointer;
  transition: background .15s;
}

.lightbox-close-btn:hover {
  background: rgba(255,255,255,0.3);
}

.lightbox-stage {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1;
  max-height: 76vh;
  margin: 10px 0;
}

.lightbox-img-wrap {
  max-width: 1000px;
  max-height: 74vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-img {
  max-width: 100%;
  max-height: 74vh;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 16px 50px rgba(0,0,0,.6);
  animation: zoomFadeIn .25s ease;
}

.lightbox-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: rgba(255,255,255,0.15);
  color: #fff;
  font-size: 22px;
  font-weight: 900;
  cursor: pointer;
  transition: all .15s;
  backdrop-filter: blur(6px);
  z-index: 10;
}

.lightbox-nav-btn:hover {
  background: var(--orange, #f36f21);
  transform: translateY(-50%) scale(1.08);
}

.lightbox-nav-btn.prev { left: 10px; }
.lightbox-nav-btn.next { right: 10px; }

.lightbox-bottom-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 12px 20px;
  background: rgba(255,255,255,0.08);
  border-radius: 12px;
  backdrop-filter: blur(8px);
}

.lightbox-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  color: #fff;
  min-width: 0;
}

.lightbox-title {
  font-size: 15px;
  font-weight: 750;
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.lightbox-desc {
  font-size: 12px;
  color: rgba(255,255,255,0.7);
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.lightbox-whatsapp-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 8px;
  background: #25d366;
  color: #fff;
  font-size: 12.5px;
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
  transition: background .15s, transform .15s;
  flex-shrink: 0;
}

.lightbox-whatsapp-btn:hover {
  background: #20ba5a;
  transform: scale(1.03);
}

@keyframes zoomFadeIn {
  from { opacity: 0; transform: scale(0.96); }
  to { opacity: 1; transform: scale(1); }
}

@media(max-width: 768px) {
  .insta-feed-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
  .lightbox-bottom-bar {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
    gap: 10px;
  }
  .lightbox-info {
    align-items: center;
  }
  .lightbox-nav-btn {
    width: 42px;
    height: 42px;
    font-size: 18px;
  }
  .lightbox-nav-btn.prev { left: 4px; }
  .lightbox-nav-btn.next { right: 4px; }
}
