/* ==========================================================================
   Jacque • Rise Online World (ROW) Temalı Pazar & Vitrin Stilleri
   İlham: https://www.riseonlineworld.com
   ========================================================================== */


:root {
  --color-gold: #e2b755;
  --color-gold-light: #f7d788;
  --color-gold-dark: #aa771c;
  --color-ember: #e65c00;
  --color-lunaskar: #b91c1c;
  --color-protean: #1d4ed8;
  --bg-dark: #07090e;
  --bg-card: #0e121b;
  --border-gold: rgba(226, 183, 85, 0.25);
}

body {
  font-family: 'Inter', sans-serif;
  background-color: #07090e;
  color: #e2e8f0;
  position: relative;
}

.font-cinzel {
  font-family: 'Cinzel', serif;
}

.font-marcellus {
  font-family: 'Marcellus', serif;
}

.font-mono {
  font-family: 'JetBrains Mono', monospace;
}

/* Altın Parlamalı Başlık Efekti (Rise Online Stili) */
.highlight-gold {
  background: linear-gradient(135deg, #ffe082 0%, #e2b755 50%, #b8860b 100%);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 0 20px rgba(226, 183, 85, 0.4);
}

.highlight-ember {
  background: linear-gradient(135deg, #ff9966 0%, #ff5e62 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Rise Online Kart Tasarımı */
.row-card {
  background: linear-gradient(180deg, rgba(17, 22, 33, 0.95) 0%, rgba(11, 15, 23, 0.98) 100%);
  border: 1px solid rgba(226, 183, 85, 0.18);
  box-shadow: 0 8px 24px -4px rgba(0, 0, 0, 0.8), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  position: relative;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.row-card:hover {
  border-color: rgba(226, 183, 85, 0.5);
  box-shadow: 0 14px 32px -4px rgba(0, 0, 0, 0.9), 0 0 20px rgba(226, 183, 85, 0.15);
  transform: translateY(-2px);
}

/* Dekoratif Köşe Çerçeveleri (Medieval Gaming Borders) */
.corner-accent {
  position: relative;
}
.corner-accent::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 8px;
  height: 8px;
  border-top: 2px solid var(--color-gold);
  border-left: 2px solid var(--color-gold);
  opacity: 0.7;
}
.corner-accent::after {
  content: '';
  position: absolute;
  bottom: 0;
  right: 0;
  width: 8px;
  height: 8px;
  border-bottom: 2px solid var(--color-gold);
  border-right: 2px solid var(--color-gold);
  opacity: 0.7;
}

/* Galantis 1M Epin Barı (Görselin Birebir İkizi) */
.galantis-bar {
  background: linear-gradient(90deg, #140d07 0%, #201309 40%, #140d07 100%);
  border: 1px solid rgba(226, 183, 85, 0.35);
  box-shadow: 0 12px 35px -6px rgba(0, 0, 0, 0.85), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

/* Butonlar (Rise Online & Epin Stili) */
.btn-bizesat {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  color: #0c0f17;
  font-weight: 800;
  letter-spacing: 0.05em;
  box-shadow: 0 4px 15px rgba(245, 158, 11, 0.4);
  transition: all 0.2s ease;
}
.btn-bizesat:hover {
  background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
  box-shadow: 0 6px 22px rgba(245, 158, 11, 0.6);
  transform: translateY(-1px);
}

.btn-satinal {
  background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
  color: #0c0f17;
  font-weight: 800;
  letter-spacing: 0.05em;
  box-shadow: 0 4px 15px rgba(34, 197, 94, 0.4);
  transition: all 0.2s ease;
}
.btn-satinal:hover {
  background: linear-gradient(135deg, #4ade80 0%, #22c55e 100%);
  box-shadow: 0 6px 22px rgba(34, 197, 94, 0.6);
  transform: translateY(-1px);
}

.btn-whatsapp {
  background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
  color: white;
  transition: all 0.2s ease;
}
.btn-whatsapp:hover {
  filter: brightness(1.12);
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(37, 211, 102, 0.4);
}

/* Kategori Butonları (Medieval Pill) */
.tab-row {
  background: linear-gradient(180deg, rgba(22, 28, 42, 0.95) 0%, rgba(12, 16, 26, 0.98) 100%);
  border: 1px solid rgba(255, 255, 255, 0.09);
  color: #cbd5e1;
  transition: all 0.2s ease;
  font-family: 'Cinzel', serif;
  user-select: none;
}
.tab-row:hover {
  background: rgba(26, 32, 48, 0.98);
  color: #f8fafc;
  border-color: rgba(226, 183, 85, 0.45);
  transform: translateY(-1px);
}
/* Seçili / Aktif Durum (Altın Gradient + Işıma) */
.tab-row.active {
  background: linear-gradient(135deg, #f3cb6c 0%, #c89128 50%, #9e6b12 100%) !important;
  color: #090d16 !important;
  font-weight: 800;
  border-color: #fde68a !important;
  box-shadow: 0 4px 18px rgba(226, 183, 85, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.45);
}
.tab-row.active span {
  color: #090d16 !important;
}
.tab-row.active .category-count {
  background: rgba(11, 15, 25, 0.25) !important;
  color: #1a1303 !important;
  border-color: rgba(11, 15, 25, 0.2) !important;
}
.tab-row .cat-all-icon-box {
  background: #0d111a;
  border: 1px solid rgba(245, 158, 11, 0.35);
  color: #fbbf24;
}
.tab-row.active .cat-all-icon-box {
  background: rgba(0, 0, 0, 0.25);
  border-color: rgba(0, 0, 0, 0.2);
  color: #090d16;
}
.symbol-glow {
  filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.9)) drop-shadow(0 0 5px rgba(251, 191, 36, 0.35));
}
#category-tabs {
  display: flex !important;
  flex-wrap: wrap !important;
}
#category-tabs-ko, #character-subtabs, #character-subtabs-ko {
  display: flex !important;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
#category-tabs.hidden, #category-tabs-ko.hidden, #character-subtabs.hidden, #character-subtabs-ko.hidden {
  display: none !important;
}
#category-tabs::-webkit-scrollbar, #category-tabs-ko::-webkit-scrollbar, #character-subtabs::-webkit-scrollbar, #character-subtabs-ko::-webkit-scrollbar {
  display: none;
}

/* Rozetler */
.badge-gold {
  background: rgba(226, 183, 85, 0.15);
  border: 1px solid rgba(226, 183, 85, 0.4);
  color: #fbbf24;
}

/* Medieval Divider Line */
.medieval-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, rgba(226, 183, 85, 0.4) 50%, transparent 100%);
  position: relative;
  margin: 1rem 0;
}
.medieval-divider::after {
  content: '♦';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: var(--color-gold);
  font-size: 10px;
  background: var(--bg-dark);
  padding: 0 6px;
}

