/* ==========================================================================
   Reçete Müzik — "Pearl & Liquid Glass" tasarım sistemi
   ========================================================================== */

:root {
  --obsidian: #07090e;
  --obsidian-2: #0d111a;
  --pearl: #f2efe8;
  --pearl-dim: #b9b3a6;
  --champagne: #fde68a;
  --amber: #f59e0b;
  --rose: #f9a8d4;
  --violet: #c4b5fd;
  --glass-bg: rgba(255, 255, 255, 0.03);
  --glass-border: rgba(255, 255, 255, 0.08);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  color-scheme: dark;
}

@property --mouse-x { syntax: "<length>"; inherits: false; initial-value: -1000px; }
@property --mouse-y { syntax: "<length>"; inherits: false; initial-value: -1000px; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
html.modal-open { overflow: hidden; }
body {
  background: radial-gradient(120% 80% at 50% 0%, var(--obsidian-2) 0%, var(--obsidian) 60%) fixed, var(--obsidian);
  color: var(--pearl);
  overflow-x: hidden;
}
section[id] { scroll-margin-top: 96px; }
::selection { background: rgba(253, 230, 138, 0.25); color: #fff; }

/* Kaydırma çubuğu */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--obsidian); }
::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, 0.08); border-radius: 999px; border: 2px solid var(--obsidian); }
::-webkit-scrollbar-thumb:hover { background: rgba(253, 230, 138, 0.25); }

