/* El Dorado - Enhancements Styles */
/* Trust Badges, CRO Elements, Popups, Social Proof */

/* ===========================================
   EMAIL CAPTURE POPUP
   =========================================== */

.email-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(10px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.email-popup-overlay.active {
    opacity: 1;
}

.email-popup {
    max-width: 500px;
    width: 90%;
    padding: 3rem 2rem;
    position: relative;
    animation: popupSlideIn 0.4s ease;
}

@keyframes popupSlideIn {
    from {
        transform: scale(0.9) translateY(20px);
        opacity: 0;
    }

    to {
        transform: scale(1) translateY(0);
        opacity: 1;
    }
}

.email-popup-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.5);
    font-size: 2rem;
    cursor: pointer;
    transition: color 0.3s ease;
    line-height: 1;
    padding: 0;
    width: 32px;
    height: 32px;
}

.email-popup-close:hover {
    color: var(--aura-gold);
}

.email-popup-content {
    text-align: center;
}

.email-popup-content h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--aura-gold);
    letter-spacing: 0.2em;
}

.email-popup-content>p {
    font-size: 1rem;
    margin-bottom: 2rem;
    opacity: 0.8;
    letter-spacing: 0.1em;
}

.email-popup-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.email-input {
    padding: 1rem 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    color: var(--off-white);
    font-size: 1rem;
    font-family: inherit;
    letter-spacing: 0.05em;
    transition: all 0.3s ease;
}

.email-input:focus {
    outline: none;
    border-color: var(--aura-gold);
    background: rgba(255, 255, 255, 0.08);
}

.email-input::placeholder {
    color: rgba(255, 255, 255, 0.3);
}

.email-submit {
    padding: 1rem 2rem;
    background: linear-gradient(135deg, var(--aura-gold), #d4af37);
    border: none;
    border-radius: 4px;
    color: var(--obsidian);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    cursor: pointer;
    transition: all 0.3s ease;
}

.email-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(201, 176, 55, 0.3);
}

.email-privacy {
    font-size: 0.75rem;
    opacity: 0.5;
    margin-top: 1rem;
    letter-spacing: 0.05em;
}

/* Email Success Toast */
.email-success-toast {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: rgba(20, 20, 20, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid var(--aura-gold);
    border-radius: 8px;
    padding: 1.5rem;
    z-index: 10001;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease;
    max-width: 350px;
}

.email-success-toast.show {
    opacity: 1;
    transform: translateY(0);
}

.toast-content {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.toast-icon {
    font-size: 1.5rem;
    color: var(--aura-gold);
}

.toast-text {
    font-size: 0.9rem;
    letter-spacing: 0.05em;
}

/* ===========================================
   EXIT INTENT POPUP
   =========================================== */

.exit-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(15px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.exit-popup-overlay.active {
    opacity: 1;
}

.exit-popup {
    max-width: 550px;
    width: 90%;
    padding: 3rem 2.5rem;
    position: relative;
    animation: exitPopupBounce 0.5s ease;
}

@keyframes exitPopupBounce {
    0% {
        transform: scale(0.8);
        opacity: 0;
    }

    50% {
        transform: scale(1.05);
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.exit-popup-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.5);
    font-size: 2rem;
    cursor: pointer;
    transition: color 0.3s ease;
}

.exit-popup-close:hover {
    color: var(--aura-gold);
}

.exit-popup-content {
    text-align: center;
}

.exit-popup-content h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--pure-silver);
    letter-spacing: 0.15em;
}

.exit-popup-content>p {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    letter-spacing: 0.05em;
}

.discount-code {
    background: rgba(201, 176, 55, 0.1);
    border: 2px dashed var(--aura-gold);
    padding: 1.5rem;
    border-radius: 8px;
    margin: 2rem 0;
}

.code-highlight {
    font-size: 2rem;
    color: var(--aura-gold);
    font-weight: 700;
    letter-spacing: 0.3em;
    display: inline-block;
    margin-top: 0.5rem;
}

.exit-popup-cta {
    width: 100%;
    padding: 1.25rem 2rem;
    background: linear-gradient(135deg, var(--aura-gold), #d4af37);
    border: none;
    border-radius: 4px;
    color: var(--obsidian);
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 1rem;
}

.exit-popup-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(201, 176, 55, 0.4);
}

.exit-popup-subtext {
    font-size: 0.85rem;
    opacity: 0.6;
    letter-spacing: 0.05em;
}

/* ===========================================
   TRUST BADGES (Checkout)
   =========================================== */

.trust-badges {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    padding: 1.5rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    margin: 1.5rem 0;
}

.trust-badge {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.8rem;
    letter-spacing: 0.05em;
    opacity: 0.8;
}

.badge-icon {
    font-size: 1.2rem;
    color: var(--aura-gold);
}

.badge-text {
    color: rgba(255, 255, 255, 0.7);
}

/* ===========================================
   CRO ELEMENTS (Urgency, Scarcity, Social Proof)
   =========================================== */

/* Urgency Badge */
.urgency-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 100, 100, 0.15);
    border: 1px solid rgba(255, 100, 100, 0.3);
    padding: 0.5rem 1rem;
    border-radius: 4px;
    font-size: 0.75rem;
    letter-spacing: 0.05em;
    color: #ff6b6b;
    margin-bottom: 1rem;
    animation: urgencyPulse 2s infinite;
}

