/* ===== Luna 415 Split Layout UI ===== */

/* Section 1: Hero */
.luna-hero {
  position: relative;
  height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 var(--edge-padding);
  overflow: hidden;
}

.luna-hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.luna-hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
  transform: scale(1);
  animation: slowZoom 20s ease-out forwards;
}

.luna-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(13, 27, 42, 0.95) 0%, rgba(13, 27, 42, 0.6) 50%, transparent 100%);
  z-index: 1;
}

.luna-hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1600px;
  margin-top: 40px;
}

.luna-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: rgba(34, 211, 238, 0.1);
  border: 1px solid rgba(34, 211, 238, 0.3);
  border-radius: 20px;
  color: var(--color-accent);
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: var(--space-xl);
  animation: fadeInUp 0.8s ease-out 0.2s both;
}

.luna-hero-title {
  font-family: var(--font-display);
  font-size: clamp(4rem, 8vw, 7rem);
  font-weight: 800;
  color: #fff;
  line-height: 1;
  margin-bottom: var(--space-sm);
  animation: fadeInUp 0.8s ease-out 0.4s both;
}

.luna-hero-tagline {
  font-family: var(--font-heading);
  font-size: clamp(1.2rem, 3vw, 2rem);
  font-weight: 600;
  color: var(--color-amber);
  margin-bottom: var(--space-2xl);
  letter-spacing: 2px;
  text-transform: uppercase;
  animation: fadeInUp 0.8s ease-out 0.6s both;
}

.luna-hero-actions {
  display: flex;
  gap: var(--space-md);
  flex-wrap: wrap;
  animation: fadeInUp 0.8s ease-out 0.8s both;
}

/* Sections General */
.luna-section {
  padding: var(--space-4xl) var(--edge-padding);
  background: var(--color-warm-white);
}

.luna-bg-dark {
  background: var(--color-warm-white);
  color: var(--color-text);
  border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.luna-bg-dark h2 {
  color: var(--color-forest-deep) !important;
}

.luna-bg-dark .luna-desc-text {
  color: var(--color-text);
}

/* Split Layout */
.luna-split-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4xl);
  max-width: 1600px;
  margin: 0 auto;
  align-items: flex-start;
}

.luna-split-layout.reverse .luna-left-gallery {
  order: 2;
}

.luna-split-layout.reverse .luna-right-content {
  order: 1;
}

/* Left: Gallery Grid */
.luna-left-gallery {
  display: flex;
  flex-direction: column;
  gap: 10px;
  justify-content: flex-start;
}

.gallery-grid-main {
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-radius: 8px;
  background-color: rgba(0, 0, 0, 0.04);
}

.gallery-grid-main img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.6s ease;
}

.gallery-grid-main img:hover {
  transform: scale(1.05);
}

.gallery-grid-subs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.gallery-grid-subs img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 8px;
  cursor: pointer;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.gallery-grid-subs img:hover {
  opacity: 0.8;
  transform: translateY(-2px);
}

/* Plans Container */
.plans-container {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.plans-container img {
  width: 100%;
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  background: #fff;
  padding: 10px;
}

/* Right: Content */
.luna-right-content {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.section-label-box {
  background: var(--color-cream);
  border: 1px solid rgba(0, 0, 0, 0.06);
  padding: 0 24px;
  height: 66px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: flex-start;
  margin-top: 24px;
  margin-bottom: 16px;
}

.section-label-box .section-label {
  margin-bottom: 0;
}

.section-label {
  color: var(--color-amber);
  margin-bottom: var(--space-sm);
  font-family: var(--font-heading);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-size: 0.85rem;
  font-weight: 700;
}

.luna-right-content h2 {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 4vw, 3.5rem);
  font-weight: 800;
  color: var(--color-forest-deep);
  line-height: 1.1;
  margin-bottom: var(--space-lg);
}

.tech-details-box h2 {
  color: var(--color-forest-deep);
  font-size: clamp(2rem, 3.5vw, 2.8rem);
  margin-top: 1.5rem;
  font-weight: 800;
}

.luna-desc-text {
  font-size: 1.1rem;
  color: var(--color-text);
  line-height: 1.8;
  margin-bottom: var(--space-2xl);
}

/* Bullet List */
.luna-bullet-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.luna-bullet-list li {
  position: relative;
  padding-left: 30px;
  font-size: 1.05rem;
  color: var(--color-text);
  line-height: 1.6;
}

.luna-bullet-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  top: 2px;
  color: var(--color-amber);
  font-weight: bold;
  font-size: 1.2rem;
}

.luna-bullet-list li strong {
  color: var(--color-forest-deep);
}

/* Products Grid */
.products-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-md);
  margin-top: 0;
}

.product-item {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 16px 20px;
  border-radius: 6px;
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.8);
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.product-item span {
  font-family: var(--font-heading);
  color: var(--color-sage-light);
  font-weight: 600;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Price Row */
.price-row {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-top: 28px;
  flex-wrap: wrap;
}

.price-tag {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 4vw, 3rem);
  font-weight: 800;
  color: var(--color-forest-deep);
  letter-spacing: 1px;
  line-height: 1;
}

