/* LNMC Member Hub - Frontend Styles */
/* Updated: December 2024 - Navy (#002868) + Gold (#FFCD00) palette */

/* ===== GLOBAL STYLES ===== */
.lnmc-member-hub {
    --lnmc-navy: #1B5E20;
    /* Harmonized with Theme Green */
    --lnmc-navy-light: #2E7D32;
    /* Lighter Green */
    --lnmc-gold: #FFB300;
    /* Theme Warm Gold */
    --lnmc-gold-light: #FFE082;
    /* Lighter Gold */
    --lnmc-gold-dark: #FF8F00;
    /* Theme Dark Gold */
    font-family: 'Space Grotesk', 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #333;
}

/* ===== MEMBERSHIP FORM ===== */
.lnmc-membership-form {
    max-width: 500px;
    margin: 2rem auto;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.lnmc-membership-form:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.lnmc-membership-card {
    padding: 2rem;
}

.lnmc-membership-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--lnmc-navy);
    margin: 0 0 0.5rem 0;
    text-align: center;
    font-family: 'Playfair Display', Georgia, serif;
}

.lnmc-membership-description {
    color: #7f8c8d;
    text-align: center;
    margin: 0 0 2rem 0;
    font-size: 1rem;
}

.lnmc-form-field {
    margin-bottom: 1.5rem;
}

.lnmc-form-label {
    display: block;
    font-weight: 600;
    color: var(--lnmc-navy);
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.lnmc-form-input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e1e8ed;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    box-sizing: border-box;
}

.lnmc-form-input:focus {
    outline: none;
    border-color: var(--lnmc-navy);
    box-shadow: 0 0 0 3px rgba(0, 40, 104, 0.1);
}

.lnmc-amount-display {
    background: #f8f9fa;
    padding: 12px 16px;
    border: 2px solid #e1e8ed;
    border-radius: 8px;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--lnmc-gold-dark);
    text-align: center;
}

.lnmc-submit-button {
    width: 100%;
    background: linear-gradient(135deg, var(--lnmc-gold), var(--lnmc-gold-light));
    color: var(--lnmc-navy);
    border: none;
    padding: 16px 24px;
    border-radius: 25px;
    /* Match Theme Button Radius */
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 15px rgba(255, 205, 0, 0.4);
}

.lnmc-submit-button:hover {
    background: linear-gradient(135deg, var(--lnmc-gold-light), var(--lnmc-gold));
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 205, 0, 0.6);
}

.lnmc-submit-button:active {
    transform: translateY(0);
}

.lnmc-payment-info {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e1e8ed;
    text-align: center;
}

.lnmc-payment-info p {
    color: #7f8c8d;
    font-size: 0.85rem;
    margin: 0;
}

/* ===== PRICING TABLE ===== */
.lnmc-pricing-table {
    max-width: 400px;
    margin: 2rem auto;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 2px solid #e1e8ed;
}

.lnmc-pricing-table:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
    border-color: var(--lnmc-gold);
}

.lnmc-pricing-card {
    padding: 2.5rem 2rem;
    text-align: center;
}

.lnmc-pricing-title {
    font-size: 2rem;
    font-weight: 800;
    color: var(--lnmc-navy);
    margin: 0 0 1rem 0;
    font-family: 'Playfair Display', Georgia, serif;
}

.lnmc-pricing-description {
    color: #7f8c8d;
    margin: 0 0 2rem 0;
    font-size: 1rem;
    line-height: 1.6;
}

.lnmc-pricing-features {
    margin: 2rem 0;
}

.lnmc-pricing-features ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.lnmc-pricing-features li {
    padding: 0.75rem 0;
    border-bottom: 1px solid #f1f2f6;
    color: #2c3e50;
    font-size: 0.95rem;
}

.lnmc-pricing-features li:last-child {
    border-bottom: none;
}

.lnmc-pricing-features strong {
    color: var(--lnmc-gold-dark);
    font-weight: 600;
}

.lnmc-pricing-button {
    display: inline-block;
    background: linear-gradient(135deg, var(--lnmc-gold), var(--lnmc-gold-light));
    color: var(--lnmc-navy);
    text-decoration: none;
    padding: 16px 32px;
    border-radius: 25px;
    /* Match Theme Button Radius */
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 15px rgba(255, 205, 0, 0.4);
}

.lnmc-pricing-button:hover {
    background: linear-gradient(135deg, var(--lnmc-gold-light), var(--lnmc-gold));
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 205, 0, 0.6);
    color: var(--lnmc-navy);
    text-decoration: none;
}

/* ===== MEMBER DASHBOARD ===== */
.lnmc-member-dashboard {
    max-width: 600px;
    margin: 2rem auto;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.lnmc-dashboard-card {
    padding: 2rem;
}

.lnmc-dashboard-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #2c3e50;
    margin: 0 0 1.5rem 0;
    text-align: center;
}

