/* ==========================================================
   SURVIVAL, ISOMETRIC WORLD & EXPEDITIONS STYLES
   ========================================================== */

.survival-grid {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* Isometric Exploration Canvas Wrapper */
.iso-viewport-card {
  position: relative;
  width: 100%;
  background: #020617;
  border: 2px solid var(--brass);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 0 35px rgba(0, 0, 0, 0.8), var(--shadow-glow);
}

.iso-canvas {
  display: block;
  width: 100%;
  height: 520px;
  background: radial-gradient(circle at 50% 50%, #064e3b 0%, #022c22 100%);
  cursor: crosshair;
}

/* Compass & Biome Directional Overlay */
.iso-biome-legend {
  position: absolute;
  top: 12px;
  left: 12px;
  right: 12px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  pointer-events: none;
  z-index: 10;
}

.biome-badge {
  background: rgba(15, 23, 42, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: var(--text-main);
  padding: 5px 10px;
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 5px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.5);
}

.biome-badge.camp {
  border-color: var(--warning-amber);
  color: #fde68a;
}

/* Bottom Control Overlay */
.iso-controls-bar {
  position: absolute;
  bottom: 12px;
  left: 12px;
  right: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  z-index: 10;
  pointer-events: none;
}

.iso-hints {
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 6px 14px;
  border-radius: 99px;
  font-size: 0.75rem;
  color: var(--text-muted);
}

.iso-quick-actions {
  display: flex;
  gap: 8px;
  pointer-events: auto;
}

.iso-action-btn {
  background: rgba(15, 23, 42, 0.95);
  border: 1px solid var(--brass);
  color: var(--brass-light);
  padding: 8px 14px;
  border-radius: var(--radius-md);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
  box-shadow: 0 4px 12px rgba(0,0,0,0.6);
}

.iso-action-btn:hover {
  background: var(--brass);
  color: #000;
}

/* Biome Exploration Section */
.panel-card {
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-lg);
  padding: 20px;
  box-shadow: var(--shadow-card);
}

.panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.panel-header h2 {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  color: var(--brass-light);
  display: flex;
  align-items: center;
  gap: 8px;
}

.stamina-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.75rem;
  color: #34d399;
  background: rgba(16, 185, 129, 0.12);
  padding: 2px 8px;
  border-radius: 99px;
  margin-top: 4px;
}

/* Animal Tracking & Menagerie */
.animals-discovery-panel {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.tracked-animals-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 14px;
}

.animal-capture-card {
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
  padding: 14px;
  display: flex;
  gap: 14px;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.animal-capture-card.boarded {
  border-color: var(--success-emerald);
  background: rgba(16, 185, 129, 0.08);
}

.animal-avatar {
  flex-shrink: 0;
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.3);
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.animal-meta {
  flex-grow: 1;
}

.animal-meta h4 {
  font-size: 0.95rem;
  color: var(--text-main);
  margin-bottom: 2px;
}

.animal-badge-tag {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  padding: 1px 6px;
  border-radius: 4px;
  background: rgba(234, 179, 8, 0.2);
  color: var(--brass-light);
  margin-bottom: 6px;
}

.animal-diet-info {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.btn-capture {
  background: linear-gradient(135deg, #059669, #10b981);
  color: #fff;
  border: none;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  margin-top: 6px;
}

.btn-capture:hover {
  filter: brightness(1.1);
}

/* Crafting Workshop */
.crafting-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
}

.craft-filter-btn {
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-muted);
  font-size: 0.85rem;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  cursor: pointer;
}

.craft-filter-btn.active {
  background: var(--brass);
  color: #000;
  font-weight: 600;
  border-color: var(--brass);
}

.recipes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 12px;
}

.recipe-card {
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  padding: 14px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 10px;
}

.recipe-top {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.recipe-icon {
  font-size: 26px;
  background: rgba(255, 255, 255, 0.06);
  padding: 6px;
  border-radius: var(--radius-sm);
}

.recipe-details h4 {
  font-size: 0.95rem;
  color: var(--brass-light);
}

.recipe-details p {
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.3;
}

.recipe-costs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 6px 0;
}

.cost-tag {
  font-size: 0.75rem;
  padding: 2px 7px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-main);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.cost-tag.missing {
  color: var(--danger-red);
  border-color: rgba(239, 68, 68, 0.4);
  background: rgba(239, 68, 68, 0.1);
}

/* Campfire / Rest */
.campfire-panel {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: linear-gradient(90deg, rgba(180, 83, 9, 0.2), rgba(239, 68, 68, 0.1));
  border: 1px solid var(--warning-amber);
  border-radius: var(--radius-md);
  padding: 14px 20px;
  margin-top: 14px;
}

.campfire-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.campfire-icon {
  font-size: 28px;
  animation: flicker 1.8s infinite alternate;
}

@keyframes flicker {
  0% { transform: scale(1); filter: brightness(1); }
  100% { transform: scale(1.1); filter: brightness(1.25); }
}

/* ==========================================================
   ARK WORKSHOP PROXIMITY BANNER & BADGES
   ========================================================== */
.workshop-ark-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 18px;
  border-radius: var(--radius-md);
  margin-bottom: 18px;
  animation: fadeIn 0.25s ease-out;
}

.workshop-ark-banner.at-ark {
  background: linear-gradient(135deg, rgba(5, 150, 105, 0.2), rgba(16, 185, 129, 0.08));
  border: 1px solid rgba(52, 211, 153, 0.4);
}

.workshop-ark-banner.away {
  background: linear-gradient(135deg, rgba(220, 38, 38, 0.25), rgba(245, 158, 11, 0.15));
  border: 1px solid rgba(239, 68, 68, 0.5);
  box-shadow: 0 0 16px rgba(239, 68, 68, 0.15);
}

.workshop-ark-banner .banner-icon {
  font-size: 2rem;
  line-height: 1;
}

.workshop-ark-banner .banner-text {
  flex: 1;
}

.workshop-ark-banner .banner-text strong {
  display: block;
  font-size: 0.96rem;
  margin-bottom: 3px;
}

.workshop-ark-banner.at-ark .banner-text strong {
  color: #34d399;
}

.workshop-ark-banner.away .banner-text strong {
  color: #f87171;
}

.workshop-ark-banner .banner-text span {
  font-size: 0.82rem;
  color: #cbd5e1;
  line-height: 1.35;
}

.badge-status-ready {
  background: rgba(5, 150, 105, 0.35);
  color: #34d399;
  border: 1px solid #10b981;
  padding: 4px 10px;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 600;
  white-space: nowrap;
}

.tab-badge-ark {
  font-size: 0.65rem;
  padding: 2px 7px;
  border-radius: 10px;
  margin-left: 6px;
  font-family: sans-serif;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.tab-badge-ark.ready {
  background: rgba(16, 185, 129, 0.25);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.4);
}

.tab-badge-ark.away {
  background: rgba(239, 68, 68, 0.25);
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.4);
}

.btn-craft-away {
  opacity: 0.6;
}
