/* Empty/Error state component (used by 404) */

.empty-help {
  text-align: center;
  padding: var(--space-8);
  color: var(--color-text-muted);
}

.empty-state {
    text-align: center;
    max-width: 600px;
    margin-block: var(--space-12) auto;
    margin-inline: auto;
    padding: var(--space-6);
    animation: fadeIn 0.4s var(--ease-smooth);
}

/* Scroll-driven animation support */
.empty-state.fade-in-on-scroll {
    /* Will be animated by scroll-animations.css */
}

.empty-state__code {
    /* Responsive display size - larger than --text-display for emphasis */
    font-size: clamp(5rem, 4rem + 5vw, 7.5rem);
    font-weight: var(--weight-extrabold);
    line-height: 1;
    color: var(--color-primary);
    opacity: 0.2;
    margin-bottom: var(--space-4);
    animation: scaleIn 0.5s var(--ease-smooth) 0.1s both;
    will-change: transform, opacity;
}

.empty-state__icon {
    margin: 0 auto var(--space-6) auto;
    width: 120px;
    height: 120px;
    color: var(--color-primary);
    opacity: 0.15;
    animation: fadeIn 0.6s var(--ease-smooth) 0.15s both;
    will-change: transform, opacity;
}

.empty-state__icon svg {
    width: 100%;
    height: 100%;
    display: block;
}

.empty-state__title {
    font-size: var(--text-4xl);
    font-weight: var(--weight-bold);
    color: var(--color-text-primary);
    margin: 0 0 var(--space-4) 0;
    animation: slideUp 0.5s var(--ease-smooth) 0.2s both;
    will-change: transform, opacity;
}

.empty-state__message {
    font-size: var(--text-lg);
    color: var(--color-text-secondary);
    margin: 0 0 var(--space-8) 0;
    line-height: var(--leading-relaxed);
    animation: slideUp 0.5s var(--ease-smooth) 0.3s both;
    will-change: transform, opacity;
}

.empty-state__actions {
    display: flex;
    gap: var(--space-4);
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: var(--space-12);
    animation: slideUp 0.5s var(--ease-smooth) 0.4s both;
    will-change: transform, opacity;
}

.empty-state__actions .button {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
}

.empty-state__actions .button svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

/* ============================================
   SUGGESTIONS BOX
   ============================================ */

.empty-state__suggestions {
    text-align: start;
    background: linear-gradient(180deg,
        var(--color-bg-elevated),
        var(--color-bg-secondary));
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: var(--space-6);
    margin-top: var(--space-10);
    animation: slideUp 0.5s var(--ease-smooth) 0.5s both;
    will-change: transform, opacity;
    box-shadow: var(--neumorphic-subtle);
}

.empty-state__suggestions h2 {
    font-size: var(--text-lg);
    font-weight: var(--weight-semibold);
    margin: 0 0 var(--space-4) 0;
    color: var(--color-text-primary);
}

.empty-state__suggestions ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.empty-state__suggestions li {
    padding: var(--space-2) 0;
    color: var(--color-text-secondary);
    transition: transform var(--motion-fast);
}

.empty-state__suggestions li::before {
    content: '→';
    margin-inline-end: var(--space-2);
    color: var(--color-text-link);
    font-weight: var(--weight-bold);
    transition: transform var(--motion-fast);
}

.empty-state__suggestions li:hover {
    transform: translate3d(var(--motion-distance-2), 0, 0);
}

.empty-state__suggestions li:hover::before {
    transform: translate3d(var(--motion-distance-1), 0, 0);
}

/* Links - use design system link colors */
.empty-state__suggestions a {
    color: var(--color-text-link);
    text-decoration: none;
    transition: color var(--motion-fast);
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

.empty-state__suggestions a:hover {
    color: var(--color-text-link-hover);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.empty-state__suggestions a:focus-visible {
    outline: 2px solid var(--color-border-focus);
    outline-offset: 2px;
    border-radius: var(--radius-sm);
}

/* ============================================
   SEARCH HINT
   ============================================ */

.empty-state__search-hint {
    margin-top: var(--space-8);
    color: var(--color-text-tertiary);
    font-size: var(--text-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-1);
    animation: fadeIn 0.5s var(--ease-smooth) 0.6s both;
}

.empty-state__search-hint kbd {
    background: linear-gradient(180deg,
        var(--color-surface),
        var(--color-bg-secondary));
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    padding: var(--space-0-5) var(--space-2);
    font-family: var(--font-mono);
    font-size: var(--text-xs);
    font-weight: var(--weight-medium);
    color: var(--color-text-secondary);
    box-shadow: var(--neumorphic-subtle);
}

/* ============================================
   ANIMATIONS
   ============================================ */

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: translate3d(0, 0, 0) scale(0.8);
    }
    to {
        opacity: 1;
        transform: translate3d(0, 0, 0) scale(1);
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translate3d(0, 20px, 0);
    }
    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 640px) {
    .empty-state__icon {
        width: 80px;
        height: 80px;
    }

    .empty-state__title {
        font-size: var(--text-2xl);
    }

    .empty-state__message {
        font-size: var(--text-base);
    }

    .empty-state__actions {
        flex-direction: column;
    }

    .empty-state__actions .button {
        width: 100%;
    }
}

/* ============================================
   REDUCED MOTION
   ============================================ */

@media (prefers-reduced-motion: reduce) {
    .empty-state,
    .empty-state__code,
    .empty-state__icon,
    .empty-state__title,
    .empty-state__message,
    .empty-state__actions,
    .empty-state__suggestions,
    .empty-state__search-hint {
        animation: none !important;
        will-change: auto !important;
    }

    .empty-state__suggestions li,
    .empty-state__suggestions li::before,
    .empty-state__suggestions a {
        transition: none !important;
    }
}
