/* ===== ISLAND UNIVERSE VIEW ===== */

.island-universe-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.97) 0%, rgba(10, 14, 39, 0.98) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(12px);
  animation: fadeIn 0.5s ease;
}

.island-universe-container {
  position: relative;
  width: 96%;
  max-width: 1500px;
  height: 92vh;
  background: linear-gradient(135deg, #0a0e27 0%, #0f1624 30%, #1a1f3a 70%, #16213e 100%);
  border-radius: 24px;
  padding: 2.5rem;
  box-shadow:
    0 30px 100px rgba(0, 0, 0, 0.9),
    0 0 0 1px rgba(56, 189, 248, 0.15),
    inset 0 1px 0 0 rgba(255, 255, 255, 0.03);
  animation: slideUp 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(148, 163, 184, 0.1);
}

body[data-theme="blue"] .island-universe-modal{
  background: linear-gradient(135deg, rgba(3, 10, 32, 0.96) 0%, rgba(6, 12, 36, 0.98) 100%);
}
body[data-theme="blue"] .island-universe-container{
  background: linear-gradient(135deg, #0b1b3b 0%, #0f224d 45%, #162f5c 100%);
  border-color: rgba(96, 165, 250, 0.35);
  box-shadow:
    0 30px 100px rgba(2, 8, 26, 0.85),
    0 0 0 1px rgba(96, 165, 250, 0.2),
    inset 0 1px 0 0 rgba(255, 255, 255, 0.04);
}

.island-universe-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  border: 2px solid rgba(255, 255, 255, 0.2);
  color: white;
  font-size: 28px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  z-index: 10;
  font-weight: 300;
  line-height: 1;
}

.island-universe-close:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: rotate(90deg) scale(1.1);
  border-color: rgba(255, 255, 255, 0.4);
}

/* Header */

.island-universe-header {
  text-align: center;
  margin-bottom: 2rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid rgba(56, 189, 248, 0.15);
}

.island-universe-header h1 {
  color: #f1f5f9;
  font-size: 3rem;
  margin: 0 0 0.75rem 0;
  font-weight: 900;
  text-shadow: 0 4px 20px rgba(56, 189, 248, 0.5), 0 2px 8px rgba(0, 0, 0, 0.7);
  letter-spacing: -0.03em;
  background: linear-gradient(135deg, #38bdf8 0%, #818cf8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.island-universe-header p {
  color: #cbd5e1;
  font-size: 1.15rem;
  margin: 0;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.5);
  font-weight: 500;
}

/* Canvas */

.island-universe-canvas {
  border-radius: 12px;
  overflow: hidden;
  box-shadow:
    0 10px 40px rgba(0, 0, 0, 0.4),
    inset 0 0 0 1px rgba(255, 255, 255, 0.05);
  flex: 1;
  min-height: 0;
}

/* Tooltip (appears on hover) */

.island-universe-tooltip {
  position: absolute;
  bottom: 120px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(20, 30, 50, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  padding: 1rem 1.5rem;
  min-width: 250px;
  text-align: center;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
  animation: tooltipAppear 0.2s ease;
  backdrop-filter: blur(10px);
}

@keyframes tooltipAppear {
  from {
    opacity: 0;
    transform: translateX(-50%) translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
}

.tooltip-username {
  color: #60a5fa;
  font-size: 1.25rem;
  font-weight: bold;
  margin-bottom: 0.5rem;
  text-shadow: 0 0 10px rgba(96, 165, 250, 0.5);
}

.tooltip-bio {
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.95rem;
  margin-bottom: 0.5rem;
  line-height: 1.4;
}

.tooltip-stats {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Help text */

.island-universe-help {
  text-align: center;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.island-universe-help p {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.9rem;
  margin: 0;
}

/* Animations */

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(30px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes universeIslandFloat {
  0%, 100% {
    transform: translateY(0px) translateX(0px);
  }
  25% {
    transform: translateY(-12px) translateX(5px);
  }
  50% {
    transform: translateY(-5px) translateX(-3px);
  }
  75% {
    transform: translateY(-15px) translateX(3px);
  }
}

/* Responsive */

@media (max-width: 900px) {
  .island-universe-container {
    width: 98%;
    height: 95vh;
    padding: 1.5rem;
    border-radius: 15px;
  }

  .island-universe-header h1 {
    font-size: 2rem;
  }

  .island-universe-header p {
    font-size: 1rem;
  }

  .island-universe-canvas {
    height: 500px !important;
  }

  .island-universe-tooltip {
    bottom: 100px;
    min-width: 200px;
    padding: 0.75rem 1rem;
  }

  .tooltip-username {
    font-size: 1.1rem;
  }

  .tooltip-bio {
    font-size: 0.85rem;
  }

  .tooltip-stats {
    font-size: 0.75rem;
  }
}

@media (max-width: 600px) {
  .island-universe-container {
    padding: 1rem;
  }

  .island-universe-header h1 {
    font-size: 1.5rem;
  }

  .island-universe-canvas {
    height: 400px !important;
  }

  .island-universe-close {
    width: 36px;
    height: 36px;
    font-size: 24px;
  }
}

/* Light theme support */

body[data-theme="light"] .island-universe-container {
  background: linear-gradient(135deg, #e0e7ff 0%, #dbeafe 100%);
}

body[data-theme="light"] .island-universe-header h1 {
  color: #1e3a8a;
}

body[data-theme="light"] .island-universe-header p {
  color: rgba(30, 58, 138, 0.7);
}

body[data-theme="light"] .island-universe-close {
  background: rgba(30, 58, 138, 0.1);
  border-color: rgba(30, 58, 138, 0.2);
  color: #1e3a8a;
}

body[data-theme="light"] .island-universe-close:hover {
  background: rgba(30, 58, 138, 0.2);
  border-color: rgba(30, 58, 138, 0.4);
}

body[data-theme="light"] .island-universe-tooltip {
  background: rgba(255, 255, 255, 0.95);
  border-color: rgba(30, 58, 138, 0.2);
}

body[data-theme="light"] .tooltip-username {
  color: #2563eb;
}

body[data-theme="light"] .tooltip-bio {
  color: #1e3a8a;
}

body[data-theme="light"] .tooltip-stats {
  color: rgba(30, 58, 138, 0.6);
}

body[data-theme="light"] .island-universe-help p {
  color: rgba(30, 58, 138, 0.5);
}

body[data-theme="light"] .island-universe-canvas {
  box-shadow:
    0 10px 40px rgba(0, 0, 0, 0.1),
    inset 0 0 0 1px rgba(30, 58, 138, 0.1);
}
