/* ============================================================
   SAĞLAM SİTELER — Design Philosophy: GILDED RESTRAINT
   "the architecture of quiet wealth"
   warm noir · matte champagne gold · intaglio detail
   ============================================================
   Single source of truth. Tüm eski çakışmalar temizlendi.
   ============================================================ */

:root {
  --ink:        #0c0b0a;
  --ink-2:      #16130f;
  --ink-3:      #1f1a13;
  --gold:       #c6a254;
  --gold-2:     #b08838;
  --gold-dark:  #8a682c;
  --gold-light: #e6c882;
  --gold-glow:  rgba(198, 162, 84, 0.55);
  --paper:      #ebe0c5;
  --ash:        #5a5246;
}

/* ---- Web fonts (premium serif + refined mono) ---- */
@import url("https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,500;0,600;1,500&family=Gloock&family=DM+Mono&display=swap");

/* ---- Base reset ---- */
* { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background-color: var(--ink);
  /* body bg-image YOK — bu negatif z-index video'yu kapatıyordu */
  min-height: 100dvh;
  width: 100%;
  padding-top: max(1rem, env(safe-area-inset-top, 0));
  padding-left: env(safe-area-inset-left, 0);
  padding-right: env(safe-area-inset-right, 0);
  padding-bottom: env(safe-area-inset-bottom, 0);
  position: relative;
  overflow-x: hidden;
  -webkit-tap-highlight-color: transparent;
  -webkit-overflow-scrolling: touch;
  font-family: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  color: var(--paper);
}


a { -webkit-tap-highlight-color: transparent; touch-action: manipulation; }


/* ============================================================
   ARKA PLAN KATMANLARI (z-index hierarchy)
   ------------------------------------------------------------
   -10  : video (en alt)
    -5  : body::before (linen grain, video'ya hafif doku)
    -3  : body::after (vignette, kenar düşüşü)
    -2  : .bg-overlay (genel karanlık tonlama)
     0  : içerik
   ============================================================ */

.bg-video {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  object-fit: cover;
  object-position: center center;
  pointer-events: none;
  z-index: -2;
}

/* PC = WebP, Mobile = Video (autoplay garantili her ikisinde) */
.bg-video--mobile  { display: none; }
.bg-video--desktop { display: block; }

@media (hover: none) and (pointer: coarse) {
  .bg-video--mobile  { display: block; }
  .bg-video--desktop { display: none; }
}

@media not all and (hover: none) and (pointer: coarse) {
  .sound-toggle { display: none; }
}
.bg-overlay {
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse at center, rgba(8,7,5,0.20) 30%, rgba(8,7,5,0.55) 100%),
    linear-gradient(180deg, rgba(8,7,5,0.30), rgba(8,7,5,0.45));
  z-index: -1;
  pointer-events: none;
}

/* Linen grain — paper texture (subtle, Gilded Restraint imzası) */
.bg-overlay::before {
  content: "";
  position: absolute; inset: 0;
  pointer-events: none;
  background-image:
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' seed='3'/><feColorMatrix values='0 0 0 0 0.78  0 0 0 0 0.65  0 0 0 0 0.35  0 0 0 0.04 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
  opacity: 0.45;
  mix-blend-mode: overlay;
}


/* (linen grain ve vignette kaldırıldı - video full net görünsün) */


/* ============================================================
   SES KONTROL BUTONU (gilded brass plaque)
   ============================================================ */
