/* ============================================
   CTA MODALS & TOASTS
   Friendly sign-up nudges for logged-out users
   ============================================ */

/* Toast Notification (First Favorite) */
.cta-toast {
    position: fixed;
    bottom: 24px;
    right: 24px;
    background: linear-gradient(135deg, #4A90E2 0%, #357ABD 100%);
    color: white;
    padding: 20px 24px;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    z-index: 10000;
    max-width: 380px;
    animation: slideUpFade 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    display: none;
}

.cta-toast.show {
    display: block;
}

@keyframes slideUpFade {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.cta-toast-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.cta-toast-icon {
    font-size: 24px;
    animation: heartBeat 0.6s ease;
}

@keyframes heartBeat {
    0%, 100% { transform: scale(1); }
    25% { transform: scale(1.2); }
    50% { transform: scale(1.1); }
}

.cta-toast-title {
    font-size: 18px;
    font-weight: 600;
    margin: 0;
}

.cta-toast-message {
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 16px;
    opacity: 0.95;
}

.cta-toast-actions {
    display: flex;
    gap: 12px;
    align-items: center;
}

.cta-toast-btn {
    padding: 10px 20px;
    border-radius: 8px;
    border: none;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.cta-toast-btn-primary {
    background: white;
    color: #4A90E2;
}

.cta-toast-btn-primary:hover {
    background: #f8f9fa;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.cta-toast-btn-secondary {
    background: transparent;
    color: white;
    text-decoration: underline;
    padding: 10px 12px;
}

.cta-toast-btn-secondary:hover {
    opacity: 0.8;
}

.cta-toast-close {
    position: absolute;
    top: 12px;
    right: 12px;
    background: transparent;
    border: none;
    color: white;
    font-size: 20px;
    cursor: pointer;
    opacity: 0.7;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.cta-toast-close:hover {
    opacity: 1;
    background: rgba(255, 255, 255, 0.1);
}

/* Modal (Third Favorite) */
.cta-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    z-index: 10001;
    display: none;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

.cta-modal-overlay.show {
    display: flex;
}

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

.cta-modal {
    background: white;
    border-radius: 16px;
    padding: 32px;
    max-width: 480px;
    width: 90%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: modalSlideUp 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
}

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

.cta-modal-header {
    text-align: center;
    margin-bottom: 24px;
}

.cta-modal-emoji {
    font-size: 48px;
    margin-bottom: 16px;
    display: block;
    animation: celebrate 0.6s ease;
}

@keyframes celebrate {
    0%, 100% { transform: rotate(0deg) scale(1); }
    25% { transform: rotate(-10deg) scale(1.1); }
    75% { transform: rotate(10deg) scale(1.1); }
}

.cta-modal-title {
    font-size: 24px;
    font-weight: 700;
    color: #2c3e50;
    margin: 0 0 12px 0;
}

.cta-modal-subtitle {
    font-size: 16px;
    color: #7f8c8d;
    margin: 0;
}

.cta-modal-benefits {
    margin: 24px 0;
}

.cta-benefit {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 16px;
}

.cta-benefit:last-child {
    margin-bottom: 0;
}

.cta-benefit-icon {
    font-size: 20px;
    margin-top: 2px;
    flex-shrink: 0;
}

.cta-benefit-text {
    flex: 1;
}

.cta-benefit-title {
    font-size: 15px;
    font-weight: 600;
    color: #2c3e50;
    margin: 0 0 4px 0;
}

.cta-benefit-description {
    font-size: 14px;
    color: #7f8c8d;
    margin: 0;
}

.cta-modal-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 24px;
}

.cta-modal-btn {
    padding: 14px 24px;
    border-radius: 10px;
    border: none;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    width: 100%;
}

.cta-modal-btn-primary {
    background: linear-gradient(135deg, #4A90E2 0%, #357ABD 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(74, 144, 226, 0.3);
}

.cta-modal-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(74, 144, 226, 0.4);
}

.cta-modal-btn-secondary {
    background: transparent;
    color: #7f8c8d;
    border: 2px solid #e0e6ed;
}

.cta-modal-btn-secondary:hover {
    background: #f8f9fa;
    border-color: #cbd5e0;
}

.cta-modal-trust {
    text-align: center;
    margin-top: 16px;
    font-size: 13px;
    color: #95a5a6;
}

.cta-modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: transparent;
    border: none;
    color: #95a5a6;
    font-size: 24px;
    cursor: pointer;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.cta-modal-close:hover {
    background: #f1f3f5;
    color: #2c3e50;
}

/* Banner (Favorites Page - Logged Out) */
/* Full Banner - Dismissible */
.cta-banner {
    background: linear-gradient(135deg, #4A90E2 0%, #357ABD 100%);
    color: white;
    padding: 24px;
    border-radius: 12px;
    margin: 24px auto;
    text-align: center;
    box-shadow: 0 4px 16px rgba(74, 144, 226, 0.2);
    position: relative;
    transition: all 0.3s ease;
    max-width: 800px;
}

.cta-banner.hidden {
    display: none;
}

.cta-banner-close {
    position: absolute;
    top: 12px;
    right: 12px;
    background: transparent;
    border: none;
    color: white;
    font-size: 20px;
    cursor: pointer;
    opacity: 0.7;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.cta-banner-close:hover {
    opacity: 1;
    background: rgba(255, 255, 255, 0.15);
}

.cta-banner-icon {
    font-size: 40px;
    margin-bottom: 12px;
    display: block;
}

.cta-banner-title {
    font-size: 20px;
    font-weight: 700;
    margin: 0 0 8px 0;
}

.cta-banner-subtitle {
    font-size: 15px;
    margin: 0 0 20px 0;
    opacity: 0.95;
}

.cta-banner-benefits {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 12px;
    margin: 20px 0;
    text-align: left;
}

.cta-banner-benefit {
    display: flex;
    align-items: center;
    gap: 10px;
}

.cta-banner-benefit-icon {
    font-size: 20px;
    flex-shrink: 0;
}

.cta-banner-benefit-text {
    font-size: 14px;
    font-weight: 500;
}

.cta-banner-btn {
    background: white;
    color: #4A90E2;
    padding: 12px 28px;
    border-radius: 8px;
    border: none;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.cta-banner-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}

.cta-banner-trust {
    margin-top: 12px;
    font-size: 12px;
    opacity: 0.85;
}

/* Compact Banner - Always Visible */
.cta-banner-compact {
    background: linear-gradient(135deg, #4A90E2 0%, #357ABD 100%);
    color: white;
    padding: 16px 20px;
    border-radius: 10px;
    margin: 24px 0;
    display: none;
    align-items: center;
    gap: 16px;
    box-shadow: 0 2px 8px rgba(74, 144, 226, 0.2);
    transition: all 0.2s ease;
}

.cta-banner-compact.show {
    display: flex;
}

.cta-banner-compact:hover {
    box-shadow: 0 4px 12px rgba(74, 144, 226, 0.3);
}

.cta-banner-compact-icon {
    font-size: 28px;
    flex-shrink: 0;
}

.cta-banner-compact-content {
    flex: 1;
    text-align: left;
}

.cta-banner-compact-title {
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 4px 0;
}

.cta-banner-compact-text {
    font-size: 13px;
    opacity: 0.9;
    margin: 0;
}

.cta-banner-compact-btn {
    background: white;
    color: #4A90E2;
    padding: 10px 20px;
    border-radius: 8px;
    border: none;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
    flex-shrink: 0;
}

.cta-banner-compact-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .cta-toast {
        bottom: 16px;
        right: 16px;
        left: 16px;
        max-width: none;
    }

    .cta-modal {
        padding: 24px;
        margin: 16px;
    }

    .cta-modal-title {
        font-size: 20px;
    }

    .cta-modal-emoji {
        font-size: 40px;
    }

    .cta-banner {
        padding: 20px 16px;
    }

    .cta-banner-title {
        font-size: 18px;
    }

    .cta-banner-icon {
        font-size: 32px;
    }

    .cta-banner-benefits {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .cta-banner-compact {
        flex-direction: column;
        text-align: center;
        gap: 12px;
        padding: 16px;
    }
    
    .cta-banner-compact-content {
        text-align: center;
    }
    
    .cta-banner-compact-btn {
        width: 100%;
    }
}

/* Dark Mode */
body.dark-mode .cta-modal {
    background: #2c3e50;
}

body.dark-mode .cta-modal-title {
    color: #ecf0f1;
}

body.dark-mode .cta-benefit-title {
    color: #ecf0f1;
}

body.dark-mode .cta-benefit-description,
body.dark-mode .cta-modal-subtitle {
    color: #95a5a6;
}

body.dark-mode .cta-modal-btn-secondary {
    border-color: #34495e;
    color: #bdc3c7;
}

body.dark-mode .cta-modal-btn-secondary:hover {
    background: #34495e;
}

body.dark-mode .cta-modal-close:hover {
    background: #34495e;
    color: #ecf0f1;
}

