/* AION Newsletter Manager - Frontend Signup Styles
 * Version 2.0.0
 * Barlow font, #ba0c2f accent, minimal aesthetic
 */

/* ================================
   SHARED / BASE STYLES
   ================================ */

.aion-signup-form-inner,
.aion-popup-form,
.aion-gate-form,
.aion-login-form {
    font-family: 'Barlow', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* ================================
   INLINE SIGNUP FORM (shortcode & widget)
   ================================ */

.aion-newsletter-signup-widget {
    font-family: 'Barlow', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    padding: 5px 0;
}

.aion-newsletter-signup-widget .signup-description {
    color: #666666;
    font-size: 14px;
    line-height: 1.5;
    margin: 0 0 18px 0;
}

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

.aion-signup-input {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #e0e0e0;
    border-radius: 0;
    font-family: 'Barlow', sans-serif;
    font-size: 14px;
    color: #000000;
    background: #ffffff;
    transition: border-color 0.3s ease;
    box-sizing: border-box;
}

.aion-signup-input:focus {
    outline: none;
    border-color: #ba0c2f;
}

.aion-signup-input::placeholder {
    color: #999999;
}

.aion-signup-submit-btn {
    width: 100%;
    padding: 12px 20px;
    background: #ba0c2f;
    color: #ffffff;
    border: none;
    border-radius: 0;
    font-family: 'Barlow', sans-serif;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    cursor: pointer;
    transition: background 0.3s ease;
}

.aion-signup-submit-btn:hover {
    background: #9a0a27;
}

.aion-signup-submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.aion-signup-message-box {
    margin-top: 12px;
    padding: 10px 14px;
    font-size: 14px;
    border-radius: 0;
}

.aion-signup-message-box.success {
    background: #000000;
    color: #ffffff;
}

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

.aion-newsletter-signup-widget .signup-privacy {
    color: #999999;
    margin-top: 10px;
    text-align: center;
}


/* ================================
   POPUP OVERLAY
   ================================ */

.aion-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.65);
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.aion-popup-overlay.active {
    opacity: 1;
}

.aion-popup-container {
    position: relative;
    background: #ffffff;
    max-width: 460px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.aion-popup-close {
    position: absolute;
    top: 15px;
    right: 18px;
    background: none;
    border: none;
    font-size: 28px;
    color: #666666;
    cursor: pointer;
    line-height: 1;
    z-index: 10;
    transition: color 0.2s ease;
}

.aion-popup-close:hover {
    color: #ba0c2f;
}

.aion-popup-image {
    width: 100%;
    height: 200px;
    background-size: cover;
    background-position: center;
}

.aion-popup-content {
    padding: 35px 30px;
}

.aion-popup-title {
    font-family: 'Barlow', sans-serif;
    font-size: 22px;
    font-weight: 700;
    color: #000000;
    margin: 0 0 10px 0;
    letter-spacing: 0.5px;
}

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

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

.aion-popup-input {
    width: 100%;
    padding: 13px 14px;
    border: 1px solid #e0e0e0;
    border-radius: 0;
    font-family: 'Barlow', sans-serif;
    font-size: 15px;
    color: #000000;
    background: #ffffff;
    transition: border-color 0.3s ease;
    box-sizing: border-box;
}

.aion-popup-input:focus {
    outline: none;
    border-color: #ba0c2f;
}

.aion-popup-input::placeholder {
    color: #999999;
}

.aion-popup-submit {
    width: 100%;
    padding: 14px 20px;
    background: #ba0c2f;
    color: #ffffff;
    border: none;
    border-radius: 0;
    font-family: 'Barlow', sans-serif;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    cursor: pointer;
    transition: background 0.3s ease;
    margin-top: 5px;
}

.aion-popup-submit:hover {
    background: #9a0a27;
}

.aion-popup-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.aion-popup-message {
    margin-top: 12px;
    padding: 10px 14px;
    font-size: 14px;
}

.aion-popup-message.success {
    background: #000000;
    color: #ffffff;
}

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

.aion-popup-privacy {
    color: #999999;
    margin-top: 15px;
    text-align: center;
}


/* ================================
   SUBSCRIBER CONTENT GATING
   ================================ */

.aion-subscriber-locked {
    margin: 30px 0;
}

.aion-subscriber-gate {
    font-family: 'Barlow', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-top: 3px solid #ba0c2f;
    padding: 35px 30px;
    text-align: center;
}

.aion-subscriber-gate h3 {
    font-family: 'Barlow', sans-serif;
    font-size: 20px;
    font-weight: 700;
    color: #000000;
    margin: 0 0 10px 0;
}

.aion-subscriber-gate > p {
    color: #666666;
    font-size: 15px;
    line-height: 1.5;
    margin: 0 0 25px 0;
}

.aion-gate-form {
    max-width: 360px;
    margin: 0 auto;
    text-align: left;
}

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

.aion-gate-input {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #e0e0e0;
    border-radius: 0;
    font-family: 'Barlow', sans-serif;
    font-size: 14px;
    color: #000000;
    background: #ffffff;
    transition: border-color 0.3s ease;
    box-sizing: border-box;
}

.aion-gate-input:focus {
    outline: none;
    border-color: #ba0c2f;
}

.aion-gate-input::placeholder {
    color: #999999;
}

.aion-gate-btn {
    width: 100%;
    padding: 12px 20px;
    background: #ba0c2f;
    color: #ffffff;
    border: none;
    border-radius: 0;
    font-family: 'Barlow', sans-serif;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    cursor: pointer;
    transition: background 0.3s ease;
}

.aion-gate-btn:hover {
    background: #9a0a27;
}

.aion-gate-msg {
    margin-top: 12px;
    padding: 10px 14px;
    font-size: 14px;
    text-align: center;
}

.aion-gate-msg.success {
    background: #000000;
    color: #ffffff;
}

.aion-gate-msg.error {
    background: #f8d7da;
    color: #721c24;
}

.aion-gate-login {
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid #e0e0e0;
    text-align: center;
}

.aion-gate-login > p {
    color: #999999;
    font-size: 13px;
    margin: 0 0 12px 0;
}

.aion-login-toggle {
    color: #ba0c2f;
    text-decoration: none;
    font-weight: 500;
}

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

.aion-login-form {
    max-width: 360px;
    margin: 0 auto;
}

.aion-gate-field-inline {
    display: flex;
    gap: 8px;
}

.aion-gate-field-inline .aion-gate-input {
    flex: 1;
}

.aion-gate-field-inline .aion-login-btn {
    width: auto;
    padding: 12px 20px;
    flex-shrink: 0;
}

.aion-login-msg {
    margin-top: 10px;
    padding: 8px 12px;
    font-size: 13px;
    text-align: center;
}

.aion-login-msg.success {
    background: #000000;
    color: #ffffff;
}

.aion-login-msg.error {
    background: #f8d7da;
    color: #721c24;
}

.aion-subscriber-unlocked {
    /* No special styling needed, just renders content */
}


/* ================================
   RESPONSIVE
   ================================ */

@media (max-width: 600px) {
    .aion-popup-container {
        width: 95%;
        max-height: 95vh;
    }

    .aion-popup-content {
        padding: 25px 20px;
    }

    .aion-popup-image {
        height: 150px;
    }

    .aion-subscriber-gate {
        padding: 25px 20px;
    }

    .aion-gate-field-inline {
        flex-direction: column;
        gap: 10px;
    }

    .aion-gate-field-inline .aion-login-btn {
        width: 100%;
    }
}
