/* ==========================================================================
   SUNORBIT - OTANTİK RAFİNERİ (SKYLAB) & OYUN İÇİ GÖREVLER (HUD) CSS
   Birebir referanslar: skylab1.png, skylab2.png, gorev.png
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. RAFİNERİ PENCERESİ (skylab1.png & skylab2.png) - GRİMSİ MENU/PROFİL TEMASI
   -------------------------------------------------------------------------- */
.do-refinery-window {
  position: absolute;
  top: 100px;
  left: 280px;
  width: 480px;
  background: #09090b;
  border: 1.5px solid #27272a;
  border-radius: 6px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.95), 0 0 10px rgba(255, 255, 255, 0.04);
  z-index: 1000;
  display: flex;
  flex-direction: column;
  user-select: none;
  font-family: 'Rajdhani', sans-serif;
  color: #e4e4e7;
}

.do-refinery-window.hidden {
  display: none !important;
}

.do-refinery-header {
  height: 36px;
  background: #0f0f12;
  border-bottom: 1.5px solid #27272a;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 10px;
  cursor: move;
}

.do-refinery-title-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
}

.do-refinery-icon {
  width: 18px;
  height: 18px;
  object-fit: contain;
}

.do-refinery-title {
  font-family: 'Orbitron', sans-serif;
  font-size: 13px;
  font-weight: 700;
  color: #f4f4f5;
  letter-spacing: 0.5px;
}

.do-refinery-actions {
  display: flex;
  align-items: center;
  gap: 4px;
}

.do-ref-btn {
  background: transparent;
  border: none;
  color: #a1a1aa;
  font-size: 13px;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border-radius: 3px;
  transition: all 0.15s ease;
}

.do-ref-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
}

.do-ref-btn.close:hover {
  background: #dc2626;
  color: #ffffff;
}

/* Navigasyon Sekmeleri: [Rafineri] [Yükselt] [💰 Tümünü Sat] */
.do-refinery-nav {
  display: flex;
  align-items: center;
  padding: 8px 12px;
  background: #0d0d10;
  border-bottom: 1px solid #27272a;
  gap: 8px;
}

.do-ref-tab-btn, .do-refinery-tab-btn {
  background: #18181b;
  border: 1px solid #3f3f46;
  color: #a1a1aa;
  font-family: 'Rajdhani', sans-serif;
  font-weight: 700;
  font-size: 13px;
  padding: 5px 16px;
  border-radius: 4px;
  cursor: pointer;
  letter-spacing: 0.5px;
  transition: all 0.15s ease;
}

.do-ref-tab-btn:hover, .do-refinery-tab-btn:hover {
  background: #27272a;
  color: #ffffff;
  border-color: #71717a;
}

.do-ref-tab-btn.active, .do-refinery-tab-btn.active {
  background: #27272a;
  border-color: #a1a1aa;
  color: #ffffff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.do-refinery-sell-btn {
  margin-left: auto;
  background: linear-gradient(180deg, #ca8a04 0%, #a16207 100%);
  border: 1px solid #eab308;
  color: #ffffff;
  font-family: 'Rajdhani', sans-serif;
  font-weight: 700;
  font-size: 13px;
  padding: 5px 14px;
  border-radius: 4px;
  cursor: pointer;
  letter-spacing: 0.5px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.5);
  transition: all 0.15s ease;
}

