/* ==========================================================================
   BeSpokeHQ - Interactive 3D Earth Globe & Global Presence Styling
   ========================================================================== */

.globe-section {
  position: relative;
  overflow: hidden;
}

.globe-showcase-wrap {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 2rem;
  background: var(--bg-surface);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  margin-top: 2rem;
  position: relative;
}

/* --- 3D Earth Stage & Viewport Box --- */
.globe-stage {
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  background: radial-gradient(circle at center, rgba(217, 167, 74, 0.08) 0%, rgba(14, 9, 5, 0.7) 60%, rgba(10, 6, 3, 0.95) 100%);
}

.globe-viewport-box {
  position: relative;
  min-height: 520px;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  user-select: none;
  touch-action: pan-y;
  overflow: hidden;
}

#interactiveGlobeCanvas {
  display: block;
  width: 100%;
  height: 100%;
  cursor: grab;
  outline: none;
}

#interactiveGlobeCanvas:active {
  cursor: grabbing;
}

/* 3D Location Pin Labels Overlay */
.globe-labels-layer {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  overflow: hidden;
  z-index: 5;
}

.globe-pin-label {
  position: absolute;
  transform: translate(-50%, -100%);
  background: rgba(18, 12, 7, 0.88);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(217, 167, 74, 0.45);
  border-radius: 20px;
  padding: 0.32rem 0.72rem;
  color: #FFFFFF;
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.6), 0 0 10px rgba(217, 167, 74, 0.15);
  cursor: pointer;
  pointer-events: auto;
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  user-select: none;
}

.globe-pin-label:hover {
  transform: translate(-50%, -115%) scale(1.06);
  background: var(--accent-gold);
  color: #120C07;
  border-color: #FFFFFF;
  box-shadow: 0 6px 20px rgba(217, 167, 74, 0.4);
}

.globe-pin-label.active {
  background: var(--accent-gold);
  color: #120C07;
  border-color: #FFFFFF;
  font-weight: 700;
  box-shadow: 0 0 25px rgba(217, 167, 74, 0.65), 0 4px 15px rgba(0, 0, 0, 0.6);
}

.globe-pin-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-gold);
  flex-shrink: 0;
  transition: background 0.2s ease;
}

.globe-pin-label.active .globe-pin-dot,
.globe-pin-label:hover .globe-pin-dot {
  background: #120C07;
}

/* Floating Drag Hint */
.globe-interaction-hint {
  position: absolute;
  top: 1.25rem;
  left: 1.25rem;
  background: rgba(18, 12, 7, 0.85);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(217, 167, 74, 0.35);
  border-radius: 30px;
  padding: 0.4rem 0.9rem;
  font-size: 0.76rem;
  font-weight: 500;
  color: var(--accent-gold);
  display: flex;
  align-items: center;
  gap: 0.45rem;
  pointer-events: none;
  transition: opacity 0.5s ease;
  z-index: 10;
  box-shadow: 0 4px 12px rgba(0,0,0,0.35);
}

.hint-mobile-text {
  display: none;
}

.globe-interaction-hint span.ph {
  font-size: 1rem;
  animation: hintWiggle 2s infinite ease-in-out;
}

@keyframes hintWiggle {
  0%, 100% { transform: translateX(0); }
  50% { transform: translateX(4px); }
}

/* Quick Jump Hubs Bar */
.globe-quick-nav {
  position: absolute;
  bottom: 1.25rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  justify-content: center;
  width: 92%;
  max-width: 520px;
  z-index: 10;
}

.globe-hub-pill {
  background: rgba(18, 12, 7, 0.85);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(217, 167, 74, 0.25);
  border-radius: 20px;
  padding: 0.38rem 0.85rem;
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--text-light);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  transition: all 0.25s ease;
}

.globe-hub-pill:hover {
  border-color: var(--accent-gold);
  background: rgba(30, 20, 12, 0.95);
  transform: translateY(-1px);
}

.globe-hub-pill.active {
  background: var(--accent-gold);
  color: #120C07;
  border-color: var(--accent-gold);
  font-weight: 600;
  box-shadow: 0 0 14px rgba(217, 167, 74, 0.45);
}

.hub-pill-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent-gold);
  display: inline-block;
  transition: background 0.2s;
}

.globe-hub-pill.active .hub-pill-dot {
  background: #120C07;
}

/* --- Detail Card Pane --- */
.globe-detail-card {
  padding: 2.75rem 2.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: var(--bg-surface);
  border-left: 1px solid var(--border-subtle);
  position: relative;
}

.globe-detail-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.globe-detail-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 700;
  color: var(--accent-gold);
  padding: 0.25rem 0.65rem;
  background: rgba(217, 167, 74, 0.1);
  border: 1px solid rgba(217, 167, 74, 0.3);
  border-radius: var(--radius-sm);
}

.globe-live-clock {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.78rem;
  color: var(--text-muted);
  font-family: monospace;
}

.live-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #2D6A4F;
  display: inline-block;
  box-shadow: 0 0 6px #2D6A4F;
  animation: liveBlink 1.8s infinite;
}

