/**
 * Email Capture Styles
 * File: /wp-content/themes/picks-curated-theme/assets/css/email-capture.css
 */

/* ============================================
   HERO EMAIL CAPTURE
   ============================================ */
.pc-email-hero {
    background: linear-gradient(135deg, #0f172a 0%, #1e3a8a 100%);
    padding: 4rem 2rem;
    border-radius: 1.5rem;
    color: white;
    text-align: center;
    margin: 2rem 0;
}

.email-hero-content {
    max-width: 600px;
    margin: 0 auto;
}

.email-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(251, 191, 36, 0.2);
    color: #fbbf24;
    padding: 0.5rem 1rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.pc-email-hero h2 {
    font-size: 2.5rem;
    font-weight: 800;
    margin: 0 0 1rem;
}

.pc-email-hero > .email-hero-content > p {
    font-size: 1.125rem;
    color: rgba(255,255,255,0.8);
    margin: 0 0 2rem;
    line-height: 1.6;
}

.email-hero-form {
    max-width: 450px;
    margin: 0 auto;
}

.email-hero-input-group {
    display: flex;
    gap: 0.5rem;
    background: white;
    padding: 0.5rem;
    border-radius: 0.75rem;
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
}

.email-hero-input-group input {
    flex: 1;
    border: none;
    padding: 1rem;
    font-size: 1rem;
    background: transparent;
    outline: none;
    color: #0f172a;
}

.email-hero-input-group input::placeholder {
    color: #9ca3af;
}

.email-hero-input-group button {
    padding: 1rem 1.5rem;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    font-size: 1rem;
    font-weight: 700;
    border: none;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}

.email-hero-input-group button:hover {
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.4);
}

.email-hero-input-group button .btn-loading {
    display: none;
}

.email-hero-input-group button.loading .btn-text {
    display: none;
}

.email-hero-input-group button.loading .btn-loading {
    display: inline-block;
}

.email-hero-privacy {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1rem;
    font-size: 0.8125rem;
    color: rgba(255,255,255,0.6);
}

.email-hero-features {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 2.5rem;
    flex-wrap: wrap;
}

.hero-feature {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9375rem;
    color: rgba(255,255,255,0.9);
}

.hero-feature svg {
    color: #10b981;
}

.email-hero-success {
    padding: 2rem;
}

.email-hero-success svg {
    color: #10b981;
    margin-bottom: 1rem;
}

.email-hero-success h3 {
    font-size: 1.5rem;
    margin: 0 0 0.5rem;
}

.email-hero-success p {
    color: rgba(255,255,255,0.8);
    margin: 0;
}

/* ============================================
   SIDEBAR EMAIL CAPTURE
   ============================================ */
.pc-email-sidebar {
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    padding: 1.5rem;
    border-radius: 1rem;
    text-align: center;
    border: 1px solid #bfdbfe;
}

.sidebar-icon {
    width: 50px;
    height: 50px;
    margin: 0 auto 1rem;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #2563eb;
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.15);
}

.sidebar-icon svg {
    width: 24px;
    height: 24px;
}

.pc-email-sidebar h4 {
    font-size: 1.125rem;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 0.5rem;
}

.pc-email-sidebar p {
    font-size: 0.875rem;
    color: #64748b;
    margin: 0 0 1rem;
}

