/* Frontend Styles for Special Event Popup */

/* Overlay */
.sep-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999998;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.sep-popup-overlay.sep-show {
    opacity: 1;
}

/* Popup Container */
.sep-popup {
    position: fixed;
    z-index: 999999;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    max-width: 400px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    transform: translateX(0);
    transition: transform 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

/* Position Variants */
.sep-popup-right {
    right: 20px;
    top: 50%;
    transform: translate(120%, -50%);
}

.sep-popup-right.sep-show {
    transform: translate(0, -50%);
}

.sep-popup-left {
    left: 20px;
    top: 50%;
    transform: translate(-120%, -50%);
}

.sep-popup-left.sep-show {
    transform: translate(0, -50%);
}

.sep-popup-center {
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%) scale(0.7);
    opacity: 0;
}

.sep-popup-center.sep-show {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
}

/* Close Button */
.sep-close-button {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.6);
    color: #ffffff;
    border: none;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    padding: 0;
}

.sep-close-button:hover {
    background: rgba(0, 0, 0, 0.8);
    transform: rotate(90deg);
}

.sep-close-button:focus {
    outline: 2px solid #4a90e2;
    outline-offset: 2px;
}

/* Popup Content */
.sep-popup-content {
    padding: 20px;
}

.sep-popup-title {
    margin: 0 0 15px 0;
    font-size: 20px;
    font-weight: 600;
    color: #333;
    line-height: 1.4;
    text-align: center;
}

/* Popup Link */
.sep-popup-link {
    text-decoration: none;
    color: inherit;
    display: block;
    transition: transform 0.3s ease;
}

.sep-popup-link:hover {
    transform: translateY(-2px);
}

/* Popup Image */
.sep-popup-image {
    margin: 0 0 15px 0;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
}

.sep-popup-image img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s ease;
}

.sep-popup-link:hover .sep-popup-image img {
    transform: scale(1.05);
}

/* Call to Action Button */
.sep-popup-cta {
    text-align: center;
    margin-top: 15px;
}

.sep-cta-button {
    display: inline-block;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #ffffff;
    padding: 12px 30px;
    border-radius: 25px;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.sep-popup-link:hover .sep-cta-button {
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.6);
    transform: translateY(-2px);
}

/* Scrollbar Styling */
.sep-popup::-webkit-scrollbar {
    width: 8px;
}

.sep-popup::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.sep-popup::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 10px;
}

.sep-popup::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* Animations */
@keyframes sep-bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

.sep-popup.sep-bounce {
    animation: sep-bounce 1s ease;
}

/* Responsive Design */
@media screen and (max-width: 768px) {
    .sep-popup {
        max-width: 350px;
        width: 85%;
    }
    
    .sep-popup-right,
    .sep-popup-left {
        right: 10px;
        left: auto;
    }
    
    .sep-popup-right {
        transform: translate(120%, -50%);
    }
    
    .sep-popup-right.sep-show {
        transform: translate(0, -50%);
    }
    
    .sep-popup-left {
        transform: translate(120%, -50%);
    }
    
    .sep-popup-left.sep-show {
        transform: translate(0, -50%);
    }
    
    .sep-popup-content {
        padding: 15px;
    }
    
    .sep-popup-title {
        font-size: 18px;
    }
    
    .sep-cta-button {
        padding: 10px 25px;
        font-size: 14px;
    }
}

@media screen and (max-width: 480px) {
    .sep-popup {
        max-width: 320px;
        width: 90%;
    }
    
    .sep-popup-title {
        font-size: 16px;
    }
    
    .sep-close-button {
        width: 28px;
        height: 28px;
        font-size: 20px;
    }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    .sep-popup,
    .sep-popup-overlay,
    .sep-close-button,
    .sep-popup-link,
    .sep-popup-image img,
    .sep-cta-button {
        transition: none;
        animation: none;
    }
}

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