/* --- Arka plan katmanları ----------------------------------------------- */
#pearl-canvas {
  position: fixed; inset: 0; width: 100vw; height: 100vh;
  z-index: 0; pointer-events: none;
}
.ambient { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.ambient span { position: absolute; border-radius: 9999px; filter: blur(64px); will-change: transform; }
.ambient .glow-gold   { width: 46vw; height: 46vw; left: -10vw; top: -12vw; background: rgba(245, 158, 11, 0.12); animation: drift 26s ease-in-out infinite alternate; }
.ambient .glow-pearl  { width: 34vw; height: 34vw; right: 8vw; top: 20vh; background: rgba(253, 230, 138, 0.08); animation: drift 32s ease-in-out infinite alternate-reverse; }
.ambient .glow-rose   { width: 40vw; height: 40vw; right: -12vw; bottom: -10vw; background: rgba(244, 114, 182, 0.09); animation: drift 30s ease-in-out infinite alternate; }
.ambient .glow-violet { width: 38vw; height: 38vw; left: 20vw; bottom: -18vw; background: rgba(139, 92, 246, 0.10); animation: drift 36s ease-in-out infinite alternate-reverse; }
@keyframes drift {
  0%   { transform: translate3d(0, 0, 0) scale(1); }
  100% { transform: translate3d(4vw, 3vh, 0) scale(1.12); }
}
.grain {
  position: fixed; inset: 0; z-index: 1; pointer-events: none; opacity: 0.035; mix-blend-mode: overlay;
  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='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* --- Sedef (pearl) metin ------------------------------------------------- */
.pearl-text {
  background: linear-gradient(100deg, #f8f4ea 0%, #fde68a 18%, #fff 32%, #e9d5ff 46%, #fbcfe8 58%, #fff7e0 72%, #f8f4ea 100%);
  background-size: 250% 100%;
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
  animation: pearl-shimmer 9s ease-in-out infinite;
}
@keyframes pearl-shimmer {
  0%, 100% { background-position: 0% 50%; }
  50%      { background-position: 100% 50%; }
}
.hero-title {
  font-size: clamp(3.1rem, 12.5vw, 10.5rem);
  /* Türkçe aksanlar (Ç, Ğ, İ, Ö, Ş, Ü) iki satır arasında çakışmasın */
  line-height: 1.18;
  padding-block: 0.06em 0.1em;   /* background-clip metninde aksanlar kırpılmasın */
  letter-spacing: -0.02em;
  filter: drop-shadow(0 0 32px rgba(253, 230, 138, 0.16));
}
.eyebrow { letter-spacing: 0.32em; text-transform: uppercase; font-size: 0.72rem; font-weight: 600; color: rgba(253, 230, 138, 0.8); }
.section-title { font-size: clamp(2.4rem, 6vw, 4.5rem); line-height: 1; letter-spacing: -0.015em; }

/* --- Liquid glass kart ------------------------------------------------- */
.glass {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  -webkit-backdrop-filter: blur(24px) saturate(140%);
  backdrop-filter: blur(24px) saturate(140%);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}
.glass-card {
  position: relative;
  isolation: isolate;
  --mouse-x: -1000px;
  --mouse-y: -1000px;
}
/* Yüzey parıltısı: imleci takip eden yumuşak ışık */
.glass-card::before {
  content: "";
  position: absolute; inset: 0; z-index: -1;
  border-radius: inherit; pointer-events: none;
  background: radial-gradient(520px circle at var(--mouse-x) var(--mouse-y), rgba(253, 230, 138, 0.075), rgba(233, 213, 255, 0.035) 35%, transparent 60%);
  opacity: 0; transition: opacity 0.5s var(--ease-out);
}
.glass-card:hover::before { opacity: 1; }
/* Kenar parıltısı: imleç yaklaştığında kenarlar ışıldar */
.glass-card::after {
  content: "";
  position: absolute; inset: 0; z-index: 2;
  border-radius: inherit; padding: 1px; pointer-events: none;
  background: radial-gradient(360px circle at var(--mouse-x) var(--mouse-y), rgba(253, 230, 138, 0.55), rgba(244, 196, 255, 0.22) 30%, transparent 55%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
}

/* 3B eğim */
.tilt-card { transform-style: preserve-3d; transition: transform 0.6s var(--ease-out), box-shadow 0.6s var(--ease-out); will-change: transform; }
.tilt-card.is-tilting { transition: transform 0.12s linear, box-shadow 0.4s; }

/* --- Scroll reveal ------------------------------------------------------ */
.js .reveal {
  opacity: 0;
  transform: translate3d(0, 32px, 0) scale(0.975);
  filter: blur(12px);
  transition: opacity 1s var(--ease-out), transform 1.15s var(--ease-out), filter 1s var(--ease-out);
  transition-delay: var(--reveal-delay, 0ms);
}
.js .reveal.is-visible { opacity: 1; transform: none; filter: none; }

/* --- Navbar ------------------------------------------------------------- */
#site-nav .nav-shell { transition: padding 0.5s var(--ease-out), background-color 0.5s, max-width 0.6s var(--ease-out); }
#site-nav.is-scrolled .nav-shell { background-color: rgba(10, 13, 20, 0.55); }
.nav-link { position: relative; color: rgba(242, 239, 232, 0.66); transition: color 0.3s; }
.nav-link:hover, .nav-link.is-active { color: #fff; }
.nav-link::after {
  content: ""; position: absolute; left: 50%; bottom: -6px; width: 4px; height: 4px; border-radius: 99px;
  background: var(--champagne); box-shadow: 0 0 10px var(--champagne);
  transform: translateX(-50%) scale(0); transition: transform 0.4s var(--ease-out);
}
.nav-link.is-active::after { transform: translateX(-50%) scale(1); }

/* Mobil çekmece */
#mobile-drawer { visibility: hidden; }
#mobile-drawer.is-open { visibility: visible; }
#mobile-drawer .drawer-backdrop { opacity: 0; transition: opacity 0.45s var(--ease-out); }
#mobile-drawer .drawer-panel { transform: translateX(105%); transition: transform 0.55s var(--ease-out); }
#mobile-drawer.is-open .drawer-backdrop { opacity: 1; }
#mobile-drawer.is-open .drawer-panel { transform: none; }

/* --- Fotoğraf şeridi (marquee) ----------------------------------------- */
.marquee { mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee-track { display: flex; width: max-content; animation: marquee var(--marquee-duration, 60s) linear infinite; }
.marquee:hover .marquee-track, .marquee:focus-within .marquee-track { animation-play-state: paused; }
@keyframes marquee { from { transform: translate3d(0, 0, 0); } to { transform: translate3d(-50%, 0, 0); } }
.film-frame img { transition: transform 1.2s var(--ease-out), filter 0.8s; filter: saturate(0.85) brightness(0.9); }
.film-frame:hover img, .film-frame:focus-visible img { transform: scale(1.07); filter: saturate(1.05) brightness(1); }

/* --- Etkinlik bileti ---------------------------------------------------- */
.ticket-divider { position: relative; }
.ticket-divider::before, .ticket-divider::after {
  content: ""; position: absolute; width: 22px; height: 22px; border-radius: 99px; background: var(--obsidian);
  border: 1px solid var(--glass-border);
}
@media (min-width: 768px) {
  .ticket-divider { border-left: 1px dashed rgba(255, 255, 255, 0.12); }
  .ticket-divider::before { top: -12px; left: -11px; }
  .ticket-divider::after  { bottom: -12px; left: -11px; }
}
@media (max-width: 767px) {
  .ticket-divider { border-top: 1px dashed rgba(255, 255, 255, 0.12); }
  .ticket-divider::before { left: -12px; top: -11px; }
  .ticket-divider::after  { right: -12px; top: -11px; }
}
.tab-indicator { transition: transform 0.55s var(--ease-out), width 0.55s var(--ease-out); }
[data-tab-panel] { transition: opacity 0.5s var(--ease-out), transform 0.6s var(--ease-out); }
[data-tab-panel].is-hidden { display: none; }
[data-tab-panel].is-entering { opacity: 0; transform: translateY(14px); }

/* --- Video kartı -------------------------------------------------------- */
.video-card img { transition: transform 1.2s var(--ease-out), filter 0.6s; filter: brightness(0.78) saturate(0.9); }
.video-card:hover img, .video-card:focus-visible img { transform: scale(1.06); filter: brightness(0.92) saturate(1.05); }
.play-orb { transition: transform 0.6s var(--ease-out), box-shadow 0.6s; box-shadow: 0 0 0 0 rgba(253, 230, 138, 0.3); }
.video-card:hover .play-orb { transform: scale(1.1); box-shadow: 0 0 0 14px rgba(253, 230, 138, 0.06), 0 0 60px rgba(253, 230, 138, 0.35); }

/* --- Modallar ----------------------------------------------------------- */
.modal {
  position: fixed; inset: 0; z-index: 90;
  display: grid; place-items: center; padding: 1rem;
  opacity: 0; visibility: hidden;
  transition: opacity 0.45s var(--ease-out), visibility 0s linear 0.45s;
}
.modal.is-open { opacity: 1; visibility: visible; transition: opacity 0.45s var(--ease-out), visibility 0s; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(4, 5, 9, 0.78); -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px); }
.modal-panel { position: relative; transform: translateY(18px) scale(0.965); transition: transform 0.6s var(--ease-out); }
.modal.is-open .modal-panel { transform: none; }
#lightbox-img { transition: opacity 0.35s var(--ease-out); }

/* --- Form & buton -------------------------------------------------------- */
.field {
  width: 100%;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 0.9rem;
  padding: 0.75rem 1rem;
  color: var(--pearl);
  font-size: 0.95rem;
  transition: border-color 0.3s, background-color 0.3s, box-shadow 0.3s;
}
.field::placeholder { color: rgba(242, 239, 232, 0.32); }
.field:focus { outline: none; border-color: rgba(253, 230, 138, 0.45); background: rgba(255, 255, 255, 0.055); box-shadow: 0 0 0 4px rgba(253, 230, 138, 0.08); }
.field[type="file"] { padding: 0.55rem; font-size: 0.85rem; color: var(--pearl-dim); }
.field[type="file"]::file-selector-button {
  margin-right: 0.75rem; border: 0; border-radius: 0.6rem; padding: 0.45rem 0.9rem;
  background: rgba(253, 230, 138, 0.12); color: var(--champagne); font-weight: 600; cursor: pointer;
}
select.field { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%23fde68a' stroke-width='2' viewBox='0 0 24 24'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 0.9rem center; padding-right: 2.5rem; }
select.field option { background: #0d111a; }
input[type="date"].field, input[type="datetime-local"].field { color-scheme: dark; }
.label { display: block; margin-bottom: 0.45rem; font-size: 0.72rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: rgba(242, 239, 232, 0.55); }

.btn-primary, .btn-ghost, .btn-danger {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  border-radius: 999px; font-weight: 600; font-size: 0.92rem; padding: 0.8rem 1.4rem;
  transition: transform 0.4s var(--ease-out), box-shadow 0.4s, background-color 0.3s, border-color 0.3s, color 0.3s;
  cursor: pointer; white-space: nowrap;
}
.btn-primary {
  color: #1a1306;
  background: linear-gradient(120deg, #fff7e0, #fde68a 45%, #f5c56b);
  box-shadow: 0 10px 30px -10px rgba(253, 230, 138, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.7);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 18px 40px -12px rgba(253, 230, 138, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.7); }
.btn-ghost { color: var(--pearl); background: rgba(255, 255, 255, 0.04); border: 1px solid rgba(255, 255, 255, 0.12); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); }
.btn-ghost:hover { transform: translateY(-2px); border-color: rgba(253, 230, 138, 0.4); color: #fff; }
.btn-danger { color: #fecdd3; background: rgba(244, 63, 94, 0.08); border: 1px solid rgba(244, 63, 94, 0.25); }
.btn-danger:hover { background: rgba(244, 63, 94, 0.16); }
.btn-sm { padding: 0.5rem 0.95rem; font-size: 0.82rem; }
.btn-primary:focus-visible, .btn-ghost:focus-visible, .btn-danger:focus-visible, a:focus-visible, button:focus-visible {
  outline: 2px solid rgba(253, 230, 138, 0.7); outline-offset: 3px;
}

/* Admin: sekme bağlantısı */
.admin-tab { color: rgba(242, 239, 232, 0.6); transition: background-color 0.3s, color 0.3s; }
.admin-tab:hover { color: #fff; background: rgba(255, 255, 255, 0.04); }
.admin-tab.is-active { color: #fff; background: linear-gradient(90deg, rgba(253, 230, 138, 0.12), rgba(255, 255, 255, 0.02)); box-shadow: inset 0 0 0 1px rgba(253, 230, 138, 0.18); }
details > summary { list-style: none; cursor: pointer; }
details > summary::-webkit-details-marker { display: none; }
details[open] .chev { transform: rotate(180deg); }

/* Görsel yüklenemezse sedef degrade */
.img-fallback { background: radial-gradient(circle at 30% 25%, rgba(253, 230, 138, 0.25), transparent 55%), radial-gradient(circle at 75% 80%, rgba(196, 181, 253, 0.2), transparent 55%), #10141e; }

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