/**
 * Gallery War - Modern & Soft In-Game Modal & Notification System
 * Koyu Tema, Yumuşak (Soft) Renkler, Göz Yormayan Ergonomik Tasarım
 */

.gw-modal-backdrop {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(3, 7, 18, 0.75);
  backdrop-filter: blur(12px) !important;
  -webkit-backdrop-filter: blur(12px) !important;
  z-index: 9999999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s ease-out, backdrop-filter 0.22s ease-out;
}

.gw-modal-backdrop.gw-modal-active {
  opacity: 1;
  pointer-events: auto;
}

.gw-modal-card {
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.95) 0%, rgba(11, 17, 32, 0.98) 100%) !important;
  border: 1px solid rgba(56, 189, 248, 0.35) !important;
  border-radius: 24px;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.8), 0 0 25px rgba(56, 189, 248, 0.2), inset 0 1px 1px rgba(255, 255, 255, 0.25) !important;
  backdrop-filter: blur(24px) saturate(190%) !important;
  -webkit-backdrop-filter: blur(24px) saturate(190%) !important;
  max-width: 440px;
  width: 100%;
  padding: 28px 24px 24px;
  text-align: center;
  transform: scale(0.92) translateY(12px);
  transition: transform 0.24s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
  box-sizing: border-box;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Üst ince yumuşak çizgi */
.gw-modal-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2.5px;
  background: linear-gradient(90deg, transparent, rgba(56, 189, 248, 0.8), rgba(234, 179, 8, 0.8), transparent);
}

.gw-modal-backdrop.gw-modal-active .gw-modal-card {
  transform: scale(1) translateY(0);
}

/* Üst İkon Dairesi - Soft Glow */
.gw-modal-icon-circle {
  width: 68px;
  height: 68px;
  margin: 0 auto 16px auto;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  user-select: none;
  transition: all 0.2s ease;
  position: relative;
}

.gw-modal-icon-char {
  font-size: 32px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Araç Satın Alma (Car) - Lüks Cyan & Mavi Glow */
.gw-modal-icon-circle.gw-icon-car {
  background: radial-gradient(circle, rgba(14, 165, 233, 0.25) 0%, rgba(14, 165, 233, 0.05) 70%);
  border: 1.5px solid rgba(56, 189, 248, 0.55);
  box-shadow: 0 0 20px rgba(56, 189, 248, 0.35);
}
.gw-modal-icon-circle.gw-icon-car .gw-modal-icon-char {
  color: #38bdf8;
  filter: drop-shadow(0 2px 8px rgba(56, 189, 248, 0.5));
}

/* Bilgi (Info) - Soft Muted Cyan */
.gw-modal-icon-circle.gw-icon-info {
  background: rgba(14, 165, 233, 0.15);
  border: 1.5px solid rgba(14, 165, 233, 0.45);
  box-shadow: 0 0 15px rgba(14, 165, 233, 0.25);
}
.gw-modal-icon-circle.gw-icon-info .gw-modal-icon-char {
  color: #38bdf8;
}

/* Başarı (Success) - Soft Emerald */
.gw-modal-icon-circle.gw-icon-success {
  background: rgba(34, 197, 94, 0.15);
  border: 1.5px solid rgba(34, 197, 94, 0.45);
  box-shadow: 0 0 18px rgba(34, 197, 94, 0.3);
}
.gw-modal-icon-circle.gw-icon-success .gw-modal-icon-char {
  color: #4ade80;
}

/* Uyarı / Hata (Danger / Warning) - Soft Rose/Crimson */
.gw-modal-icon-circle.gw-icon-danger {
  background: rgba(239, 68, 68, 0.15);
  border: 1.5px solid rgba(239, 68, 68, 0.45);
  box-shadow: 0 0 18px rgba(239, 68, 68, 0.3);
}
.gw-modal-icon-circle.gw-icon-danger .gw-modal-icon-char {
  color: #f87171;
}

/* Elmas (Diamond) */
.gw-modal-icon-circle.gw-icon-diamond {
  background: radial-gradient(circle, rgba(239, 68, 68, 0.25) 0%, rgba(239, 68, 68, 0.05) 70%);
  border: 1.5px solid rgba(239, 68, 68, 0.5);
  box-shadow: 0 0 20px rgba(239, 68, 68, 0.4);
}

/* Yakıt (Fuel) */
.gw-modal-icon-circle.gw-icon-fuel {
  background: rgba(234, 179, 8, 0.15);
  border: 1.5px solid rgba(234, 179, 8, 0.45);
  box-shadow: 0 0 18px rgba(234, 179, 8, 0.3);
}
.gw-modal-icon-circle.gw-icon-fuel .gw-modal-icon-char {
  color: #facc15;
}

/* Modal Başlığı */
.gw-modal-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: #ffffff;
  margin: 0 0 12px 0;
  letter-spacing: -0.01em;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

/* Açıklama / İçerik */
.gw-modal-body {
  font-size: 0.92rem;
  line-height: 1.6;
  color: #cbd5e1;
  margin: 0 0 24px 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  word-break: break-word;
}

.gw-modal-body strong {
  color: #f8fafc;
  font-weight: 700;
}

/* Dinamik Oyun Değer Vurgu Rozetleri */
.gw-modal-currency-pill {
  display: inline-block;
  background: rgba(34, 197, 94, 0.15);
  color: #4ade80;
  border: 1px solid rgba(34, 197, 94, 0.4);
  padding: 2px 8px;
  border-radius: 8px;
  font-weight: 800;
  font-size: 1.05em;
  letter-spacing: 0.3px;
  box-shadow: 0 0 12px rgba(34, 197, 94, 0.25);
  margin: 0 3px;
  vertical-align: baseline;
}

.gw-modal-diamond-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(239, 68, 68, 0.15);
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.4);
  padding: 2px 8px;
  border-radius: 8px;
  font-weight: 800;
  font-size: 1.05em;
  box-shadow: 0 0 12px rgba(239, 68, 68, 0.25);
  margin: 0 3px;
  vertical-align: baseline;
}

