/* ======================================
   Popup System Styles
   Premium Royal Gold Design
   ====================================== */

/* Base Popup Overlay */
.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

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

/* Popup Container */
.popup-container {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    border: 2px solid #d4af37;
    border-radius: 20px;
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 20px 60px rgba(212, 175, 55, 0.3), 0 0 0 1px rgba(212, 175, 55, 0.1);
    transform: scale(0.8) translateY(50px);
    opacity: 0;
    transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

/* Popup Header */
.popup-header {
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.2) 0%, rgba(212, 175, 55, 0.05) 100%);
    padding: 40px 30px;
    text-align: center;
    border-bottom: 1px solid rgba(212, 175, 55, 0.3);
    position: relative;
}

.popup-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, #d4af37 0%, #b8941e 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: #ffffff;
    box-shadow: 0 8px 25px rgba(212, 175, 55, 0.4);
    animation: pulse-icon 2s infinite;
}

@keyframes pulse-icon {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 8px 25px rgba(212, 175, 55, 0.4);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 8px 35px rgba(212, 175, 55, 0.6);
    }
}

.popup-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 2.2rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 10px;
    line-height: 1.2;
}

.popup-subtitle {
    font-size: 1.1rem;
    color: #d4af37;
    font-weight: 500;
    letter-spacing: 0.5px;
}

/* Close Button */
.popup-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    background: rgba(212, 175, 55, 0.2);
    border: 2px solid #d4af37;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #d4af37;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
}

.popup-close:hover {
    background: #d4af37;
    color: #ffffff;
    transform: rotate(90deg);
}

/* Popup Body */
.popup-body {
    padding: 40px 30px;
    color: #ffffff;
}

.popup-message {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 30px;
    text-align: center;
    color: rgba(255, 255, 255, 0.9);
}

/* Benefits List */
.popup-benefits {
    list-style: none;
    padding: 0;
    margin: 30px 0;
}

.popup-benefits li {
    padding: 15px 20px;
    margin-bottom: 12px;
    background: rgba(212, 175, 55, 0.1);
    border-left: 4px solid #d4af37;
    border-radius: 8px;
    font-size: 1rem;
    color: #ffffff;
    transition: all 0.3s ease;
}

.popup-benefits li:hover {
    background: rgba(212, 175, 55, 0.15);
    transform: translateX(5px);
}

.popup-benefits li i {
    color: #d4af37;
    margin-right: 12px;
    font-size: 1.2rem;
}

/* Popup Footer */
.popup-footer {
    padding: 0 30px 40px;
    text-align: center;
}

/* WhatsApp Button */
.popup-whatsapp-btn {
    background: linear-gradient(135deg, #25D366 0%, #1da851 100%);
    color: #ffffff;
    border: none;
    padding: 18px 40px;
    font-size: 1.2rem;
    font-weight: 700;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.4);
    display: inline-flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    letter-spacing: 0.5px;
    animation: pulse-button 2s infinite;
}

.popup-whatsapp-btn:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 35px rgba(37, 211, 102, 0.6);
    color: #ffffff;
}

.popup-whatsapp-btn i {
    font-size: 1.5rem;
}

@keyframes pulse-button {
    0%, 100% {
        box-shadow: 0 8px 25px rgba(37, 211, 102, 0.4);
    }
    50% {
        box-shadow: 0 8px 35px rgba(37, 211, 102, 0.6);
    }
}

/* Later Button */
.popup-later-btn {
    display: inline-block;
    margin-top: 15px;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    padding: 8px 15px;
    border-radius: 5px;
}

.popup-later-btn:hover {
    color: #d4af37;
    background: rgba(212, 175, 55, 0.1);
}

/* Special Offer Badge */
.popup-offer-badge {
    position: absolute;
    top: -15px;
    right: 30px;
    background: linear-gradient(135deg, #d4af37 0%, #b8941e 100%);
    color: #ffffff;
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.5);
    animation: bounce-badge 1.5s infinite;
}

@keyframes bounce-badge {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-5px);
    }
}