/* Modal Backdrop */
.modal-backdrop {
  background-color: rgba(4, 6, 10, 0.85);
  backdrop-filter: blur(8px);
}

/* ================= GÜVENLİK VE İÇERİK KORUMA DÜZELTMESİ ================= */
/* 1. Sayfa genelinde istemsiz mavi seçimleri engelle */
body {
  -webkit-user-select: none;
  user-select: none;
}

/* 2. Müşterilerin İtem İsimlerini, Açıklamaları, Teslimat Noktasını ve Formları Seçebilmesine İzin Ver */
input, textarea, .selectable, #sectionsContainer, #headerInGameNick, #galantisDeliveryLocation, #aragonDeliveryLocation, #koDeliveryLocation {
  -webkit-user-select: text;
  user-select: text;
}

/* 3. Resimlerin Sürüklenerek Kaydedilmesini Engelle (Tıklamalar serbesttir) */
img {
  -webkit-user-drag: none;
  user-drag: none;
}

/* ==========================================================================
   Rise Online Oyun İçi Envanter Slotu & Kalite Işımaları (Rarity Glow)
   ========================================================================== */
/* Vitrin Kartı Hover Efekti */
.card-item-hover {
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}
.card-item-hover:hover {
  transform: translateY(-2px);
  border-color: rgba(226, 183, 85, 0.45) !important;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.8), 0 0 16px rgba(226, 183, 85, 0.12);
}

/* Authentic Rise Online Envanter Slotu (Boşluksuz & Kenara Sıfır) */
.inventory-slot {
  position: relative;
  width: 56px !important;
  height: 56px !important;
  min-width: 56px !important;
  border-radius: 8px !important; /* Aşırı yuvarlak değil, tam oyun çantası gibi */
  background-color: #0b0f19;
  border: 2px solid #5a4522;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-sizing: border-box;
  padding: 0 !important;          /* KRİTİK: İç boşluğu tamamen sıfırla */
  overflow: hidden !important;     /* KRİTİK: Resmin köşelerini slotun sınırına kırp */
  transition: all 0.22s ease;
}