.gw-modal-exp-pill {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  background: rgba(234, 179, 8, 0.15);
  color: #facc15;
  border: 1px solid rgba(234, 179, 8, 0.4);
  padding: 2px 8px;
  border-radius: 8px;
  font-weight: 800;
  font-size: 1.05em;
  box-shadow: 0 0 12px rgba(234, 179, 8, 0.25);
  margin: 0 3px;
  vertical-align: baseline;
}

/* Butonlar Alanı */
.gw-modal-buttons {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

/* Lüks Oyun Onay Butonu (Yeşil / Emerald) */
.gw-modal-btn-confirm {
  background: linear-gradient(135deg, #16a34a 0%, #15803d 100%);
  color: #ffffff !important;
  border: 1px solid rgba(74, 222, 128, 0.5);
  border-radius: 12px;
  padding: 12px 26px;
  font-weight: 700;
  font-size: 0.92rem;
  cursor: pointer;
  transition: all 0.18s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 140px;
  box-shadow: 0 4px 16px rgba(22, 163, 74, 0.35);
  text-decoration: none !important;
  letter-spacing: 0.3px;
}

.gw-modal-btn-confirm:hover {
  background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(34, 197, 94, 0.5);
}

.gw-modal-btn-confirm:active {
  transform: translateY(0);
}

/* Lüks Oyun İptal Butonu (Obsidian / Slate) */
.gw-modal-btn-cancel {
  background: rgba(255, 255, 255, 0.06);
  color: #cbd5e1 !important;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  padding: 12px 22px;
  font-weight: 600;
  font-size: 0.92rem;
  cursor: pointer;
  transition: all 0.18s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 110px;
  text-decoration: none !important;
}

.gw-modal-btn-cancel:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff !important;
  border-color: rgba(255, 255, 255, 0.25);
  transform: translateY(-2px);
}

.gw-modal-btn-cancel:active {
  transform: translateY(0);
}

/* Tekli Bildirim Tamam Butonu (Mavi) */
.gw-modal-btn-ok {
  background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
  color: #ffffff !important;
  border: 1px solid rgba(56, 189, 248, 0.45);
  border-radius: 12px;
  padding: 12px 34px;
  font-weight: 700;
  font-size: 0.92rem;
  cursor: pointer;
  transition: all 0.18s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 140px;
  box-shadow: 0 4px 16px rgba(2, 132, 199, 0.35);
  text-decoration: none !important;
}

.gw-modal-btn-ok:hover {
  background: linear-gradient(135deg, #38bdf8 0%, #0284c7 100%);
  color: #0b1120 !important;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(56, 189, 248, 0.5);
}

.gw-modal-btn-ok.btn-success-style {
  background: linear-gradient(135deg, #16a34a 0%, #15803d 100%);
  border-color: rgba(74, 222, 128, 0.45);
  color: #ffffff !important;
  box-shadow: 0 4px 16px rgba(22, 163, 74, 0.35);
}
.gw-modal-btn-ok.btn-success-style:hover {
  background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
  box-shadow: 0 6px 20px rgba(34, 197, 94, 0.5);
}

.gw-modal-btn-ok.btn-danger-style {
  background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
  border-color: rgba(248, 113, 113, 0.45);
  color: #ffffff !important;
  box-shadow: 0 4px 16px rgba(220, 38, 38, 0.35);
}
.gw-modal-btn-ok.btn-danger-style:hover {
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
  box-shadow: 0 6px 20px rgba(239, 68, 68, 0.5);
}

/* ── GAME TOAST HUD NOTIFICATIONS ── */
.gw-toast-container {
  position: fixed;
  top: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 99999999;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
  max-width: 90vw;
  width: 420px;
}

.gw-toast-card {
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.96) 0%, rgba(11, 17, 32, 0.98) 100%);
  border: 1px solid rgba(56, 189, 248, 0.4);
  border-radius: 16px;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.7), 0 0 16px rgba(56, 189, 248, 0.2);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  padding: 14px 18px;
  display: flex;
  align-items: center;
  gap: 14px;
  color: #ffffff;
  pointer-events: auto;
  transform: translateY(-20px);
  opacity: 0;
  transition: all 0.28s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}

