/**
 * Popup Banner Styles
 * CSS for frontend popup banner display
 */

/* Popup Overlay */
.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.popup-overlay.show {
    opacity: 1;
    visibility: visible;
}

/* Popup Container */
.popup-container {
    background: white;
    border-radius: 16px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    overflow: hidden;
    position: relative;
    transform: scale(0.8) translateY(20px);
    transition: all 0.3s ease;
}

.popup-overlay.show .popup-container {
    transform: scale(1) translateY(0);
}

/* Close Button */
.popup-close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 32px;
    height: 32px;
    background: rgba(0, 0, 0, 0.7);
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 14px;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.popup-close:hover {
    background: rgba(0, 0, 0, 0.9);
    transform: scale(1.1);
}

/* Popup Image */
.popup-image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 16px 16px 0 0;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.popup-image:hover {
    transform: scale(1.02);
}

/* Popup Content */
.popup-content {
    padding: 20px;
    text-align: center;
}

.popup-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 8px;
    font-family: 'Poppins', sans-serif;
}

.popup-description {
    font-size: 0.95rem;
    color: #64748b;
    line-height: 1.5;
    margin-bottom: 16px;
    font-family: 'Poppins', sans-serif;
}

.popup-cta {
    display: inline-block;
    background: linear-gradient(135deg, #933093 0%, #ff7b00 100%);
    color: white;
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: all 0.2s ease;
    font-family: 'Poppins', sans-serif;
}

.popup-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px -8px rgba(147, 48, 147, 0.4);
    color: white;
    text-decoration: none;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .popup-overlay {
        padding: 16px;
    }
    
    .popup-container {
        max-width: 100%;
        border-radius: 12px;
    }
    
    .popup-image {
        border-radius: 12px 12px 0 0;
    }
    
    .popup-content {
        padding: 16px;
    }
    
    .popup-title {
        font-size: 1.25rem;
    }
    
    .popup-description {
        font-size: 0.9rem;
    }
    
    .popup-cta {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
    
    .popup-close {
        width: 28px;
        height: 28px;
        font-size: 12px;
        top: 8px;
        right: 8px;
    }
}

@media (max-width: 480px) {
    .popup-overlay {
        padding: 12px;
    }
    
    .popup-container {
        border-radius: 8px;
    }
    
    .popup-image {
        border-radius: 8px 8px 0 0;
    }
    
    .popup-content {
        padding: 12px;
    }
    
    .popup-title {
        font-size: 1.1rem;
    }
    
    .popup-description {
        font-size: 0.85rem;
        margin-bottom: 12px;
    }
    
    .popup-cta {
        padding: 8px 16px;
        font-size: 0.85rem;
    }
}

/* Animation Classes */
.popup-fade-in {
    animation: popupFadeIn 0.3s ease-out forwards;
}

.popup-fade-out {
    animation: popupFadeOut 0.3s ease-in forwards;
}

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

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

/* Accessibility */
.popup-overlay:focus-within {
    outline: 2px solid #933093;
    outline-offset: -2px;
}

.popup-close:focus {
    outline: 2px solid #fff;
    outline-offset: 2px;
}

.popup-cta:focus {
    outline: 2px solid #933093;
    outline-offset: 2px;
}

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

/* High Contrast Mode */
@media (prefers-contrast: high) {
    .popup-overlay {
        background-color: rgba(0, 0, 0, 0.8);
    }
    
    .popup-container {
        border: 2px solid #000;
    }
    
    .popup-close {
        background: #000;
        border: 1px solid #fff;
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    .popup-overlay,
    .popup-container,
    .popup-close,
    .popup-image,
    .popup-cta {
        transition: none;
        animation: none;
    }
    
    .popup-overlay.show .popup-container {
        transform: none;
    }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    .popup-container {
        background: #1e293b;
        color: #f1f5f9;
    }
    
    .popup-title {
        color: #f1f5f9;
    }
    
    .popup-description {
        color: #cbd5e1;
    }
}

