/**
 * OlaLingo Campus - Welcome Popup Styles
 * Eye-catching welcome modal with CTA
 */

.welcome-popup {
    position: fixed;
    inset: 0;
    z-index: 9950; /* FIXED: Lower than navbar (9990) to not interfere with navigation */
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    pointer-events: none !important; /* CRITICAL: Prevent blocking clicks when hidden */
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.welcome-popup.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto !important; /* Enable clicks when visible */
}

.welcome-popup.closing {
    opacity: 0;
}

.welcome-popup-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
}

.welcome-popup-content {
    position: relative;
    background: white;
    border-radius: 24px;
    max-width: 420px;
    width: 100%;
    padding: 32px;
    text-align: center;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.3);
    transform: scale(0.9) translateY(20px);
    transition: transform 0.3s ease;
}

.welcome-popup.active .welcome-popup-content {
    transform: scale(1) translateY(0);
}

.welcome-popup.closing .welcome-popup-content {
    transform: scale(0.9) translateY(20px);
}

.welcome-popup-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 36px;
    height: 36px;
    border: none;
    background: #f5f5f5;
    border-radius: 50%;
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    color: #666;
}

.welcome-popup-close:hover {
    background: #e0e0e0;
    color: #333;
}

.welcome-popup-header {
    margin-bottom: 20px;
}

.welcome-popup-logo img {
    height: 45px;
}

.welcome-popup-body {
    margin-bottom: 24px;
}

.welcome-popup-title {
    font-size: 2rem;
    font-weight: 700;
    color: #333;
    margin: 0 0 8px 0;
}

.welcome-popup-subtitle {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary-color, #019789);
    margin: 0 0 16px 0;
}

.welcome-popup-text {
    font-size: 1rem;
    color: #666;
    line-height: 1.6;
    margin: 0;
}

.welcome-popup-text strong {
    color: #333;
}

/* Gift Options Display */
.welcome-popup-gift {
    margin-top: 20px;
    padding: 16px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 16px;
}

.gift-options {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.gift-option {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.gift-icon {
    font-size: 1.25rem;
}

.gift-label {
    font-size: 0.9rem;
    font-weight: 600;
    color: #333;
}

.gift-or {
    font-size: 0.85rem;
    color: #888;
    font-weight: 500;
}

/* Action Buttons */
.welcome-popup-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 16px;
}

.welcome-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 24px;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
    cursor: pointer;
    border: none;
}

.welcome-btn-primary {
    background: linear-gradient(135deg, #019789 0%, #06645b 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(1, 151, 137, 0.3);
}

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

.welcome-btn-whatsapp {
    background: #25D366;
    color: white;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
}

.welcome-btn-whatsapp:hover {
    background: #20bd5a;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
}

/* Dismiss Button */
.welcome-popup-dismiss {
    background: none;
    border: none;
    color: #888;
    font-size: 0.9rem;
    cursor: pointer;
    padding: 8px 16px;
    transition: color 0.2s ease;
}

.welcome-popup-dismiss:hover {
    color: #333;
}

/* Contact Info */
.welcome-popup-contact {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #eee;
    font-size: 0.85rem;
    color: #666;
}

.welcome-popup-contact span:nth-child(2) {
    color: #ddd;
}

/* Mobile Adjustments */
@media (max-width: 480px) {
    .welcome-popup-content {
        padding: 24px 20px;
        margin: 10px;
        border-radius: 20px;
    }
    
    .welcome-popup-title {
        font-size: 1.75rem;
    }
    
    .welcome-popup-subtitle {
        font-size: 1rem;
    }
    
    .gift-options {
        flex-direction: column;
        gap: 8px;
    }
    
    .gift-or {
        display: none;
    }
    
    .gift-option {
        width: 100%;
        justify-content: center;
    }
    
    .welcome-popup-contact {
        flex-direction: column;
        gap: 4px;
    }
    
    .welcome-popup-contact span:nth-child(2) {
        display: none;
    }
}

/* Animation for attention */
@keyframes pulse-glow {
    0%, 100% {
        box-shadow: 0 4px 15px rgba(1, 151, 137, 0.3);
    }
    50% {
        box-shadow: 0 4px 25px rgba(1, 151, 137, 0.5);
    }
}

.welcome-btn-primary {
    animation: pulse-glow 2s ease-in-out infinite;
}

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