.lnmc-dashboard-content {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 1.5rem;
}

.lnmc-dashboard-field {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid #e1e8ed;
}

.lnmc-dashboard-field:last-child {
    border-bottom: none;
}

.lnmc-dashboard-field strong {
    color: #2c3e50;
    font-weight: 600;
}

/* ===== MEMBER BADGE ===== */
.lnmc-member-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
}

.lnmc-member-active {
    background: linear-gradient(135deg, #27ae60, #229954);
    color: white;
    box-shadow: 0 2px 8px rgba(39, 174, 96, 0.3);
}

.lnmc-premium-member {
    background: linear-gradient(135deg, #f39c12, #e67e22);
    color: white;
    box-shadow: 0 2px 8px rgba(243, 156, 18, 0.3);
}

.lnmc-member-inactive {
    background: #95a5a6;
    color: white;
}

/* ===== SUBSCRIBE BUTTON ===== */
.lnmc-subscribe-button {
    display: inline-block;
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white;
    text-decoration: none;
    padding: 12px 24px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 8px rgba(52, 152, 219, 0.3);
}

.lnmc-subscribe-button:hover {
    background: linear-gradient(135deg, #2980b9, #1f5f8b);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(52, 152, 219, 0.4);
    color: white;
    text-decoration: none;
}

.lnmc-manage-billing {
    background: linear-gradient(135deg, #27ae60, #229954);
    box-shadow: 0 2px 8px rgba(39, 174, 96, 0.3);
}

.lnmc-manage-billing:hover {
    background: linear-gradient(135deg, #229954, #1e8449);
    box-shadow: 0 4px 12px rgba(39, 174, 96, 0.4);
}

/* ===== MEMBERS ONLY CONTENT ===== */
.lnmc-members-only-message {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border: 2px solid #dee2e6;
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    margin: 2rem 0;
}

.lnmc-members-only-message p {
    color: #495057;
    font-size: 1.1rem;
    margin: 0 0 1.5rem 0;
    font-weight: 500;
}

.lnmc-members-only-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.lnmc-login-button {
    display: inline-block;
    background: #6c757d;
    color: white;
    text-decoration: none;
    padding: 10px 20px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.lnmc-login-button:hover {
    background: #5a6268;
    color: white;
    text-decoration: none;
    transform: translateY(-1px);
}

.lnmc-members-only-content {
    background: #f8f9fa;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    padding: 1.5rem;
    margin: 1rem 0;
}

.lnmc-upgrade-required {
    background: linear-gradient(135deg, #fff3cd, #ffeaa7);
    border-color: #ffc107;
}

.lnmc-upgrade-required p {
    color: #856404;
}

/* ===== ERROR MESSAGES ===== */
.lnmc-membership-form-error {
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    border-radius: 8px;
    padding: 1rem;
    margin: 1rem 0;
    color: #721c24;
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 768px) {

    .lnmc-membership-form,
    .lnmc-pricing-table,
    .lnmc-member-dashboard {
        margin: 1rem;
        max-width: none;
    }

    .lnmc-membership-card,
    .lnmc-pricing-card,
    .lnmc-dashboard-card {
        padding: 1.5rem;
    }

    .lnmc-membership-title,
    .lnmc-pricing-title {
        font-size: 1.5rem;
    }

    .lnmc-members-only-actions {
        flex-direction: column;
        align-items: center;
    }

    .lnmc-members-only-actions a {
        width: 100%;
        max-width: 200px;
        text-align: center;
    }
}

@media (max-width: 480px) {

    .lnmc-membership-card,
    .lnmc-pricing-card,
    .lnmc-dashboard-card {
        padding: 1rem;
    }

    .lnmc-submit-button,
    .lnmc-pricing-button {
        padding: 14px 20px;
        font-size: 1rem;
    }
}

/* ===== ANIMATIONS ===== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.lnmc-member-hub {
    animation: fadeInUp 0.6s ease-out;
}

/* ===== ACCESSIBILITY ===== */
.lnmc-submit-button:focus,
.lnmc-pricing-button:focus,
.lnmc-subscribe-button:focus,
.lnmc-login-button:focus {
    outline: 2px solid #3498db;
    outline-offset: 2px;
}

.lnmc-form-input:focus {
    outline: 2px solid #3498db;
    outline-offset: 2px;
}

/* ===== PRINT STYLES ===== */
@media print {
    .lnmc-member-hub {
        box-shadow: none;
        border: 1px solid #ccc;
    }

    .lnmc-submit-button,
    .lnmc-pricing-button,
    .lnmc-subscribe-button,
    .lnmc-login-button {
        background: #333 !important;
        color: white !important;
        box-shadow: none !important;
    }
}