/* Timer Display */
.popup-timer {
    background: rgba(212, 175, 55, 0.15);
    border: 2px solid #d4af37;
    border-radius: 10px;
    padding: 20px;
    margin: 25px 0;
    text-align: center;
}

.popup-timer-label {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.popup-timer-display {
    font-family: 'Cormorant Garamond', serif;
    font-size: 2.5rem;
    font-weight: 700;
    color: #d4af37;
    display: flex;
    justify-content: center;
    gap: 15px;
}

.timer-segment {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.timer-value {
    font-size: 3rem;
    line-height: 1;
}

.timer-label {
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.5);
    margin-top: 5px;
    text-transform: uppercase;
}

/* Urgency Indicator */
.urgency-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin: 20px 0;
    padding: 15px;
    background: rgba(212, 175, 55, 0.1);
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: 8px;
}

.urgency-indicator i {
    color: #d4af37;
    font-size: 1.2rem;
}

.urgency-text {
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
    font-size: 0.95rem;
    letter-spacing: 0.3px;
}

/* Testimonial in Popup */
.popup-testimonial {
    background: rgba(255, 255, 255, 0.05);
    border-left: 4px solid #d4af37;
    padding: 20px;
    border-radius: 8px;
    margin: 25px 0;
}

.popup-testimonial-text {
    font-style: italic;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 15px;
    line-height: 1.7;
}

.popup-testimonial-author {
    display: flex;
    align-items: center;
    gap: 15px;
}

.testimonial-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 2px solid #d4af37;
    object-fit: cover;
}

.testimonial-info strong {
    display: block;
    color: #ffffff;
    font-weight: 600;
}

.testimonial-info span {
    color: #d4af37;
    font-size: 0.9rem;
}

/* Trust Badges */
.popup-trust-badges {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin: 25px 0;
    flex-wrap: wrap;
}

.trust-badge {
    text-align: center;
    flex: 1;
    min-width: 100px;
}

.trust-badge i {
    font-size: 2rem;
    color: #d4af37;
    margin-bottom: 8px;
}

.trust-badge-text {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.3;
}

/* Contact Info in Popup */
.popup-contact-info {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 20px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

.popup-contact-info i {
    color: #d4af37;
}

/* Responsive Design */
@media (max-width: 768px) {
    .popup-container {
        width: 95%;
        max-height: 85vh;
    }
    
    .popup-header {
        padding: 30px 20px;
    }
    
    .popup-icon {
        width: 60px;
        height: 60px;
        font-size: 2rem;
    }
    
    .popup-title {
        font-size: 1.8rem;
    }
    
    .popup-subtitle {
        font-size: 1rem;
    }
    
    .popup-body {
        padding: 30px 20px;
    }
    
    .popup-footer {
        padding: 0 20px 30px;
    }
    
    .popup-message {
        font-size: 1rem;
    }
    
    .popup-whatsapp-btn {
        padding: 15px 30px;
        font-size: 1.1rem;
        width: 100%;
        justify-content: center;
    }
    
    .popup-timer-display {
        font-size: 2rem;
        gap: 10px;
    }
    
    .timer-value {
        font-size: 2.5rem;
    }
    
    .popup-trust-badges {
        gap: 20px;
    }
    
    .popup-offer-badge {
        right: 20px;
        font-size: 0.75rem;
        padding: 6px 15px;
    }
}

@media (max-width: 480px) {
    .popup-title {
        font-size: 1.5rem;
    }
    
    .popup-close {
        width: 35px;
        height: 35px;
        top: 15px;
        right: 15px;
        font-size: 1.2rem;
    }
    
    .popup-benefits li {
        padding: 12px 15px;
        font-size: 0.95rem;
    }
    
    .popup-timer {
        padding: 15px;
    }
    
    .timer-segment {
        font-size: 0.9rem;
    }
    
    .timer-value {
        font-size: 2rem;
    }
}

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

.popup-container::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
}

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

.popup-container::-webkit-scrollbar-thumb:hover {
    background: #b8941e;
}

/* Animation Classes */
.fade-in {
    animation: fadeIn 0.5s ease;
}

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

/* Prevent body scroll when popup is active */
body.popup-active {
    overflow: hidden;
}
