/* ==========================================================================
   MMO11 — GÜNLÜK GÖREVLER (Daily Quests Modal & Card)
   Pencere İçi Panel Kuralı (§4.2) Uyumlu Modal Penceresi & Açık Beyaz Tema
   ========================================================================== */

/* 1. Modal Overlay Backdrop (GameWindow / Pencere İçi Absolute) */
.daily-quests-modal-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background: rgba(15, 23, 42, 0.65);
  z-index: 9998;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(10px, 2.5%, 24px);
  box-sizing: border-box;
}

/* 2. Modal Ana Kartı */
.daily-quests-card {
  background: #ffffff;
  border-radius: 20px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.35), 0 0 40px rgba(245, 158, 11, 0.1);
  padding: clamp(18px, 2.5%, 26px);
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
  color: #1e293b;
  max-width: 640px;
  width: 100%;
  max-height: 90%;
  position: relative;
  overflow: hidden;
}

.daily-quests-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #f59e0b, #eab308, #10b981);
}

/* 3. Header & Sağ Üst Kapatma Butonu */
.daily-quests-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #f1f5f9;
  padding-bottom: 14px;
  flex-shrink: 0;
}

.dq-header-left {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-right: 44px; /* Kapatma butonuna alan bırakır */
}

.dq-header-icon {
  font-size: 26px;
  line-height: 1;
}

.dq-title {
  margin: 0;
  font-family: 'Rajdhani', sans-serif;
  font-size: 20px;
  font-weight: 900;
  color: #0f172a;
  letter-spacing: 0.5px;
}

.dq-subtitle {
  margin: 2px 0 0 0;
  font-size: 11.5px;
  font-weight: 600;
  color: #64748b;
}

.dq-close-btn {
  position: absolute;
  top: 16px;
  right: 18px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  color: #64748b;
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s ease;
  z-index: 10;
}

.dq-close-btn:hover {
  background: #fee2e2;
  border-color: #fca5a5;
  color: #ef4444;
  transform: scale(1.05);
}

/* 4. Body & Kaydırılabilir Görev Listesi */
.daily-quests-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  gap: 14px;
  margin-top: 12px;
  padding-right: 2px;
}

.daily-quests-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.dq-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-radius: 12px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  transition: transform 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}

.dq-item:hover {
  background: #ffffff;
  border-color: #cbd5e1;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.04);
}

.dq-item.is-completed {
  background: #f0fdf4;
  border-color: #bbf7d0;
}

.dq-status-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 900;
  flex-shrink: 0;
}

.dq-status-icon.done {
  background: #22c55e;
  color: #ffffff;
  box-shadow: 0 2px 6px rgba(34, 197, 94, 0.35);
}

.dq-status-icon.pending {
  background: #fee2e2;
  color: #ef4444;
  border: 1px solid #fca5a5;
}

.dq-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.dq-item-title {
  font-size: 13.5px;
  font-weight: 800;
  color: #1e293b;
  display: flex;
  align-items: center;
  gap: 6px;
}

.dq-item.is-completed .dq-item-title {
  color: #15803d;
}

.dq-item-desc {
  font-size: 11.5px;
  font-weight: 600;
  color: #64748b;
  margin: 0;
}

.dq-item.is-completed .dq-item-desc {
  color: #166534;
}

.dq-item-progress {
  padding: 3px 8px;
  border-radius: 6px;
  background: #e2e8f0;
  font-size: 10.5px;
  font-weight: 800;
  color: #475569;
  flex-shrink: 0;
}

.dq-item.is-completed .dq-item-progress {
  background: #dcfce7;
  color: #15803d;
}

.btn-dq-action {
  padding: 5px 12px;
  border-radius: 8px;
  border: 1px solid #cbd5e1;
  background: #ffffff;
  color: #0284c7;
  font-family: 'Rajdhani', sans-serif;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.3px;
  cursor: pointer;
  transition: all 0.12s ease;
  flex-shrink: 0;
}

.btn-dq-action:hover {
  background: #0284c7;
  color: #ffffff;
  border-color: #0284c7;
  transform: translateY(-1px);
}

/* 5. Alt Footer / İlerleme ve Ödül Bölümü */
.dq-footer-box {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid #f1f5f9;
  flex-shrink: 0;
}

.dq-progress-section {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.dq-progress-labels {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: 'Rajdhani', sans-serif;
  font-size: 11.5px;
  font-weight: 800;
  color: #475569;
  letter-spacing: 0.4px;
}

.dq-progress-count {
  color: #0f172a;
  font-weight: 900;
}

.dq-progress-bar-track {
  width: 100%;
  height: 10px;
  border-radius: 999px;
  background: #e2e8f0;
  overflow: hidden;
  position: relative;
}

.dq-progress-bar-fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #f59e0b, #10b981);
  transition: width 0.3s ease;
}

.dq-reward-section {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 8px 14px;
}

.dq-reward-info {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.dq-reward-label {
  font-family: 'Rajdhani', sans-serif;
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: 0.5px;
  color: #64748b;
  text-transform: uppercase;
}

.dq-reward-val {
  font-size: 12.5px;
  font-weight: 900;
  color: #0284c7;
}

.btn-dq-claim {
  padding: 8px 18px;
  border-radius: 10px;
  border: 0;
  font-family: 'Rajdhani', sans-serif;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.4px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s ease;
}

.btn-dq-claim:disabled {
  background: #e2e8f0;
  color: #94a3b8;
  cursor: not-allowed;
}

.btn-dq-claim.ready {
  background: linear-gradient(135deg, #16a34a, #15803d);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(22, 163, 74, 0.4);
  animation: dq-pulse 2s infinite;
}

.btn-dq-claim.ready:hover {
  filter: brightness(1.08);
  transform: translateY(-1px);
}

.btn-dq-claim.claimed {
  background: #dcfce7;
  color: #15803d;
  border: 1px solid #86efac;
  cursor: default;
}

@keyframes dq-pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.03); }
}
