/**
 * Special Event Popup - Premium Styling
 * Elegant and modern design for special event promotion
 */

.special-event-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}

.special-event-popup.active {
    opacity: 1;
    visibility: visible;
}

/* Overlay */
.popup-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    animation: fadeIn 0.4s ease;
}

/* Container */
.popup-container {
    position: relative;
    width: 90%;
    max-width: 900px;
    max-height: 90vh;
    background: linear-gradient(135deg, #003d1f 0%, #005429 100%);
    border-radius: 24px;
    overflow: hidden;
    box-shadow:
        0 25px 50px -12px rgba(0, 0, 0, 0.5),
        0 0 0 1px rgba(255, 255, 255, 0.1),
        0 0 100px rgba(0, 84, 41, 0.3);
    animation: popupSlideUp 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    transform-origin: center;
}

/* Close Button */
.popup-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 44px;
    height: 44px;
    background: rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 50%;
    color: #1f2937;
    font-size: 20px;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.popup-close:hover {
    background: #ef4444;
    border-color: #ef4444;
    color: #fff;
    transform: rotate(90deg) scale(1.1);
}

/* Content Layout */
.popup-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 500px;
    max-height: 90vh;
    overflow: hidden;
}

/* Image Section */
.popup-image-section {
    position: relative;
    background: linear-gradient(135deg, #007038 0%, #005429 100%);
    overflow: hidden;
}

.popup-event-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.popup-container:hover .popup-event-image {
    transform: scale(1.05);
}

.popup-placeholder-image {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 120px;
    color: rgba(255, 255, 255, 0.3);
}

/* Badge Container */
.popup-badge-container {
    position: absolute;
    top: 20px;
    left: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.popup-promo-badge,
.popup-special-badge {
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 6px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    animation: badgePulse 2s ease-in-out infinite;
}

.popup-promo-badge {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: #fff;
    box-shadow: 0 4px 15px rgba(239, 68, 68, 0.4);
}

.popup-special-badge {
    background: linear-gradient(135deg, #90EE90 0%, #32CD32 100%);
    color: #003d1f;
    box-shadow: 0 4px 15px rgba(144, 238, 144, 0.4);
}

/* Details Section */
.popup-details-section {
    padding: 40px;
    display: flex;
    flex-direction: column;
    gap: 24px;
    overflow-y: auto;
    background: #ffffff;
}

/* Scrollbar Styling */
.popup-details-section::-webkit-scrollbar {
    width: 6px;
}

.popup-details-section::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.05);
}

.popup-details-section::-webkit-scrollbar-thumb {
    background: #005429;
    border-radius: 3px;
}

.popup-details-section::-webkit-scrollbar-thumb:hover {
    background: #003d1f;
}

/* Header */
.popup-header {
    border-bottom: 2px solid #f3f4f6;
    padding-bottom: 20px;
}

.popup-title {
    font-size: 28px;
    font-weight: 800;
    color: #1f2937;
    margin: 0 0 8px 0;
    line-height: 1.2;
}

.popup-organizer {
    font-size: 14px;
    color: #4b5563;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.popup-organizer i {
    color: #005429;
}

/* Info Grid */
.popup-info-grid {
    display: grid;
    gap: 16px;
}

.popup-info-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px;
    background: #f9fafb;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    transition: all 0.3s ease;
}

.popup-info-item:hover {
    background: #f3f4f6;
    border-color: #005429;
    transform: translateY(-2px);
}

.popup-info-item i {
    font-size: 20px;
    color: #005429;
    margin-top: 2px;
}

.popup-info-item>div {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.info-label {
    font-size: 11px;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}

.info-value {
    font-size: 14px;
    color: #1f2937;
    font-weight: 600;
}

/* Price Section */
.popup-price-section {
    background: linear-gradient(135deg, rgba(0, 84, 41, 0.05) 0%, rgba(144, 238, 144, 0.05) 100%);
    border: 2px solid #90EE90;
    border-radius: 16px;
    padding: 20px;
}

.price-promo-container {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 12px;
}

.price-original {
    font-size: 18px;
    color: #9ca3af;
    text-decoration: line-through;
    font-weight: 500;
}

.special-event-popup .price-promo {
    font-size: 32px;
    font-weight: 800;
    color: #005429 !important;
    text-shadow: none !important;
}

.price-discount {
    padding: 4px 12px;
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a6f 100%);
    color: #fff;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.promo-countdown {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #1a202c;
    /* Darker slate */
}

.promo-countdown i {
    color: #005429;
    animation: pulse 2s ease-in-out infinite;
}

.price-normal {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.special-event-popup .price-label {
    font-size: 13px;
    color: #1a202c !important;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 700;
    text-shadow: none !important;
}

.special-event-popup .price-value {
    font-size: 32px;
    font-weight: 800;
    color: #005429 !important;
    text-shadow: none !important;
}

/* Action Buttons */
.popup-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.btn-popup-primary,
.btn-popup-secondary {
    padding: 16px 24px;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 700;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border: none;
    text-decoration: none;
}

.btn-popup-primary {
    background: linear-gradient(135deg, #005429 0%, #007038 100%);
    color: #ffffff;
    box-shadow: 0 8px 20px rgba(0, 84, 41, 0.25);
}

.btn-popup-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(0, 84, 41, 0.35);
}

.btn-popup-secondary {
    background: #f3f4f6;
    color: #4b5563;
    border: 1px solid #e5e7eb;
}

.btn-popup-secondary:hover {
    background: #e5e7eb;
    color: #1f2937;
}

/* Notice */
.popup-notice {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 16px;
    background: rgba(0, 84, 41, 0.05);
    border-left: 3px solid #005429;
    border-radius: 8px;
    font-size: 13px;
    color: #4b5563;
    line-height: 1.5;
}

.popup-notice i {
    color: #005429;
    margin-top: 2px;
    flex-shrink: 0;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes popupSlideUp {
    from {
        opacity: 0;
        transform: translateY(50px) scale(0.9);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes badgePulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .popup-container {
        width: 95%;
        max-height: 95vh;
        border-radius: 16px;
    }

    .popup-content {
        grid-template-columns: 1fr;
        max-height: 95vh;
    }

    .popup-image-section {
        min-height: 250px;
        max-height: 250px;
    }

    .popup-details-section {
        padding: 24px;
        gap: 20px;
    }

    .popup-title {
        font-size: 22px;
    }

    .popup-info-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .price-promo {
        font-size: 28px;
    }

    .price-value {
        font-size: 28px;
    }

    .popup-close {
        width: 40px;
        height: 40px;
        top: 16px;
        right: 16px;
    }
}

@media (max-width: 480px) {
    .popup-title {
        font-size: 20px;
    }

    .popup-details-section {
        padding: 20px;
    }

    .btn-popup-primary,
    .btn-popup-secondary {
        padding: 14px 20px;
        font-size: 14px;
    }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {

    .special-event-popup,
    .popup-container,
    .popup-event-image,
    .popup-info-item,
    .btn-popup-primary,
    .btn-popup-secondary {
        transition: none;
        animation: none;
    }
}