/* Stefani Newsletter Signup Frontend Styles */

/* Signup Form */
.stefani-signup-form {
    max-width: 400px;
    margin: 20px 0;
}

.stefani-signup-title {
    font-size: 1.4em;
    margin-bottom: 10px;
    color: #1e4d8c;
}

.stefani-signup-description {
    color: #666;
    margin-bottom: 15px;
}

.stefani-signup-field {
    margin-bottom: 12px;
}

.stefani-signup-input {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
    transition: border-color 0.3s ease;
}

.stefani-signup-input:focus {
    border-color: #c41e3a;
    outline: none;
}

.stefani-signup-btn {
    width: 100%;
    padding: 12px 25px;
    background: #c41e3a;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease;
}

.stefani-signup-btn:hover {
    background: #a01830;
}

.stefani-signup-message {
    padding: 12px;
    border-radius: 4px;
    margin-top: 10px;
    text-align: center;
}

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

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

/* Popup Styles */
.stefani-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.stefani-popup-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
}

.stefani-popup-container {
    position: relative;
    background: white;
    border-radius: 12px;
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: stefaniPopupIn 0.4s ease;
}

@keyframes stefaniPopupIn {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

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

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

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

.stefani-popup-content {
    padding: 30px;
    text-align: center;
}

.stefani-popup-title {
    font-size: 1.8em;
    margin: 0 0 10px;
    color: #1e4d8c;
}

.stefani-popup-description {
    color: #666;
    margin-bottom: 25px;
    line-height: 1.6;
}

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

.stefani-popup-input {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    font-size: 16px;
    transition: border-color 0.3s ease;
    box-sizing: border-box;
}

.stefani-popup-input:focus {
    border-color: #c41e3a;
    outline: none;
}

.stefani-popup-btn {
    width: 100%;
    padding: 14px 25px;
    background: #c41e3a;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease;
}

.stefani-popup-btn:hover {
    background: #a01830;
}

.stefani-popup-message {
    padding: 12px;
    border-radius: 6px;
    margin-top: 15px;
}

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

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

.stefani-popup-privacy {
    font-size: 12px;
    color: #999;
    margin-top: 20px;
    margin-bottom: 0;
}

/* Subscriber Gate (Content Locking) */
.subscriber-content-locked {
    margin: 30px 0;
}

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

.subscriber-gate-title {
    font-size: 1.5em;
    color: #1e4d8c;
    margin: 0 0 10px;
}

.subscriber-gate-message {
    color: #666;
    margin-bottom: 25px;
}

.subscriber-gate-field {
    margin-bottom: 12px;
    max-width: 350px;
    margin-left: auto;
    margin-right: auto;
}

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

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

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

.subscriber-gate-btn {
    padding: 12px 30px;
    background: #c41e3a;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
}

.subscriber-gate-btn:hover {
    background: #a01830;
}

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

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

.subscriber-login-toggle {
    color: #2a9d8f;
    text-decoration: underline;
    cursor: pointer;
}

.subscriber-login-form {
    margin-top: 15px;
}

.subscriber-login-message,
.subscriber-gate-message[style] {
    padding: 10px;
    border-radius: 6px;
    margin-top: 15px;
    max-width: 350px;
    margin-left: auto;
    margin-right: auto;
}

/* Unlocked Content */
.subscriber-content-unlocked {
    border-left: 4px solid #2a9d8f;
    padding-left: 20px;
    margin: 20px 0;
}

/* Responsive */
@media (max-width: 600px) {
    .stefani-popup-container {
        width: 95%;
        margin: 10px;
    }
    
    .stefani-popup-content {
        padding: 25px 20px;
    }
    
    .subscriber-gate {
        padding: 30px 20px;
    }
    
    .subscriber-gate-field-inline {
        flex-direction: column;
    }
}
