﻿/* =============================================================
   WORLD MAP STYLES
   World map container, hotspots, NPC indicators, local map,
   turn timer, submission status, party restore modal.
   Source: original styles.css lines 7674-8531
   ============================================================= */
/* ==================== */
/* World Map Styles */
/* ==================== */

.world-map-container {
  width: 100%;
  max-width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  background: rgba(10, 5, 20, 0.95);
  border: 3px solid #d4af37;
  border-radius: 15px;
  padding: 20px;
  box-shadow: 0 10px 50px rgba(0, 0, 0, 0.8);
}

.location-image-container {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 10px;
  background: rgba(0, 0, 0, 0.6);
  border-radius: 10px;
  overflow: hidden;
  height: 520px;
  flex-shrink: 0;
}

.location-text-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  padding: 8px 20px 10px;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.7) 60%, transparent 100%);
  z-index: 5;
  text-align: center;
  pointer-events: none;
  max-height: 30%;
  overflow: hidden;
}

.location-text-overlay h2 {
  color: #d4af37;
  font-size: 1.8em;
  margin: 0 0 3px 0;
  text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.95), 0 0 20px rgba(0, 0, 0, 0.8);
  font-weight: bold;
  line-height: 1.2;
}

.location-text-overlay p {
  color: #e8d4a0;
  font-size: 0.95em;
  margin: 0;
  font-style: italic;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.95), 0 0 15px rgba(0, 0, 0, 0.8);
  line-height: 1.3;
  max-height: 3.9em;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}

.location-image {
  width: 1024px;
  height: auto;
  max-height: 520px;
  object-fit: contain;
  border-radius: 8px;
  flex-shrink: 0;
}

/* Interactive Character Hotspots */
.character-hotspots-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 10;
  pointer-events: none;
}

/* Hide hotspot overlays on mobile - use list view instead */
@media (max-width: 768px) {
  .character-hotspots-overlay {
    display: none !important;
  }
  
  .character-hotspot,
  .npc-hotspot,
  .player-hotspot {
    display: none !important;
  }
}

.character-hotspot {
  position: absolute;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  pointer-events: all;
  transition: transform 0.3s ease, filter 0.3s ease;
  z-index: 10;
}

.character-hotspot:hover {
  transform: translate(-50%, -50%) scale(1.15);
  z-index: 20;
}

.hotspot-portrait {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  border: 3px solid #8a67ff;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(10, 5, 20, 0.95);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.8),
              0 0 20px rgba(138, 103, 255, 0.4);
  transition: all 0.3s ease;
  overflow: hidden;
  position: relative;
}

.character-hotspot:hover .hotspot-portrait {
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.9),
              0 0 30px rgba(138, 103, 255, 0.8);
  border-width: 4px;
}

.hotspot-portrait-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  image-rendering: pixelated;
  image-rendering: -moz-crisp-edges;
  image-rendering: crisp-edges;
}

/* NPC-specific styling */
.npc-hotspot .hotspot-portrait {
  border-color: #FFD700;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.8),
              0 0 20px rgba(255, 215, 0, 0.4);
}

.npc-hotspot:hover .hotspot-portrait {
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.9),
              0 0 30px rgba(255, 215, 0, 0.8);
}

/* NPCs with dialogue get a pulsing glow */
.npc-hotspot.has-dialogue .hotspot-portrait {
  animation: dialogue-pulse 2s ease-in-out infinite;
  cursor: pointer;
}

@keyframes dialogue-pulse {
  0%, 100% {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.8),
                0 0 20px rgba(255, 215, 0, 0.5);
  }
  50% {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.8),
                0 0 35px rgba(255, 215, 0, 0.9),
                0 0 50px rgba(255, 215, 0, 0.5);
  }
}

.npc-hotspot.has-dialogue .hotspot-portrait::after {
  /* content: 'ðŸ’¬'; */
  position: absolute;
  bottom: -4px;
  right: -4px;
  font-size: 18px;
  background: rgba(10, 5, 20, 0.95);
  border-radius: 50%;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #FFD700;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.8);
}

/* Player-specific styling */
.player-hotspot .hotspot-portrait {
  border-color: #00FF00;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.8),
              0 0 20px rgba(0, 255, 0, 0.4);
}

.player-hotspot:hover .hotspot-portrait {
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.9),
              0 0 30px rgba(0, 255, 0, 0.8);
}

