/**
 * assets/css/next-steps.css
 * TICKET-929: Consistent "Next step ladder" Styling
 *
 * Uses theme tokens: --mercy-base, --grounded-text, --covenant-accent
 */

.vf-next-steps {
    margin: 2.5rem auto 1.5rem;
    width: 100%;
    max-width: 500px;
}

.vf-next-steps__ladder {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.vf-next-step-item {
    display: flex;
    align-items: center;
    padding: 1.1rem 1.25rem;
    background: rgba(var(--vf-surface-rgb, 0, 0, 0), 0.04);
    border: 1px solid rgba(var(--vf-text-rgb, 0, 0, 0), 0.08);
    border-radius: 12px;
    text-decoration: none !important;
    color: var(--vf-text, var(--grounded-text));
    font-family: var(--font-primary, serif);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
}

/* Light / Day Defaults (Paper Texture) */
body:not(.atmosphere-night) .vf-next-step-item {
    background: rgba(42, 42, 42, 0.03);
    border-color: rgba(42, 42, 42, 0.08);
}

/* Night / Dark atmosphere overrides */
body.atmosphere-night .vf-next-step-item,
.guidance-spoke-layout .vf-next-step-item {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 0.9);
}

.vf-next-step-item:hover,
.vf-next-step-item:focus {
    background: rgba(var(--vf-accent-rgb, 122, 30, 44), 0.05);
    border-color: var(--covenant-accent);
    transform: translateX(4px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

body.atmosphere-night .vf-next-step-item:hover,
.guidance-spoke-layout .vf-next-step-item:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--covenant-accent);
}

.vf-next-step-icon {
    font-size: 1.25rem;
    margin-right: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
}

.vf-next-step-label {
    flex: 1;
    font-weight: 500;
    font-size: 0.95rem;
    letter-spacing: 0.01em;
}

.vf-next-step-arrow {
    opacity: 0;
    transform: translateX(-10px);
    transition: all 0.3s ease;
    font-family: var(--font-secondary, sans-serif);
    color: var(--covenant-accent);
    font-weight: bold;
}

.vf-next-step-item:hover .vf-next-step-arrow,
.vf-next-step-item:focus .vf-next-step-arrow {
    opacity: 1;
    transform: translateX(0);
}

/* Accessibility: Focus States */
.vf-next-step-item:focus-visible {
    outline: 2px solid var(--covenant-accent);
    outline-offset: 4px;
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    .vf-next-step-item {
        transition: none;
    }

    .vf-next-step-item:hover {
        transform: none;
    }
}

/* Small screens */
@media screen and (max-width: 480px) {
    .vf-next-step-item {
        padding: 0.9rem 1rem;
    }

    .vf-next-step-label {
        font-size: 0.85rem;
    }
}