.sound-toggle {
  position: fixed;
  right: calc(18px + env(safe-area-inset-right, 0px));
  bottom: calc(18px + env(safe-area-inset-bottom, 0px));
  z-index: 1000;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  border: 1px solid var(--gold);
  background: radial-gradient(circle at 30% 30%, rgba(198, 162, 84, 0.30), rgba(8, 7, 5, 0.85) 70%);
  color: var(--gold-light);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: transform 0.25s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  box-shadow:
    0 0 0 1px rgba(198, 162, 84, 0.2) inset,
    0 8px 24px rgba(0, 0, 0, 0.55),
    0 0 24px rgba(198, 162, 84, 0.15);
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}
.sound-toggle:hover {
  border-color: var(--gold-light);
  box-shadow:
    0 0 0 1px rgba(230, 200, 130, 0.45) inset,
    0 10px 30px rgba(0, 0, 0, 0.6),
    0 0 36px rgba(230, 200, 130, 0.3);
  transform: scale(1.06);
}
.sound-toggle:active { transform: scale(0.95); }
.sound-toggle.active {
  background: radial-gradient(circle at 30% 30%, rgba(230, 200, 130, 0.4), rgba(20, 16, 10, 0.9) 70%);
  border-color: var(--gold-light);
  color: var(--paper);
}
@media (max-width: 768px) {
  .sound-toggle {
    right: calc(12px + env(safe-area-inset-right, 0px));
    bottom: calc(12px + env(safe-area-inset-bottom, 0px));
    width: 48px; height: 48px;
  }
}


/* ============================================================
   CONTAINER & GRID
   ============================================================ */
.container { max-width: 940px; }
.row { --bs-gutter-x: 0.5rem !important; }
.row-cols-2 .col:first-child  { padding-right: 4px; }
.row-cols-2 .col:last-child   { padding-left: 4px; }


/* ============================================================
   LOADER — gold leaf seal
   ============================================================ */
.loader {
  position: fixed; inset: 0;
  background: var(--ink);
  display: flex; align-items: center; justify-content: center;
  z-index: 9999;
  transition: opacity 0.5s ease;
}
.loader img {
  width: 130px; height: auto;
  filter: drop-shadow(0 0 30px rgba(198, 162, 84, 0.45));
  animation: scaleSeal 2.4s ease-in-out infinite;
}
@keyframes scaleSeal {
  0%, 100% { transform: scale(1); }
  50%      { transform: scale(1.18); }
}


/* ============================================================
   BANNER VITRINE (üst & alt) — altın çift çerçeve + köşe markları
   ============================================================ */
.banners a,
.banners2 a {
  display: block;
  position: relative;
  border-radius: 8px;
  padding: 10px;
  background: linear-gradient(180deg, rgba(20, 16, 10, 0.78), rgba(8, 7, 5, 0.85));
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--gold-dark);
  box-shadow:
    0 0 0 1px rgba(198, 162, 84, 0.25) inset,
    0 18px 48px rgba(0, 0, 0, 0.55),
    0 0 60px rgba(198, 162, 84, 0.06);
  transition: box-shadow 0.35s ease, transform 0.35s ease;
}
.banners a::before,
.banners2 a::before {
  content: "";
  position: absolute;
  inset: 6px;
  border: 1px solid rgba(198, 162, 84, 0.45);
  border-radius: 4px;
  pointer-events: none;
  z-index: 1;
}
.banners img,
.banners2 img {
  border-radius: 4px;
  display: block;
  width: 100%;
  height: auto;
  position: relative;
  z-index: 0;
}
.banners a:hover,
.banners2 a:hover {
  border-color: var(--gold-light);
  box-shadow:
    0 0 0 1px rgba(230, 200, 130, 0.5) inset,
    0 22px 60px rgba(0, 0, 0, 0.7),
    0 0 90px rgba(230, 200, 130, 0.18);
  transform: translateY(-1px);
}

/* Banner corner ornaments */
.banners a > .corner,
.banners2 a > .corner {
  position: absolute;
  width: 16px; height: 16px;
  pointer-events: none;
  z-index: 2;
}
.banners a > .corner.tl,
.banners2 a > .corner.tl {
  top: 10px; left: 10px;
  border-top: 1px solid var(--gold);
  border-left: 1px solid var(--gold);
}
.banners a > .corner.tr,
.banners2 a > .corner.tr {
  top: 10px; right: 10px;
  border-top: 1px solid var(--gold);
  border-right: 1px solid var(--gold);
}
.banners a > .corner.bl,
.banners2 a > .corner.bl {
  bottom: 10px; left: 10px;
  border-bottom: 1px solid var(--gold);
  border-left: 1px solid var(--gold);
}
.banners a > .corner.br,
.banners2 a > .corner.br {
  bottom: 10px; right: 10px;
  border-bottom: 1px solid var(--gold);
  border-right: 1px solid var(--gold);
}


