/* Newsletter Signup Forms - Frontend Styles */

/* Inline Signup Form */
.newsletter-signup-form {
    max-width: 400px;
    margin: 20px 0;
    padding: 25px;
    background: #f9f9f9;
    border-radius: 8px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.newsletter-signup-title {
    margin: 0 0 10px 0;
    font-size: 20px;
    color: #2D1818;
}

.newsletter-signup-description {
    margin: 0 0 20px 0;
    color: #666;
    font-size: 14px;
}

.newsletter-field {
    margin-bottom: 12px;
}

.newsletter-input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    box-sizing: border-box;
    transition: border-color 0.2s ease;
}

.newsletter-input:focus {
    outline: none;
    border-color: #3C8AA1;
}

.newsletter-submit-btn {
    width: 100%;
    padding: 12px 20px;
    background: linear-gradient(135deg, #3C8AA1 0%, #2d6d80 100%);
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.newsletter-submit-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(60, 138, 161, 0.3);
}

.newsletter-message {
    margin-top: 15px;
    padding: 10px 15px;
    border-radius: 6px;
    font-size: 14px;
}

.newsletter-message.success {
    background: #d4edda;
    color: #155724;
}

.newsletter-message.error {
    background: #f8d7da;
    color: #721c24;
}

/* Popup Styles */
.newsletter-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

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

.newsletter-popup {
    background: white;
    border-radius: 12px;
    max-width: 450px;
    width: 100%;
    position: relative;
    overflow: hidden;
    transform: translateY(20px);
    transition: transform 0.3s ease;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.newsletter-popup-overlay.active .newsletter-popup {
    transform: translateY(0);
}

.newsletter-popup-close {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 30px;
    height: 30px;
    border: none;
    background: rgba(0, 0, 0, 0.1);
    border-radius: 50%;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
    z-index: 10;
    transition: background 0.2s ease;
}

.newsletter-popup-close:hover {
    background: rgba(0, 0, 0, 0.2);
}

.newsletter-popup-image img {
    width: 100%;
    height: 150px;
    object-fit: cover;
}

.newsletter-popup-content {
    padding: 30px;
}

.newsletter-popup-title {
    margin: 0 0 10px 0;
    font-size: 24px;
    color: #2D1818;
    font-weight: 600;
}

.newsletter-popup-description {
    margin: 0 0 25px 0;
    color: #666;
    font-size: 15px;
    line-height: 1.5;
}

.newsletter-popup-field {
    margin-bottom: 12px;
}

.newsletter-popup-input {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 15px;
    box-sizing: border-box;
    transition: border-color 0.2s ease;
}

.newsletter-popup-input:focus {
    outline: none;
    border-color: #3C8AA1;
}

.newsletter-popup-submit {
    width: 100%;
    padding: 14px 20px;
    background: linear-gradient(135deg, #C6962A 0%, #B4844D 100%);
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 5px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.newsletter-popup-submit:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(198, 150, 42, 0.4);
}

.newsletter-popup-message {
    margin-top: 15px;
    padding: 10px 15px;
    border-radius: 6px;
    font-size: 14px;
}

.newsletter-popup-message.success {
    background: #d4edda;
    color: #155724;
}

.newsletter-popup-message.error {
    background: #f8d7da;
    color: #721c24;
}

.newsletter-popup-privacy {
    margin: 20px 0 0 0;
    font-size: 12px;
    color: #999;
    text-align: center;
}

/* Subscriber Gate Styles */
.subscriber-content-locked {
    margin: 20px 0;
}

.subscriber-gate {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border: 2px dashed #B4844D;
    border-radius: 12px;
    padding: 40px 30px;
    text-align: center;
}

.subscriber-gate-title {
    margin: 0 0 10px 0;
    font-size: 22px;
    color: #2D1818;
}

.subscriber-gate-message {
    margin: 0 0 25px 0;
    color: #666;
    font-size: 15px;
}

.subscriber-gate-form {
    max-width: 350px;
    margin: 0 auto;
}

.subscriber-gate-field {
    margin-bottom: 12px;
}

.subscriber-gate-field-inline {
    display: flex;
    gap: 10px;
}

.subscriber-gate-input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    box-sizing: border-box;
}

.subscriber-gate-input:focus {
    outline: none;
    border-color: #3C8AA1;
}

.subscriber-gate-btn {
    padding: 12px 25px;
    background: linear-gradient(135deg, #3C8AA1 0%, #2d6d80 100%);
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
}

.subscriber-gate-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(60, 138, 161, 0.3);
}

.subscriber-gate-login {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #ddd;
}

.subscriber-gate-login p {
    margin: 0 0 10px 0;
    font-size: 14px;
    color: #666;
}

.subscriber-login-toggle {
    color: #3C8AA1;
    text-decoration: none;
}

.subscriber-login-toggle:hover {
    text-decoration: underline;
}

.subscriber-content-unlocked {
    /* Style for unlocked content if needed */
}

/* Responsive */
@media (max-width: 480px) {
    .newsletter-popup {
        margin: 10px;
        max-width: calc(100% - 20px);
    }
    
    .newsletter-popup-content {
        padding: 25px 20px;
    }
    
    .newsletter-popup-title {
        font-size: 20px;
    }
    
    .subscriber-gate {
        padding: 30px 20px;
    }
    
    .subscriber-gate-field-inline {
        flex-direction: column;
    }
}
