/* ============================================================
   UL AI Hub — PMPro Shortcode Replacement Styles
   Matches PMPro's visual output closely so pages look identical
   ============================================================ */

/* ── Shared card styles ── */
.pmpro .pmpro_card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    margin-bottom: 24px;
    overflow: hidden;
}
.pmpro .pmpro_card_content {
    padding: 20px 24px;
}
.pmpro .pmpro_card_actions {
    padding: 12px 24px;
    border-top: 1px solid #e5e7eb;
    background: #f9fafb;
}
.pmpro .pmpro_card_title {
    margin: 0 0 12px;
    font-size: 1.1em;
}
.pmpro .pmpro_heading-with-avatar {
    display: flex;
    align-items: center;
    gap: 12px;
}
.pmpro .pmpro_heading-with-avatar img {
    border-radius: 50%;
}

/* ── Shared button styles ── */
.pmpro_btn {
    display: inline-block;
    padding: 8px 16px;
    border-radius: 4px;
    font-size: 0.9em;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    border: 1px solid transparent;
    transition: all 0.15s;
}
.pmpro_btn-select,
.pmpro_btn-submit {
    background: #3b82f6;
    color: #fff;
    border-color: #3b82f6;
}
.pmpro_btn-select:hover,
.pmpro_btn-submit:hover {
    background: #2563eb;
    color: #fff;
}
.pmpro_btn-outline,
.pmpro_btn-cancel {
    background: transparent;
    color: #6b7280;
    border-color: #d1d5db;
}
.pmpro_btn-outline:hover,
.pmpro_btn-cancel:hover {
    background: #f3f4f6;
    color: #374151;
}
.pmpro_message {
    padding: 12px 16px;
    border-radius: 4px;
    margin-bottom: 16px;
    font-size: 0.95em;
}
.pmpro_success {
    background: #d1fae5;
    color: #065f46;
    border: 1px solid #6ee7b7;
}
.pmpro_error {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #fca5a5;
}

/* ── [pmpro_levels] table ── */
.aih-levels-wrap .pmpro_levels_table {
    width: 100%;
    border-collapse: collapse;
}
.aih-levels-wrap .pmpro_levels_table th {
    text-align: left;
    padding: 10px 16px;
    border-bottom: 2px solid #e5e7eb;
    font-size: 0.85em;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #6b7280;
}
.aih-levels-wrap .pmpro_levels_table td {
    padding: 14px 16px;
    border-bottom: 1px solid #f3f4f6;
    vertical-align: middle;
}
.aih-levels-wrap .pmpro_levels_table tr:last-child td {
    border-bottom: none;
}
.aih-levels-wrap .pmpro_level-current td {
    background: #eff6ff;
}
.aih-levels-wrap .pmpro_level-name {
    font-weight: 500;
}
.aih-levels-wrap .pmpro_level-action {
    text-align: right;
}

/* ── [pmpro_account] ── */
.aih-account-wrap h2 {
    font-size: 1.3em;
    margin: 24px 0 12px;
}
.aih-account-links {
    display: flex;
    gap: 8px;
    align-items: center;
    font-size: 0.9em;
}
.aih-account-links a {
    color: #3b82f6;
    text-decoration: none;
}
.aih-account-links a:hover {
    text-decoration: underline;
}
.aih-sep {
    color: #d1d5db;
}
.aih-account-memberships .pmpro_card hr {
    border: none;
    border-top: 1px solid #e5e7eb;
    margin: 12px 0;
}

/* ── [pmpro_member_profile_edit] ── */
.aih-profile-wrap .aih-profile-section {
    margin-bottom: 24px;
}
.aih-profile-wrap h2 {
    font-size: 1.2em;
    margin: 0 0 20px;
}
.aih-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}
@media (max-width: 600px) {
    .aih-form-grid { grid-template-columns: 1fr; }
}
.aih-form-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 16px;
}
.aih-form-field label {
    font-weight: 500;
    font-size: 0.9em;
    color: #374151;
}
.aih-form-field input[type="text"],
.aih-form-field input[type="email"],
.aih-form-field select,
.aih-form-field textarea {
    padding: 8px 10px;
    border: 1px solid #d1d5db;
    border-radius: 4px;
    font-size: 0.95em;
    width: 100%;
    box-sizing: border-box;
}
.aih-form-field input:disabled {
    background: #f9fafb;
    color: #9ca3af;
}
.aih-form-field select[multiple] {
    height: auto;
}
.aih-form-field small {
    font-size: 0.8em;
    color: #9ca3af;
}
.aih-checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
    cursor: pointer;
}
.aih-form-actions {
    display: flex;
    gap: 12px;
    margin-top: 8px;
}

/* ── [pmpro_login] ── */
.aih-login-wrap .pmpro_card {
    max-width: 600px;
}
.aih-logged-in .aih-welcome {
    font-size: 1.1em;
    margin-bottom: 16px;
}
.aih-login-nav {
    list-style: none;
    padding: 0;
    margin: 0 0 16px;
}
.aih-nav-section {
    margin-bottom: 12px;
}
.aih-nav-section > strong {
    display: block;
    color: #374151;
    margin-bottom: 4px;
}
.aih-nav-section ul {
    list-style: none;
    padding: 0 0 0 16px;
    margin: 0;
}
.aih-nav-section ul li a {
    color: #3b82f6;
    text-decoration: none;
    font-size: 0.9em;
    line-height: 1.8;
}
.aih-nav-section ul li a:hover {
    text-decoration: underline;
}
.aih-logout-link {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid #e5e7eb;
}
.aih-login-links {
    margin-top: 12px;
    font-size: 0.9em;
    text-align: center;
}
.aih-login-required {
    padding: 16px;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 4px;
}

/* ── Phase 2 stubs ── */
.aih-stub-wrap .pmpro_card {
    max-width: 600px;
    margin: 40px auto;
}
.aih-stub-title {
    font-size: 1.4em;
    margin: 0 0 12px;
}
.aih-stub-message {
    color: #6b7280;
    margin-bottom: 20px;
    line-height: 1.6;
}
