/**
 * Adaplus Cambalkon — özel stiller
 * Tailwind CDN ile birlikte kullanılır.
 */

:root {
  --color-accent: #00a8e8;
  --color-nature: #0b7a4e;
  --color-ink: #1f2937;
  --color-surface: #f8f9fa;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Inter", system-ui, -apple-system, sans-serif;
  color: var(--color-ink);
}

/* Fade-in on scroll */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Premium reveal variants (Apple-like soft motion) */
.reveal-lux {
  opacity: 0;
  transform: translateY(36px) scale(0.975);
  filter: blur(8px);
  transition: opacity 0.9s cubic-bezier(0.22, 1, 0.36, 1), transform 0.9s cubic-bezier(0.22, 1, 0.36, 1), filter 0.9s ease;
}

.reveal-lux.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
  filter: blur(0);
}

/* Opening glass effect for selected cards */
.story-open {
  position: relative;
  overflow: hidden;
}

.story-open::before,
.story-open::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 50%;
  z-index: 3;
  pointer-events: none;
  background: linear-gradient(120deg, rgba(255, 255, 255, 0.85), rgba(248, 249, 250, 0.75));
  transition: transform 0.95s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.8s ease;
}

.story-open::before {
  left: 0;
  transform: translateX(0);
}

.story-open::after {
  right: 0;
  transform: translateX(0);
}

.story-open.is-visible::before {
  transform: translateX(-105%);
  opacity: 0;
}

.story-open.is-visible::after {
  transform: translateX(105%);
  opacity: 0;
}

/* Hero parallax layer */
.hero-parallax {
  will-change: transform;
  transition: transform 0.1s linear;
}

/* Product / card hover */
.btn-glow {
  transition: box-shadow 0.25s ease, transform 0.2s ease, filter 0.2s ease;
}

.btn-glow:hover {
  box-shadow: 0 12px 28px -6px rgba(0, 168, 232, 0.45);
  transform: translateY(-2px);
  filter: brightness(1.05);
}

.card-hover-scale {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card-hover-scale:hover {
  transform: scale(1.02);
  box-shadow: 0 20px 40px -12px rgba(31, 41, 55, 0.15);
}

/* Shared premium card language (site + admin consistency) */
.premium-card {
  border: 1px solid #e5e7eb;
  border-radius: 1rem;
  background: #fff;
  box-shadow: 0 10px 24px -16px rgba(31, 41, 55, 0.3);
}

.premium-soft {
  border: 1px solid #e5e7eb;
  border-radius: 1rem;
  background: #f8f9fa;
  box-shadow: 0 8px 20px -16px rgba(31, 41, 55, 0.25);
}

/* Navbar (public pages): unified dark blue bar */
#site-nav {
  background: #202a66 !important;
  border-bottom-color: rgba(255, 255, 255, 0.12) !important;
}

#site-nav nav a {
  color: #dbe3f3 !important;
}

#site-nav nav a:hover {
  color: #ffffff !important;
}

#site-nav nav a.text-accent {
  color: #ffffff !important;
  font-weight: 700;
}

#site-nav #mobile-menu {
  background: #202a66 !important;
  border-top-color: rgba(255, 255, 255, 0.12) !important;
}

/* Keep same color after scroll */
.nav-scrolled {
  background: #202a66 !important;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.32);
}

