/**
 * Motivational Modal Styles
 */

.motivation-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    /* ✅ iOS Safari fix: prevent blocking clicks when hidden */
    pointer-events: none;
}

.motivation-modal.show {
    opacity: 1;
    /* ✅ Re-enable pointer events when modal is visible */
    pointer-events: auto;
}

.motivation-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
}

.motivation-modal-content {
    position: relative;
    background: white;
    border-radius: 24px;
    padding: 48px 40px;
    max-width: 500px;
    width: 90%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: modalSlideUp 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    text-align: center;
}

@keyframes modalSlideUp {
    from {
        opacity: 0;
        transform: translateY(50px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.motivation-modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: transparent;
    border: none;
    font-size: 32px;
    color: var(--text-secondary);
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.motivation-modal-close:hover {
    background: var(--bg-secondary);
    color: var(--text-primary);
    transform: rotate(90deg);
}

.motivation-icon {
    font-size: 64px;
    color: #6366f1;
    margin-bottom: 24px;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

.motivation-title {
    font-size: 32px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 24px;
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.motivation-quote {
    margin-bottom: 32px;
    padding: 24px;
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    border-radius: 16px;
    border-left: 4px solid #6366f1;
}

.quote-text {
    font-size: 18px;
    line-height: 1.8;
    color: var(--text-primary);
    font-style: italic;
    margin-bottom: 12px;
}

.quote-author {
    font-size: 14px;
    color: var(--text-secondary);
    font-weight: 600;
}

.motivation-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.motivation-action {
    width: 100%;
    padding: 14px 24px;
    font-size: 16px;
    font-weight: 600;
}

.motivation-dismiss {
    width: 100%;
    padding: 12px 24px;
    font-size: 15px;
}

/* Dark Theme */
[data-theme="dark"] .motivation-modal-content {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
}

[data-theme="dark"] .motivation-quote {
    background: var(--bg-secondary);
    border-left-color: #8b5cf6;
}

[data-theme="dark"] .quote-text {
    color: var(--text-primary);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .motivation-modal-content {
        padding: 32px 24px;
        width: 95%;
    }
    
    .motivation-icon {
        font-size: 48px;
    }
    
    .motivation-title {
        font-size: 24px;
    }
    
    .quote-text {
        font-size: 16px;
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    .motivation-modal,
    .motivation-modal-content,
    .motivation-icon {
        animation: none !important;
        transition: none !important;
    }
}