/* İnce Metalik İç Pah */
.inventory-slot::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  border: 1px solid rgba(255, 255, 255, 0.12);
  pointer-events: none;
  z-index: 2;
}

/* İtem Resmi: Slotu uçtan uca kaplamalı, çift çerçeveyi yok etmeli */
.inventory-slot img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;    /* KRİTİK: İkon slotun çerçevesiyle birebir bütünleşsin */
  display: block !important;
  border-radius: inherit;
  padding: 0 !important;
  margin: 0 !important;
  pointer-events: none;
  z-index: 1;
}

/* 1. UNIQUE EŞYALAR (Fotoğraftaki Kolye / Unique İtemler İçin) */
.inventory-slot.slot-unique {
  border-color: #f59e0b !important;
  box-shadow: 0 0 10px rgba(245, 158, 11, 0.45), inset 0 0 4px rgba(245, 158, 11, 0.25) !important;
}
.inventory-slot.slot-unique:hover {
  border-color: #fbbf24 !important;
  box-shadow: 0 0 18px rgba(245, 158, 11, 0.75), inset 0 0 8px rgba(251, 191, 36, 0.4) !important;
}

/* 2. EPIC EŞYALAR (Gizemli Mor Işıma) */
.inventory-slot.slot-epic {
  border-color: #a855f7 !important;
  box-shadow: 0 0 10px rgba(168, 85, 247, 0.45), inset 0 0 4px rgba(168, 85, 247, 0.25) !important;
}
.inventory-slot.slot-epic:hover {
  border-color: #c084fc !important;
  box-shadow: 0 0 18px rgba(168, 85, 247, 0.75), inset 0 0 8px rgba(192, 132, 252, 0.4) !important;
}

/* 3. RARE EŞYALAR (Mavi / Zümrüt Işıma) */
.inventory-slot.slot-rare {
  border-color: #3b82f6 !important;
  box-shadow: 0 0 10px rgba(59, 130, 246, 0.4), inset 0 0 4px rgba(59, 130, 246, 0.2) !important;
}
.inventory-slot.slot-rare:hover {
  border-color: #60a5fa !important;
  box-shadow: 0 0 18px rgba(59, 130, 246, 0.7), inset 0 0 8px rgba(96, 165, 250, 0.4) !important;
}

/* 4. SUPREME EŞYALAR (Çift Tonlu Altın & Mor Lüks Çerçeve) */
.inventory-slot.slot-supreme {
  border-color: #f59e0b !important;
  box-shadow: 0 0 14px rgba(245, 158, 11, 0.5), inset 0 0 6px rgba(168, 85, 247, 0.35) !important;
}
.inventory-slot.slot-supreme:hover {
  border-color: #fbbf24 !important;
  box-shadow: 0 0 22px rgba(245, 158, 11, 0.75), inset 0 0 10px rgba(168, 85, 247, 0.5) !important;
}

/* 5. KARAKTER PORTRELERİ VE IRK AURALARI */
.inventory-slot.slot-char {
  width: 56px !important;
  height: 56px !important;
  border-radius: 8px !important;
  background: radial-gradient(circle at center, #1e1b2e 0%, #090812 100%) !important;
  padding: 0 !important;
  overflow: hidden !important;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.inventory-slot.slot-char img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important; /* Portre slotu tam doldurur */
}
.inventory-slot.slot-char img.char-class-emblem {
  object-fit: contain !important;
  padding: 6px !important;
}

/* Lunaskar Slot Çerçevesi (Kırmızı Parıltı) */
.inventory-slot.slot-char-lunaskar {
  border: 2px solid #ef4444 !important;
  box-shadow: 0 0 14px rgba(239, 68, 68, 0.45), inset 0 0 6px rgba(239, 68, 68, 0.25) !important;
}
.inventory-slot.slot-char-lunaskar:hover {
  border-color: #f87171 !important;
  box-shadow: 0 0 20px rgba(239, 68, 68, 0.75), inset 0 0 8px rgba(239, 68, 68, 0.4) !important;
}

/* Protean Slot Çerçevesi (Mavi Parıltı) */
.inventory-slot.slot-char-protean {
  border: 2px solid #38bdf8 !important;
  box-shadow: 0 0 14px rgba(56, 189, 248, 0.45), inset 0 0 6px rgba(56, 189, 248, 0.25) !important;
}
.inventory-slot.slot-char-protean:hover {
  border-color: #7dd3fc !important;
  box-shadow: 0 0 20px rgba(56, 189, 248, 0.75), inset 0 0 8px rgba(56, 189, 248, 0.4) !important;
}

/* İnceleme Modalı Hero Portresi İstisnası (56px yerine büyük portre) */
#charInspectSlot {
  width: 5.5rem !important;
  height: 5.5rem !important;
  min-width: 5.5rem !important;
}
@media (min-width: 640px) {
  #charInspectSlot {
    width: 6rem !important;
    height: 6rem !important;
    min-width: 6rem !important;
  }
}

