/**
 * Empty State Styles
 * Conversion-optimized empty states with animations
 */

/* Container */
.empty-state-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 3rem 2rem;
    max-width: 480px;
    margin: 0 auto;
    animation: emptyStateFadeIn 0.5s ease-out;
}

.empty-state-container.compact {
    padding: 2rem 1.5rem;
    max-width: 360px;
}

@keyframes emptyStateFadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Visual / Illustration */
.empty-state-visual {
    margin-bottom: 1.5rem;
}

.empty-illustration {
    width: 200px;
    height: 160px;
}

.garage-illustration {
    width: 220px;
    height: 180px;
}

.empty-state-icon {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.12) 0%, rgba(139, 92, 246, 0.08) 100%);
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: 20px;
    color: #3b82f6;
}

.empty-state-icon svg {
    width: 40px;
    height: 40px;
}

.compact .empty-state-icon {
    width: 56px;
    height: 56px;
}

.compact .empty-state-icon svg {
    width: 28px;
    height: 28px;
}

/* Car animation for garage */
.car-enter-animation {
    animation: carEnter 3s ease-in-out infinite;
    transform-origin: center;
}

@keyframes carEnter {
    0%, 100% {
        transform: translateX(-5px);
        opacity: 0.5;
    }
    50% {
        transform: translateX(5px);
        opacity: 0.9;
    }
}

.pulse-animation {
    animation: iconPulse 2.5s ease-in-out infinite;
}

@keyframes iconPulse {
    0%, 100% {
        transform: scale(1);
        opacity: 0.6;
    }
    50% {
        transform: scale(1.15);
        opacity: 1;
    }
}

/* Headlines */
.empty-state-headline {
    font-size: 1.75rem;
    font-weight: 700;
    color: #f4f4f5;
    margin: 0 0 0.5rem;
    background: linear-gradient(135deg, #f4f4f5 0%, #3b82f6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.3;
}

.compact .empty-state-headline {
    font-size: 1.25rem;
}

.empty-state-subheadline {
    font-size: 1rem;
    color: #a1a1aa;
    margin: 0 0 1.75rem;
    line-height: 1.6;
    max-width: 360px;
}

.compact .empty-state-subheadline {
    font-size: 0.9rem;
    margin-bottom: 1.25rem;
}

/* Value Props */
.empty-state-value-props {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem;
    margin-bottom: 2rem;
}

.value-prop {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(59, 130, 246, 0.06);
    border: 1px solid rgba(59, 130, 246, 0.15);
    border-radius: 24px;
    font-size: 0.85rem;
    color: #a1a1aa;
    transition: all 0.2s ease;
}

.value-prop:hover {
    background: rgba(59, 130, 246, 0.1);
    border-color: rgba(59, 130, 246, 0.25);
}

.value-prop-icon {
    color: #3b82f6;
    display: flex;
}

.value-prop-icon svg {
    width: 18px;
    height: 18px;
}

/* Preview Stats */
.empty-state-preview-stats {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2rem;
    padding: 1.25rem 1.5rem;
    background: rgba(14, 22, 36, 0.5);
    border: 1px solid rgba(59, 130, 246, 0.12);
    border-radius: 14px;
}

.preview-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.35rem;
}

.preview-stat .stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: #52525b;
}

.preview-stat .stat-label {
    font-size: 0.7rem;
    color: #71717a;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.preview-stat-blue .stat-value { color: #3b82f6; opacity: 0.5; }
.preview-stat-green .stat-value { color: #10b981; opacity: 0.5; }
.preview-stat-purple .stat-value { color: #8b5cf6; opacity: 0.5; }

/* Suggested Reminders */
.empty-state-suggestions {
    margin-bottom: 2rem;
    width: 100%;
}

.suggestions-label {
    font-size: 0.85rem;
    color: #71717a;
    margin: 0 0 0.75rem;
}

.suggestion-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
}

.suggestion-chip {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    padding: 0.75rem 1.25rem;
    background: rgba(59, 130, 246, 0.06);
    border: 1px solid rgba(59, 130, 246, 0.18);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
}

.suggestion-chip:hover {
    background: rgba(59, 130, 246, 0.12);
    border-color: rgba(59, 130, 246, 0.35);
    transform: translateY(-2px);
}

.chip-label {
    font-weight: 600;
    color: #f4f4f5;
    font-size: 0.875rem;
}

.chip-interval {
    font-size: 0.7rem;
    color: #71717a;
}

/* CTAs */
.empty-state-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    width: 100%;
}

.empty-state-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s ease;
    font-family: inherit;
}

.empty-state-cta.primary {
    background: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
    color: white;
    box-shadow: 0 8px 24px rgba(59, 130, 246, 0.3);
    min-width: 240px;
}

.empty-state-cta.primary:hover:not(:disabled):not(.locked) {
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(59, 130, 246, 0.4);
}

.empty-state-cta.primary:active:not(:disabled):not(.locked) {
    transform: translateY(0);
    box-shadow: 0 6px 16px rgba(59, 130, 246, 0.3);
}

.compact .empty-state-cta.primary {
    padding: 0.75rem 1.5rem;
    font-size: 0.9rem;
    min-width: auto;
}

.empty-state-cta.secondary {
    background: rgba(59, 130, 246, 0.08);
    border: 1.5px solid rgba(59, 130, 246, 0.25);
    color: #3b82f6;
    padding: 0.75rem 1.5rem;
    font-size: 0.9rem;
}

