/* Контейнер вкладки */
#dungeons-tab {
  height: 100%;
  background: #05080c;
  overflow: hidden;
}

.dungeons-container {
  display: grid;
  grid-template-columns: 300px 1fr;
  height: 100%;
  background: rgba(10, 15, 24, 0.9);
  border-top: 1px solid rgba(0, 212, 255, 0.2);
}

/* --- Ліва панель --- */
.dungeon-selector {
  border-right: 1px solid rgba(0, 212, 255, 0.1);
  display: flex;
  flex-direction: column;
  background: rgba(0, 0, 0, 0.2);
}

.selector-header {
  padding: 20px 15px;
}

.terminal-text {
  font-family: "Space Mono", monospace;
  color: #00d4ff;
  font-size: 1rem;
  letter-spacing: 2px;
  margin: 0;
}

.header-line-decor {
  height: 2px;
  width: 50px;
  background: #00d4ff;
  margin-top: 5px;
  box-shadow: 0 0 10px #00d4ff;
}

.dungeon-list {
  flex: 1;
  overflow-y: auto;
  padding: 0 10px 20px 10px;
}

.dungeon-summary-card {
  position: relative;
  padding: 15px;
  margin-bottom: 5px;
  background: rgba(255, 255, 255, 0.02);
  cursor: pointer;
  transition: all 0.2s ease;
  border: 1px solid transparent;
}

.dungeon-summary-card:hover {
  background: rgba(0, 212, 255, 0.05);
  border-color: rgba(0, 212, 255, 0.1);
}

.dungeon-summary-card.active {
  background: rgba(0, 212, 255, 0.1);
  border-color: rgba(0, 212, 255, 0.3);
}

.card-selection-indicator {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 0;
  background: #00d4ff;
  transition: 0.2s;
}

.active .card-selection-indicator {
  width: 4px;
  box-shadow: 0 0 15px #00d4ff;
}

.dungeon-brief .name {
  display: block;
  font-family: "Orbitron", sans-serif;
  font-size: 0.9rem;
  color: #fff;
  text-transform: uppercase;
}

.dungeon-brief .energy-cost {
  font-size: 0.75rem;
  color: #00d4ff;
  font-family: "Space Mono", monospace;
}

/* --- Права панель --- */
.dungeon-view {
  padding: 20px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.dungeon-details-v2 {
  background: rgba(0, 15, 25, 0.5);
  border: 1px solid rgba(0, 212, 255, 0.1);
  height: 100%;
  display: flex;
  flex-direction: column;
  position: relative;
}

.details-header-scan {
  padding: 20px;
  border-bottom: 1px solid rgba(0, 212, 255, 0.1);
  background: rgba(0, 212, 255, 0.03);
  position: relative;
  overflow: hidden;
}

.scanline-horizontal {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background: rgba(0, 212, 255, 0.2);
  animation: scan_move 4s linear infinite;
}

@keyframes scan_move {
  0% {
    top: 0;
  }
  100% {
    top: 100%;
  }
}

.mission-type-label {
  font-size: 0.7rem;
  color: #4a5d75;
  letter-spacing: 1px;
}

.mission-title {
  margin: 5px 0 0 0;
  font-size: 1.8rem;
  color: #fff;
  font-family: "Orbitron", sans-serif;
  text-transform: uppercase;
}

.details-body {
  flex: 1;
  overflow-y: auto;
  padding: 20px;
}

.description-box {
  background: rgba(0, 0, 0, 0.3);
  padding: 15px;
  border-left: 2px solid #00d4ff;
  margin-bottom: 25px;
}

.description-text {
  margin: 0;
  color: #a0acba;
  font-size: 0.9rem;
  line-height: 1.6;
}

/* --- Нагороди --- */
.expected-rewards-section {
  margin-bottom: 30px;
}

.section-header {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #00d4ff;
  margin-bottom: 15px;
}

.section-header h4 {
  margin: 0;
  font-size: 0.9rem;
  letter-spacing: 1px;
}

.rewards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 10px;
}

.reward-entry {
  display: flex;
  align-items: center;
  padding: 10px;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-left-width: 4px;
}

.reward-icon-container {
  width: 40px;
  height: 40px;
  background: #0a0f18;
  border: 1px solid rgba(0, 212, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 15px;
}

.reward-icon-container img {
  width: 80%;
  height: 80%;
  object-fit: contain;
}

.reward-icon-container i {
  color: #4a5d75;
  font-size: 1.2rem;
}

.reward-text {
  display: flex;
  flex-direction: column;
}

.reward-name {
  font-size: 0.85rem;
  color: #fff;
  text-transform: uppercase;
}

.reward-chance {
  font-size: 0.7rem;
  color: #00ff88;
  font-family: "Space Mono", monospace;
}

/* Кольори раритетності */
.reward-entry.common {
  border-left-color: #4a5d75;
}
.reward-entry.uncommon {
  border-left-color: #00ff88;
}
.reward-entry.rare {
  border-left-color: #00d4ff;
}
.reward-entry.epic {
  border-left-color: #a335ee;
}
.reward-entry.legendary {
  border-left-color: #ffaa00;
}

/* --- Кнопка --- */
.action-area {
  margin-top: 20px;
}

.initiate-deployment-btn {
  width: 100%;
  padding: 20px;
  background: #00d4ff;
  border: none;
  color: #000;
  font-family: "Orbitron", sans-serif;
  font-weight: 900;
  font-size: 1.1rem;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: 0.3s;
  clip-path: polygon(0 0, 100% 0, 100% 70%, 95% 100%, 0 100%);
}

.initiate-deployment-btn:hover {
  background: #fff;
  box-shadow: 0 0 30px rgba(0, 212, 255, 0.5);
  transform: translateY(-2px);
}

.initiate-deployment-btn i {
  font-size: 1.2rem;
}

/* --- Placeholder --- */
.dungeon-placeholder {
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #4a5d75;
}

.radar-scanner {
  width: 100px;
  height: 100px;
  border: 2px solid rgba(0, 212, 255, 0.2);
  border-radius: 50%;
  position: relative;
  margin-bottom: 20px;
}

.radar-scanner::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 50%;
  height: 2px;
  background: #00d4ff;
  transform-origin: left center;
  animation: radar_rotate 2s linear infinite;
}

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

/* Кастомний скрол */
.custom-scroll::-webkit-scrollbar {
  width: 5px;
}
.custom-scroll::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.2);
}
.custom-scroll::-webkit-scrollbar-thumb {
  background: #1a2638;
  border-radius: 10px;
}
.custom-scroll::-webkit-scrollbar-thumb:hover {
  background: #00d4ff;
}