/* 2. Orijinal Irk Arması Neon Efektleri (İsim Yanındaki Bayrak) */
.faction-icon-lunaskar {
  filter: drop-shadow(0 0 6px rgba(239, 68, 68, 0.9)) drop-shadow(0 0 12px rgba(249, 115, 22, 0.5));
}
.faction-icon-protean {
  filter: drop-shadow(0 0 6px rgba(56, 189, 248, 0.95)) drop-shadow(0 0 12px rgba(96, 165, 250, 0.5));
}

/* 3. Özel Oyun Rozetleri */
.badge-lunaskar {
  background: rgba(185, 28, 28, 0.25) !important;
  border: 1px solid rgba(239, 68, 68, 0.5) !important;
  color: #fca5a5 !important;
  font-family: 'Cinzel', serif;
}

.badge-protean {
  background: rgba(29, 78, 216, 0.25) !important;
  border: 1px solid rgba(56, 189, 248, 0.5) !important;
  color: #93c5fd !important;
  font-family: 'Cinzel', serif;
}

/* Seviye / Rebirth Rozeti (Örn: 85/5, 85/6) */
.badge-awake {
  background: rgba(14, 165, 233, 0.2);
  border: 1px solid rgba(56, 189, 248, 0.6);
  color: #7dd3fc;
  font-family: monospace;
  box-shadow: 0 0 8px rgba(56, 189, 248, 0.25);
}

/* Relic Rozeti (Örn: 17 Relic) */
.badge-relic {
  background: rgba(168, 85, 247, 0.2);
  border: 1px solid rgba(168, 85, 247, 0.6);
  color: #d8b4fe;
  font-family: monospace;
  box-shadow: 0 0 8px rgba(168, 85, 247, 0.25);
}

/* National Point (NP) Rozeti (Örn: 5M NP) */
.badge-np {
  background: linear-gradient(135deg, rgba(220, 38, 38, 0.25) 0%, rgba(217, 119, 6, 0.25) 100%);
  border: 1px solid rgba(245, 158, 11, 0.6);
  color: #fef08a;
  font-family: monospace;
  box-shadow: 0 0 8px rgba(245, 158, 11, 0.25);
}

/* ==========================================================================
   Karakter Alt Filtreleri & RPG İnceleme Modalı
   ========================================================================== */

.char-sub-tab {
  background: #0d121c;
  border: 1px solid #1f293d;
  color: #94a3b8;
  transition: all 0.2s ease;
}
.char-sub-tab:hover {
  background: #151c2c;
  border-color: rgba(245, 158, 11, 0.4);
  color: #f1f5f9;
}
.char-sub-tab.active {
  background: linear-gradient(180deg, #241a0d 0%, #171007 100%);
  border-color: #f59e0b;
  color: #fef3c7;
  box-shadow: 0 0 10px rgba(245, 158, 11, 0.25);
}

.char-faction-tab {
  transition: all 0.2s ease;
}
.char-faction-tab:hover {
  border-color: rgba(245, 158, 11, 0.45);
  color: #f8fafc;
}
.char-faction-tab[data-char-faction="protean"].active {
  background: linear-gradient(180deg, rgba(29, 78, 216, 0.3) 0%, rgba(15, 23, 42, 0.9) 100%);
  border-color: #3b82f6;
  color: #bfdbfe;
  box-shadow: 0 0 14px rgba(59, 130, 246, 0.45);
}
.char-faction-tab[data-char-faction="lunaskar"].active {
  background: linear-gradient(180deg, rgba(185, 28, 28, 0.3) 0%, rgba(15, 23, 42, 0.9) 100%);
  border-color: #ef4444;
  color: #fecaca;
  box-shadow: 0 0 14px rgba(239, 68, 68, 0.45);
}

@keyframes scaleUp {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}
.animate-scale-up {
  animation: scaleUp 0.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Quick Edit Textarea Özel Scrollbar */
#rawListTextarea::-webkit-scrollbar {
  width: 9px;
}
#rawListTextarea::-webkit-scrollbar-track {
  background: #090c14;
  border-radius: 8px;
}
#rawListTextarea::-webkit-scrollbar-thumb {
  background: #2a2418;
  border: 1px solid rgba(245, 158, 11, 0.35);
  border-radius: 8px;
}
#rawListTextarea::-webkit-scrollbar-thumb:hover {
  background: #45371c;
  border-color: rgba(245, 158, 11, 0.7);
}