.empty-state-cta.secondary:hover:not(.locked) {
    background: rgba(59, 130, 246, 0.15);
    border-color: rgba(59, 130, 246, 0.4);
}

.empty-state-cta.subtle {
    background: transparent;
    border-color: rgba(100, 116, 139, 0.25);
    color: #a1a1aa;
}

.empty-state-cta.subtle:hover:not(.locked) {
    background: rgba(100, 116, 139, 0.1);
    border-color: rgba(100, 116, 139, 0.4);
    color: #f4f4f5;
}

.empty-state-cta.locked {
    opacity: 0.65;
    cursor: pointer; /* Still clickable to show upgrade modal */
}

.empty-state-cta .cta-icon {
    display: flex;
}

.empty-state-cta .cta-icon svg {
    width: 20px;
    height: 20px;
}

/* Ensure icon is visible on gradient button */
.empty-state-cta.primary .cta-icon svg {
    stroke: white;
    color: white;
}

.empty-state-cta.secondary .cta-icon svg {
    stroke: currentColor;
}

.empty-state-cta .lock-badge {
    font-size: 0.85rem;
    margin-left: 0.25rem;
}

.empty-state-secondary-ctas {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    justify-content: center;
}

/* Benefits List */
.empty-state-benefits {
    list-style: none;
    padding: 0;
    margin: 0 0 1.5rem;
    text-align: left;
    width: 100%;
    max-width: 280px;
}

.empty-state-benefits li {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.5rem 0;
    color: #a1a1aa;
    font-size: 0.9rem;
}

.empty-state-benefits li::before {
    content: '\2713';
    display: flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    background: linear-gradient(135deg, #10b981, #059669);
    border-radius: 50%;
    color: white;
    font-size: 0.65rem;
    font-weight: 700;
    flex-shrink: 0;
}

/* Social Proof */
.empty-state-social-proof {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    background: rgba(139, 92, 246, 0.06);
    border: 1px solid rgba(139, 92, 246, 0.15);
    border-radius: 24px;
    font-size: 0.85rem;
    color: #a1a1aa;
    margin-top: 0.5rem;
}

.social-proof-icon {
    font-size: 1rem;
}

/* Hint */
.empty-state-hint {
    font-size: 0.8rem;
    color: #71717a;
    margin: 0.5rem 0 0;
    max-width: 320px;
    line-height: 1.5;
}

/* Onboarding Tip */
.empty-state-onboarding-tip {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1.5rem;
    padding: 0.75rem 1rem;
    background: rgba(59, 130, 246, 0.06);
    border: 1px dashed rgba(59, 130, 246, 0.25);
    border-radius: 10px;
    font-size: 0.85rem;
    color: #a1a1aa;
}

.tip-icon {
    font-size: 1rem;
}

.tip-link {
    background: none;
    border: none;
    color: #3b82f6;
    font-weight: 600;
    cursor: pointer;
    text-decoration: underline;
    font-family: inherit;
    font-size: inherit;
    padding: 0;
}

.tip-link:hover {
    color: #60a5fa;
}

/* Coming Soon Overlay */
.empty-state-coming-soon {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: rgba(7, 12, 22, 0.85);
    backdrop-filter: blur(4px);
    border-radius: inherit;
    z-index: 10;
}

.coming-soon-badge {
    padding: 0.5rem 1.25rem;
    background: linear-gradient(135deg, #8b5cf6 0%, #3b82f6 100%);
    border-radius: 24px;
    font-size: 0.85rem;
    font-weight: 700;
    color: white;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1rem;
}

.coming-soon-text {
    font-size: 0.9rem;
    color: #a1a1aa;
    max-width: 280px;
    text-align: center;
    margin: 0;
    line-height: 1.5;
}

/* Context-specific positioning */
.empty-state-garage {
    position: relative;
}

.empty-state-serviceHistory,
.empty-state-reminders {
    padding: 2rem 1.5rem;
}

/* Mobile Responsive */
@media (max-width: 640px) {
    .empty-state-container {
        padding: 2rem 1.25rem;
    }

    .empty-state-headline {
        font-size: 1.5rem;
    }

    .empty-state-subheadline {
        font-size: 0.9rem;
    }

    .empty-state-value-props {
        flex-direction: column;
        align-items: center;
    }

    .value-prop {
        width: 100%;
        max-width: 260px;
        justify-content: center;
    }

    .empty-state-preview-stats {
        flex-direction: column;
        gap: 1rem;
        padding: 1rem;
    }

    .empty-state-cta.primary {
        width: 100%;
        max-width: 300px;
    }

    .suggestion-chips {
        flex-direction: column;
        align-items: center;
    }

    .suggestion-chip {
        width: 100%;
        max-width: 200px;
    }

    .garage-illustration {
        width: 180px;
        height: 150px;
    }
}

/* Accessibility - Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    .empty-state-container {
        animation: none;
    }

    .car-enter-animation,
    .pulse-animation {
        animation: none;
    }

    .empty-state-cta,
    .suggestion-chip,
    .value-prop {
        transition: none;
    }
}

/* Focus States */
.empty-state-cta:focus-visible,
.suggestion-chip:focus-visible,
.tip-link:focus-visible {
    outline: 2px solid #3b82f6;
    outline-offset: 2px;
}

/* High Contrast Mode */
@media (prefers-contrast: more) {
    .empty-state-headline {
        -webkit-text-fill-color: initial;
        background: none;
        color: #f4f4f5;
    }

    .empty-state-cta.primary {
        border: 2px solid white;
    }

    .value-prop,
    .suggestion-chip {
        border-width: 2px;
    }
}