.gw-toast-card.gw-toast-show {
  transform: translateY(0);
  opacity: 1;
}

.gw-toast-card.gw-toast-hide {
  transform: translateY(-20px) scale(0.95);
  opacity: 0;
}

.gw-toast-card.gw-toast-success {
  border-color: rgba(74, 222, 128, 0.5);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.7), 0 0 16px rgba(34, 197, 94, 0.3);
}

.gw-toast-card.gw-toast-danger {
  border-color: rgba(248, 113, 113, 0.5);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.7), 0 0 16px rgba(239, 68, 68, 0.3);
}

.gw-toast-card.gw-toast-warning {
  border-color: rgba(250, 204, 21, 0.5);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.7), 0 0 16px rgba(234, 179, 8, 0.3);
}

.gw-toast-icon {
  font-size: 26px;
  line-height: 1;
  flex-shrink: 0;
}

.gw-toast-body {
  flex-grow: 1;
  min-width: 0;
}

.gw-toast-title {
  font-weight: 700;
  font-size: 0.88rem;
  margin-bottom: 2px;
}

.gw-toast-msg {
  font-size: 0.80rem;
  color: #cbd5e1;
  line-height: 1.4;
  word-break: break-word;
}

.gw-toast-close {
  background: transparent;
  border: none;
  color: #94a3b8;
  font-size: 16px;
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  transition: all 0.15s ease;
  flex-shrink: 0;
}

.gw-toast-close:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.1);
}

.gw-toast-progress {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 3px;
  background: linear-gradient(90deg, #38bdf8, #22c55e);
  width: 100%;
}

/* ── Açık Tema (Light Mode) Uyumlu GW Modal Kartı ── */
[data-bs-theme="light"] .gw-modal-backdrop {
  background: rgba(15, 23, 42, 0.55);
}
[data-bs-theme="light"] .gw-modal-card {
  background: #ffffff !important;
  border: 1px solid #cbd5e1 !important;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.15) !important;
  color: #0f172a !important;
}
[data-bs-theme="light"] .gw-modal-title {
  color: #0f172a !important;
  text-shadow: none;
}
[data-bs-theme="light"] .gw-modal-body {
  color: #475569 !important;
}
[data-bs-theme="light"] .gw-modal-btn-cancel {
  background: #f1f5f9 !important;
  color: #334155 !important;
  border: 1px solid #cbd5e1 !important;
}
[data-bs-theme="light"] .gw-modal-btn-cancel:hover {
  background: #e2e8f0 !important;
  color: #0f172a !important;
}
