/* ==================================================
   Nuclear Fancy Pants Edition™ -- NUCLEAR+++
   File: /assets/css/results.css
   Description: Results proof dashboard page styles - NUCLEAR+++
   Last Edited: 2026-05-19
   ================================================== */

@import url('fonts.css');
@import url('tabs.css');

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

.amai-results-wrap {
    max-width: 1100px;
    margin: 0 auto !important;
    padding: 0 24px 60px;
    font-family: 'DM Sans', sans-serif;
}

/* ── Page header ─────────────────────────────────── */
.amai-results-header {
    text-align: center;
    padding: 36px 0 24px;
}

.amai-results-title {
    font-family: 'Nunito', sans-serif;
    font-size: 32px;
    font-weight: 800;
    color: #1C1917;
    margin: 0 0 8px;
    line-height: 1.2;
}

.amai-results-subtitle {
    font-size: 15px;
    color: #78716C;
    margin: 0;
}

/* ── Grid layout ─────────────────────────────────── */
.amai-results-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 8px;
}

/* ── Cards ───────────────────────────────────────── */
.amai-results-card {
    background: #FFFFFF;
    border: 1.5px solid #E7DDD5;
    border-radius: 16px;
    padding: 28px 28px 24px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
}

.amai-results-card--full {
    grid-column: 1 / -1;
}

.amai-results-card-header {
    margin-bottom: 20px;
}

.amai-results-eyebrow {
    display: block;
    font-family: 'Nunito', sans-serif;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #D97757;
    margin-bottom: 4px;
}

.amai-results-card-title {
    font-family: 'Nunito', sans-serif;
    font-size: 18px;
    font-weight: 800;
    color: #1C1917;
    margin: 0;
    line-height: 1.3;
}

/* ── Stat row ────────────────────────────────────── */
.amai-results-stat-row {
    display: flex;
    gap: 32px;
    margin-bottom: 16px;
}

.amai-results-stat {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.amai-results-stat-number {
    font-family: 'Nunito', sans-serif;
    font-size: 36px;
    font-weight: 900;
    color: #1C1917;
    line-height: 1;
}

.amai-results-stat-label {
    font-size: 13px;
    color: #78716C;
}

.amai-results-stat-delta {
    font-size: 13px;
    font-weight: 600;
    margin-top: 2px;
}

.amai-results-delta--up {
    color: #16A34A;
}

.amai-results-delta--down {
    color: #DC2626;
}

/* ── Top posts list ──────────────────────────────── */
.amai-results-top-posts {
    margin-top: 16px;
    border-top: 1.5px solid #F3EDE9;
    padding-top: 16px;
}

.amai-results-top-label {
    font-size: 12px;
    font-weight: 600;
    color: #A8A29E;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 10px;
}

.amai-results-post-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.amai-results-post-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    font-size: 14px;
}