.price-info {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(59, 130, 246, 0.08);
  border: 1px solid rgba(59, 130, 246, 0.25);
  border-radius: 24px;
  padding: 8px 18px;
  color: var(--color-forest-deep);
  font-size: 0.85rem;
  font-family: var(--font-heading);
  letter-spacing: 0.3px;
  line-height: 1.4;
}

.price-info svg {
  flex-shrink: 0;
  color: var(--color-deep-blue);
  opacity: 0.9;
}

/* Animations */
@keyframes slowZoom {
  0% {
    transform: scale(1);
  }

  100% {
    transform: scale(1.05);
  }
}

/* Responsive */
@media (max-width: 1024px) {
  .luna-split-layout {
    grid-template-columns: 1fr;
    gap: var(--space-3xl);
  }

  .luna-split-layout.reverse .luna-left-gallery {
    order: 1;
    /* Reset order for mobile */
  }

  .luna-split-layout.reverse .luna-right-content {
    order: 2;
    /* Reset order for mobile */
  }
}

@media (max-width: 768px) {
  .luna-hero {
    height: 75vh;
  }

  .gallery-grid-subs {
    grid-template-columns: repeat(2, 1fr);
  }

  .products-grid {
    grid-template-columns: 1fr;
  }
}

/* ===== Lightbox ===== */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(0, 0, 0, 0.95);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s ease, visibility 0.35s ease;
}

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

.lightbox-content {
  max-width: 90vw;
  max-height: 85vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-content img {
  max-width: 100%;
  max-height: 85vh;
  object-fit: contain;
  transform: scale(0.92);
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.lightbox.active .lightbox-content img {
  transform: scale(1);
}

.lightbox-close {
  position: absolute;
  top: 24px;
  right: 28px;
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.6);
  font-size: 1.8rem;
  cursor: pointer;
  z-index: 10;
  transition: color 0.3s ease, transform 0.3s ease;
  line-height: 1;
  padding: 8px;
}

.lightbox-close:hover {
  color: var(--color-amber);
  transform: rotate(90deg);
}

.lightbox-prev,
.lightbox-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.6);
  font-size: 2.5rem;
  width: 54px;
  height: 54px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: all 0.3s ease;
  line-height: 1;
  padding: 0;
}

.lightbox-prev {
  left: 20px;
}

.lightbox-next {
  right: 20px;
}

.lightbox-prev:hover,
.lightbox-next:hover {
  background: rgba(212, 168, 67, 0.1);
  border-color: var(--color-amber);
  color: var(--color-amber);
}

.lightbox-counter {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-heading);
  font-size: 0.82rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.45);
  letter-spacing: 2px;
}

@media (max-width: 768px) {

  .lightbox-prev,
  .lightbox-next {
    width: 42px;
    height: 42px;
    font-size: 1.8rem;
  }

  .lightbox-prev {
    left: 10px;
  }

  .lightbox-next {
    right: 10px;
  }
}

/* === Fixes for Swapped Sections === */

/* Force navbar to be always sticky and visible on these pages */
.navbar {
  background: rgba(13, 27, 42, 0.95) !important;
  box-shadow: 0 1px 0 rgba(168, 197, 229, 0.15) !important;
  backdrop-filter: blur(24px) !important;
  -webkit-backdrop-filter: blur(24px) !important;
}

/* Teknik Detaylar Box Styling (Applied to products-grid) */
.products-grid {
  background-color: var(--color-cream) !important;
  padding: 2rem !important;
  border-radius: 16px !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04) !important;
  border: 1px solid rgba(0, 0, 0, 0.06) !important;
}

/* Ensure text inside product items is readable */
.products-grid .product-item {
  color: var(--color-text) !important;
  background: #ffffff !important;
  border: 1px solid rgba(0, 0, 0, 0.06) !important;
}

.products-grid .product-item span {
  color: var(--color-forest-deep) !important;
  font-weight: 700 !important;
}

/* Hakkında list text */
.luna-bg-dark .luna-bullet-list li {
  color: var(--color-text) !important;
}

.luna-bg-dark .luna-bullet-list li strong {
  color: var(--color-forest-deep) !important;
}

.luna-split-layout {
  padding-top: 20px;
}

/* Info Badges */
.luna-info-badges {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 24px;
  margin-bottom: 16px;
}

.info-badge {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--color-cream);
  border: 1px solid rgba(0, 0, 0, 0.06);
  padding: 12px;
  border-radius: 12px;
}

.info-badge-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: rgba(59, 130, 246, 0.1);
  color: var(--color-deep-blue);
  border-radius: 50%;
  flex-shrink: 0;
}

.info-badge-icon svg {
  width: 18px;
  height: 18px;
}

.info-badge-text {
  display: flex;
  flex-direction: column;
}

.info-badge-text .info-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  color: var(--color-slate);
  font-weight: 600;
  letter-spacing: 0.5px;
}

.info-badge-text .info-value {
  font-size: 0.95rem;
  color: var(--color-forest-deep);
  font-weight: 700;
  font-family: var(--font-heading);
}

@media (max-width: 768px) {
  .luna-info-badges {
    grid-template-columns: 1fr;
    gap: 8px;
  }
}