/**
 * OptinPlot Public Styles
 */

/* Reset */
.optinplot-page * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.optinplot-page body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    line-height: 1.6;
}

/* Container */
.optinplot-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
}

.optinplot-content {
    max-width: 600px;
    width: 100%;
    text-align: center;
}

/* Headline */
.optinplot-headline {
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.optinplot-subheadline {
    font-size: 1.25rem;
    opacity: 0.9;
    margin-bottom: 2rem;
}

/* Bullets */
.optinplot-bullets {
    text-align: left;
    max-width: 400px;
    margin: 0 auto 2rem;
}

.optinplot-bullet {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.optinplot-bullet-icon {
    width: 24px;
    height: 24px;
    background: var(--op-accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 12px;
    flex-shrink: 0;
}

.optinplot-bullet-icon svg {
    width: 14px;
    height: 14px;
    fill: var(--op-bg);
}

/* Form */
.optinplot-form-wrapper {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    padding: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

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

.optinplot-form-row {
    display: flex;
    gap: 1rem;
}

.optinplot-form-row .optinplot-input {
    flex: 1;
}

.optinplot-input {
    padding: 16px 20px;
    font-size: 1rem;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.1);
    color: var(--op-text);
    transition: all 0.3s ease;
    width: 100%;
}

.optinplot-input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.optinplot-input:focus {
    outline: none;
    border-color: var(--op-accent);
    background: rgba(255, 255, 255, 0.15);
}

/* Button */
.optinplot-button {
    padding: 18px 32px;
    font-size: 1.2rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: none;
    border-radius: 8px;
    background: linear-gradient(135deg, var(--op-accent), var(--op-primary));
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.optinplot-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

.optinplot-button:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

/* Privacy */
.optinplot-privacy {
    font-size: 0.85rem;
    opacity: 0.7;
    margin-top: 1rem;
}

.optinplot-privacy svg {
    width: 14px;
    height: 14px;
    vertical-align: middle;
    margin-right: 4px;
}

/* Messages */
.optinplot-message {
    padding: 1rem;
    border-radius: 8px;
    margin-top: 1rem;
    display: none;
}

.optinplot-message.success {
    background: rgba(34, 197, 94, 0.2);
    border: 1px solid rgba(34, 197, 94, 0.5);
    color: #86efac;
    display: block;
}

.optinplot-message.error {
    background: rgba(239, 68, 68, 0.2);
    border: 1px solid rgba(239, 68, 68, 0.5);
    color: #fca5a5;
    display: block;
}

/* Loading Spinner */
.optinplot-loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: optinplot-spin 0.8s linear infinite;
    margin-right: 8px;
    vertical-align: middle;
}

@keyframes optinplot-spin {
    to { transform: rotate(360deg); }
}

/* Responsive */
@media (max-width: 600px) {
    .optinplot-headline {
        font-size: 1.8rem;
    }
    
    .optinplot-subheadline {
        font-size: 1rem;
    }
    
    .optinplot-form-row {
        flex-direction: column;
    }
    
    .optinplot-form-wrapper {
        padding: 1.5rem;
    }
    
    .optinplot-button {
        padding: 16px 24px;
        font-size: 1rem;
    }
}

/* Exit Intent Popup */
.optinplot-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

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

.optinplot-popup {
    background: #fff;
    border-radius: 16px;
    max-width: 500px;
    width: 90%;
    padding: 40px;
    position: relative;
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.optinplot-popup-overlay.active .optinplot-popup {
    transform: scale(1);
}

.optinplot-popup-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 32px;
    height: 32px;
    border: none;
    background: #f1f5f9;
    border-radius: 50%;
    cursor: pointer;
    font-size: 18px;
    color: #64748b;
    transition: all 0.2s ease;
}

.optinplot-popup-close:hover {
    background: #e2e8f0;
    color: #1e293b;
}

/* Countdown Timer */
.optinplot-countdown {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin: 24px 0;
}

.optinplot-countdown-item {
    text-align: center;
}

.optinplot-countdown-value {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--op-primary, #6366f1);
    background: rgba(99, 102, 241, 0.1);
    border-radius: 8px;
    padding: 12px 16px;
    min-width: 70px;
}

.optinplot-countdown-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    color: #64748b;
    margin-top: 8px;
}

/* Social Proof */
.optinplot-social-proof {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 16px;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
}

.optinplot-social-proof svg {
    width: 16px;
    height: 16px;
}

/* Video Background */
.optinplot-video-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
}

/* Trust Badges */
.optinplot-trust-badges {
    display: flex;
    justify-content: center;
    gap: 24px;
    margin-top: 24px;
    opacity: 0.8;
}

.optinplot-trust-badge {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
}

.optinplot-trust-badge svg {
    width: 18px;
    height: 18px;
}

/* Testimonial */
.optinplot-testimonial {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 20px;
    margin-top: 24px;
    text-align: left;
}

.optinplot-testimonial-text {
    font-style: italic;
    margin-bottom: 12px;
}

.optinplot-testimonial-author {
    display: flex;
    align-items: center;
    gap: 12px;
}

.optinplot-testimonial-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.optinplot-testimonial-name {
    font-weight: 600;
}

.optinplot-testimonial-title {
    font-size: 0.85rem;
    opacity: 0.7;
}

/* Animated Gradient */
.optinplot-animated-bg {
    background: linear-gradient(-45deg, #ee7752, #e73c7e, #23a6d5, #23d5ab);
    background-size: 400% 400%;
    animation: optinplot-gradient 15s ease infinite;
}

@keyframes optinplot-gradient {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Particles Effect Container */
.optinplot-particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
}
