/**
 * Sweets Website
 * =============================================================
 * File: promo-popup.css
 * Description: Premium styles for promotional popup
 * =============================================================
 */

.c-promo-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    display: none;
    /* Hidden by default */
    align-items: center;
    justify-content: center;
    pointer-events: none;
}

.c-promo-popup.is-visible {
    display: flex;
    pointer-events: auto;
}

.c-promo-popup__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(4px);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.c-promo-popup.is-visible .c-promo-popup__overlay {
    opacity: 1;
}

.c-promo-popup__container {
    position: relative;
    width: 700px;
    max-width: 90%;
    background: #ffffff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.3);
    z-index: 10;
    opacity: 0;
    transform: translateY(4px) scale(0.50);
    transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.c-promo-popup.is-visible .c-promo-popup__container {
    opacity: 1;
    transform: translateY(0.2) scale(0.5);
}

/* Close Button */
.c-promo-popup__close {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 40px;
    height: 40px;
    background: #ffffff;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 20;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    font-size: 1.5rem;
    color: #333;
}

.c-promo-popup__close:hover {
    background: #f8f9fa;
    transform: rotate(90deg);
    color: #7b1d1d;
}

/* Image Wrap */
.c-promo-popup__image-wrap {
    width: 100%;
    background: #fdf8f2;
}

.c-promo-popup__image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

/* Content Area */
.c-promo-popup__content {
    padding: 2.5rem 3rem;
    background: #ffffff;
}

.c-promo-popup__brand {
    display: block;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #888;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.c-promo-popup__title {
    font-family: var(--ff-heading, 'Quando', serif);
    font-size: 2.8rem;
    color: #7b1d1d;
    margin-bottom: 0.5rem;
    line-height: 1.2;
}

.c-promo-popup__subtitle {
    font-size: 1.2rem;
    color: #555;
    margin-bottom: 2rem;
    font-weight: 500;
}

/* Highlights */
.c-promo-popup__highlights {
    display: flex;
    justify-content: space-between;
    margin-bottom: 2.5rem;
    padding: 1.2rem;
    background: #fdfaf5;
    border-radius: 12px;
    border: 1px solid #eee;
}

.c-promo-popup__highlight-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    color: #444;
    font-weight: 600;
}

.c-promo-popup__highlight-item i {
    color: #28a745;
    font-size: 1.1rem;
}

/* Button */
.c-promo-popup__btn {
    background: linear-gradient(135deg, #7b1d1d 0%, #aa4a44 100%);
    color: #ffffff !important;
    padding: 14px 45px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: none;
    box-shadow: 0 10px 25px rgba(123, 29, 29, 0.25);
    transition: all 0.3s ease;
}

.c-promo-popup__btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(123, 29, 29, 0.35);
}

/* Responsive */
@media (max-width: 768px) {
    .c-promo-popup__container {
        width: 100%;
        margin: 15px;
        border-radius: 15px;
    }

    .c-promo-popup__content {
        padding: 2rem;
    }

    .c-promo-popup__title {
        font-size: 2rem;
    }

    .c-promo-popup__highlights {
        flex-direction: column;
        gap: 12px;
        align-items: flex-start;
    }
}

@media (max-width: 480px) {
    .c-promo-popup__container {
        max-width: 95%;
        margin: 10px;
    }

    .c-promo-popup__content {
        padding: 1.5rem;
    }

    .c-promo-popup__title {
        font-size: 1.8rem;
    }

    .c-promo-popup__highlights {
        margin-bottom: 1.5rem;
    }
}

/* Accessibility */
body.promo-popup-open {
    overflow: hidden;
}