/* Loading State */
.loading-state {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  background: var(--bg-color);
}

.loader {
  text-align: center;
}

.loader-text {
  font-size: var(--font-size-sm);
  font-weight: var(--font-medium);
  text-transform: uppercase;
  letter-spacing: var(--letter-spacing-loose);
  color: var(--text-tertiary);
  animation: pulse 1.5s ease-in-out infinite;
}

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

/* Scrollbar */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: #0a0a0a;
}

::-webkit-scrollbar-thumb {
  background: #333333;
  transition: var(--transition);
}

::-webkit-scrollbar-thumb:hover {
  background: #555555;
}

/* Responsive */

/* Mobile Menu Toggle — hamburger holds About/Random/Quiz; search + filter stay in the bar */
.mobile-menu-btn {
  display: none;
}
.mobile-menu-panel {
  display: none;
}

@media (max-width: 768px) {
  /* moved into the hamburger menu */
  .nav-button.about-nav-button,
  .nav-button.surprise-button,
  .nav-button.quiz-button {
    display: none;
  }

  .nav-button.mobile-menu-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    min-height: 44px;
  }
  .nav-button.mobile-menu-btn svg {
    display: block;
  }

  .mobile-menu-panel {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    z-index: calc(var(--z-modal) - 1); /* over content, under real modals */
    background: #0a0a0a;
    border-bottom: 1px solid rgba(255, 255, 255, var(--opacity-border));
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5);
  }
  .mobile-menu-item {
    background: none;
    border: 0;
    border-top: 1px solid rgba(255, 255, 255, var(--opacity-faint));
    font-family: inherit;
    text-align: left;
    padding: 16px var(--page-gutter);
    font-size: var(--font-size-sm);
    letter-spacing: var(--letter-spacing-label);
    text-transform: uppercase;
    color: rgba(255, 255, 255, var(--opacity-secondary));
    cursor: pointer;
  }
  .mobile-menu-item:first-child {
    border-top: 0;
  }
  .mobile-menu-item:active {
    background: rgba(255, 255, 255, 0.06);
  }
}
