/* ===================================================================
   EVSUN NAKLİYAT - DETAYLI FOTOĞRAF GALERİSİ & LIGHTBOX STİLLERİ
   =================================================================== */

.gallery-section {
  padding: 100px 0;
  background: #090e1a;
  position: relative;
  overflow: hidden;
}

.gallery-filter-nav {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 45px;
}

.filter-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #cbd5e1;
  padding: 10px 22px;
  border-radius: 999px;
  font-family: 'Outfit', sans-serif;
  font-size: 0.92rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.filter-btn:hover {
  background: rgba(245, 158, 11, 0.15);
  border-color: rgba(245, 158, 11, 0.5);
  color: #fbbf24;
  transform: translateY(-2px);
}

.filter-btn.active {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  border-color: #f59e0b;
  color: #0f172a;
  font-weight: 700;
  box-shadow: 0 6px 20px rgba(245, 158, 11, 0.35);
}

/* Gallery Grid */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 28px;
}

.gallery-item {
  background: #111c38;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  display: flex;
  flex-direction: column;
}

.gallery-item:hover {
  transform: translateY(-8px);
  border-color: rgba(245, 158, 11, 0.5);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6), 0 0 20px rgba(245, 158, 11, 0.15);
}

.gallery-thumb-wrap {
  position: relative;
  width: 100%;
  height: 250px;
  overflow: hidden;
  background: #0d1527;
  cursor: pointer;
}

.gallery-thumb-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 35%;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Subtle gradient mask to cover any bottom camera watermarks cleanly */
.gallery-thumb-wrap::after {
  content: '';
  position: absolute;
  inset: auto 0 0 0;
  height: 48px;
  background: linear-gradient(to top, rgba(17, 28, 56, 0.95), transparent);
  pointer-events: none;
  z-index: 2;
}

.gallery-item:hover .gallery-thumb-img {
  transform: scale(1.08);
}

.gallery-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  background: rgba(15, 23, 42, 0.88);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(245, 158, 11, 0.5);
  color: #fbbf24;
  font-size: 0.76rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  z-index: 3;
}

