/**
 * Promotion Banner Popup Styles
 * Similar to sticky contact popup but for promotional banner
 */

/* Main Popup Container */
.tru-promotion-popup-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.tru-promotion-popup-modal.active {
    opacity: 1;
    visibility: visible;
}

/* Popup Overlay Background */
.tru-promotion-popup-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
}

/* Popup Content Container */
.tru-promotion-popup-content {
    position: relative;
    max-width: 90%;
    max-height: 90vh;
    width: 600px;
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    transform: scale(0.8) translateY(50px);
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    z-index: 10001;
}

.tru-promotion-popup-modal.active .tru-promotion-popup-content {
    transform: scale(1) translateY(0);
}

/* Close Button */
.tru-promotion-popup-close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    z-index: 10;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.tru-promotion-popup-close:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}

.tru-promotion-popup-close:active {
    transform: scale(1.05);
}

.tru-promotion-popup-close svg {
    width: 16px;
    height: 16px;
    stroke-width: 2.5;
}

/* Popup Body */
.tru-promotion-popup-body {
    display: flex;
    flex-direction: column;
    max-height: 80vh;
    overflow: hidden;
}

/* Popup Image */
.tru-promotion-popup-image {
    position: relative;
    width: 100%;
    flex-shrink: 0;
}

.tru-promotion-popup-image img {
    width: 100%;
    height: auto;
    max-height: 400px;
    object-fit: cover;
    display: block;
}

/* Popup Info Section */
.tru-promotion-popup-info {
    padding: 30px;
    text-align: center;
    background: white;
}

.tru-promotion-popup-title {
    font-size: 28px;
    font-weight: 700;
    color: #2c3e50;
    margin: 0 0 15px 0;
    line-height: 1.3;
}

.tru-promotion-popup-description {
    font-size: 16px;
    color: #666;
    margin: 0 0 25px 0;
    line-height: 1.6;
}

/* Popup Button */
.tru-promotion-popup-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 30px;
    border-radius: 25px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    min-width: 150px;
}

.tru-promotion-popup-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(220, 77, 40, 0.3);
    text-decoration: none;
    color: inherit;
}

.tru-promotion-popup-btn:active {
    transform: translateY(0);
}

/* Auto-close Timer */
.tru-promotion-popup-timer {
    position: absolute;
    top: 12px;
    left: 12px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    z-index: 10;
}

.tru-promotion-popup-timer .timer-seconds {
    font-weight: 700;
    color: #dc4d28;
}

/* Animation on popup load */
@keyframes promotionPopupSlideIn {
    0% {
        opacity: 0;
        transform: scale(0.3) translateY(100px);
    }
    50% {
        opacity: 1;
        transform: scale(1.05) translateY(-10px);
    }
    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.tru-promotion-popup-modal.active .tru-promotion-popup-content {
    animation: promotionPopupSlideIn 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

/* Responsive Design */
@media (max-width: 768px) {
    .tru-promotion-popup-content {
        width: 95%;
        max-width: 400px;
        margin: 20px;
    }

    .tru-promotion-popup-info {
        padding: 25px 20px;
    }

    .tru-promotion-popup-title {
        font-size: 24px;
    }

    .tru-promotion-popup-description {
        font-size: 15px;
    }

    .tru-promotion-popup-btn {
        padding: 12px 25px;
        font-size: 15px;
    }

    .tru-promotion-popup-close {
        width: 40px;
        height: 40px;
    }
}

@media (max-width: 480px) {
    .tru-promotion-popup-content {
        width: 98%;
        margin: 10px;
    }

    .tru-promotion-popup-info {
        padding: 20px 15px;
    }

    .tru-promotion-popup-title {
        font-size: 22px;
    }

    .tru-promotion-popup-description {
        font-size: 14px;
        margin-bottom: 20px;
    }

    .tru-promotion-popup-btn {
        padding: 10px 20px;
        font-size: 14px;
        width: 100%;
    }

    .tru-promotion-popup-close {
        width: 36px;
        height: 36px;
        top: 8px;
        right: 8px;
    }

    .tru-promotion-popup-timer {
        top: 8px;
        left: 8px;
        font-size: 11px;
        padding: 5px 10px;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .tru-promotion-popup-overlay {
        background: rgba(0, 0, 0, 0.9);
    }

    .tru-promotion-popup-content {
        border: 2px solid #000;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .tru-promotion-popup-modal,
    .tru-promotion-popup-content,
    .tru-promotion-popup-close,
    .tru-promotion-popup-btn {
        transition: none;
        animation: none;
    }
}

/* Print styles */
@media print {
    .tru-promotion-popup-modal {
        display: none !important;
    }
}