/* ============================================================================
   Animations
   ============================================================================ */
@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes card-pop {
  from {
    opacity: 0;
    transform: translateY(14px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

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

/* ============================================================================
   Loading State
   ============================================================================ */
.loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 60vh;
  gap: 20px;
  color: var(--text);
}

.spinner {
  width: 40px;
  height: 40px;
  border: 4px solid rgba(37, 99, 235, 0.1);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

/* ============================================================================
   Responsive Design
   ============================================================================ */
@media (max-width: 980px) {
  .dash-header-inner {
    grid-template-columns: 1fr;
  }
  .dash-header-middle {
    justify-content: stretch;
  }
  .dash-header-right {
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
  }
  .hub-grid {
    grid-template-columns: 1fr;
    width: min(520px, 100%);
    gap: 20px;
  }
  .card-hero {
    height: 170px;
  }
  .card-icon .tile-logo {
    width: 66px;
    height: 66px;
  }
}

/* ============================================================================
   Accessibility
   ============================================================================ */
@media (prefers-reduced-motion: reduce) {
  .hub-title,
  .hub-description,
  .hub-card {
    animation: none;
  }
  .hub-card,
  .hub-card::before,
  .tile-video {
    transition: none;
  }
}
