@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

/*
 * Enter any custom CSS here.
 * This file will not be overwritten by theme updates.
 *
 * TEMA: Koyu / Minimal — Referans fotoğrafa göre güncellendi
 * (oval navbar, daire ikon butonlar, beyaz duyuru barı, pill badge/butonlar,
 *  yüzen 3D krom dekor görselleri için hazır utility class'lar)
*/

/* ============================================
   FONT — düzgün, temiz bir font (Inter) tüm sitede
   ============================================ */
html, body {
  font-family: 'Inter', ui-sans-serif, system-ui, -apple-system, sans-serif !important;
}

/* ============================================
   0) TAM SİYAH ARKAPLAN — tema değişkenini eziyoruz
   ============================================ */
:root {
  --cl-background: 0, 0, 0;
}

body {
  background-color: #000000 !important;
}

/* ============================================
   HEADER TİPOGRAFİ DÜZELTMESİ — hizasız yazı sorunu
   ============================================ */
header.component nav a,
header.component nav button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1 !important;
  font-size: 1rem !important;
  font-weight: 600 !important;
  letter-spacing: 0;
  padding-top: 0;
  padding-bottom: 0;
  min-height: 2.5rem;
  transform: translateY(-4px);
}

header.component h1 {
  line-height: 1.2;
  display: flex;
  align-items: center;
}

header.component a[href="/cart"],
header.component a[href*="discord"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

/* $ para birimi sembolünün dikey ortalanması */
.currency-selector .choices__inner {
  display: flex !important;
  align-items: center !important;
}

.currency-selector .choices__inner .symbol {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

/* Genel: header içindeki tüm satır elemanları dikey ortalı olsun */
header.component .flex {
  align-items: center;
}

/* ============================================
   1) GENEL ARKAPLAN — düz siyah, renkli glow YOK
   ============================================ */
body {
  position: relative;
  overflow-x: hidden;
  background-color: #000000 !important;
}

/* ============================================
   2) DUYURU BARI (üst beyaz şerit) — announcement component
   Not: component class'ı farklıysa bana announcement.njk'yi at, düzelteyim.
   ============================================ */
[data-component-id="announcement"] {
  background: #ffffff !important;
  color: #111111 !important;
}

[data-component-id="announcement"] a {
  color: #111111 !important;
  text-decoration: underline;
  font-weight: 600;
}

/* ============================================
   3) HEADER ÜST BLOK (logo + istatistik alanı)
   ============================================ */
header.component > div:first-child {
  background: rgba(255, 255, 255, 0.035) !important;
  border: 1px solid rgba(255, 255, 255, 0.09) !important;
}

header.component img {
  filter: none;
}

/* ============================================
   4) OVAL / PILL NAVBAR — tek parça kapsül gibi
   ============================================ */
header nav {
  margin-top: 0.75rem;
}

header nav > div {
  background: rgba(var(--cl-card), 0.7);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 9999px !important;
  padding: 0.4rem 0.6rem;
}

/* Nav linkleri ve login butonu — pill şekli, transparan zemin */
header nav a,
header nav button {
  border-radius: 9999px !important;
  border-color: transparent !important;
  background: transparent !important;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

header nav a:hover,
header nav button:hover {
  background: rgba(255, 255, 255, 0.06) !important;
  transform: translateY(-1px);
}

/* Aktif sayfa / seçili link */
header nav a.bg-accent-500\/10,
header nav button.bg-accent-500\/10 {
  background: rgba(255, 255, 255, 0.1) !important;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.15);
}

/* Sepet ve login gibi ikon butonları — tam daire */
header nav a[href*="cart"],
header nav .currency-selector,
header nav .language-selector {
  aspect-ratio: 1 / 1;
}

.currency-selector .choices__inner,
.language-selector .choices__inner {
  border-radius: 9999px !important;
}

/* ============================================
   5) PILL BADGE (örn. "INSTANT DELIVERY ADDED!")
   Sayfanda böyle bir rozet/badge varsa bu class'ı ekle: class="pill-badge"
   ============================================ */
.pill-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1.25rem;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* ============================================
   6) PILL BUTONLAR (Explore Products / Learn More tarzı)
   ============================================ */
.btn-pill,
button.rounded-lg,
a.rounded-lg {
  border-radius: 9999px !important;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.btn-pill:hover,
button.rounded-lg:hover,
a.rounded-lg:hover {
  transform: translateY(-1px);
}

.btn-pill-solid {
  background: #ffffff;
  color: #111111;
  font-weight: 600;
}

.btn-pill-outline {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #ffffff;
  font-weight: 600;
}

/* ============================================
   7) KARTLAR (istatistik kutuları, ürün kartları)
   ============================================ */
.bg-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  border-radius: 1rem !important;
}

/* Header bar bg-card kullanıyor ama tam oval/pill kalması ve sayfadan ayrışması lazım — üstteki kuralı burada eziyoruz */
header.component .bg-card {
  border-radius: 9999px !important;
  background: rgba(255, 255, 255, 0.035) !important;
  border-color: rgba(255, 255, 255, 0.09) !important;
}

.bg-card:hover {
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(255, 255, 255, 0.1);
}

/* Arama kutusu — pill şeklinde */
input[type="search"],
input[placeholder*="Search"],
input[placeholder*="ara" i] {
  border-radius: 9999px !important;
}

/* ============================================
   8) YÜZEN 3D KROM DEKOR GÖRSELLERİ
   Kullanım: Figma paketinden indirdiğin PNG'yi Assets'e yükle, sonra
   header.njk (veya izin varsa hero component) içine şunu ekle:

   <img src="URL_BURAYA" class="decor-shape decor-shape--1" alt="" />

   6-7 adet farklı pozisyon class'ı hazır, gerekirse çoğaltabilirim.
   ============================================ */
.decor-shape {
  position: fixed;
  pointer-events: none;
  z-index: -1;
}

.decor-shape img {
  display: block;
  width: 100%;
  height: auto;
  opacity: 0.85;
  filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.6));
  animation: decorFloat 9s ease-in-out infinite;
}