/* ==========================================================================
   Canlı Arka Plan: Versiyon 1 (Vadi Savaşı & Parlayan Hilal) - %75 Sinematik
   ========================================================================== */
#siteBgLayer {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image: url('/images/backgrounds/bg_valley_crescent_v1.jpg');
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
  z-index: -2;
  image-rendering: -webkit-optimize-contrast;
}

#siteOverlayLayer {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(circle at 50% 35%, rgba(7, 9, 14, 0.50) 0%, rgba(7, 9, 14, 0.75) 80%);
  z-index: -1;
}

/* Glassmorphism: İlan kartları ve paneller için elit buğulu cam efekti */
.row-card,
.galantis-bar {
  background: rgba(14, 18, 27, 0.75) !important;
  backdrop-filter: blur(14px) !important;
  -webkit-backdrop-filter: blur(14px) !important;
  border-color: rgba(226, 183, 85, 0.35) !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6) !important;
}

.inventory-slot {
  background-color: rgba(11, 15, 25, 0.85) !important;
}

@keyframes spinSlow {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.animate-spin-slow {
  animation: spinSlow 8s linear infinite;
}

/* ==========================================================================
   KNIGHT ONLINE & MULTI-GAME SWITCHER STİLLERİ
   ========================================================================== */
.game-switch-btn {
  background: rgba(18, 23, 36, 0.7);
  color: #94a3b8;
  border: 1px solid rgba(245, 158, 11, 0.15);
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}
.game-switch-btn:hover {
  color: #f1f5f9;
  border-color: rgba(245, 158, 11, 0.4);
  background: rgba(26, 33, 52, 0.85);
}
.game-switch-btn.active {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.25) 0%, rgba(180, 83, 9, 0.4) 100%);
  color: #fef08a;
  border-color: #f59e0b;
  box-shadow: 0 0 20px rgba(245, 158, 11, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.2);
  transform: translateY(-1px);
}

/* Rebirth Rozeti (Özel Eflatun / Mor Parıltı) */
.badge-rebirth {
  background: linear-gradient(135deg, rgba(147, 51, 234, 0.35) 0%, rgba(126, 34, 206, 0.6) 100%);
  color: #f3e8ff !important;
  border: 1px solid rgba(192, 132, 252, 0.6) !important;
  box-shadow: 0 0 10px rgba(168, 85, 247, 0.45);
}

/* Element Rozetleri */
.badge-flame {
  background: rgba(220, 38, 38, 0.25);
  color: #fca5a5 !important;
  border: 1px solid rgba(239, 68, 68, 0.5) !important;
}
.badge-glacier {
  background: rgba(2, 132, 199, 0.25);
  color: #bae6fd !important;
  border: 1px solid rgba(56, 189, 248, 0.5) !important;
}
.badge-lightning {
  background: rgba(202, 138, 4, 0.25);
  color: #fef08a !important;
  border: 1px solid rgba(234, 179, 8, 0.5) !important;
}
.badge-poison {
  background: rgba(22, 163, 74, 0.25);
  color: #bbf7d0 !important;
  border: 1px solid rgba(34, 197, 94, 0.5) !important;
}

/* Irk Rozetleri (Karus / El Morad) */
.badge-karus {
  background: rgba(185, 28, 28, 0.25);
  color: #fecaca !important;
  border: 1px solid rgba(239, 68, 68, 0.5) !important;
}
.badge-elmorad {
  background: rgba(29, 78, 216, 0.25);
  color: #bfdbfe !important;
  border: 1px solid rgba(59, 130, 246, 0.5) !important;
}