@keyframes urgencyPulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.7;
    }
}

/* Scarcity Badge */
.scarcity-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(201, 176, 55, 0.1);
    border: 1px solid rgba(201, 176, 55, 0.2);
    padding: 0.4rem 0.8rem;
    border-radius: 4px;
    font-size: 0.7rem;
    letter-spacing: 0.05em;
    color: rgba(201, 176, 55, 0.9);
    margin-top: 0.5rem;
}

/* Social Proof Notification */
.social-proof-notification {
    position: fixed;
    bottom: 2rem;
    left: 2rem;
    max-width: 350px;
    padding: 1rem 1.5rem;
    border: 1px solid rgba(201, 176, 55, 0.3);
    border-radius: 8px;
    z-index: 9999;
    opacity: 0;
    transform: translateX(-100%);
    transition: all 0.4s ease;
}

.social-proof-notification.show {
    opacity: 1;
    transform: translateX(0);
}

.social-proof-content {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.social-proof-icon {
    font-size: 1.5rem;
}

.social-proof-text {
    flex: 1;
    font-size: 0.85rem;
    line-height: 1.4;
    letter-spacing: 0.03em;
}

.social-proof-text strong {
    color: var(--aura-gold);
}

.social-proof-product {
    font-size: 0.75rem;
    opacity: 0.7;
}

.social-proof-time {
    font-size: 0.7rem;
    opacity: 0.5;
    white-space: nowrap;
}

/* ===========================================
   RESPONSIVE DESIGN
   =========================================== */

@media (max-width: 768px) {

    .email-popup,
    .exit-popup {
        padding: 2rem 1.5rem;
    }

    .email-popup-content h2,
    .exit-popup-content h2 {
        font-size: 2rem;
    }

    .code-highlight {
        font-size: 1.5rem;
    }

    .social-proof-notification {
        bottom: 1rem;
        left: 1rem;
        right: 1rem;
        max-width: calc(100% - 2rem);
    }

    .email-success-toast {
        bottom: 1rem;
        right: 1rem;
        left: 1rem;
        max-width: calc(100% - 2rem);
    }

    .trust-badges {
        gap: 0.5rem;
    }

    .trust-badge {
        font-size: 0.7rem;
    }

    .footer-links {
        flex-direction: column;
        gap: 1rem;
    }
}

/* ===========================================
   ACCESSIBILITY
   =========================================== */

.email-input:focus,
.email-submit:focus,
.exit-popup-cta:focus {
    outline: 2px solid var(--aura-gold);
    outline-offset: 2px;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {

    .email-popup-overlay,
    .exit-popup-overlay,
    .social-proof-notification,
    .email-success-toast {
        animation: none;
        transition: opacity 0.2s ease;
    }

    .urgency-badge {
        animation: none;
    }
}