@keyframes liveBlink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

.globe-detail-title {
  font-size: 2rem;
  margin-bottom: 0.25rem;
  color: var(--text-primary);
  line-height: 1.2;
}

.globe-detail-role {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--accent-gold);
  margin-bottom: 1rem;
}

.globe-detail-desc {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.65;
  margin-bottom: 1.5rem;
}

/* Metrics strip */
.globe-metrics-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  padding: 1rem;
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  margin-bottom: 1.5rem;
}

.globe-metric-col {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.globe-metric-col .label {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  font-weight: 600;
}

.globe-metric-col .val {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-primary);
}

/* Deliverables list */
.globe-deliverables-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  margin-bottom: 2rem;
}

.globe-deliverable-item {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  font-size: 0.86rem;
  color: var(--text-secondary);
  line-height: 1.45;
}

.globe-deliverable-item span.ph {
  color: var(--accent-gold);
  font-size: 1.1rem;
  margin-top: 1px;
  flex-shrink: 0;
}

/* 4-Hubs Grid Summary */
.globe-hubs-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  margin-top: 2.5rem;
}

.globe-hub-summary-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  cursor: pointer;
  transition: all 0.25s ease;
  position: relative;
  overflow: hidden;
}

.globe-hub-summary-card:hover,
.globe-hub-summary-card.active {
  border-color: var(--accent-gold);
  transform: translateY(-2px);
  box-shadow: var(--shadow-subtle);
}

.globe-hub-summary-card.active::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--accent-gold);
}

.hub-card-icon {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  background: rgba(217, 167, 74, 0.12);
  color: var(--accent-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  margin-bottom: 0.85rem;
}

.hub-card-title {
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.hub-card-role {
  font-size: 0.78rem;
  color: var(--accent-gold);
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.hub-card-focus {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.45;
}

/* --- Responsive Breakpoints --- */
@media (max-width: 1024px) {
  .globe-showcase-wrap {
    grid-template-columns: 1fr;
  }
  .globe-detail-card {
    border-left: none;
    border-top: 1px solid var(--border-subtle);
    padding: 2.25rem 1.75rem;
  }
  .globe-hubs-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .globe-viewport-box {
    min-height: 460px;
  }
}

@media (max-width: 768px) {
  .globe-showcase-wrap {
    margin-top: 1.5rem;
  }

  .globe-stage {
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  }

  .globe-viewport-box {
    min-height: 320px;
    height: 330px;
    touch-action: pan-y;
  }

  .globe-interaction-hint {
    top: 0.85rem;
    left: 0.85rem;
    padding: 0.35rem 0.75rem;
    font-size: 0.72rem;
  }

  .hint-desktop-text {
    display: none;
  }

  .hint-mobile-text {
    display: inline;
  }

  /* Dedicated Touch Tab Bar Docked at Bottom of Globe Viewport */
  .globe-quick-nav {
    position: relative !important;
    bottom: auto !important;
    left: auto !important;
    transform: none !important;
    width: 100% !important;
    max-width: 100% !important;
    display: flex !important;
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
    padding: 0.65rem 0.85rem !important;
    gap: 0.5rem !important;
    background: rgba(14, 9, 5, 0.98) !important;
    border-top: 1px solid rgba(217, 167, 74, 0.25) !important;
    scrollbar-width: none !important;
    justify-content: flex-start !important;
    box-sizing: border-box !important;
  }

  .globe-quick-nav::-webkit-scrollbar {
    display: none;
  }

  .globe-hub-pill {
    flex-shrink: 0;
    font-size: 0.78rem;
    padding: 0.42rem 0.8rem;
    background: rgba(28, 18, 11, 0.9);
    border-color: rgba(217, 167, 74, 0.35);
    box-shadow: 0 2px 8px rgba(0,0,0,0.5);
  }

  .globe-detail-card {
    padding: 1.75rem 1.25rem;
  }

  .globe-detail-title {
    font-size: 1.55rem;
  }

  .globe-detail-desc {
    font-size: 0.88rem;
    line-height: 1.6;
    margin-bottom: 1.25rem;
  }

  .globe-metrics-strip {
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
    padding: 0.85rem 0.65rem;
  }

  .globe-metric-col .label {
    font-size: 0.62rem;
  }

  .globe-metric-col .val {
    font-size: 0.78rem;
  }

  .globe-deliverables-list {
    margin-bottom: 1.5rem;
    gap: 0.55rem;
  }

  .globe-deliverable-item {
    font-size: 0.82rem;
    line-height: 1.4;
  }
}

@media (max-width: 480px) {
  .globe-viewport-box {
    min-height: 310px;
    height: 330px;
  }

  .globe-quick-nav {
    justify-content: flex-start;
    padding-left: 0.4rem;
    padding-right: 0.4rem;
  }

  .globe-metrics-strip {
    grid-template-columns: 1fr;
    gap: 0.6rem;
  }

  .globe-hubs-grid {
    grid-template-columns: 1fr;
    gap: 0.85rem;
  }

  .globe-hub-summary-card {
    padding: 1.2rem;
  }
}
