/* Daaneshvaran Regional Hub */
.locale-hub {
  --dv-hub-gold: #D4AF37;
}

.hub-hero {
  background: linear-gradient(135deg, rgba(0, 48, 135, 0.95) 0%, rgba(5, 150, 105, 0.85) 50%, rgba(212, 175, 55, 0.35) 100%);
  position: relative;
  overflow: hidden;
}

.hub-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 30% 40%, rgba(212, 175, 55, 0.15), transparent 50%);
  pointer-events: none;
}

.hub-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1.25rem;
}

.hub-card {
  padding: 1.5rem !important;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.hub-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--dv-shadow-lg);
}

.hub-flag {
  font-size: 2rem;
  line-height: 1;
}

.hub-label {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--dv-accent-primary, #003087);
  letter-spacing: 0.05em;
}

.hub-map {
  max-width: 900px;
  margin: 0 auto;
  border-radius: var(--dv-radius-xl);
  overflow: hidden;
  box-shadow: var(--dv-shadow-lg);
}

.hub-map-svg {
  width: 100%;
  height: auto;
  display: block;
}

.hub-map-node {
  animation: hub-pulse 2.5s ease-in-out infinite;
}

.hub-map-center {
  animation: hub-pulse 1.8s ease-in-out infinite;
}

@keyframes hub-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.6; }
}

.hub-transition {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0, 20, 60, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}

.hub-transition.active {
  opacity: 1;
  pointer-events: auto;
}

.hub-transition-inner {
  text-align: center;
  color: #fff;
}

.hub-spinner {
  width: 48px;
  height: 48px;
  border: 3px solid rgba(212, 175, 55, 0.3);
  border-top-color: #D4AF37;
  border-radius: 50%;
  margin: 0 auto 1rem;
  animation: hub-spin 0.8s linear infinite;
}

@keyframes hub-spin {
  to { transform: rotate(360deg); }
}
