/**
 * welcome-modal.css - First-time user welcome modal styles
 *
 * Design: Warm, friendly, matches Blossom persona
 * Features: Gradient accents, smooth animations, responsive
 */

/* Overlay */
.welcome-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    animation: welcomeFadeIn 0.3s ease-out;
}

.welcome-modal-overlay.welcome-modal-hiding {
    animation: welcomeFadeOut 0.3s ease-out forwards;
}

/* Modal Container */
.welcome-modal {
    background: white;
    border-radius: 20px;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.3);
    max-width: 480px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    animation: welcomeSlideUp 0.4s ease-out;
}

.welcome-modal-hiding .welcome-modal {
    animation: welcomeSlideDown 0.3s ease-out forwards;
}

/* Header */
.welcome-modal-header {
    background: linear-gradient(135deg, var(--primary-purple, #8B7EC8) 0%, var(--primary-green, #7FB069) 100%);
    padding: 25px 25px 20px;
    text-align: center;
    color: white;
}

.welcome-icon {
    font-size: 2.8rem;
    margin-bottom: 10px;
    animation: welcomeBounce 0.6s ease-out 0.3s;
    animation-fill-mode: both;
}

.welcome-modal-header h1 {
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0 0 6px 0;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.welcome-subtitle {
    font-size: 0.95rem;
    opacity: 0.95;
    margin: 0;
    font-weight: 400;
}

/* Body */
.welcome-modal-body {
    padding: 20px 25px 15px;
}

.welcome-message {
    font-size: 0.95rem;
    line-height: 1.5;
    color: var(--text-dark, #333);
    margin: 0 0 15px 0;
    text-align: center;
}

/* Feature highlights */
.welcome-features {
    display: flex;
    justify-content: center;
    gap: 25px;
    flex-wrap: nowrap;
}

.welcome-feature {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    font-size: 0.8rem;
    color: var(--text-muted, #666);
}

.feature-icon {
    font-size: 1.3rem;
    background: linear-gradient(135deg, rgba(139, 126, 200, 0.1), rgba(127, 176, 105, 0.1));
    padding: 8px;
    border-radius: 10px;
}

/* Actions */
.welcome-modal-actions {
    padding: 0 25px 15px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.welcome-btn-primary {
    background: linear-gradient(135deg, var(--primary-purple, #8B7EC8) 0%, var(--primary-green, #7FB069) 100%);
    color: white;
    border: none;
    padding: 14px 20px;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 4px 15px rgba(139, 126, 200, 0.3);
}

.welcome-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(139, 126, 200, 0.4);
}

.welcome-btn-primary:active {
    transform: translateY(0);
}

.welcome-btn-secondary {
    background: transparent;
    color: var(--text-muted, #666);
    border: 1px solid var(--border-color, #e0e0e0);
    padding: 12px 24px;
    border-radius: 12px;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.welcome-btn-secondary:hover {
    background: var(--bg-light, #f8f8f8);
    border-color: var(--text-muted, #999);
}

/* Footer */
.welcome-modal-footer {
    padding: 12px 25px 15px;
    border-top: 1px solid var(--border-color, #eee);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.welcome-checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    color: var(--text-muted, #666);
    cursor: pointer;
}

.welcome-checkbox-label input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: var(--primary-purple, #8B7EC8);
    cursor: pointer;
}

.welcome-hint {
    font-size: 0.8rem;
    color: var(--text-light, #999);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 6px;
}

.hint-key {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-light, #f0f0f0);
    border: 1px solid var(--border-color, #ddd);
    border-radius: 4px;
    padding: 2px 6px;
    font-size: 0.75rem;
    font-weight: 600;
    font-family: monospace;
    min-width: 20px;
}

/* Animations */
@keyframes welcomeFadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

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

@keyframes welcomeSlideUp {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes welcomeSlideDown {
    from {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
    to {
        opacity: 0;
        transform: translateY(30px) scale(0.95);
    }
}

@keyframes welcomeBounce {
    0% {
        transform: scale(0);
    }
    50% {
        transform: scale(1.2);
    }
    100% {
        transform: scale(1);
    }
}

/* Responsive */
@media (max-width: 480px) {
    .welcome-modal {
        width: 95%;
        max-width: none;
        margin: 10px;
    }

    .welcome-modal-header {
        padding: 25px 20px;
    }

    .welcome-modal-header h1 {
        font-size: 1.4rem;
    }

    .welcome-icon {
        font-size: 2.5rem;
    }

    .welcome-modal-body {
        padding: 20px;
    }

    .welcome-features {
        gap: 15px;
    }

    .welcome-feature {
        font-size: 0.8rem;
    }

    .feature-icon {
        font-size: 1.3rem;
        padding: 8px;
    }

    .welcome-modal-actions {
        padding: 0 20px 15px;
    }

    .welcome-modal-footer {
        padding: 12px 20px 15px;
        flex-direction: column;
        align-items: flex-start;
    }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    .welcome-modal-overlay,
    .welcome-modal,
    .welcome-icon {
        animation: none;
    }

    .welcome-btn-primary:hover {
        transform: none;
    }
}