.amai-results-post-title {
    color: #1C1917;
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.amai-results-post-sessions {
    color: #D97757;
    font-weight: 600;
    white-space: nowrap;
    font-size: 13px;
}

/* ── Proof line ──────────────────────────────────── */
.amai-results-proof-line {
    font-size: 13px;
    color: #78716C;
    font-style: italic;
    margin-top: 4px;
}

/* ── Channel pills ───────────────────────────────── */
.amai-results-channel-pills {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 12px;
}

.amai-results-pill {
    background: #FEF3EE;
    color: #D97757;
    border: 1px solid #F5C9B3;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    padding: 3px 10px;
}

/* ── Best post ───────────────────────────────────── */
.amai-results-best-post {
    margin-top: 16px;
    border-top: 1.5px solid #F3EDE9;
    padding-top: 16px;
}

.amai-results-best-label {
    font-size: 12px;
    font-weight: 600;
    color: #A8A29E;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 6px;
}

.amai-results-best-channel {
    font-size: 12px;
    font-weight: 700;
    color: #D97757;
    margin-bottom: 4px;
}

.amai-results-best-content {
    font-size: 14px;
    color: #44403C;
    line-height: 1.5;
    margin-bottom: 8px;
}

.amai-results-best-stats {
    display: flex;
    gap: 12px;
    font-size: 13px;
    color: #78716C;
}

.amai-results-best-stats span {
    font-weight: 600;
    color: #44403C;
}

/* ── Reviews ─────────────────────────────────────── */
.amai-results-reviews {
    margin-top: 16px;
    border-top: 1.5px solid #F3EDE9;
    padding-top: 16px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.amai-results-review-item {
    font-size: 14px;
}

.amai-results-review-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 4px;
}

.amai-results-reviewer {
    font-weight: 600;
    color: #1C1917;
    font-size: 13px;
}

.amai-results-review-platform {
    font-size: 11px;
    font-weight: 600;
    color: #A8A29E;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.amai-results-review-text {
    color: #44403C;
    font-style: italic;
    line-height: 1.5;
    font-size: 13px;
}

/* ── Stars ───────────────────────────────────────── */
.amai-results-stars {
    display: inline-flex;
    gap: 2px;
    margin-top: 4px;
}

.amai-star--full,
.amai-star--half {
    color: #F59E0B;
    font-size: 16px;
}

.amai-star--empty {
    color: #D6D3D1;
    font-size: 16px;
}

/* ── Empty states ────────────────────────────────── */
.amai-results-empty {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    padding: 8px 0;
}

.amai-results-empty-text {
    font-size: 14px;
    color: #78716C;
    line-height: 1.6;
    margin: 0;
}

.amai-results-cta {
    display: inline-block;
    background: #D97757;
    color: #FFFFFF;
    font-family: 'Nunito', sans-serif;
    font-size: 13px;
    font-weight: 700;
    padding: 8px 18px;
    border-radius: 8px;
    text-decoration: none;
    transition: background 0.15s ease;
}

.amai-results-cta:hover {
    background: #C4623E;
    color: #FFFFFF;
}

/* ── Business type switcher ──────────────────────── */
.amai-results-bt-switcher {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.amai-results-bt-label {
    font-size: 12px;
    font-weight: 600;
    color: #A8A29E;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    white-space: nowrap;
}

.amai-results-bt-buttons {
    display: flex;
    gap: 4px;
}

.amai-results-bt-btn {
    background: #F5F5F4;
    border: 1.5px solid #E7DDD5;
    border-radius: 6px;
    color: #78716C;
    font-family: 'DM Sans', sans-serif;
    font-size: 12px;
    font-weight: 600;
    padding: 4px 12px;
    cursor: pointer;
    transition: all 0.15s ease;
}

.amai-results-bt-btn:hover {
    border-color: #D97757;
    color: #D97757;
}

.amai-results-bt-btn--active {
    background: #D97757;
    border-color: #D97757;
    color: #FFFFFF;
}

.amai-results-bt-reset {
    background: none;
    border: none;
    color: #A8A29E;
    font-family: 'DM Sans', sans-serif;
    font-size: 12px;
    cursor: pointer;
    padding: 4px 8px;
    text-decoration: underline;
    transition: color 0.15s ease;
}

.amai-results-bt-reset:hover {
    color: #D97757;
}

.amai-results-bt-reset--hidden {
    display: none;
}

.amai-results-bt-saving {
    font-size: 12px;
    color: #A8A29E;
    opacity: 0;
    transition: opacity 0.15s ease;
}

/* ── Revenue card ────────────────────────────────── */
.amai-results-card--revenue .amai-results-stat-number {
    font-size: 44px;
}

.amai-results-stat-divider {
    width: 1.5px;
    background: #E7DDD5;
    align-self: stretch;
    margin: 0 8px;
}

.amai-results-stat-meta {
    font-size: 12px;
    color: #A8A29E;
    margin-top: 2px;
}

.amai-results-loading {
    font-size: 18px;
    color: #A8A29E;
    font-weight: 400;
}

/* ── Responsive ──────────────────────────────────── */
@media (max-width: 768px) {
    .amai-results-grid {
        grid-template-columns: 1fr;
    }

    .amai-results-card--full {
        grid-column: 1;
    }

    .amai-results-stat-number {
        font-size: 28px;
    }
}
/* Sentiment card */
.amai-sentiment-positive { color: #22C55E; }
.amai-sentiment-neutral  { color: #A8A29E; }
.amai-sentiment-negative { color: #EF4444; }

.amai-results-sentiment-bar {
    display: flex;
    height: 8px;
    border-radius: 4px;
    overflow: hidden;
    background: #F5F5F4;
    margin: 16px 0 12px;
}
.amai-results-sbar-seg { height: 100%; transition: width .3s ease; }
.amai-results-sbar-seg--pos { background: #22C55E; }
.amai-results-sbar-seg--neu { background: #D4CFC9; }
.amai-results-sbar-seg--neg { background: #EF4444; }

/* Review velocity chart */
.amai-results-velocity { margin-top: 20px; }
.amai-results-velocity-label { font-size: 12px; color: #A8A29E; margin-bottom: 10px; }
.amai-results-velocity-chart {
    display: flex;
    align-items: flex-end;
    gap: 4px;
    height: 64px;
}
.amai-rv-bar-wrap {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    height: 100%;
    gap: 3px;
    cursor: default;
}
.amai-rv-bar {
    width: 100%;
    background: #D97757;
    border-radius: 3px 3px 0 0;
    min-height: 2px;
    transition: background .15s ease;
}
.amai-rv-bar-wrap:hover .amai-rv-bar { background: #C4623D; }
.amai-rv-bar-count { font-size: 10px; color: #A8A29E; line-height: 1; }
