/* Prevent flash of unstyled content while components load */
#header-placeholder:empty,
#footer-placeholder:empty {
  min-height: 80px;
  display: block;
}

/* Optional: Add a subtle loading state */
#header-placeholder:empty::before {
  content: '';
  display: block;
  width: 100%;
  height: 80px;
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: loading 1.5s infinite;
}

@keyframes loading {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}

/* Hide loading animation once header is loaded */
#header-placeholder:not(:empty)::before,
#footer-placeholder:not(:empty)::before {
  display: none;
}