/* ============================================================
   VIP VITRINE — altın çift çerçeve + köşe markları
   ============================================================ */
.viplerim {
  position: relative;
  background:
    linear-gradient(180deg, rgba(20, 16, 10, 0.76), rgba(8, 7, 5, 0.82)),
    radial-gradient(ellipse at top, rgba(198, 162, 84, 0.06), transparent 70%);
  backdrop-filter: blur(16px) saturate(120%);
  -webkit-backdrop-filter: blur(16px) saturate(120%);
  border: 1px solid var(--gold-dark);
  border-radius: 8px;
  padding: 28px 18px 18px 18px;
  margin: 8px 0;
  box-shadow:
    0 0 0 1px rgba(198, 162, 84, 0.22) inset,
    0 24px 60px rgba(0, 0, 0, 0.55),
    0 0 80px rgba(198, 162, 84, 0.05);
}
/* iç çift rule (vitrine inner border) */
.viplerim::before {
  content: "";
  position: absolute;
  inset: 8px;
  border: 1px solid rgba(198, 162, 84, 0.35);
  border-radius: 4px;
  pointer-events: none;
  z-index: 0;
}

/* VIP corner ornaments (engraver's marks — daha belirgin gold leaf) */
.viplerim > .corner {
  position: absolute;
  width: 26px; height: 26px;
  pointer-events: none;
  z-index: 2;
}
.viplerim > .corner.tl {
  top: 14px; left: 14px;
  border-top: 1.5px solid var(--gold);
  border-left: 1.5px solid var(--gold);
}
.viplerim > .corner.tr {
  top: 14px; right: 14px;
  border-top: 1.5px solid var(--gold);
  border-right: 1.5px solid var(--gold);
}
.viplerim > .corner.bl {
  bottom: 14px; left: 14px;
  border-bottom: 1.5px solid var(--gold);
  border-left: 1.5px solid var(--gold);
}
.viplerim > .corner.br {
  bottom: 14px; right: 14px;
  border-bottom: 1.5px solid var(--gold);
  border-right: 1.5px solid var(--gold);
}
.viplerim > .corner::after {
  content: "";
  position: absolute;
  width: 5px; height: 5px;
  background: var(--gold);
  transform: rotate(45deg);
  box-shadow: 0 0 6px rgba(198,162,84,0.5);
}
.viplerim > .corner.tl::after { top: 7px; left: 7px; }
.viplerim > .corner.tr::after { top: 7px; right: 7px; }
.viplerim > .corner.bl::after { bottom: 7px; left: 7px; }
.viplerim > .corner.br::after { bottom: 7px; right: 7px; }

.viplerim .col {
  margin-top: 0 !important;
  padding: 4px;
  position: relative;
  z-index: 1;
}

.vip-solo {
  padding: 4px;
  margin-bottom: 6px;
  position: relative;
  z-index: 1;
}


/* ============================================================
   VIP CARDS (solo + grid) — altın yaprakları kartuş
   ============================================================ */
.wrapper {
  position: relative;
  display: block;
  transition: transform 200ms ease;
}

.inside {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  padding: 5px;
  background: linear-gradient(180deg, rgba(20, 16, 10, 0.6), rgba(8, 7, 5, 0.65));
  box-shadow:
    0 0 0 1px var(--gold-dark) inset,
    0 0 0 4px rgba(8, 7, 5, 0.85) inset,
    0 0 0 5px var(--gold) inset,
    0 12px 36px rgba(0, 0, 0, 0.55);
  transition: box-shadow 0.4s ease;
}
.inside img,
.inside video {
  width: 100%;
  height: auto;
  border: none;
  border-radius: 8px;
  margin: 0;
  display: block;
  position: relative;
}
.wrapper:hover .inside {
  box-shadow:
    0 0 0 1px var(--gold-light) inset,
    0 0 0 4px rgba(8, 7, 5, 0.85) inset,
    0 0 0 5px var(--gold-light) inset,
    0 16px 40px rgba(0, 0, 0, 0.7),
    0 0 60px rgba(230, 200, 130, 0.18);
}