.sidebar-form {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.sidebar-form input {
    padding: 0.75rem 1rem;
    border: 1px solid #d1d5db;
    border-radius: 0.5rem;
    font-size: 0.9375rem;
    outline: none;
}

.sidebar-form input:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.sidebar-form button {
    padding: 0.75rem 1rem;
    background: #2563eb;
    color: white;
    font-size: 0.9375rem;
    font-weight: 600;
    border: none;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: background 0.2s;
}

.sidebar-form button:hover {
    background: #1d4ed8;
}

.sidebar-success {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem;
    color: #16a34a;
    font-weight: 600;
}

/* ============================================
   AFTER CONTENT EMAIL CAPTURE
   ============================================ */
.pc-email-after-content {
    margin: 3rem 0;
    padding: 2rem;
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border-radius: 1rem;
    border: 2px solid #f59e0b;
}

.after-content-inner {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.after-content-icon {
    font-size: 2.5rem;
}

.after-content-text {
    flex: 1;
    min-width: 200px;
}

.after-content-text h4 {
    font-size: 1.25rem;
    font-weight: 700;
    color: #92400e;
    margin: 0 0 0.25rem;
}

.after-content-text p {
    font-size: 0.9375rem;
    color: #78350f;
    margin: 0;
}

.after-content-form {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.after-content-form input {
    padding: 0.75rem 1rem;
    border: 2px solid #f59e0b;
    border-radius: 0.5rem;
    font-size: 0.9375rem;
    min-width: 200px;
    outline: none;
}

.after-content-form input:focus {
    border-color: #d97706;
}

.after-content-form button {
    padding: 0.75rem 1.5rem;
    background: #92400e;
    color: white;
    font-size: 0.9375rem;
    font-weight: 700;
    border: none;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: background 0.2s;
}

.after-content-form button:hover {
    background: #78350f;
}

.after-content-success {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #16a34a;
    font-weight: 600;
}

/* ============================================
   EXIT POPUP
   ============================================ */
.pc-exit-popup {
    position: fixed;
    inset: 0;
    z-index: 99999;
}

.exit-popup-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
}

.exit-popup-modal {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    border-radius: 1.5rem;
    max-width: 480px;
    width: calc(100% - 2rem);
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.exit-popup-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: #f1f5f9;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #64748b;
    transition: all 0.2s;
}

.exit-popup-close:hover {
    background: #e2e8f0;
    color: #0f172a;
}

.exit-popup-content {
    padding: 2.5rem;
    text-align: center;
}

.exit-popup-badge {
    display: inline-block;
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
    color: white;
    font-size: 0.75rem;
    font-weight: 800;
    padding: 0.5rem 1rem;
    border-radius: 9999px;
    margin-bottom: 1.5rem;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.exit-popup-content h2 {
    font-size: 1.75rem;
    font-weight: 800;
    color: #0f172a;
    margin: 0 0 0.75rem;
}

.exit-popup-content > p {
    font-size: 1rem;
    color: #64748b;
    margin: 0 0 1.5rem;
    line-height: 1.5;
}

.exit-popup-benefits {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
    text-align: left;
}

.benefit-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.9375rem;
    color: #374151;
}

.benefit-item svg {
    color: #10b981;
    flex-shrink: 0;
}

.exit-popup-form {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.exit-popup-form input {
    padding: 1rem;
    border: 2px solid #e5e7eb;
    border-radius: 0.75rem;
    font-size: 1rem;
    outline: none;
    transition: border-color 0.2s;
}

.exit-popup-form input:focus {
    border-color: #2563eb;
}

.exit-popup-form button {
    padding: 1rem;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    font-size: 1.125rem;
    font-weight: 700;
    border: none;
    border-radius: 0.75rem;
    cursor: pointer;
    transition: all 0.2s;
}

.exit-popup-form button:hover {
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.4);
}

.exit-popup-note {
    font-size: 0.8125rem;
    color: #9ca3af;
    margin: 1rem 0 0;
}

.exit-popup-success {
    padding: 1rem 0;
}

.exit-popup-success svg {
    color: #10b981;
    margin-bottom: 1rem;
}

.exit-popup-success h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 0.5rem;
}

.exit-popup-success p {
    color: #64748b;
    margin: 0 0 1.5rem;
}

.exit-popup-success button {
    padding: 0.75rem 2rem;
    background: #f1f5f9;
    color: #374151;
    font-size: 0.9375rem;
    font-weight: 600;
    border: none;
    border-radius: 0.5rem;
    cursor: pointer;
}

/* ============================================
   FLOATING BAR
   ============================================ */
.pc-floating-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, #0f172a 0%, #1e3a8a 100%);
    color: white;
    padding: 1rem 1.5rem;
    z-index: 9999;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.pc-floating-bar.visible {
    transform: translateY(0);
}

.floating-bar-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.floating-bar-text strong {
    display: block;
    font-size: 1rem;
    margin-bottom: 0.125rem;
}

.floating-bar-text span {
    font-size: 0.875rem;
    color: rgba(255,255,255,0.7);
}

.floating-bar-form {
    display: flex;
    gap: 0.5rem;
}

.floating-bar-form input {
    padding: 0.625rem 1rem;
    border: none;
    border-radius: 0.5rem;
    font-size: 0.9375rem;
    width: 200px;
    outline: none;
}

.floating-bar-form button {
    padding: 0.625rem 1.25rem;
    background: #10b981;
    color: white;
    font-size: 0.9375rem;
    font-weight: 600;
    border: none;
    border-radius: 0.5rem;
    cursor: pointer;
    white-space: nowrap;
}

.floating-bar-form button:hover {
    background: #059669;
}

.floating-bar-close {
    background: transparent;
    border: none;
    color: rgba(255,255,255,0.6);
    cursor: pointer;
    padding: 0.5rem;
}

.floating-bar-close:hover {
    color: white;
}

.floating-bar-success {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem;
}

.floating-bar-success svg {
    color: #10b981;
}

/* ============================================
   INLINE CTA
   ============================================ */
.pc-email-inline {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.25rem;
    background: #f8fafc;
    border: 1px solid #e5e7eb;
    border-radius: 0.75rem;
    margin: 1.5rem 0;
    flex-wrap: wrap;
}

.inline-cta-icon {
    font-size: 1.5rem;
}

.inline-cta-content {
    flex: 1;
    min-width: 150px;
}

.inline-cta-content strong {
    display: block;
    font-size: 0.9375rem;
    color: #0f172a;
}

.inline-cta-content span {
    font-size: 0.8125rem;
    color: #64748b;
}

.inline-cta-form {
    display: flex;
    gap: 0.5rem;
}

.inline-cta-form input {
    padding: 0.5rem 0.75rem;
    border: 1px solid #d1d5db;
    border-radius: 0.375rem;
    font-size: 0.875rem;
    width: 150px;
}

.inline-cta-form button {
    padding: 0.5rem 1rem;
    background: #2563eb;
    color: white;
    font-size: 0.875rem;
    font-weight: 600;
    border: none;
    border-radius: 0.375rem;
    cursor: pointer;
}

.inline-cta-success {
    color: #16a34a;
    font-size: 0.875rem;
    font-weight: 600;
}

/* ============================================
   FORM ERROR
   ============================================ */
.form-error {
    color: #dc2626;
    font-size: 0.875rem;
    margin: 0.5rem 0 0;
    text-align: left;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
    .pc-email-hero h2 {
        font-size: 1.75rem;
    }
    
    .email-hero-input-group {
        flex-direction: column;
    }
    
    .email-hero-input-group button {
        width: 100%;
    }
    
    .email-hero-features {
        flex-direction: column;
        gap: 1rem;
    }
    
    .after-content-inner {
        flex-direction: column;
        text-align: center;
    }
    
    .after-content-form {
        width: 100%;
        flex-direction: column;
    }
    
    .after-content-form input {
        width: 100%;
    }
    
    .floating-bar-inner {
        flex-direction: column;
        text-align: center;
    }
    
    .floating-bar-form {
        width: 100%;
    }
    
    .floating-bar-form input {
        flex: 1;
    }
}