/* Footer polish: less amateur, better hierarchy */
footer.bg-ink {
  background: linear-gradient(180deg, #1f2946 0%, #1a233c 100%);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

footer.bg-ink p.text-white.font-semibold {
  letter-spacing: 0.01em;
  font-size: 1.02rem;
  margin-bottom: 1rem;
}

footer.bg-ink .text-sm {
  line-height: 1.6;
}

footer.bg-ink ul.space-y-2 li,
footer.bg-ink ul.space-y-3 li {
  margin-bottom: 0.35rem;
}

footer.bg-ink a {
  transition: color 0.2s ease, opacity 0.2s ease, transform 0.2s ease;
}

footer.bg-ink a:hover {
  opacity: 1;
}

/* Slider */
.product-slider-track {
  display: flex;
  transition: transform 0.45s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Mobile menu */
.mobile-menu-panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
}

.mobile-menu-panel.is-open {
  max-height: 480px;
}

/* Back to top */
.back-to-top {
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
}

.back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* Modal */
.modal-overlay {
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.modal-overlay.is-open {
  opacity: 1;
  visibility: visible;
}

.modal-content {
  transform: scale(0.95) translateY(10px);
  transition: transform 0.25s ease;
}

.modal-overlay.is-open .modal-content {
  transform: scale(1) translateY(0);
}

/* Form focus ring */
.input-focus:focus {
  outline: none;
  ring: 2px;
  box-shadow: 0 0 0 3px rgba(0, 168, 232, 0.35);
  border-color: var(--color-accent);
}

/* Gallery filter buttons */
.filter-btn.active {
  background-color: var(--color-accent);
  color: white;
}

/* Accordion */
.acc-panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
}

.acc-trigger[aria-expanded="true"] .acc-icon {
  transform: rotate(180deg);
}

.acc-icon {
  transition: transform 0.25s ease;
}

/* Online fiyat konfigüratörü — önizleme çerçevesi */
.config-balcony-preview {
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 25px 50px -12px rgba(31, 41, 55, 0.2);
}
.config-balcony-preview__inner {
  position: relative;
  aspect-ratio: 4/3;
  background-size: cover;
  background-position: center;
  border: 14px solid var(--cfg-frame, #374151);
  transition: border-color 0.35s ease, background-image 0.35s ease;
}
.config-balcony-preview__glass {
  position: absolute;
  inset: 0;
  background: var(--cfg-glass, rgba(220, 235, 255, 0.12));
  box-shadow: inset 0 0 32px rgba(255, 255, 255, 0.12);
  pointer-events: none;
  transition: background 0.35s ease;
}
.config-balcony-preview__inner::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.08) 0%, transparent 45%, rgba(0, 0, 0, 0.06) 100%);
  pointer-events: none;
}
.config-balcony-preview__label {
  position: absolute;
  bottom: 14px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  background: rgba(255, 255, 255, 0.94);
  padding: 7px 16px;
  border-radius: 9999px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-ink);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
}
.cfg-swatch.active {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

/* Scroll storytelling */
.story-step {
  transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}

.story-step.is-active {
  transform: translateY(-2px);
  border-color: rgba(0, 168, 232, 0.45);
  box-shadow: 0 18px 36px -22px rgba(0, 168, 232, 0.45);
}

.story-visual {
  overflow: hidden;
  border-radius: 1rem;
}

.story-visual__inner {
  position: relative;
  aspect-ratio: 4/3;
  min-height: clamp(300px, 36vw, 520px);
  background-size: cover;
  background-position: center;
  transition: background-image 0.55s ease;
}

.story-visual__panel {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 50%;
  z-index: 2;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.78) 0%, rgba(245, 248, 250, 0.68) 100%);
  backdrop-filter: blur(2px);
  transition: transform 0.35s ease;
}

.story-visual__panel--left {
  left: 0;
  transform: translateX(calc(var(--story-open-left, 0) * -100%));
}

.story-visual__panel--right {
  right: 0;
  transform: translateX(calc(var(--story-open-right, 0) * 100%));
}

.story-visual__gloss {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(120deg, rgba(255, 255, 255, 0.1) 0%, transparent 35%, transparent 65%, rgba(0, 0, 0, 0.08) 100%);
}

.story-visual__label {
  position: absolute;
  left: 50%;
  bottom: 14px;
  transform: translateX(-50%);
  z-index: 3;
  background: rgba(255, 255, 255, 0.94);
  border-radius: 9999px;
  padding: 8px 15px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--color-ink);
}

.story-cta {
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.35s ease, transform 0.35s ease;
  display: flex;
  justify-content: flex-end;
  z-index: 4;
}

#story-shell.is-active .story-cta {
  opacity: 1;
  transform: translateY(0);
}

.cta-pulse {
  animation: ctaPulse 2.2s ease-in-out infinite;
}

@keyframes ctaPulse {
  0%,
  100% {
    box-shadow: 0 12px 28px -6px rgba(0, 168, 232, 0.45);
  }
  50% {
    box-shadow: 0 16px 34px -10px rgba(0, 168, 232, 0.62);
  }
}

/* Reduce motion */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .reveal,
  .card-hover-scale,
  .btn-glow,
  .product-slider-track {
    transition: none;
  }
  .story-step,
  .story-visual__panel,
  .story-visual__inner {
    transition: none !important;
  }
  .cta-pulse {
    animation: none !important;
  }
  .reveal-lux,
  .story-open::before,
  .story-open::after {
    transition: none !important;
    filter: none !important;
    transform: none !important;
  }
  .hero-parallax {
    transform: none !important;
  }
}

/* Admin: cam planı tuvali — mobilde kaydırma, taşmayı azaltır */
.adm-camplan-scroll {
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
}