.do-refinery-sell-btn:hover {
  background: linear-gradient(180deg, #eab308 0%, #ca8a04 100%);
  box-shadow: 0 0 12px rgba(234, 179, 8, 0.5);
  transform: translateY(-1px);
}

.do-refinery-body {
  padding: 14px;
  background: #09090b;
  min-height: 440px;
  position: relative;
}

/* 1. SEKMELİ RAFİNERİ AĞACI (skylab1.png) */
.refinery-tree-container {
  position: relative;
  width: 100%;
  min-height: 430px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.refinery-tree-svg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

.ref-row {
  display: flex;
  justify-content: center;
  gap: 16px;
  position: relative;
  z-index: 2;
}

.ref-row.row-top {
  justify-content: center;
  gap: 36px;
}

.ref-row.row-mid {
  justify-content: center;
  gap: 50px;
}

.ref-row.row-bot {
  justify-content: center;
}

/* Otantik Maden Kartı (skylab1.png) - Gri Tema */
.ref-ore-card {
  width: 96px;
  background: #141418;
  border: 1.5px solid #27272a;
  border-radius: 4px;
  display: flex;
  flex-direction: column;
  box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.7), 0 3px 6px rgba(0, 0, 0, 0.5);
  position: relative;
}

.ref-card-header {
  background: #18181b;
  color: #e4e4e7;
  font-size: 11px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 3px 6px;
  border-bottom: 1px solid #27272a;
}

.ref-card-img-wrap {
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ref-card-img {
  width: 42px;
  height: 42px;
  object-fit: contain;
  filter: drop-shadow(0 0 5px rgba(255, 255, 255, 0.2));
}

.ref-card-footer {
  background: #0f0f12;
  color: #a1a1aa;
  font-family: 'Orbitron', sans-serif;
  font-size: 11.5px;
  font-weight: 700;
  text-align: center;
  padding: 3px 0;
  border-top: 1px solid #27272a;
}

.ref-action-btn {
  margin-top: 5px;
  width: 96px;
  background: linear-gradient(180deg, #27272a 0%, #18181b 100%);
  border: 1px solid #3f3f46;
  color: #f4f4f5;
  font-family: 'Rajdhani', sans-serif;
  font-weight: 700;
  font-size: 12px;
  padding: 4px 0;
  border-radius: 3px;
  cursor: pointer;
  text-align: center;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1);
  transition: all 0.15s ease;
}

.ref-action-btn:hover {
  background: #27272a;
  border-color: #a1a1aa;
  color: #ffffff;
}

.ref-card-with-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* 2. SEKMELİ YÜKSELT / ZENGİNLEŞTİRME (skylab2.png) - Gri Tema */
.upgrade-container {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.upg-section-title {
  font-size: 13px;
  font-weight: 700;
  color: #f4f4f5;
  letter-spacing: 0.3px;
  margin-bottom: 6px;
}

.upg-sub-desc {
  font-size: 12px;
  color: #a1a1aa;
  line-height: 1.4;
  margin-bottom: 8px;
}

.upg-row-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.upg-row-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.upg-ore-card {
  background: #141418;
  border: 1.5px solid #27272a;
  border-radius: 4px;
  display: flex;
  flex-direction: column;
  box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.7), 0 3px 6px rgba(0, 0, 0, 0.5);
  cursor: pointer;
  transition: transform 0.1s ease, border-color 0.15s ease;
}

.upg-ore-card:hover {
  border-color: #71717a;
  transform: translateY(-2px);
}

.upg-ore-card.selected {
  border-color: #facc15;
  box-shadow: 0 0 10px rgba(250, 204, 21, 0.4);
}

.upg-target-card {
  background: #141418;
  border: 1.5px solid #27272a;
  border-radius: 4px;
  display: flex;
  flex-direction: column;
  box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.7), 0 3px 6px rgba(0, 0, 0, 0.5);
  cursor: pointer;
  transition: all 0.15s ease;
  position: relative;
}

.upg-target-card:hover {
  border-color: #a1a1aa;
  transform: translateY(-2px);
  box-shadow: 0 0 12px rgba(255, 255, 255, 0.15);
}

.upg-target-card.drag-over {
  border-color: #22c55e !important;
  background: rgba(34, 197, 94, 0.15) !important;
}

.upg-target-card .ref-card-img {
  width: 46px;
  height: 46px;
}

/* --------------------------------------------------------------------------
   2. OYUN İÇİ GÖREVLER PENCERESİ (gorev.png & Profil Menüsü Gri Teması)
   -------------------------------------------------------------------------- */
.do-quests-hud-window {
  position: absolute;
  top: 90px;
  left: 20px;
  width: 365px;
  background: #09090b;
  border: 1.5px solid #27272a;
  border-radius: 4px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.9), 0 0 15px rgba(255, 255, 255, 0.04);
  z-index: 1001;
  display: flex;
  flex-direction: column;
  user-select: none;
  font-family: 'Rajdhani', sans-serif;
  color: #e4e4e7;
}

.do-quests-hud-window.hidden {
  display: none !important;
}

