/* ============================================================
   AUTH-PROMPT.CSS - Authentication Prompt Modal Styling
   Styled like the "Join MemeGet" sidebar card
   ============================================================ */

/* Overlay */
.auth-prompt-overlay {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background: rgba(0, 0, 0, 0.7) !important;
    z-index: 999998 !important;
    opacity: 0;
    transition: opacity 0.3s ease !important;
    backdrop-filter: blur(4px);
    display: block !important;
    visibility: visible !important;
}

.auth-prompt-overlay.show {
    opacity: 1 !important;
}

/* Modal */
.auth-prompt-modal {
    position: fixed !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) scale(0.9);
    width: 90% !important;
    max-width: 500px !important;
    background: linear-gradient(135deg, #2a9b8f 0%, #3aab9f 50%, #4abfb3 100%) !important;
    border-radius: 16px !important;
    box-shadow: 0 20px 60px rgba(17, 185, 162, 0.4) !important;
    z-index: 999999 !important;
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    overflow: hidden !important;
    display: block !important;
    visibility: visible !important;
}

.auth-prompt-modal.show {
    opacity: 1 !important;
    transform: translate(-50%, -50%) scale(1) !important;
}

/* Animated gradient overlay (shimmer effect) */
.auth-prompt-modal::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 200%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(255, 255, 255, 0.1), 
        transparent
    );
    animation: shimmer 4s ease-in-out infinite;
    pointer-events: none;
    z-index: 1;
}

/* Mouse-tracking interactive gradient */
.auth-prompt-modal::after {
    content: '';
    position: absolute;
    left: var(--mouse-x, 50%);
    top: var(--mouse-y, 50%);
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, 
        rgba(255, 255, 255, 0.2) 0%, 
        rgba(255, 255, 255, 0.1) 30%,
        transparent 70%
    );
    border-radius: 50%;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease, left 0.15s ease, top 0.15s ease;
    z-index: 1;
}

.auth-prompt-modal:hover::after {
    opacity: 1;
}

@keyframes shimmer {
    0% { 
        left: -100%;
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% { 
        left: 100%;
        opacity: 0;
    }
}

/* Close button */
.auth-prompt-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 36px;
    height: 36px;
    border: none;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    font-size: 28px;
    line-height: 1;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.2s ease;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    backdrop-filter: blur(10px);
}

.auth-prompt-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg);
}

/* Content */
.auth-prompt-content {
    position: relative;
    z-index: 2;
    padding: 40px 32px 32px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.auth-prompt-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    margin-bottom: 24px;
}

.auth-prompt-title {
    font-size: 28px;
    font-weight: 700;
    color: white;
    margin: 0;
    line-height: 1.2;
    letter-spacing: -0.01em;
}

.auth-prompt-subtitle {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.95);
    margin: 0;
    line-height: 1.4;
    max-width: 400px;
}

.auth-prompt-benefits {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    width: 100%;
    margin-bottom: 24px;
}

.auth-benefit-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    transition: all 0.2s ease;
}

.auth-benefit-item:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
}

.auth-benefit-icon {
    font-size: 20px;
    flex-shrink: 0;
}

.auth-benefit-text {
    color: white;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.3;
    text-align: left;
}

.auth-prompt-cta {
    display: flex;
    gap: 12px;
    width: 100%;
    max-width: 400px;
}

.auth-prompt-btn {
    flex: 1;
    padding: 14px 24px;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
    cursor: pointer;
    border: none;
    display: inline-block;
    text-align: center;
}

.auth-prompt-btn-primary {
    background: white;
    color: #0d3d4a;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.auth-prompt-btn-primary:hover {
    background: #f8f9fa;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.auth-prompt-btn-secondary {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.auth-prompt-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

.auth-prompt-note {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.85);
    margin-top: 16px;
    margin-bottom: 0;
    font-weight: 400;
}

/* Responsive Design */
@media (max-width: 768px) {
    .auth-prompt-modal {
        width: calc(100% - 40px) !important;
        max-width: 500px !important;
        top: 50% !important;
        left: 50% !important;
        transform: translate(-50%, -50%) scale(0.9);
    }
    
    .auth-prompt-modal.show {
        transform: translate(-50%, -50%) scale(1) !important;
    }
    
    .auth-prompt-content {
        padding: 36px 24px 28px;
    }
    
    .auth-prompt-benefits {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .auth-prompt-title {
        font-size: 24px;
    }
    
    .auth-prompt-subtitle {
        font-size: 15px;
    }
}

@media (max-width: 480px) {
    .auth-prompt-modal {
        width: calc(100% - 32px) !important;
        top: 50% !important;
        left: 50% !important;
        transform: translate(-50%, -50%) scale(0.9);
    }
    
    .auth-prompt-modal.show {
        transform: translate(-50%, -50%) scale(1) !important;
    }
    
    .auth-prompt-content {
        padding: 32px 20px 24px;
    }
    
    .auth-prompt-title {
        font-size: 22px;
    }
    
    .auth-prompt-subtitle {
        font-size: 14px;
    }
    
    .auth-benefit-text {
        font-size: 12px;
    }
    
    .auth-prompt-cta {
        flex-direction: column;
    }
    
    .auth-prompt-btn {
        width: 100%;
    }
}

/* Animation for appearing */
@keyframes auth-prompt-appear {
    from {
        opacity: 0;
        transform: translate(-50%, -48%) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
}