/* Video specific badges */
.gallery-badge.video-badge {
  border-color: #ef4444;
  color: #fca5a5;
  background: rgba(220, 38, 38, 0.3);
  backdrop-filter: blur(8px);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.video-pulse-dot {
  width: 8px;
  height: 8px;
  background: #ef4444;
  border-radius: 50%;
  display: inline-block;
  box-shadow: 0 0 10px #ef4444;
  animation: videoPulse 1.5s infinite;
}

@keyframes videoPulse {
  0% { transform: scale(0.9); opacity: 1; }
  50% { transform: scale(1.3); opacity: 0.6; }
  100% { transform: scale(0.9); opacity: 1; }
}

.gallery-duration-badge {
  position: absolute;
  bottom: 12px;
  right: 14px;
  background: rgba(0, 0, 0, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #ffffff;
  font-size: 0.74rem;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 6px;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 5px;
}

.gallery-duration-badge i {
  color: #f59e0b;
  font-size: 0.7rem;
}

/* Video Card Highlight */
.gallery-item.is-video {
  border-color: rgba(245, 158, 11, 0.3);
  background: linear-gradient(180deg, #131f3e 0%, #0d162d 100%);
}

.gallery-item.is-video:hover {
  border-color: #f59e0b;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.7), 0 0 30px rgba(245, 158, 11, 0.25);
}

.gallery-overlay-btn {
  position: absolute;
  inset: 0;
  background: rgba(11, 19, 43, 0.55);
  backdrop-filter: blur(2px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 3;
}

.gallery-item.is-video .gallery-overlay-btn {
  opacity: 1;
  background: rgba(11, 19, 43, 0.35);
}

.gallery-overlay-btn i {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: #f59e0b;
  color: #0f172a;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  box-shadow: 0 8px 25px rgba(245, 158, 11, 0.6);
  transform: scale(0.9);
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.gallery-item.is-video .gallery-overlay-btn i {
  background: linear-gradient(135deg, #ef4444, #f59e0b);
  color: #ffffff;
  box-shadow: 0 10px 25px rgba(239, 68, 68, 0.55);
  padding-left: 3px;
}

.gallery-item:hover .gallery-overlay-btn {
  opacity: 1;
  background: rgba(11, 19, 43, 0.65);
}

.gallery-item:hover .gallery-overlay-btn i {
  transform: scale(1.1);
}

/* Gallery Info Body */
.gallery-info {
  padding: 22px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.gallery-title {
  font-family: 'Outfit', sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
  color: #ffffff;
  margin: 0 0 10px 0;
  line-height: 1.35;
}

.gallery-desc {
  font-size: 0.86rem;
  color: #94a3b8;
  line-height: 1.55;
  margin: 0 0 16px 0;
  flex: 1;
}

.gallery-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 14px;
  font-size: 0.8rem;
  color: #cbd5e1;
}

.gallery-meta span {
  display: flex;
  align-items: center;
  gap: 6px;
}

.gallery-meta i {
  color: #f59e0b;
}

/* Lightbox Modal */
.gallery-lightbox {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: rgba(4, 7, 15, 0.96);
  backdrop-filter: blur(18px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  padding: 20px;
}

.gallery-lightbox.active {
  opacity: 1;
  visibility: visible;
}

.lightbox-content {
  position: relative;
  max-width: 960px;
  width: 100%;
  background: #0f172a;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 25px 70px rgba(0, 0, 0, 0.85);
  display: flex;
  flex-direction: column;
}

.lightbox-media {
  width: 100%;
  height: 520px;
  background: #020617;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
}

.lightbox-media img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.lightbox-media video {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: 100%;
  object-fit: contain;
  background: #000;
  border-radius: 6px;
  outline: none;
}

.lightbox-details {
  padding: 22px 28px;
  background: #111c38;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.lightbox-details-text {
  flex: 1;
}

.lightbox-details h3 {
  font-family: 'Outfit', sans-serif;
  color: #fff;
  font-size: 1.3rem;
  margin: 0 0 6px 0;
}

.lightbox-details p {
  color: #cbd5e1;
  font-size: 0.9rem;
  line-height: 1.5;
  margin: 0;
}

.lightbox-wp-btn {
  background: #25d366;
  color: #ffffff;
  padding: 10px 18px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  white-space: nowrap;
  transition: all 0.25s ease;
  box-shadow: 0 4px 14px rgba(37, 211, 102, 0.35);
}

.lightbox-wp-btn:hover {
  background: #1ebd5a;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.5);
  color: #ffffff;
}

.lightbox-close {
  position: absolute;
  top: 16px;
  right: 18px;
  z-index: 20;
  background: rgba(0, 0, 0, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #fff;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  transition: all 0.2s;
}

.lightbox-close:hover {
  background: #ef4444;
  color: #ffffff;
  border-color: #ef4444;
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  cursor: pointer;
  transition: all 0.2s;
  z-index: 15;
}

.lightbox-nav:hover {
  background: #f59e0b;
  color: #0f172a;
}

.lightbox-prev {
  left: 18px;
}

.lightbox-next {
  right: 18px;
}

@media (max-width: 768px) {
  .gallery-section {
    padding: 60px 0;
  }
  .gallery-filter-nav {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    justify-content: flex-start;
    padding: 0 4px 14px 4px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    gap: 8px;
    margin-bottom: 28px;
  }
  .gallery-filter-nav::-webkit-scrollbar {
    display: none;
  }
  .filter-btn {
    white-space: nowrap;
    flex-shrink: 0;
    padding: 8px 16px;
    font-size: 0.84rem;
  }
  .gallery-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .gallery-thumb-wrap {
    height: 220px;
  }
  .gallery-info {
    padding: 18px 16px;
  }
  .gallery-title {
    font-size: 1.05rem;
  }
  .gallery-desc {
    font-size: 0.84rem;
  }
  .lightbox-media {
    height: 350px;
  }
  .lightbox-details {
    flex-direction: column;
    align-items: flex-start;
    padding: 18px 16px;
    gap: 14px;
  }
  .lightbox-wp-btn {
    width: 100%;
    justify-content: center;
  }
}
