/* ==========================================================================
   Dreamers V&V Hotel Cihangir — özel stiller (Tailwind tamamlayıcısı)
   ========================================================================== */

@layer theme, base, components, utilities;

@property --axo-shift { syntax: "<length>"; inherits: true; initial-value: 0px; }

@layer components {

:root {
  --gold: #e5a910;
  --gold-soft: #d4af37;
  --ink: #121212;
  --header-h: 84px;
}

html { scroll-padding-top: var(--header-h); }
body { text-rendering: optimizeLegibility; }
::selection { background: rgb(229 169 16 / 0.35); color: #fff; }

[hidden] { display: none !important; }
[x-cloak] { display: none !important; }

.text-gold-gradient {
  background: linear-gradient(100deg, #f6dd8f 0%, #e5a910 45%, #d4af37 70%, #f0c94f 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-family: "Montserrat", sans-serif;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--gold);
}
.eyebrow::before {
  content: "";
  width: 2.25rem;
  height: 1px;
  background: currentColor;
  opacity: 0.8;
}
.eyebrow.is-center::after {
  content: "";
  width: 2.25rem;
  height: 1px;
  background: currentColor;
  opacity: 0.8;
}

/* ---------- Header ---------- */
.site-header { transition: background-color .35s ease, box-shadow .35s ease, backdrop-filter .35s ease; }
.site-header .topbar { transition: max-height .35s ease, opacity .25s ease; max-height: 48px; }
.site-header.is-scrolled {
  background: rgb(18 18 18 / 0.88);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  box-shadow: 0 10px 30px -15px rgb(0 0 0 / 0.8);
}
.site-header.is-scrolled .topbar { max-height: 0; opacity: 0; overflow: hidden; }

.nav-link { position: relative; }
.nav-link::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -6px;
  width: 0;
  height: 1.5px;
  background: var(--gold);
  transition: width .3s ease, left .3s ease;
}
.nav-link:hover::after,
.nav-link[aria-current="page"]::after { width: 100%; left: 0; }

.lang-menu { transform-origin: top right; transition: opacity .2s ease, transform .2s ease; }
.lang-menu[data-open="false"] { opacity: 0; transform: scale(.96) translateY(-4px); pointer-events: none; }

.mobile-menu { transition: opacity .3s ease, visibility .3s ease; }
.mobile-menu[data-open="false"] { opacity: 0; visibility: hidden; }
.mobile-menu[data-open="false"] .mobile-menu-panel { transform: translateY(-12px); }
.mobile-menu-panel { transition: transform .35s cubic-bezier(.22,1,.36,1); }

/* ---------- Hero ---------- */
.hero-media img { animation: heroZoom 22s ease-out both; }
@keyframes heroZoom { from { transform: scale(1.12); } to { transform: scale(1); } }

.glass {
  background: linear-gradient(140deg, rgb(26 26 26 / 0.78), rgb(18 18 18 / 0.62));
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  border: 1px solid rgb(229 169 16 / 0.18);
}

.grain::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: .07;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.scroll-cue span { animation: cue 1.8s ease-in-out infinite; }
@keyframes cue { 0%,100% { transform: translateY(0); opacity: .4; } 50% { transform: translateY(8px); opacity: 1; } }

/* ---------- Form controls ---------- */
.field-input {
  width: 100%;
  border-radius: 0.875rem;
  border: 1px solid rgb(255 255 255 / 0.12);
  background: rgb(255 255 255 / 0.04);
  padding: 0.8rem 1rem;
  color: #f7f2e7;
  font-size: 0.95rem;
  transition: border-color .2s, background-color .2s, box-shadow .2s;
  color-scheme: dark;
}
.field-input::placeholder { color: rgb(247 242 231 / 0.35); }
.field-input:hover { border-color: rgb(255 255 255 / 0.22); }
.field-input:focus {
  outline: none;
  border-color: var(--gold);
  background: rgb(229 169 16 / 0.06);
  box-shadow: 0 0 0 4px rgb(229 169 16 / 0.14);
}
select.field-input {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23e5a910' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.9rem center;
  background-size: 1rem;
  padding-right: 2.5rem;
}
select.field-input option { background: #1a1a1a; color: #f7f2e7; }
.field-input[type="date"]::-webkit-calendar-picker-indicator {
  filter: invert(70%) sepia(80%) saturate(700%) hue-rotate(5deg);
  cursor: pointer;
  opacity: .9;
}
.field-label {
  display: block;
  margin-bottom: 0.4rem;
  font-family: "Montserrat", sans-serif;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgb(247 242 231 / 0.6);
}
.field-error { margin-top: 0.35rem; font-size: 0.78rem; color: #f87171; min-height: 0; }
.has-error .field-input { border-color: #f87171; box-shadow: 0 0 0 3px rgb(248 113 113 / 0.12); }

.field-light .field-input {
  border-color: rgb(18 18 18 / 0.14);
  background: #fff;
  color: #121212;
  color-scheme: light;
}
.field-light .field-input::placeholder { color: rgb(18 18 18 / 0.4); }
.field-light .field-label { color: rgb(18 18 18 / 0.6); }
.field-light select.field-input option { background: #fff; color: #121212; }

.checkbox-gold {
  appearance: none;
  flex: none;
  width: 1.15rem;
  height: 1.15rem;
  margin-top: 0.15rem;
  border-radius: 0.35rem;
  border: 1.5px solid rgb(229 169 16 / 0.6);
  display: grid;
  place-content: center;
  cursor: pointer;
  transition: background-color .2s;
}
.checkbox-gold::before {
  content: "";
  width: .55rem;
  height: .55rem;
  clip-path: polygon(14% 44%, 0 65%, 50% 100%, 100% 16%, 80% 0%, 43% 62%);
  background: #121212;
  transform: scale(0);
  transition: transform .15s ease;
}
.checkbox-gold:checked { background: var(--gold); }
.checkbox-gold:checked::before { transform: scale(1); }
.checkbox-gold:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }

/* ---------- Buttons ---------- */
.btn-gold {
  background: linear-gradient(135deg, #f0c94f 0%, #e5a910 55%, #d4af37 100%);
  color: #121212;
  box-shadow: 0 14px 34px -14px rgb(229 169 16 / 0.7);
  transition: transform .25s ease, box-shadow .25s ease, filter .25s ease;
}
.btn-gold:hover { transform: translateY(-2px); box-shadow: 0 20px 44px -16px rgb(229 169 16 / 0.85); filter: brightness(1.05); }
.btn-gold:active { transform: translateY(0); }
.btn-gold:disabled { opacity: .65; cursor: progress; transform: none; }

.spinner {
  width: 1rem;
  height: 1rem;
  border-radius: 999px;
  border: 2px solid currentColor;
  border-right-color: transparent;
  animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Room slider ---------- */
.slider-track {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
}
.slider-track::-webkit-scrollbar { display: none; }
.slider-track > * { flex: 0 0 100%; scroll-snap-align: start; }
.slider-dot { width: 6px; height: 6px; border-radius: 999px; background: rgb(255 255 255 / 0.5); transition: width .3s, background-color .3s; }
.slider-dot.is-active { width: 20px; background: var(--gold); }

.room-card img { transition: transform 1.2s cubic-bezier(.22,1,.36,1); }
.room-card:hover img { transform: scale(1.05); }

/* ---------- Gallery ---------- */
.masonry { column-gap: 1rem; }
.masonry > * { break-inside: avoid; margin-bottom: 1rem; }
.gallery-item { transition: opacity .35s ease, transform .35s ease; }
.gallery-item.is-hidden { display: none; }
.gallery-item img { transition: transform .9s cubic-bezier(.22,1,.36,1), filter .4s; }
.gallery-item:hover img { transform: scale(1.06); }

.filter-btn[aria-pressed="true"] {
  background: #121212;
  color: #e5a910;
  border-color: #121212;
}

/* ---------- Modal & lightbox ---------- */
.modal { transition: opacity .3s ease, visibility .3s ease; }
.modal[data-open="false"] { opacity: 0; visibility: hidden; pointer-events: none; }
.modal-panel { transition: transform .4s cubic-bezier(.22,1,.36,1), opacity .3s; }
.modal[data-open="false"] .modal-panel { transform: translateY(24px) scale(.98); opacity: 0; }
body.is-locked { overflow: hidden; }

.lightbox-img { transition: opacity .25s ease; }
.lightbox-img.is-loading { opacity: 0; }

/* ---------- Walk-time infographic ---------- */
.walk-bar { position: relative; height: 4px; border-radius: 999px; background: rgb(255 255 255 / 0.08); overflow: hidden; }
.walk-bar > span {
  position: absolute;
  inset: 0 auto 0 0;
  width: var(--w, 50%);
  border-radius: inherit;
  background: linear-gradient(90deg, #d4af37, #e5a910);
  transform-origin: left;
  transform: scaleX(0);
  transition: transform 1.2s cubic-bezier(.22,1,.36,1);
}
.is-visible .walk-bar > span { transform: scaleX(1); }

/* ---------- Reveal on scroll ---------- */
[data-reveal] { opacity: 0; transform: translateY(26px); transition: opacity .9s ease, transform .9s cubic-bezier(.22,1,.36,1); transition-delay: var(--d, 0s); }
[data-reveal].is-visible { opacity: 1; transform: none; }

/* ---------- Mobile sticky bar ---------- */
@media (max-width: 1023px) {
  body { padding-bottom: calc(68px + env(safe-area-inset-bottom)); }
}
.mobile-bar { padding-bottom: env(safe-area-inset-bottom); }

.wa-float { animation: waPulse 2.6s ease-out infinite; }
@keyframes waPulse {
  0% { box-shadow: 0 0 0 0 rgb(37 211 102 / 0.5); }
  70% { box-shadow: 0 0 0 16px rgb(37 211 102 / 0); }
  100% { box-shadow: 0 0 0 0 rgb(37 211 102 / 0); }
}

.map-frame iframe { filter: grayscale(.35) contrast(1.05); }

/* ---------- Yasal metinler ---------- */
.legal-prose { color: rgb(18 18 18 / 0.78); font-size: 0.95rem; line-height: 1.8; }
.legal-prose section { scroll-margin-top: 8rem; }
.legal-prose section + section { margin-top: 2.5rem; }
.legal-prose h2 { font-family: var(--font-display); font-size: 1.4rem; line-height: 1.3; color: #121212; margin-bottom: 0.9rem; }
.legal-prose p + p, .legal-prose ul + p, .legal-prose p + ul { margin-top: 0.85rem; }
.legal-prose ul { display: grid; gap: 0.55rem; padding-left: 0; }
.legal-prose li { position: relative; padding-left: 1.4rem; }
.legal-prose li::before { content: ""; position: absolute; left: 0.2rem; top: 0.72em; height: 6px; width: 6px; border-radius: 999px; background: #d4af37; }

.pay-badge { display: inline-flex; height: 1.9rem; min-width: 3rem; align-items: center; justify-content: center; border-radius: 0.45rem; background: #fff; padding: 0 0.55rem; box-shadow: 0 1px 2px rgb(0 0 0 / 0.25); }

@media (max-width: 1023px) {
  .cookie-bar { bottom: calc(80px + env(safe-area-inset-bottom)); }
}

@media print {
  .site-header, footer, .mobile-bar, .wa-float, .cookie-bar, .legal-aside, .legal-print, #booking-modal, #lightbox, #mobile-menu { display: none !important; }
  body { background: #fff !important; color: #000 !important; padding: 0 !important; }
  .hero-media { display: none !important; }
  section { padding-top: 0 !important; padding-bottom: 0 !important; min-height: 0 !important; background: #fff !important; }
  h1 { color: #000 !important; font-size: 24pt !important; }
  .grain, .grain * { color: #000 !important; }
  .legal-doc { box-shadow: none !important; padding: 0 !important; }
  [data-reveal] { opacity: 1 !important; transform: none !important; }
}

/* ==========================================================================
   Axo Digital imzası
   ========================================================================== */
.axo-link { display: inline-flex; align-items: center; gap: 0.5rem; text-decoration: none; }
.axo-label { font-size: 0.625rem; font-weight: 500; letter-spacing: 0.04em; color: rgb(247 242 231 / 0.45); transition: color 0.25s; }
.axo-link:hover .axo-label { color: rgb(247 242 231 / 0.75); }
.axo-brand { position: relative; display: inline-flex; align-items: center; }
.axo-word { display: inline-flex; font-size: 13px; font-weight: 700; letter-spacing: -0.02em; --axo-shift: 0px; animation: axoShine 3s linear infinite; }
.axo-letter {
  display: inline-block;
  background-image: linear-gradient(90deg, #3ec8ff 0%, #5b6cff 16%, #8b3dff 32%, #d42d88 50%, #ff8c28 68%, #ffd24a 84%, #3ec8ff 100%);
  background-size: 12.5em 100%;
  background-repeat: repeat-x;
  background-position: calc(var(--i) * -0.62em + var(--axo-shift)) 0;
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  transform-origin: bottom center;
}
.axo-link:hover .axo-word { animation: axoShine 1.15s linear infinite; }
.axo-link:hover .axo-letter { animation: axoBounce 0.62s cubic-bezier(0.22, 1, 0.36, 1) calc(var(--i) * 42ms); }
.axo-sign-dot { height: 6px; width: 6px; border-radius: 999px; background: #d42d88; box-shadow: 0 0 0 0 rgb(212 45 136 / 0.55); animation: axoPulse 2.2s ease-out infinite; }
.axo-link:hover .axo-sign-dot { animation: axoPulse 0.7s ease-out infinite; background: #ffd24a; }
.axo-sparks { pointer-events: none; position: absolute; inset: -8px -10px; }
.axo-sparks i { position: absolute; height: 5px; width: 5px; border-radius: 999px; background: #3ec8ff; opacity: 0; }
.axo-sparks i:nth-child(1) { left: 8%; top: 0; }
.axo-sparks i:nth-child(2) { right: 12%; top: -2px; background: #d42d88; }
.axo-sparks i:nth-child(3) { right: 38%; bottom: -4px; background: #ffd24a; }
.axo-link:hover .axo-sparks i { animation: axoSpark 0.85s ease-out infinite; }
.axo-link:hover .axo-sparks i:nth-child(2) { animation-delay: 0.12s; }
.axo-link:hover .axo-sparks i:nth-child(3) { animation-delay: 0.24s; }
@keyframes axoShine { from { --axo-shift: 0em; } to { --axo-shift: 12.5em; } }
@keyframes axoPulse {
  0% { transform: scale(0.85); box-shadow: 0 0 0 0 rgb(212 45 136 / 0.55); }
  70% { transform: scale(1); box-shadow: 0 0 0 8px rgb(212 45 136 / 0); }
  100% { transform: scale(0.85); box-shadow: 0 0 0 0 rgb(212 45 136 / 0); }
}
@keyframes axoBounce {
  0% { transform: translateY(0) rotate(0); }
  35% { transform: translateY(-7px) rotate(-8deg); }
  65% { transform: translateY(1px) rotate(5deg); }
  100% { transform: translateY(0) rotate(0); }
}
@keyframes axoSpark {
  0% { opacity: 0; transform: scale(0.4) translateY(4px); }
  35% { opacity: 1; transform: scale(1) translateY(-6px) rotate(18deg); }
  100% { opacity: 0; transform: scale(0.3) translateY(-14px); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
  [data-reveal] { opacity: 1; transform: none; }
}

} /* @layer components */
