/**
 * Tokyo Jet Lag — Empty State Component Styles
 * Centered layout with sleepy moon illustration and CTA
 */

.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 4rem 2rem;
  min-height: 400px;
  text-align: center;
  background-color: #09090b;
  border: 1px solid #27272a;
  border-radius: 0.75rem;
  gap: 2rem;
}

.empty-state-illustration {
  width: 100%;
  max-width: 300px;
  height: auto;
  aspect-ratio: 1 / 1;
  margin-bottom: 1rem;
}

.empty-state-illustration svg {
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 0 20px rgba(249, 115, 22, 0.1));
  animation: float 3s ease-in-out infinite;
}

@keyframes float {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-10px);
  }
}

.empty-state-content {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 500px;
}

.empty-state-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(1.5rem, 5vw, 2.25rem);
  letter-spacing: 0.08em;
  font-weight: 700;
  color: #e4e4e7;
  margin: 0;
  text-transform: uppercase;
}

.empty-state-title-ja {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 1rem;
  font-weight: 500;
  color: #a1a1a6;
  margin: 0;
  letter-spacing: 0.05em;
}

.empty-state-subtitle {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 1rem;
  color: #a1a1a6;
  line-height: 1.6;
  margin: 0;
  font-weight: 400;
}

.empty-state-cta {
  margin-top: 1.5rem;
}

.empty-state-button {
  display: inline-block;
  padding: 0.875rem 2rem;
  background-color: #f97316;
  color: #04040f;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  border: none;
  border-radius: 0.375rem;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  text-decoration: none;
  white-space: nowrap;
}

.empty-state-button:hover {
  background-color: #ea580c;
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(249, 115, 22, 0.3);
}

.empty-state-button:active {
  transform: translateY(0);
}

.empty-state-button:disabled {
  background-color: #52525b;
  color: #71717a;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* Variant: Compact empty state */
.empty-state.compact {
  padding: 2rem;
  min-height: 300px;
  gap: 1.5rem;
}

.empty-state.compact .empty-state-illustration {
  max-width: 200px;
  margin-bottom: 0;
}

.empty-state.compact .empty-state-title {
  font-size: 1.5rem;
}

.empty-state.compact .empty-state-subtitle {
  font-size: 0.875rem;
}

/* Variant: Full-screen empty state */
.empty-state.fullscreen {
  min-height: 100vh;
  padding: 4rem 2rem;
}

/* Variant: With accent color */
.empty-state.accent {
  border: 2px solid #f97316;
  background: linear-gradient(135deg, #09090b 0%, rgba(249, 115, 22, 0.02) 100%);
}

.empty-state.accent .empty-state-title {
  color: #f97316;
}

/* Dark variant (already matches theme, but explicit) */
.empty-state.dark {
  background-color: #04040f;
  border-color: #18181b;
}

/* Responsive design */
@media (max-width: 768px) {
  .empty-state {
    padding: 3rem 1.5rem;
    min-height: 350px;
    gap: 1.5rem;
  }

  .empty-state-illustration {
    max-width: 250px;
  }

  .empty-state-title {
    font-size: 1.5rem;
  }

  .empty-state-subtitle {
    font-size: 0.875rem;
  }

  .empty-state-button {
    padding: 0.75rem 1.5rem;
    font-size: 0.875rem;
  }
}

@media (max-width: 480px) {
  .empty-state {
    padding: 2rem 1rem;
    min-height: 300px;
    gap: 1.25rem;
    border-radius: 0.5rem;
  }

  .empty-state-illustration {
    max-width: 180px;
    margin-bottom: 0;
  }

  .empty-state-title {
    font-size: 1.25rem;
    letter-spacing: 0.05em;
  }

  .empty-state-subtitle {
    font-size: 0.8rem;
    line-height: 1.5;
  }

  .empty-state-button {
    padding: 0.625rem 1.25rem;
    font-size: 0.8rem;
  }

  .empty-state.compact {
    padding: 1.5rem 1rem;
  }
}

/* Loading state */
.empty-state.loading {
  opacity: 0.5;
  pointer-events: none;
}

.empty-state.loading svg {
  animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}

/* Animation for appearance */
.empty-state {
  animation: empty-state-appear 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes empty-state-appear {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Inline SVG illustration styling */
.empty-state-illustration svg {
  fill: currentColor;
}

.empty-state-illustration svg circle {
  fill: #fbbf24;
  filter: drop-shadow(0 0 15px rgba(249, 115, 22, 0.3));
}

.empty-state-illustration svg path {
  fill: #18181b;
  stroke: #27272a;
  stroke-width: 0.5;
}

.empty-state-illustration svg line {
  stroke: #00f0ff;
  stroke-width: 1;
  opacity: 0.5;
}

/* Accessibility */
.empty-state-button:focus-visible {
  outline: 2px solid #f97316;
  outline-offset: 2px;
}

/* Print styles */
@media print {
  .empty-state {
    border: 1px solid #000;
    page-break-inside: avoid;
  }
}