/* Character name label */
.hotspot-label {
  padding: 4px 10px;
  background: rgba(10, 5, 20, 0.95);
  border: 2px solid #8a67ff;
  border-radius: 6px;
  font-size: 0.75em;
  font-weight: bold;
  text-shadow: 0 0 8px rgba(0, 0, 0, 0.9),
               2px 2px 4px rgba(0, 0, 0, 0.9);
  white-space: nowrap;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.8);
  transition: all 0.3s ease;
  max-width: 200px;
  overflow: hidden;
  text-overflow: ellipsis;
}

.npc-hotspot .hotspot-label {
  border-color: #FFD700;
}

.player-hotspot .hotspot-label {
  border-color: #00FF00;
}

.character-hotspot:hover .hotspot-label {
  border-width: 3px;
  transform: scale(1.05);
}

/* Tooltip on hover */
.hotspot-tooltip {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  margin-top: 10px;
  padding: 12px;
  background: rgba(10, 5, 20, 0.98);
  border: 2px solid #8a67ff;
  border-radius: 8px;
  min-width: 180px;
  max-width: 250px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.9);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  z-index: 100;
  pointer-events: none;
}

.character-hotspot:hover .hotspot-tooltip {
  opacity: 1;
  visibility: visible;
}

.npc-hotspot .hotspot-tooltip {
  border-color: #FFD700;
}

.player-hotspot .hotspot-tooltip {
  border-color: #00FF00;
}

.hotspot-tooltip::before {
  content: '';
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 8px solid transparent;
  border-bottom-color: #8a67ff;
}

.npc-hotspot .hotspot-tooltip::before {
  border-bottom-color: #FFD700;
}

.player-hotspot .hotspot-tooltip::before {
  border-bottom-color: #00FF00;
}

.tooltip-name {
  font-size: 1.1em;
  font-weight: bold;
  margin-bottom: 4px;
  text-shadow: 0 0 8px rgba(0, 0, 0, 0.9);
}

.tooltip-title {
  font-size: 0.9em;
  color: #c9a870;
  font-style: italic;
  margin-bottom: 4px;
}

.tooltip-class {
  font-size: 0.85em;
  color: #e8d4a0;
  margin-bottom: 4px;
}

.tooltip-owner {
  font-size: 0.8em;
  color: #8a67ff;
  font-style: italic;
}

.tooltip-action {
  margin-top: 6px;
  padding-top: 6px;
  border-top: 1px solid rgba(138, 103, 255, 0.4);
  font-size: 0.85em;
  color: #FFD700;
  font-weight: bold;
  text-align: center;
}

/* Responsive adjustments for hotspots */
@media (max-width: 1200px) {
  .hotspot-portrait {
    width: 56px;
    height: 56px;
  }
  
  .hotspot-label {
    font-size: 0.8em;
    padding: 3px 8px;
  }
  
  .hotspot-tooltip {
    min-width: 150px;
    padding: 10px;
  }
}

.image-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(212, 175, 55, 0.8);
  color: #0a0612;
  border: none;
  padding: 12px 16px;
  font-size: 1.5em;
  cursor: pointer;
  border-radius: 5px;
  transition: all 0.3s;
  z-index: 10;
}

.image-nav-btn:hover {
  background: rgba(212, 175, 55, 1);
  transform: translateY(-50%) scale(1.1);
}

.image-nav-btn:first-of-type {
  left: 10px;
}

.image-nav-btn:last-of-type {
  right: 10px;
}

.image-counter {
  position: absolute;
  bottom: 15px;
  right: 15px;
  background: rgba(0, 0, 0, 0.8);
  color: #d4af37;
  padding: 8px 15px;
  border-radius: 5px;
  font-size: 1em;
  font-weight: bold;
}

