/* Affiliate Popup Styles - Dealvana Luxury Branding */

/* Popup Overlay */
.affiliate-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    z-index: 10000;
    display: flex;
    justify-content: center;
    align-items: center;
    animation: fadeIn 0.3s ease-in-out;
}

/* Popup Container */
.affiliate-popup-container {
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    animation: slideIn 0.3s ease-out;
}

/* Main Popup Content */
.affiliate-popup-content {
    background: var(--white, #ffffff);
    border-radius: 15px;
    padding: 2rem;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    border: 2px solid var(--luxury-gold, #FFD363);
}

/* Close Button */
.affiliate-popup-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    font-size: 2rem;
    color: var(--gray-400, #9ca3af);
    cursor: pointer;
    line-height: 1;
    transition: color 0.2s ease;
    z-index: 1;
}

.affiliate-popup-close:hover {
    color: var(--black, #000000);
}

/* Header Section */
.affiliate-popup-header {
    text-align: center;
    margin-bottom: 1.5rem;
}

.affiliate-popup-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--luxury-gold, #FFD363), var(--warm-yellow, #FFD363));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-size: 1.5rem;
    color: var(--black, #000000);
    box-shadow: 0 4px 15px rgba(255, 211, 99, 0.3);
}

.affiliate-popup-header h3 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--black, #000000);
    margin: 0;
    letter-spacing: 0.5px;
}

/* Body Content */
.affiliate-popup-body {
    margin-bottom: 2rem;
    line-height: 1.6;
}

.affiliate-popup-body p {
    font-family: 'Montserrat', sans-serif;
    color: var(--gray-800, #1f2937);
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

.affiliate-popup-body p:first-child {
    font-weight: 600;
    color: var(--black, #000000);
    font-size: 1.1rem;
}

/* Trust Section */
.affiliate-popup-trust {
    margin: 1.5rem 0;
}

.affiliate-popup-highlight {
    background: linear-gradient(135deg, var(--luxury-gold, #FFD363), var(--warm-yellow, #FFD363));
    padding: 1rem;
    border-radius: 8px;
    font-weight: 600;
    color: var(--black, #000000) !important;
    text-align: center;
    margin: 0 !important;
    box-shadow: 0 2px 10px rgba(255, 211, 99, 0.2);
}

/* Additional Details */
.affiliate-popup-details {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--soft-gray, #f5f5f5);
}

.affiliate-popup-details p {
    margin: 0;
    font-size: 0.8rem;
    color: var(--gray-400, #9ca3af);
    text-align: center;
}

/* Footer Section */
.affiliate-popup-footer {
    text-align: center;
}

.affiliate-popup-btn {
    background: var(--black, #000000);
    color: var(--white, #ffffff);
    border: none;
    padding: 0.75rem 2rem;
    border-radius: 8px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    letter-spacing: 0.5px;
    transition: transform 0.2s ease;
    margin-bottom: 1rem;
}

.affiliate-popup-btn:hover {
    transform: translateY(-1px);
}

/* Footer Links */
.affiliate-popup-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.affiliate-popup-link {
    color: var(--gray-400, #9ca3af);
    text-decoration: none;
    font-size: 0.8rem;
    font-family: 'Montserrat', sans-serif;
    transition: color 0.2s ease;
}

.affiliate-popup-link:hover {
    color: var(--luxury-gold, #FFD363);
}

.affiliate-popup-separator {
    color: var(--gray-400, #9ca3af);
    font-size: 0.8rem;
}

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

@keyframes slideIn {
    from { 
        transform: translateY(-50px);
        opacity: 0;
    }
    to { 
        transform: translateY(0);
        opacity: 1;
    }
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .affiliate-popup-content {
        padding: 1.5rem;
        margin: 1rem;
        border-radius: 10px;
    }
    
    .affiliate-popup-header h3 {
        font-size: 1.25rem;
    }
    
    .affiliate-popup-icon {
        width: 50px;
        height: 50px;
        font-size: 1.25rem;
    }
    
    .affiliate-popup-body p {
        font-size: 0.9rem;
    }
    
    .affiliate-popup-btn {
        padding: 0.75rem 1.5rem;
        font-size: 0.9rem;
        width: 100%;
        justify-content: center;
    }
    
    .affiliate-popup-links {
        flex-direction: column;
        gap: 0.25rem;
    }
    
    .affiliate-popup-separator {
        display: none;
    }
}

@media (max-width: 480px) {
    .affiliate-popup-content {
        padding: 1rem;
        margin: 0.5rem;
    }
    
    .affiliate-popup-close {
        top: 0.5rem;
        right: 0.5rem;
        font-size: 1.5rem;
    }
    
    .affiliate-popup-header h3 {
        font-size: 1.1rem;
    }
    
    .affiliate-popup-body p {
        font-size: 0.85rem;
    }
    
    .affiliate-popup-highlight {
        padding: 0.75rem;
        font-size: 0.9rem;
    }
}

/* Accessibility */
.affiliate-popup-overlay:focus-within .affiliate-popup-content {
    outline: 2px solid var(--luxury-gold, #FFD363);
    outline-offset: 2px;
}

.affiliate-popup-close:focus,
.affiliate-popup-btn:focus {
    outline: 2px solid var(--luxury-gold, #FFD363);
    outline-offset: 2px;
}

/* Print Styles */
@media print {
    .affiliate-popup-overlay {
        display: none !important;
    }
}