/* taşıması kolay base yapı için özel header/palet stilleri */
html.light {
  color-scheme: light;
}

.mobile-open #mobileMenu {
  display: block;
}

.palette-wrap #paletteMenu.hidden {
  display: none !important;
}

:root[data-color="gold"] {
  --gold: 42 78% 63%;
  --gold-light: 42 78% 73%;
  --gold-dark: 42 78% 53%;
}

:root[data-color="classic"] {
  --gold: 224 82% 62%;
  --gold-light: 224 88% 72%;
  --gold-dark: 224 72% 52%;
}

:root[data-color="emerald"] {
  --gold: 163 52% 48%;
  --gold-light: 163 56% 60%;
  --gold-dark: 163 52% 38%;
}

:root[data-color="rose"] {
  --gold: 347 74% 60%;
  --gold-light: 347 76% 70%;
  --gold-dark: 347 68% 50%;
}

:root[data-color="ocean"] {
  --gold: 208 84% 58%;
  --gold-light: 208 88% 68%;
  --gold-dark: 208 76% 48%;
}

:root[data-color="sunset"] {
  --gold: 27 94% 59%;
  --gold-light: 27 96% 68%;
  --gold-dark: 20 88% 50%;
}

:root[data-color="colorblind"] {
  --gold: 203 100% 58%;
  --gold-light: 48 100% 62%;
  --gold-dark: 262 83% 62%;
}

.icon-sun,
.icon-moon {
  display: none !important;
}

html.dark .icon-sun {
  display: block !important;
}

html.light .icon-moon {
  display: block !important;
}

.theme-trigger {
  width: 3rem;
  height: 3rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.95rem;
  flex: 0 0 3rem;
}

.theme-trigger .lucide {
  width: 1.15rem;
  height: 1.15rem;
}

.palette-menu {
  width: min(16rem, calc(100vw - 1.25rem));
  padding: 0.8rem;
  border-radius: 1.25rem;
  background: rgba(11, 18, 32, 0.96) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.32);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.palette-menu-title {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.88) !important;
}

.palette-option {
  width: 100%;
  min-height: 3rem;
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding: 0.72rem 0.9rem;
  border: 0;
  background: transparent;
  color: rgba(226, 232, 240, 0.82);
  border-radius: 1rem;
  transition: background-color .2s ease, color .2s ease, transform .2s ease;
}

.palette-option:hover {
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.96);
}

.palette-option.is-active {
  background: rgba(255, 255, 255, 0.11);
  color: #ffffff;
}

.palette-label {
  flex: 1;
  text-align: left;
  font-size: 0.92rem;
  font-weight: 500;
  line-height: 1.2;
}

.palette-dot,
.palette-eye {
  flex: 0 0 auto;
}