/* Düzensiz / çapraz dağılım — köşelere simetrik değil */
.decor-shape--1 {
  top: 6%;
  left: 5%;
  width: 85px;
  transform: rotate(-12deg);
}
.decor-shape--1 img { animation-delay: 0s; animation-duration: 10s; }

.decor-shape--3 {
  top: 34%;
  right: 6%;
  width: 65px;
  transform: rotate(20deg);
}
.decor-shape--3 img { animation-delay: 1.2s; animation-duration: 8s; }

.decor-shape--4 {
  bottom: 22%;
  left: 42%;
  width: 100px;
  transform: rotate(-8deg);
}
.decor-shape--4 img { animation-delay: 2.4s; animation-duration: 11s; opacity: 0.6; }

.decor-shape--6 {
  bottom: 4%;
  right: 18%;
  width: 120px;
  transform: rotate(15deg);
}
.decor-shape--6 img { animation-delay: 0.6s; animation-duration: 9.5s; }

@keyframes decorFloat {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-16px); }
}

@media (max-width: 768px) {
  .decor-shape { display: none; }
}

/* ============================================
   MOBİL HAMBURGER MENÜ — sağdan gelen tam ekran panel
   ============================================ */
.mobile-drawer-backdrop {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(2px);
}

.mobile-drawer {
  position: fixed;
  top: 0;
  right: 0;
  height: 100%;
  width: 82%;
  max-width: 360px;
  z-index: 91;
  background: rgba(var(--cl-card), 1);
  border-left: 1px solid rgba(255, 255, 255, 0.06);
  padding: 1.5rem;
  overflow-y: auto;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: -10px 0 40px rgba(0, 0, 0, 0.5);
}

.mobile-drawer.is-open {
  transform: translateX(0);
}

/* ============================================
   ÜRÜN KARTLARI — sadece CSS, product-card.njk'ye dokunmadan
   ============================================ */
section[data-component-id] .bg-card {
  overflow: hidden;
}

section[data-component-id] .bg-card:hover {
  transform: translateY(-4px);
}

/* Stok rozetleri (OUT OF STOCK / IN STOCK gibi) — pill şekli + hafif glow */
.text-red-500,
.text-green-500 {
  font-weight: 700;
  letter-spacing: 0.02em;
}

.bg-red-500\/20 {
  border-radius: 9999px;
  padding-left: 0.75rem;
  padding-right: 0.75rem;
}

.bg-green-500\/20 {
  border-radius: 9999px;
  padding-left: 0.75rem;
  padding-right: 0.75rem;
}

/* Fiyat vurgusu */
section[data-component-id] .bg-card .text-lg,
section[data-component-id] .bg-card .text-xl {
  font-weight: 700;
}

/* Buy Now / satın al butonu — pill + hover kalkma */
section[data-component-id] .bg-card button,
section[data-component-id] .bg-card a[class*="bg-accent"] {
  border-radius: 9999px !important;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

section[data-component-id] .bg-card button:hover,
section[data-component-id] .bg-card a[class*="bg-accent"]:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

/* ============================================
   9) SCROLLBAR
   ============================================ */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: rgba(var(--cl-background), 1);
}

::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 9999px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.35);
}