/* --- LOADING SCREEN --- */
.loader {
  position: fixed;
  inset: 0;
  background: var(--color-primary-dark);
  z-index: var(--z-loader);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 600ms ease, visibility 600ms ease;
}

.loader.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.loader-content {
  text-align: center;
}

.loader-mountain-svg {
  width: 200px;
  height: 100px;
  margin: 0 auto var(--space-5);
}

.loader-mountain-path {
  stroke-dasharray: 500;
  stroke-dashoffset: 500;
  animation: drawMountain 2s ease forwards;
}

.loader-sun {
  opacity: 0;
  animation: sunRise 0.8s ease 1.5s forwards;
}

@keyframes drawMountain {
  to { stroke-dashoffset: 0; }
}

@keyframes sunRise {
  to { opacity: 1; }
}

.loader-text {
  font-family: var(--font-heading);
  font-size: var(--text-3xl);
  font-weight: 800;
  color: var(--color-white);
  letter-spacing: 2px;
  opacity: 0;
  animation: fadeUp 0.6s ease 0.5s forwards;
}

.loader-accent {
  color: var(--color-accent-sunset);
}

.loader-bar-container {
  width: 200px;
  height: 3px;
  background: rgba(255,255,255,0.15);
  border-radius: var(--radius-full);
  margin: var(--space-5) auto 0;
  overflow: hidden;
}

.loader-bar {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--color-accent-sunset), var(--color-secondary-light));
  border-radius: var(--radius-full);
  animation: loadBar 2s ease 0.8s forwards;
}

@keyframes loadBar {
  to { width: 100%; }
}

.loader-subtext {
  color: rgba(255,255,255,0.5);
  font-size: var(--text-sm);
  margin-top: var(--space-4);
  opacity: 0;
  animation: fadeIn 0.5s ease 1s forwards;
}