/* Subtle gold shine — restraint, slow */
.shiny {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(
    115deg,
    transparent 35%,
    rgba(230, 200, 130, 0.18) 50%,
    transparent 65%
  );
  background-size: 220% 100%;
  background-position: -50% 0;
  animation: goldShine 7s ease-in-out infinite;
  filter: blur(2px);
  border-radius: 8px;
  z-index: 1;
}
@keyframes goldShine {
  0%, 100% { background-position: -60% 0; opacity: 0; }
  50%      { background-position: 160% 0; opacity: 1; }
}


/* ============================================================
   CARDS (cards1 / cards2) — gold breathing border
   ============================================================ */
.rectangle2 {
  position: relative;
  border: 1px solid var(--gold-dark);
  border-radius: 12px;
  box-shadow: 0 8px 26px rgba(0, 0, 0, 0.45);
  animation: gildedBreath 5s infinite ease-in-out;
}
@keyframes gildedBreath {
  0%, 100% {
    border-color: var(--gold-dark);
    box-shadow:
      0 0 0 1px rgba(198, 162, 84, 0.15) inset,
      0 8px 26px rgba(0, 0, 0, 0.45);
  }
  50% {
    border-color: var(--gold-light);
    box-shadow:
      0 0 0 1px rgba(230, 200, 130, 0.35) inset,
      0 0 18px rgba(198, 162, 84, 0.35),
      0 8px 26px rgba(0, 0, 0, 0.45);
  }
}


/* ============================================================
   MOBILE (≤ 768)
   ============================================================ */
@media (max-width: 768px) {
  .viplerim {
    padding: 22px 12px 12px 12px;
    margin: 6px 0;
  }
  .viplerim > .corner {
    width: 16px; height: 16px;
    top: 10px; left: 10px;
  }
  .viplerim > .corner.tr { left: auto; right: 10px; }
  .viplerim > .corner.bl { top: auto; bottom: 10px; }
  .viplerim > .corner.br { top: auto; bottom: 10px; left: auto; right: 10px; }

  .viplerim .col { padding: 3px; }
  .vip-solo { padding: 3px; margin-bottom: 4px; }

  .inside { border-radius: 10px; padding: 4px; }
  .inside img, .inside video { border-radius: 6px; }

  .banners a, .banners2 a { padding: 8px; }
  .banners a > .corner, .banners2 a > .corner {
    width: 14px; height: 14px;
    top: 8px; left: 8px;
  }
  .banners a > .corner.tr, .banners2 a > .corner.tr { left: auto; right: 8px; }
  .banners a > .corner.bl, .banners2 a > .corner.bl { top: auto; bottom: 8px; }
  .banners a > .corner.br, .banners2 a > .corner.br { top: auto; bottom: 8px; left: auto; right: 8px; }
}


/* ============================================================
   ÇOK KÜÇÜK CIHAZLAR (≤ 380)
   ============================================================ */
@media (max-width: 380px) {
  .viplerim { padding: 18px 8px 8px 8px; }
  .viplerim > .corner { width: 14px; height: 14px; }
}


/* ============================================================
   PERFORMANS — düşük güç (sadece animasyonu yumuşat, video gizleme)
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  .shiny, .rectangle2, .loader img { animation: none !important; }
  .wrapper:hover .inside { box-shadow:
    0 0 0 1px var(--gold-dark) inset,
    0 0 0 4px rgba(8, 7, 5, 0.85) inset,
    0 0 0 5px var(--gold) inset,
    0 12px 36px rgba(0, 0, 0, 0.55) !important; }
}
