/* World Adventure Map Styles */

.world-page {
  background: linear-gradient(to bottom, #0d3b1f, #1a5c35);
  min-height: 100vh;
}

.world-header {
  text-align: center;
  padding: 40px 20px 20px;
  color: white;
}

.world-header h1 {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 900;
  text-shadow: 2px 2px 8px rgba(0,0,0,0.4);
  margin-bottom: 8px;
}

.world-header h1 span { color: #a5d6a7; }

.world-canvas-wrap {
  max-width: 1000px;
  margin: 0 auto;
  padding: 20px;
  position: relative;
}

#world-map-canvas {
  width: 100%;
  height: 500px;
  border-radius: 24px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.4);
  cursor: pointer;
  border: 4px solid rgba(255,255,255,0.15);
  background: #1a5c35;
}

.area-tooltip {
  position: absolute;
  background: white;
  border-radius: 12px;
  padding: 12px 18px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.2);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s;
  z-index: 10;
  min-width: 160px;
  border: 3px solid var(--navy);
}

.area-tooltip.visible { opacity: 1; }

.area-tooltip h4 {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 4px;
}

.area-tooltip p {
  font-family: var(--font-body);
  font-size: 0.8rem;
  color: var(--text-mid);
}

.level-indicator {
  font-size: 0.75rem;
  background: var(--gold-light);
  color: var(--navy);
  padding: 2px 8px;
  border-radius: 10px;
  font-weight: 700;
  margin-top: 6px;
  display: inline-block;
}

.world-areas-list {
  max-width: 900px;
  margin: 20px auto;
  padding: 0 20px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
}

.world-area-btn {
  background: rgba(255,255,255,0.1);
  border: 2px solid rgba(255,255,255,0.2);
  border-radius: 16px;
  padding: 18px 16px;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s;
  color: white;
  font-family: var(--font-main);
  font-weight: 700;
}

.world-area-btn:hover, .world-area-btn.active {
  background: rgba(255,255,255,0.2);
  border-color: rgba(255,255,255,0.5);
  transform: translateY(-3px);
}

.world-area-btn.locked {
  opacity: 0.4;
  cursor: not-allowed;
}

.world-area-btn .area-icon { font-size: 2.5rem; margin-bottom: 8px; }
.world-area-btn .area-name { font-size: 0.9rem; margin-bottom: 4px; }
.world-area-btn .area-level { font-size: 0.75rem; opacity: 0.7; }

.area-modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.7);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.area-modal.open { display: flex; }

.area-modal-content {
  background: white;
  border-radius: var(--radius);
  padding: 36px;
  max-width: 520px;
  width: 100%;
  position: relative;
  animation: fadeIn 0.3s ease;
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: #f0f0f0;
  cursor: pointer;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  transition: background 0.2s;
}

.modal-close:hover { background: #e0e0e0; }

