/* Conversion Optimization Styles */

/* 1. Sticky Header CTA */
.sticky-cta {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, var(--gold) 0%, #B8941E 100%);
    padding: 12px 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    z-index: 9999;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    transform: translateY(-100%);
    transition: transform 0.3s ease-in-out;
}

.sticky-cta.visible {
    transform: translateY(0);
}

.sticky-cta span {
    color: var(--background);
    font-weight: 600;
    font-size: 0.95rem;
}

.sticky-cta button {
    background: var(--background);
    color: var(--gold);
    border: none;
    padding: 10px 25px;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    font-family: inherit;
    font-size: 0.9rem;
}

.sticky-cta button:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
}

/* 2. Exit-Intent Popup */
.modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.8);
    animation: fadeIn 0.3s;
}

.modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: linear-gradient(145deg, rgba(6, 78, 59, 0.95) 0%, rgba(10, 41, 34, 0.98) 100%);
    margin: 20px;
    padding: 40px;
    border: 2px solid var(--gold);
    border-radius: 20px;
    max-width: 500px;
    width: 100%;
    position: relative;
    animation: slideDown 0.4s;
    box-shadow: 0 10px 40px rgba(212, 175, 55, 0.3);
}

.modal-close {
    position: absolute;
    right: 20px;
    top: 20px;
    font-size: 28px;
    font-weight: bold;
    color: var(--gold);
    cursor: pointer;
    background: none;
    border: none;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s;
}

.modal-close:hover {
    transform: rotate(90deg);
}

.modal-content h2 {
    color: var(--gold);
    margin-bottom: 15px;
    font-size: 1.8rem;
    text-align: center;
}

.modal-content > p {
    color: var(--text-light);
    margin-bottom: 25px;
    line-height: 1.6;
    text-align: center;
}

.email-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.email-form input[type="email"] {
    padding: 15px;
    border: 2px solid rgba(212, 175, 55, 0.3);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-light);
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.3s;
}

.email-form input[type="email"]:focus {
    outline: none;
    border-color: var(--gold);
    background: rgba(255, 255, 255, 0.08);
}

.email-form button {
    padding: 15px;
    background: var(--gold);
    color: var(--background);
    border: none;
    border-radius: 10px;
    font-weight: 600;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s;
    font-family: inherit;
}

.email-form button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(212, 175, 55, 0.4);
}

.privacy-note {
    color: var(--text-muted);
    font-size: 0.85rem;
    text-align: center;
    margin-top: 10px;
}

/* 3. Mid-Content CTA */
.inline-cta {
    margin: 50px 0;
    animation: fadeIn 0.6s;
}

.cta-box {
    background: linear-gradient(135deg, var(--gold) 0%, #B8941E 100%);
    border-radius: 15px;
    padding: 40px;
    text-align: center;
    box-shadow: 0 8px 30px rgba(212, 175, 55, 0.3);
    transform: scale(1);
    transition: transform 0.3s;
}

.cta-box:hover {
    transform: scale(1.02);
}

.cta-box h3 {
    color: var(--background);
    font-size: 1.8rem;
    margin-bottom: 15px;
}

.cta-box p {
    color: var(--background);
    opacity: 0.9;
    margin-bottom: 25px;
    font-size: 1.1rem;
}

.cta-box button {
    background: var(--background);
    color: var(--gold);
    border: none;
    padding: 15px 40px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s;
    font-family: inherit;
}

.cta-box button:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.4);
}

/* 4. Sidebar Lucky Widget */
.lucky-widget {
    background: linear-gradient(145deg, rgba(6, 78, 59, 0.5) 0%, rgba(10, 41, 34, 0.8) 100%);
    border-radius: 15px;
    padding: 25px;
    border: 1px solid rgba(212, 175, 55, 0.2);
    text-align: center;
}

.lucky-widget h3 {
    color: var(--gold);
    margin-bottom: 20px;
    font-size: 1.2rem;
}

.lucky-numbers {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 25px;
    flex-wrap: wrap;
}

.lucky-numbers .number {
    width: 50px;
    height: 50px;
    background: var(--gold);
    color: var(--background);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 1.3rem;
    font-weight: 700;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
    animation: bounce 2s infinite;
}

.lucky-numbers .number:nth-child(2) {
    animation-delay: 0.2s;
}

.lucky-numbers .number:nth-child(3) {
    animation-delay: 0.4s;
}

.lucky-widget button {
    background: transparent;
    color: var(--gold);
    border: 2px solid var(--gold);
    padding: 12px 25px;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    font-family: inherit;
    width: 100%;
}

.lucky-widget button:hover {
    background: var(--gold);
    color: var(--background);
}

/* 5. Footer Email Signup */
.footer-signup {
    background: linear-gradient(145deg, rgba(6, 78, 59, 0.6) 0%, rgba(10, 41, 34, 0.9) 100%);
    border-radius: 15px;
    padding: 40px;
    margin-bottom: 30px;
    text-align: center;
    border: 1px solid rgba(212, 175, 55, 0.3);
}

.footer-signup h3 {
    color: var(--gold);
    font-size: 1.8rem;
    margin-bottom: 20px;
}

.signup-form {
    display: flex;
    gap: 10px;
    max-width: 500px;
    margin: 0 auto 15px;
}

.signup-form input[type="email"] {
    flex: 1;
    padding: 15px;
    border: 2px solid rgba(212, 175, 55, 0.3);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-light);
    font-size: 1rem;
    font-family: inherit;
}

.signup-form input[type="email"]:focus {
    outline: none;
    border-color: var(--gold);
    background: rgba(255, 255, 255, 0.08);
}

.signup-form button {
    padding: 15px 30px;
    background: var(--gold);
    color: var(--background);
    border: none;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    font-family: inherit;
    white-space: nowrap;
}

.signup-form button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(212, 175, 55, 0.4);
}

.social-proof {
    color: var(--mint);
    font-size: 0.95rem;
    font-weight: 500;
}

/* Success Message */
.success-message {
    background: linear-gradient(135deg, var(--mint) 0%, #8BD4C9 100%);
    color: var(--background);
    padding: 15px 20px;
    border-radius: 10px;
    margin-top: 15px;
    font-weight: 600;
    display: none;
    animation: slideDown 0.4s;
}

.success-message.show {
    display: block;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

/* Mobile Responsive */
@media (max-width: 768px) {
    .sticky-cta {
        flex-direction: column;
        gap: 10px;
        padding: 10px 15px;
    }

    .sticky-cta span {
        font-size: 0.85rem;
        text-align: center;
    }

    .sticky-cta button {
        padding: 8px 20px;
        font-size: 0.85rem;
    }

    .modal-content {
        padding: 30px 20px;
        margin: 10px;
    }

    .modal-content h2 {
        font-size: 1.4rem;
    }

    .cta-box {
        padding: 30px 20px;
    }

    .cta-box h3 {
        font-size: 1.4rem;
    }

    .signup-form {
        flex-direction: column;
    }

    .signup-form button {
        width: 100%;
    }

    .lucky-numbers .number {
        width: 45px;
        height: 45px;
        font-size: 1.1rem;
    }
}

@media (max-width: 480px) {
    .sticky-cta span {
        font-size: 0.8rem;
    }

    .modal-content h2 {
        font-size: 1.2rem;
    }

    .cta-box h3 {
        font-size: 1.2rem;
    }

    .cta-box p {
        font-size: 1rem;
    }

    .footer-signup h3 {
        font-size: 1.4rem;
    }
}