.do-qhud-header {
  height: 32px;
  background: linear-gradient(180deg, #27272a 0%, #18181b 100%);
  border-bottom: 1px solid #3f3f46;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 8px;
  cursor: move;
}

.do-qhud-title-wrap {
  display: flex;
  align-items: center;
  gap: 6px;
}

.do-qhud-exclamation {
  font-size: 16px;
  font-weight: 900;
  color: #e4e4e7;
  text-shadow: 0 0 8px rgba(255, 255, 255, 0.4);
}

.do-qhud-title {
  font-family: 'Orbitron', sans-serif;
  font-size: 13px;
  font-weight: 700;
  color: #f4f4f5;
  letter-spacing: 0.5px;
}

.do-qhud-actions {
  display: flex;
  align-items: center;
  gap: 4px;
}

.do-qhud-circle-btn {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 1.5px solid #a1a1aa;
  background: transparent;
  cursor: pointer;
  margin-right: 4px;
  transition: all 0.15s ease;
}

.do-qhud-circle-btn:hover {
  background: #ffffff;
}

.do-qhud-nav {
  display: flex;
  padding: 6px 10px;
  background: #141418;
  border-bottom: 1px solid #27272a;
  gap: 4px;
}

.do-qhud-tab-btn {
  background: #18181b;
  border: 1px solid #27272a;
  color: #a1a1aa;
  font-family: 'Rajdhani', sans-serif;
  font-weight: 700;
  font-size: 12px;
  padding: 4px 14px;
  border-radius: 2px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.do-qhud-tab-btn:hover {
  background: #27272a;
  color: #ffffff;
}

.do-qhud-tab-btn.active {
  background: #27272a;
  border-color: #52525b;
  color: #ffffff;
  box-shadow: inset 0 0 6px rgba(255, 255, 255, 0.08);
}

.do-qhud-body {
  padding: 10px 14px;
  background: #09090b;
  min-height: 150px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.do-qhud-quest-title {
  font-family: 'Orbitron', sans-serif;
  font-size: 14px;
  font-weight: 700;
  color: #f59e0b; /* Altın Sarı Başlık (gorev.png) */
  margin-bottom: 14px;
  text-shadow: 0 0 6px rgba(245, 158, 11, 0.4);
}

.do-qhud-objectives {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 16px;
}

.do-qhud-obj-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.do-qhud-obj-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.do-qhud-checkbox {
  width: 15px;
  height: 15px;
  border: 1.5px solid #3f3f46;
  background: #18181b;
  border-radius: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 11px;
  font-weight: bold;
}

.do-qhud-checkbox.checked {
  background: #16a34a;
  border-color: #22c55e;
}

.do-qhud-obj-text {
  font-size: 14px;
  font-weight: 600;
  color: #f4f4f5;
}

.do-qhud-obj-right {
  display: flex;
  align-items: center;
  gap: 14px;
}

.do-qhud-obj-icon {
  width: 32px;
  height: 32px;
  object-fit: contain;
  filter: drop-shadow(0 0 4px rgba(255, 255, 255, 0.2));
}

.do-qhud-obj-count {
  font-family: 'Orbitron', sans-serif;
  font-size: 14px;
  font-weight: 700;
  color: #ffffff;
  min-width: 60px;
  text-align: right;
}

.do-qhud-footer {
  display: flex;
  justify-content: center;
  margin-top: 6px;
}

.do-qhud-cancel-btn {
  background: #18181b;
  border: 1px solid #3f3f46;
  color: #a1a1aa;
  font-family: 'Rajdhani', sans-serif;
  font-weight: 700;
  font-size: 13px;
  padding: 6px 36px;
  border-radius: 2px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.do-qhud-cancel-btn:hover {
  background: #ef4444;
  border-color: #ef4444;
  color: #ffffff;
}

/* Boş Durum (Aktif Görev Yokken) */
.do-qhud-empty {
  text-align: center;
  padding: 20px 0;
  color: #94a3b8;
  font-size: 13px;
}

.do-qhud-open-menu-btn {
  margin-top: 10px;
  background: linear-gradient(180deg, #0284c7 0%, #0369a1 100%);
  border: 1px solid #38bdf8;
  color: #ffffff;
  font-family: 'Rajdhani', sans-serif;
  font-weight: 700;
  font-size: 13px;
  padding: 6px 18px;
  border-radius: 2px;
  cursor: pointer;
}

/* Üst Bar Görev Butonu İkon Vurgusu */
.hud-quest-exclamation {
  color: #38bdf8;
  font-weight: 900;
  margin-right: 3px;
  text-shadow: 0 0 6px #38bdf8;
}

.hud-btn.has-active-quest .hud-quest-exclamation {
  color: #facc15;
  text-shadow: 0 0 8px #facc15;
  animation: pulseExclamation 1.5s infinite;
}

@keyframes pulseExclamation {
  0% { transform: scale(1); opacity: 0.8; }
  50% { transform: scale(1.25); opacity: 1; }
  100% { transform: scale(1); opacity: 0.8; }
}

/* Rafineri Taş Satış Mini Butonu ($) */
.ref-sell-mini-btn {
  background: rgba(34, 197, 94, 0.15);
  border: 1px solid rgba(34, 197, 94, 0.6);
  color: #4ade80;
  font-family: 'Rajdhani', sans-serif;
  font-weight: 900;
  font-size: 11px;
  line-height: 1;
  padding: 1px 4px;
  border-radius: 3px;
  cursor: pointer;
  transition: all 0.15s ease;
  margin-left: auto;
}

.ref-sell-mini-btn:hover {
  background: #22c55e;
  color: #000000;
  box-shadow: 0 0 8px rgba(34, 197, 94, 0.8);
  transform: scale(1.15);
}

/* HUD Görev Sayfalama Beyaz Noktalar */
.qhud-dots-bar {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-right: 8px;
}

.qhud-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: transparent;
  border: 1.5px solid #ffffff;
  cursor: pointer;
  opacity: 0.35;
  transition: all 0.2s ease;
}

.qhud-dot:hover {
  opacity: 0.8;
  transform: scale(1.25);
}

.qhud-dot.active {
  background: #ffffff;
  opacity: 1;
  box-shadow: 0 0 6px rgba(255, 255, 255, 0.9);
  transform: scale(1.2);
}

/* Tamamlanan Görev Hedefi Satırı (Opaklığı Kısık, Soluk) */
.do-qhud-obj-row.obj-completed {
  opacity: 0.52;
  filter: grayscale(30%);
  background: rgba(255, 255, 255, 0.02);
}