.location-actions {
  display: flex;
  gap: 8px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

.location-actions button {
  padding: 7px 14px;
  font-size: 0.9em;
  background: rgba(80, 50, 120, 0.9);
  color: #d4af37;
  border: 2px solid #d4af37;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s;
  font-weight: bold;
}

.location-actions button:hover {
  background: rgba(120, 80, 180, 1);
  transform: scale(1.05);
  box-shadow: 0 4px 15px rgba(212, 175, 55, 0.4);
}

.location-actions .primary-button {
  background: rgba(180, 80, 20, 0.9);
  border-color: #ff6600;
  color: #ffe6cc;
}

.location-actions .primary-button:hover {
  background: rgba(220, 100, 30, 1);
  box-shadow: 0 4px 15px rgba(255, 102, 0, 0.5);
}

.location-actions .underway-button {
  background: rgba(100, 70, 40, 0.9);
  border-color: #8b7355;
  color: #d4af37;
}

.location-actions .underway-button:hover {
  background: rgba(140, 100, 60, 1);
  box-shadow: 0 4px 15px rgba(139, 115, 85, 0.5);
}

.location-actions .world-map-button {
  background: rgba(40, 80, 120, 0.9);
  border-color: #4a90d9;
  color: #b8e0ff;
}

.location-actions .world-map-button:hover {
  background: rgba(60, 110, 160, 1);
  box-shadow: 0 4px 15px rgba(74, 144, 217, 0.5);
}

.location-navigation {
  padding: 14px;
  background: rgba(20, 10, 40, 0.7);
  border-radius: 8px;
  border: 2px solid #663399;
  display: flex;
  flex-direction: column;
  gap: 4px;
  max-height: 280px;
  overflow-y: auto;
  flex-shrink: 0;
  width: 95%;
  margin: 0 auto;
}

.location-navigation h3 {
  color: #d4af37;
  margin: 0 0 2px 0;
  font-size: 1em;
  text-align: center;
}

.location-navigation > div:first-of-type {
  text-align: center;
  margin-bottom: 2px;
}

.location-navigation h4 {
  color: #8a67ff;
  margin: 0 0 2px 0;
  font-size: 0.95em;
  text-align: center;
}

.location-btn {
  margin: 2px 0;
  padding: 7px 10px;
  background: rgba(60, 40, 100, 0.8);
  color: #e8d4a0;
  border: 2px solid #663399;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.3s;
  font-size: 0.9em;
  display: block;
  width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.location-btn:hover {
  background: rgba(80, 60, 130, 1);
  border-color: #8a67ff;
  transform: scale(1.01);
}

.location-btn.active {
  background: rgba(212, 175, 55, 0.3);
  border-color: #d4af37;
  color: #d4af37;
  font-weight: bold;
}

/* Remove character button */
.remove-char-btn {
  background: rgba(180, 20, 20, 0.7);
  color: #fff;
  border: 1px solid #ff3333;
  border-radius: 3px;
  padding: 0;
  cursor: pointer;
  font-size: 0.75em;
  font-weight: bold;
  transition: all 0.2s;
  width: 18px;
  height: 18px;
  min-width: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0 8px;
  flex-shrink: 0;
}

.remove-char-btn:hover {
  background: rgba(220, 30, 30, 1);
  transform: scale(1.15);
  box-shadow: 0 2px 8px rgba(255, 51, 51, 0.5);
}

/* Modal for party restore */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.85);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 10000;
}

.modal-content {
  background: linear-gradient(135deg, #1a0f2e 0%, #2d1b4e 100%);
  padding: 35px;
  border-radius: 15px;
  border: 3px solid #d4af37;
  max-width: 500px;
  box-shadow: 0 10px 50px rgba(0, 0, 0, 0.9);
  color: #e8d4a0;
}

.modal-content h2 {
  color: #d4af37;
  margin-bottom: 20px;
  font-size: 1.8em;
  text-align: center;
}

.modal-content p {
  margin-bottom: 15px;
  line-height: 1.6;
}

.modal-content ul {
  margin: 15px 0;
  padding-left: 30px;
}

.modal-content li {
  margin: 8px 0;
  color: #e8d4a0;
}

.modal-content button {
  padding: 12px 25px;
  font-size: 1.1em;
  background: rgba(80, 50, 120, 0.9);
  color: #d4af37;
  border: 2px solid #d4af37;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s;
  font-weight: bold;
}

.modal-content button:hover {
  background: rgba(120, 80, 180, 1);
  transform: scale(1.05);
  box-shadow: 0 4px 15px rgba(212, 175, 55, 0.4);
}

/* Ladder exit modal â€” secondary (cancel) button */
.modal-content .secondary-button {
  background: rgba(30, 20, 45, 0.9);
  color: #aaa;
  border-color: #666;
}

.modal-content .secondary-button:hover {
  background: rgba(50, 35, 65, 0.9);
  color: #ccc;
  border-color: #888;
  box-shadow: none;
}

/* Turn Timer Styles */
.turn-timer-display {
  display: none;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 10px;
  background: rgba(20, 10, 35, 0.8);
  border: 2px solid #8a67ff;
  border-radius: 8px;
  margin-left: 20px;
}

#turn-timer-text {
  font-size: 18px;
  font-weight: bold;
  color: #f4e4c1;
}

.turn-timer-bar {
  width: 200px;
  height: 12px;
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid #8a67ff;
  border-radius: 6px;
  overflow: hidden;
}

