/* ==========================================================================
   3D INTERACTIVE WORLD GLOBE — STYLES (style.css)
   Three.js WebGL canvas wrapper, touch controls HUD, and country info bottom sheet.
   ========================================================================== */

.globe-page-wrapper {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  max-width: 900px;
  margin: 0 auto;
}

.globe-canvas-container {
  width: 100%;
  height: clamp(380px, 60vh, 560px);
  background: radial-gradient(circle at center, #1E293B 0%, #0F172A 70%, #0B0F19 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  touch-action: none;
}

#globe-canvas {
  width: 100%;
  height: 100%;
  display: block;
}

/* Floating Controls Overlay */
.globe-hud-overlay {
  position: absolute;
  top: var(--space-3);
  left: var(--space-3);
  right: var(--space-3);
  display: flex;
  justify-content: space-between;
  align-items: center;
  pointer-events: none;
}

.globe-hud-pill {
  background: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(8px);
  border: 1px solid var(--border);
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  color: var(--text-muted);
  pointer-events: auto;
}

/* Quick Country Selector Chips */
.country-chips-bar {
  display: flex;
  gap: var(--space-2);
  overflow-x: auto;
  padding: var(--space-2) 0;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.country-chips-bar::-webkit-scrollbar {
  display: none;
}

.chip-btn {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-4);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--text);
  cursor: pointer;
  transition: all var(--duration-fast) ease;
}

.chip-btn:hover,
.chip-btn.active {
  background: var(--primary);
  border-color: var(--primary);
  box-shadow: 0 0 12px var(--primary-glow);
}

/* Country Details Drawer / Info Card */
.country-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: var(--space-5);
  box-shadow: var(--shadow-md);
  transition: all var(--duration-normal) var(--ease-out);
}

.country-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-3);
}

.country-title-group {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.country-flag-badge {
  font-size: 2.25rem;
  line-height: 1;
}

.country-name {
  font-size: var(--text-2xl);
  font-weight: 800;
}

.country-continent {
  font-size: var(--text-xs);
  color: var(--accent);
  text-transform: uppercase;
  font-weight: 700;
}

.country-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-3);
  margin-bottom: var(--space-3);
  background: var(--bg-deep);
  padding: var(--space-3);
  border-radius: var(--radius-md);
}

.country-fact-box {
  background: rgba(99, 102, 241, 0.1);
  border-left: 3px solid var(--primary);
  padding: var(--space-3);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  font-size: var(--text-sm);
  color: var(--text);
  line-height: 1.4;
}