.palette-dot {
  width: 1.15rem;
  height: 1.15rem;
  border-radius: 9999px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.palette-default { background: #d9ad52; }
.palette-classic-dot { background: #4a74ea; }
.palette-emerald-dot { background: #48bda4; }
.palette-rose-dot { background: #e44d6a; }
.palette-ocean-dot { background: #3890eb; }
.palette-sunset-dot { background: #f68732; }

.palette-eye {
  width: 1.1rem;
  height: 1.1rem;
  color: #3390ff;
}

.palette-check {
  opacity: 0;
}

.palette-option.is-active .palette-check {
  opacity: 1;
}

@media (max-width: 640px) {
  .theme-trigger {
    width: 2.85rem;
    height: 2.85rem;
    flex-basis: 2.85rem;
  }

  .palette-menu {
    right: 0;
    width: min(15rem, calc(100vw - 0.75rem));
    padding: 0.72rem;
  }

  .palette-option {
    min-height: 2.9rem;
    padding: 0.68rem 0.82rem;
  }
}


header .sm\:gap-3 {
  gap: 0.65rem !important;
}

@media (min-width: 640px) {
  header .sm\:inline-flex.items-center.gap-1.px-4.py-2.rounded-lg.border.border-border.text-sm.font-medium.transition-colors.hover\:text-gold.text-muted-foreground {
    padding-top: 0.7rem;
    padding-bottom: 0.7rem;
  }
}

/* global reveal animations */
.reveal-item {
  opacity: 0 !important;
  transform: translate3d(0, 32px, 0) !important;
  transition:
    opacity 0.7s ease var(--reveal-delay, 0s),
    transform 0.7s ease var(--reveal-delay, 0s);
  will-change: opacity, transform;
}

.reveal-item.is-visible {
  opacity: 1 !important;
  transform: translate3d(0, 0, 0) !important;
}

#mobileMenu.hidden {
  display: none !important;
}

#menuToggle .hidden {
  display: none !important;
}

@media (prefers-reduced-motion: reduce) {
  .reveal-item,
  .reveal-item.is-visible {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}


/* gallery */
.gallery-filters {
  gap: 0.75rem;
}

.gallery-filter-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  padding: 0.7rem 1rem;
  border-radius: 9999px;
  border: 1px solid hsl(var(--border));
  background: hsl(var(--card));
  color: hsl(var(--muted-foreground));
  font-size: 0.92rem;
  font-weight: 500;
  transition: border-color .2s ease, background-color .2s ease, color .2s ease, transform .2s ease, opacity .2s ease;
}

.gallery-filter-chip:hover,
.gallery-filter-chip.is-active {
  border-color: hsl(var(--gold));
  color: hsl(var(--gold));
  background: hsl(var(--secondary));
}

.gallery-filter-chip:active {
  transform: translateY(1px);
}

[data-gallery-item].is-hidden,
[data-media-section].is-hidden,
[data-media-item].is-hidden {
  display: none !important;
}

.gallery-card,
.gallery-media-item {
  opacity: 0;
  transform: translate3d(0, 30px, 0);
  transition: opacity .6s ease var(--reveal-delay, 0s), transform .6s ease var(--reveal-delay, 0s), border-color .2s ease, box-shadow .2s ease;
}

.gallery-card.is-visible,
.gallery-media-item.is-visible {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

.gallery-card-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  padding: 1rem;
  background: linear-gradient(to top, rgba(10, 14, 22, 0.82), rgba(10, 14, 22, 0));
  opacity: 0;
  transition: opacity .25s ease;
}

.gallery-card-caption {
  color: white;
  font-size: 0.9rem;
  line-height: 1.45;
  transform: translateY(10px);
  transition: transform .25s ease;
}

.group:hover .gallery-card-overlay,
.group:focus-visible .gallery-card-overlay,
.gallery-media-item:hover .gallery-card-overlay,
.gallery-media-item:focus-visible .gallery-card-overlay {
  opacity: 1;
}

.group:hover .gallery-card-caption,
.group:focus-visible .gallery-card-caption,
.gallery-media-item:hover .gallery-card-caption,
.gallery-media-item:focus-visible .gallery-card-caption {
  transform: translateY(0);
}

.gallery-lightbox.hidden {
  display: none !important;
}

.gallery-lightbox {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.gallery-lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(3, 7, 18, 0.82);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.gallery-lightbox-dialog {
  position: relative;
  z-index: 1;
  width: min(100%, 1100px);
  max-height: calc(100vh - 2rem);
  padding: 1rem;
  border-radius: 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(10, 14, 22, 0.95);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

.gallery-lightbox-image {
  width: 100%;
  max-height: calc(100vh - 10rem);
  object-fit: contain;
  border-radius: 1rem;
}

.gallery-lightbox-caption {
  margin-top: 1rem;
  color: rgba(255,255,255,0.82);
  font-size: 0.95rem;
  text-align: center;
}

.gallery-lightbox-close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  width: 2.75rem;
  height: 2.75rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 9999px;
  border: 1px solid rgba(255,255,255,0.1);
  background: rgba(255,255,255,0.06);
  color: white;
}

body.gallery-lightbox-open {
  overflow: hidden;
}

@media (max-width: 767px) {
  .gallery-lightbox-dialog {
    padding: 0.85rem;
    border-radius: 1.1rem;
  }

  .gallery-lightbox-image {
    max-height: calc(100vh - 9rem);
  }
}


/* reviews */
.review-stat-card,
.review-form-card,
.review-card {
  transition: border-color .25s ease, box-shadow .25s ease, transform .25s ease;
}

.review-stat-card:hover,
.review-card:hover,
.review-form-card:hover {
  transform: translateY(-4px) scale(1.01);
  border-color: hsl(var(--gold) / 0.45);
  box-shadow: 0 18px 40px hsl(var(--gold) / 0.10);
}

.review-star-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.15rem;
  color: hsl(var(--muted-foreground) / 0.35);
  transition: color .2s ease, transform .2s ease;
}

.review-star-button:hover {
  transform: scale(1.08);
}

.review-star-button.is-active,
.review-star-button.is-hover {
  color: hsl(var(--gold));
}

.review-star-icon {
  width: 1.7rem;
  height: 1.7rem;
}


/* footer spacing fix for gallery/packages/reviews */
.page-footer {
  padding-top: 4rem;
}

.page-footer-shell {
  background: hsl(var(--card));
  border-top: 1px solid hsl(var(--border));
}

body.page-gallery .page-footer,
body.page-packages .page-footer,
body.page-reviews .page-footer {
  padding-top: 5rem;
}

@media (min-width: 1024px) {
  body.page-gallery .page-footer,
  body.page-packages .page-footer,
  body.page-reviews .page-footer {
    padding-top: 6rem;
  }
}


/* Contact form select polish */
.custom-select {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  background-image: none !important;
}

.custom-select::-ms-expand {
  display: none;
}

.page-contact select.custom-select {
  padding-right: 3rem;
}

.page-contact .disabled\:cursor-not-allowed:disabled {
  cursor: not-allowed;
}

.page-contact .disabled\:opacity-60:disabled {
  opacity: .6;
}
