/* Newsletter Manager Frontend Styles */

.nm-newsletter-form {
    max-width: 500px;
    margin: 0 auto;
    padding: 40px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(102, 126, 234, 0.4);
    position: relative;
    overflow: hidden;
}

.nm-newsletter-form::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    pointer-events: none;
}

.nm-form-header {
    text-align: center;
    margin-bottom: 32px;
    position: relative;
    z-index: 1;
}

.nm-form-title {
    font-size: 28px;
    font-weight: 800;
    color: white;
    margin: 0;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    letter-spacing: -0.5px;
}

.nm-subscribe-form {
    position: relative;
    z-index: 1;
}

.nm-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 12px;
}

.nm-form-field {
    margin-bottom: 12px;
}

.nm-input {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    font-size: 15px;
    background: rgba(255, 255, 255, 0.95);
    color: #1f2937;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

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

.nm-input:focus {
    outline: none;
    border-color: rgba(255, 255, 255, 0.8);
    background: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.nm-submit-btn {
    width: 100%;
    padding: 16px 24px;
    background: white;
    color: #667eea;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.nm-submit-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.nm-submit-btn:active {
    transform: translateY(-1px);
}

.nm-submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.nm-form-message {
    margin-top: 16px;
    padding: 14px 18px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    text-align: center;
    animation: slideIn 0.3s ease;
}

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

.nm-message-success {
    background: rgba(16, 185, 129, 0.15);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.nm-message-error {
    background: rgba(239, 68, 68, 0.15);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

/* Alternative Light Theme */
.nm-newsletter-form.nm-light {
    background: white;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    border: 1px solid #e5e7eb;
}

.nm-newsletter-form.nm-light::before {
    display: none;
}

.nm-newsletter-form.nm-light .nm-form-title {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: none;
}

.nm-newsletter-form.nm-light .nm-input {
    background: #f9fafb;
    border-color: #e5e7eb;
}

.nm-newsletter-form.nm-light .nm-input:focus {
    background: white;
    border-color: #667eea;
}

.nm-newsletter-form.nm-light .nm-submit-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.nm-newsletter-form.nm-light .nm-message-success {
    background: rgba(16, 185, 129, 0.1);
    color: #059669;
    border-color: #10b981;
}

.nm-newsletter-form.nm-light .nm-message-error {
    background: rgba(239, 68, 68, 0.1);
    color: #dc2626;
    border-color: #ef4444;
}

/* Minimalist Theme */
.nm-newsletter-form.nm-minimal {
    background: #1f2937;
    border-radius: 0;
    padding: 60px 40px;
    box-shadow: none;
}

.nm-newsletter-form.nm-minimal::before {
    display: none;
}

.nm-newsletter-form.nm-minimal .nm-form-title {
    font-size: 24px;
    font-weight: 400;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.nm-newsletter-form.nm-minimal .nm-input {
    border-radius: 0;
    border: none;
    border-bottom: 2px solid rgba(255, 255, 255, 0.3);
    background: transparent;
    color: white;
    padding: 12px 0;
}

.nm-newsletter-form.nm-minimal .nm-input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.nm-newsletter-form.nm-minimal .nm-input:focus {
    border-bottom-color: white;
    transform: none;
    box-shadow: none;
}

.nm-newsletter-form.nm-minimal .nm-submit-btn {
    border-radius: 0;
    background: transparent;
    color: white;
    border: 2px solid white;
    letter-spacing: 2px;
}

.nm-newsletter-form.nm-minimal .nm-submit-btn:hover {
    background: white;
    color: #1f2937;
}

/* Responsive Design */
@media (max-width: 600px) {
    .nm-newsletter-form {
        padding: 30px 24px;
        border-radius: 16px;
    }
    
    .nm-form-title {
        font-size: 24px;
    }
    
    .nm-form-row {
        grid-template-columns: 1fr;
    }
    
    .nm-input {
        padding: 12px 16px;
        font-size: 14px;
    }
    
    .nm-submit-btn {
        padding: 14px 20px;
        font-size: 15px;
    }
}

/* Print Styles */
@media print {
    .nm-newsletter-form {
        display: none;
    }
}
