/* ============================================
   VELURO NEWSLETTER OVERLAY - CSS
   Google Ads Compliant (Option A)
============================================ */

/* ============================================
   CSS VARIABLES FOR OVERLAY
============================================ */
:root {
    --overlay-primary: #7C9A82;
    --overlay-primary-dark: #5A7560;
    --overlay-bg: #ffffff;
    --overlay-text-dark: #2D2D2D;
    --overlay-text-muted: #5A5A5A;
    --overlay-text-light: #8A8A8A;
    --overlay-success: #4CAF7C;
    --overlay-blur: 15px;
    --overlay-darkness: 0.7;
}

/* ============================================
   BLUR EFFECT ON BODY
============================================ */
body.overlay-active {
    overflow: hidden;
}

body.overlay-active > *:not(.veluro-dark-overlay):not(.veluro-newsletter-overlay) {
    filter: blur(var(--overlay-blur));
    transform: scale(1.01);
    transition: filter 0.4s ease, transform 0.4s ease;
}

/* ============================================
   DARK OVERLAY BACKGROUND
============================================ */
.veluro-dark-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, var(--overlay-darkness));
    z-index: 99998;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
    cursor: pointer;
}

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

/* ============================================
   NEWSLETTER OVERLAY BOX
============================================ */
.veluro-newsletter-overlay {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    width: 90%;
    max-width: 460px;
    background: var(--overlay-bg);
    border-radius: 24px;
    padding: 40px 35px;
    z-index: 99999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 
        0 25px 80px rgba(0, 0, 0, 0.4),
        0 10px 30px rgba(0, 0, 0, 0.2);
    font-family: 'Nunito Sans', -apple-system, BlinkMacSystemFont, sans-serif;
}

.veluro-newsletter-overlay.active {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, -50%) scale(1);
}

/* ============================================
   CLOSE BUTTON
============================================ */
.veluro-close-button {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 36px;
    height: 36px;
    border: none;
    background: #f5f5f5;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    color: var(--overlay-text-muted);
}

.veluro-close-button:hover {
    background: #e8e8e8;
    color: var(--overlay-text-dark);
}

.veluro-close-button svg {
    width: 18px;
    height: 18px;
}

/* ============================================
   OVERLAY CONTENT
============================================ */
.veluro-overlay-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(124, 154, 130, 0.15);
    color: var(--overlay-primary-dark);
    font-size: 12px;
    font-weight: 700;
    padding: 8px 14px;
    border-radius: 20px;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.veluro-overlay-badge::before {
    content: "📥";
}

.veluro-overlay-headline {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 28px;
    font-weight: 700;
    color: var(--overlay-text-dark);
    line-height: 1.25;
    margin-bottom: 12px;
}

.veluro-overlay-subheadline {
    font-size: 15px;
    color: var(--overlay-text-muted);
    line-height: 1.6;
    margin-bottom: 24px;
}

/* What's Included */
.veluro-whats-included {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.included-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 600;
    color: var(--overlay-text-dark);
}

.included-item span:first-child {
    font-size: 18px;
}

/* Email Input */
.veluro-email-input-wrapper {
    margin-bottom: 16px;
}

.veluro-email-input {
    width: 100%;
    padding: 16px 18px;
    font-size: 15px;
    font-family: inherit;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    box-sizing: border-box;
}

.veluro-email-input:focus {
    border-color: var(--overlay-primary);
    box-shadow: 0 0 0 4px rgba(124, 154, 130, 0.15);
}

.veluro-email-input::placeholder {
    color: #9ca3af;
}

/* CTA Button */
.veluro-cta-button {
    width: 100%;
    padding: 16px 24px;
    font-size: 16px;
    font-weight: 700;
    font-family: inherit;
    color: white;
    background: linear-gradient(135deg, var(--overlay-primary) 0%, var(--overlay-primary-dark) 100%);
    border: none;
    border-radius: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.2s ease;
    box-shadow: 0 4px 15px rgba(124, 154, 130, 0.35);
}

.veluro-cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(124, 154, 130, 0.45);
}

.veluro-cta-button:active {
    transform: translateY(0);
}

.veluro-cta-button svg {
    width: 18px;
    height: 18px;
    transition: transform 0.2s ease;
}

.veluro-cta-button:hover svg {
    transform: translateX(4px);
}

/* Trust Signals */
.veluro-trust-signals {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-top: 16px;
    flex-wrap: wrap;
}

.veluro-trust-signal {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
    color: var(--overlay-text-light);
}

.veluro-trust-signal svg {
    width: 14px;
    height: 14px;
    color: var(--overlay-success);
}

/* Privacy Notice - Google Ads Compliant */
.veluro-privacy-notice {
    font-size: 11px;
    color: var(--overlay-text-light);
    text-align: center;
    margin-top: 16px;
    line-height: 1.5;
}

.veluro-privacy-notice a {
    color: var(--overlay-primary-dark);
    text-decoration: underline;
}

/* Skip Link */
.veluro-skip-link {
    display: block;
    text-align: center;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #f3f4f6;
    font-size: 13px;
    color: var(--overlay-text-light);
    text-decoration: none;
    cursor: pointer;
    transition: color 0.2s ease;
}

.veluro-skip-link:hover {
    color: var(--overlay-text-muted);
}

/* ============================================
   SUCCESS STATE
============================================ */
.veluro-success-state {
    display: none;
    text-align: center;
    padding: 20px 0;
}

.veluro-success-state.active {
    display: block;
}

.veluro-success-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--overlay-success) 0%, #3d9960 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    animation: veluroSuccessPop 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes veluroSuccessPop {
    0% { transform: scale(0); }
    100% { transform: scale(1); }
}

.veluro-success-icon svg {
    width: 40px;
    height: 40px;
    color: white;
}

.veluro-success-state h3 {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 28px;
    color: var(--overlay-text-dark);
    margin-bottom: 12px;
}

.veluro-success-state p {
    color: var(--overlay-text-muted);
    font-size: 15px;
    margin-bottom: 28px;
    line-height: 1.6;
}

.veluro-success-close-btn {
    padding: 14px 32px;
    font-size: 15px;
    font-weight: 700;
    font-family: inherit;
    color: white;
    background: var(--overlay-text-dark);
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.veluro-success-close-btn:hover {
    background: #1a1a1a;
    transform: translateY(-2px);
}

/* Form State Toggle */
.veluro-form-state {
    display: block;
}

.veluro-form-state.hidden {
    display: none;
}

/* ============================================
   RESPONSIVE
============================================ */
@media (max-width: 500px) {
    .veluro-newsletter-overlay {
        width: 95%;
        padding: 32px 24px;
        border-radius: 20px;
    }

    .veluro-overlay-headline {
        font-size: 24px;
    }

    .veluro-overlay-subheadline {
        font-size: 14px;
    }

    .veluro-whats-included {
        flex-direction: column;
        align-items: center;
        gap: 12px;
    }

    .veluro-trust-signals {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }
}