.turn-timer-progress {
  height: 100%;
  background: #4a9eff;
  transition: width 1s linear, background-color 0.3s;
}

/* Turn Timer Settings Modal */
.turn-timer-settings-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.8);
  z-index: 10000;
  justify-content: center;
  align-items: center;
}

.turn-timer-settings-modal.active {
  display: flex;
}

.turn-timer-settings-container {
  background: linear-gradient(135deg, #1a0f2e 0%, #2a1f4e 100%);
  border: 3px solid #8a67ff;
  border-radius: 12px;
  padding: 30px;
  min-width: 400px;
  box-shadow: 0 0 30px rgba(138, 103, 255, 0.6);
}

.turn-timer-settings-container h3 {
  color: #f4e4c1;
  margin-bottom: 20px;
  text-align: center;
  font-size: 24px;
}

.setting-row {
  margin-bottom: 15px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.setting-row label {
  color: #e8d4a0;
  font-size: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.setting-row input[type="number"] {
  padding: 8px 12px;
  background: rgba(10, 6, 18, 0.8);
  border: 2px solid #8a67ff;
  border-radius: 4px;
  color: #f4e4c1;
  font-size: 16px;
  width: 100px;
}

.setting-actions {
  margin-top: 20px;
  display: flex;
  gap: 10px;
  justify-content: center;
}

.setting-actions button {
  padding: 10px 20px;
  background: linear-gradient(135deg, #8a67ff, #6a47df);
  border: 2px solid #8a67ff;
  border-radius: 6px;
  color: #f4e4c1;
  font-size: 16px;
  cursor: pointer;
  transition: all 0.2s;
}

.setting-actions button:hover {
  background: linear-gradient(135deg, #9a77ff, #7a57ef);
  box-shadow: 0 0 15px rgba(138, 103, 255, 0.8);
}

/* Submission Status Indicator */
.submission-status-indicator {
  padding: 12px 20px;
  margin: 10px 0;
  border-radius: 8px;
  text-align: center;
  font-weight: bold;
  font-size: 16px;
  animation: pulse 2s ease-in-out infinite;
}

.submission-status-indicator.pending {
  background: rgba(255, 170, 0, 0.2);
  border: 2px solid #ffaa00;
  color: #ffaa00;
}

.submission-status-indicator.waiting {
  background: rgba(74, 158, 255, 0.2);
  border: 2px solid #4a9eff;
  color: #4a9eff;
}

.submission-status-indicator.active {
  background: rgba(138, 103, 255, 0.2);
  border: 2px solid #8a67ff;
  color: #8a67ff;
  animation: pulse 2s ease-in-out infinite;
}

.submission-status-indicator.ready {
  background: rgba(34, 197, 94, 0.2);
  border: 2px solid #22c55e;
  color: #22c55e;
  animation: none;
}

@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.7;
  }
}

/* Player Submission Status Display */
.player-submission-status {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 10px;
  background: rgba(20, 10, 35, 0.6);
  border: 2px solid #8a67ff;
  border-radius: 8px;
  margin-bottom: 10px;
}

.status-title {
  width: 100%;
  font-weight: bold;
  color: #f4e4c1;
  margin-bottom: 5px;
}

.player-status {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  background: rgba(10, 6, 18, 0.8);
  border: 2px solid #666;
  border-radius: 6px;
  transition: all 0.3s;
}

.player-status.submitted {
  border-color: #22c55e;
  background: rgba(34, 197, 94, 0.2);
}

.player-status.pending {
  border-color: #ffaa00;
  background: rgba(255, 170, 0, 0.2);
}

.player-icon {
  font-size: 18px;
}

.player-name {
  color: #f4e4c1;
  font-weight: bold;
  min-width: 80px;
}

.player-actions {
  color: #e8d4a0;
  font-size: 14px;
}
/* Local Map Styles */
.local-map-area {
  background: linear-gradient(135deg, #2d1b4e 0%, #3d2463 100%);
  border: 2px solid #8a67ff;
  border-radius: 10px;
  padding: 20px;
  cursor: pointer;
  transition: all 0.3s;
}

.local-map-area:hover {
  background: linear-gradient(135deg, #3d2463 0%, #4d2d73 100%);
  border-color: #d4af37;
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(212, 175, 55, 0.3);
}

.local-map-area h3 {
  color: #d4af37;
  margin: 0 0 10px 0;
  font-size: 1.3em;
}

.local-map-area p {
  color: #e8d4a0;
  margin: 0;
  font-size: 0.95em;
}

