@import url('fonts.css');
@import url('tabs.css');
/* ==================================================
   Nuclear Fancy Pants Edition™ — NUCLEAR+++
   File: /assets/css/facebook.css
   Description: Facebook module styles — connection, picker, dashboard
   Last Edited: 2026-03-25
   ================================================== */

/* ---- Page background ---- */
#wpcontent,
#wpbody,
#wpbody-content {
    background: #F9FAFB;
}

/* ---- Shared page header ---- */
.amai-fb-wrap {
    margin: 0;
    padding: 0 20px 40px;
    font-family: 'DM Sans', sans-serif;
}

.amai-page-header {
    padding: 32px 0 0;
    margin-bottom: 28px;
}

.amai-page-title {
    font-family: 'Nunito', sans-serif;
    font-size: 28px;
    font-weight: 800;
    color: #D97757;
    margin: 0 0 4px !important;
    line-height: 1.2;
}

.amai-page-subtitle {
    font-size: 14px;
    color: #6B6560;
    margin: 0 0 20px !important;
}

/* ---- Chip tab navigation ---- */

/* ---- Notice bar ---- */
.amai-fb-notice {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 18px;
    border-radius: 12px;
    margin-bottom: 24px;
    font-size: 13px;
    line-height: 1.6;
}

.amai-fb-notice-warn {
    background: #FDF4E3;
    border: 1px solid #E8C97A;
    color: #7A5500;
}

.amai-fb-notice-icon {
    flex-shrink: 0;
    margin-top: 1px;
}

.amai-fb-notice-body strong {
    font-weight: 600;
    display: block;
    margin-bottom: 2px;
}

.amai-fb-notice-link {
    color: #C8870A;
    font-weight: 500;
    text-decoration: underline;
    text-underline-offset: 2px;
    display: inline-block;
    margin-top: 6px;
}

.amai-fb-notice-link:hover {
    color: #8a5c00;
}

/* ====================================================
   CONNECTION SCREEN
   ==================================================== */

.amai-fb-connect-shell {
    max-width: 600px;
    margin: 0 auto;
    background: #fff;
    border: 1.5px solid #E7DDD5;
    border-radius: 20px;
    overflow: hidden;
}

.amai-fb-connect-hero {
    padding: 48px 40px 36px;
    text-align: center;
    border-bottom: 1px solid #F0EBE6;
}

.amai-fb-connect-icon {
    margin-bottom: 20px;
}

.amai-fb-connect-heading {
    font-family: 'Nunito', sans-serif;
    font-size: 22px;
    font-weight: 800;
    color: #1A1614;
    margin: 0 0 10px !important;
    line-height: 1.3;
}

.amai-fb-connect-subheading {
    font-size: 14px;
    color: #6B6560;
    line-height: 1.6;
    margin: 0 !important;
    max-width: 420px;
    margin-left: auto !important;
    margin-right: auto !important;
}

/* ---- Steps ---- */
.amai-fb-connect-steps {
    padding: 32px 40px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    border-bottom: 1px solid #F0EBE6;
}

.amai-fb-connect-step {
    display: flex;
    align-items: flex-start;
    gap: 14px;
}

.amai-fb-step-num {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #FDF6F2;
    border: 1.5px solid #E8C5B0;
    color: #D97757;
    font-size: 12px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 1px;
}

.amai-fb-step-title {
    font-size: 13px;
    font-weight: 600;
    color: #1A1614;
    margin-bottom: 2px;
}

.amai-fb-step-desc {
    font-size: 12px;
    color: #6B6560;
    line-height: 1.55;
}

/* ---- Connect button ---- */
.amai-fb-connect-action {
    padding: 32px 40px;
    text-align: center;
    border-bottom: 1px solid #F0EBE6;
}

.amai-fb-connect-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 13px 28px;
    background: #1877F2;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    border-radius: 10px;
    text-decoration: none;
    transition: opacity 0.15s;
    letter-spacing: 0.01em;
}

.amai-fb-connect-btn:hover {
    opacity: 0.88;
    color: #fff;
}

.amai-fb-connect-fine {
    font-size: 11px;
    color: #9B958F;
    margin: 10px 0 0 !important;
}

/* ---- Help block ---- */
.amai-fb-help-block {
    padding: 24px 40px;
    background: #FAFAF9;
}

.amai-fb-help-heading {
    font-size: 13px;
    font-weight: 600;
    color: #1A1614;
    margin-bottom: 4px;
}

.amai-fb-help-body {
    font-size: 12px;
    color: #6B6560;
    line-height: 1.55;
    margin-bottom: 8px;
}

.amai-fb-help-link {
    font-size: 12px;
    color: #D97757;
    font-weight: 500;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.amai-fb-help-link:hover {
    color: #b85e3a;
}

/* ====================================================
   PAGE PICKER
   ==================================================== */

.amai-fb-picker-shell {
    max-width: 640px;
    margin: 0 auto;
    background: #fff;
    border: 1.5px solid #E7DDD5;
    border-radius: 20px;
    overflow: hidden;
}

.amai-fb-picker-header {
    padding: 36px 36px 24px;
    border-bottom: 1px solid #F0EBE6;
}

.amai-fb-picker-heading {
    font-family: 'Nunito', sans-serif;
    font-size: 20px;
    font-weight: 800;
    color: #1A1614;
    margin: 0 0 6px !important;
}

.amai-fb-picker-sub {
    font-size: 13px;
    color: #6B6560;
    line-height: 1.55;
    margin: 0 !important;
}

/* ---- Page cards ---- */
.amai-fb-pages-list {
    padding: 20px 24px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.amai-fb-page-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    border: 1.5px solid #E7DDD5;
    border-radius: 14px;
    cursor: pointer;
    transition: all 0.15s;
    background: #fff;
    user-select: none;
}

.amai-fb-page-card:hover {
    border-color: #E8C5B0;
    background: #FDF6F2;
}

.amai-fb-page-card.selected {
    border-color: #D97757;
    background: #FDF6F2;
}

.amai-fb-page-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    border: 2px solid #1877F2;
}

.amai-fb-page-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.amai-fb-page-initials {
    width: 100%;
    height: 100%;
    background: #E7F0FE;
    color: #1877F2;
    font-size: 16px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}

.amai-fb-page-info {
    flex: 1;
    min-width: 0;
}

.amai-fb-page-name {
    font-size: 14px;
    font-weight: 600;
    color: #1A1614;
    margin-bottom: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.amai-fb-page-meta {
    font-size: 12px;
    color: #6B6560;
}

.amai-fb-page-meta-dot {
    margin: 0 4px;
}

.amai-fb-page-check {
    flex-shrink: 0;
}

.amai-fb-page-card.selected .amai-fb-page-check svg circle {
    stroke: #D97757;
    fill: #D97757;
}

/* ---- Picker footer ---- */
.amai-fb-picker-footer {
    padding: 20px 36px;
    border-top: 1px solid #F0EBE6;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #FAFAF9;
}

.amai-fb-back-link {
    font-size: 13px;
    color: #6B6560;
    text-decoration: none;
}

.amai-fb-back-link:hover {
    color: #D97757;
}

.amai-fb-select-btn {
    padding: 10px 22px;
    background: #D97757;
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: opacity 0.15s;
}

.amai-fb-select-btn:hover:not(:disabled) {
    opacity: 0.88;
}

.amai-fb-select-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}