/* ==================================================
   Nuclear Fancy Pants Edition™
   File: /home/ploi/automarketer-ai.com/public/wp-content/plugins/automarketer-ai/assets/css/reputation.css
   Description: Reputation hub page styles - tab switcher and review list UI - NUCLEAR+++
   Last Edited: 2026-05-17
   ================================================== */
@import url('fonts.css');
@import url('tabs.css');

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

/* ── Page wrap ── */
.amai-reputation-wrap {
    font-family: 'DM Sans', sans-serif;
    max-width: 1100px;
    margin: 0 auto;
}

/* ── Page header ── */
.amai-rep-header {
    padding: 24px 0 0;
    margin-bottom: 12px;
    text-align: center;
    font-family: 'DM Sans', -apple-system, sans-serif;
}

.amai-rep-header h1 {
    font-family: 'Nunito', sans-serif !important;
    font-size: 2rem !important;
    font-weight: 800 !important;
    color: #D97757 !important;
    -webkit-text-fill-color: #D97757 !important;
    background: none !important;
    background-image: none !important;
    -webkit-background-clip: unset !important;
    background-clip: unset !important;
    margin: 0 0 6px !important;
    padding: 0 !important;
    line-height: 1.2 !important;
    border: none !important;
    text-shadow: none !important;
    text-align: center !important;
}

.amai-rep-header p {
    font-size: 0.95rem !important;
    color: #78716C !important;
    margin: 0 0 20px !important;
    text-align: center !important;
    font-family: 'DM Sans', -apple-system, sans-serif !important;
}

/* ── Reputation tab switcher ── */
.amai-rep-tabs {
    display: flex;
    gap: 4px;
    border-bottom: 2px solid #E7DDD5;
    margin: 24px 0 0;
}

.amai-rep-tab {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 18px;
    font-family: 'DM Sans', sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: #78716C;
    text-decoration: none;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    transition: color 0.15s, border-color 0.15s;
}

.amai-rep-tab:hover {
    color: #D97757;
}

.amai-rep-tab--active {
    color: #D97757;
    border-bottom-color: #D97757;
}

.amai-rep-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    background: #D97757;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    border-radius: 9px;
    line-height: 1;
}

/* ── Gate (module not active) ── */
.amai-rep-gate {
    background: #fff;
    border: 1.5px solid #E7DDD5;
    border-radius: 16px;
    padding: 40px;
    text-align: center;
    margin-top: 24px;
}

.amai-rep-gate p {
    font-size: 15px;
    color: #57534E;
    margin: 0 0 16px;
}

.amai-rep-gate-btn {
    display: inline-block;
    background: #D97757;
    color: #fff;
    font-family: 'DM Sans', sans-serif;
    font-size: 14px;
    font-weight: 600;
    padding: 10px 22px;
    border-radius: 8px;
    text-decoration: none;
    transition: opacity 0.15s;
}

.amai-rep-gate-btn:hover {
    opacity: 0.88;
    color: #fff;
}

/* ── Settings bar ── */
.amai-rev-settings-bar {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    padding: 16px 0 12px;
    border-bottom: 1px solid #F0E8E3;
    margin-bottom: 16px;
}

.amai-rev-mode-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.amai-rev-mode-label {
    font-size: 13px;
    font-weight: 600;
    color: #57534E;
}

.amai-rev-select {
    font-family: 'DM Sans', sans-serif;
    font-size: 13px;
    color: #1C1917;
    border: 1.5px solid #E7DDD5;
    border-radius: 8px;
    padding: 6px 10px;
    background: #fff;
    cursor: pointer;
}

.amai-rev-btn-save {
    background: #D97757;
    color: #fff;
    font-family: 'DM Sans', sans-serif;
    font-size: 13px;
    font-weight: 600;
    border: none;
    border-radius: 8px;
    padding: 7px 16px;
    cursor: pointer;
    transition: opacity 0.15s;
}

.amai-rev-btn-save:hover {
    opacity: 0.88;
}

.amai-rev-settings-msg {
    font-size: 13px;
    color: #57534E;
}

/* ── Notice ── */
.amai-rev-notice {
    font-size: 13px;
    padding: 8px 14px;
    border-radius: 8px;
}

.amai-rev-notice--warn {
    background: #FEF3C7;
    color: #92400E;
    border: 1px solid #FDE68A;
}

.amai-rev-notice--warn a {
    color: #92400E;
    font-weight: 600;
}

/* ── Filters ── */
.amai-rev-filters {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    margin-bottom: 16px;
}

.amai-rev-filter {
    font-size: 13px;
    font-weight: 500;
    color: #78716C;
    text-decoration: none;
    padding: 5px 12px;
    border-radius: 20px;
    border: 1.5px solid transparent;
    transition: color 0.15s, border-color 0.15s, background 0.15s;
}

.amai-rev-filter:hover {
    color: #D97757;
    background: #FDF5F2;
}

.amai-rev-filter--active {
    color: #D97757;
    border-color: #D97757;
    background: #FDF5F2;
}

.amai-rev-filter-sep {
    color: #D6CCC7;
    font-size: 13px;
    padding: 0 2px;
}

.amai-rev-filter--star {
    font-size: 12px;
    letter-spacing: 1px;
    color: #F59E0B;
}

.amai-rev-filter--star.amai-rev-filter--active {
    border-color: #F59E0B;
    background: #FFFBEB;
    color: #F59E0B;
}

/* ── Empty state ── */
.amai-rev-empty {
    background: #fff;
    border: 1.5px solid #E7DDD5;
    border-radius: 16px;
    padding: 48px 40px;
    text-align: center;
    color: #78716C;
    font-size: 15px;
}

.amai-rev-empty p {
    margin: 0;
}

/* ── Review list ── */
.amai-rev-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* ── Review row ── */
.amai-rev-row {
    background: #fff;
    border: 1.5px solid #E7DDD5;
    border-radius: 14px;
    padding: 20px 22px;
    transition: border-color 0.15s;
}

.amai-rev-row--new {
    border-left: 3px solid #D97757;
}

.amai-rev-row--pending_review {
    border-left: 3px solid #F59E0B;
}

.amai-rev-row--replied {
    border-left: 3px solid #22C55E;
    opacity: 0.85;
}

.amai-rev-row--ignored {
    opacity: 0.5;
}

/* ── Row top ── */
.amai-rev-row-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
    gap: 12px;
}

.amai-rev-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.amai-rev-stars {
    font-size: 16px;
    color: #F59E0B;
    letter-spacing: 1px;
}

.amai-rev-author {
    font-size: 14px;
    font-weight: 600;
    color: #1C1917;
}

.amai-rev-platform {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 2px 8px;
    border-radius: 10px;
    background: #F5F0ED;
    color: #78716C;
}

.amai-rev-platform--google  { background: #EBF3FF; color: #1A73E8; }
.amai-rev-platform--facebook { background: #EBF0FF; color: #1877F2; }
.amai-rev-platform--yelp    { background: #FFF0ED; color: #D32323; }

.amai-rev-date {
    font-size: 12px;
    color: #A8A29E;
}

/* ── Status badge ── */
.amai-rev-status {
    font-size: 12px;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 10px;
    white-space: nowrap;
}

.amai-rev-status--new            { background: #FDF5F2; color: #D97757; }
.amai-rev-status--pending_review { background: #FFFBEB; color: #D97706; }
.amai-rev-status--replied        { background: #F0FDF4; color: #16A34A; }
.amai-rev-status--ignored        { background: #F5F5F4; color: #A8A29E; }

/* ── Review comment text ── */
.amai-rev-comment {
    font-size: 14px;
    color: #44403C;
    line-height: 1.6;
    margin-bottom: 14px;
}

.amai-rev-comment--no-text {
    color: #A8A29E;
}

/* ── Sent reply ── */
.amai-rev-reply-sent {
    font-size: 13px;
    color: #57534E;
    background: #F0FDF4;
    border: 1px solid #BBF7D0;
    border-radius: 8px;
    padding: 10px 14px;
    line-height: 1.5;
}

.amai-rev-reply-label {
    font-weight: 600;
    color: #16A34A;
    margin-right: 6px;
}

/* ── Actions ── */
.amai-rev-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.amai-rev-textarea {
    width: 100%;
    font-family: 'DM Sans', sans-serif;
    font-size: 13px;
    color: #1C1917;
    border: 1.5px solid #E7DDD5;
    border-radius: 8px;
    padding: 10px 12px;
    resize: vertical;
    box-sizing: border-box;
    transition: border-color 0.15s;
}

.amai-rev-textarea:focus {
    border-color: #D97757;
    outline: none;
}

.amai-rev-btn-row {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.amai-rev-btn {
    font-family: 'DM Sans', sans-serif;
    font-size: 13px;
    font-weight: 600;
    padding: 7px 16px;
    border-radius: 8px;
    cursor: pointer;
    border: none;
    transition: opacity 0.15s;
}

.amai-rev-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.amai-rev-btn--draft {
    background: #F5F0ED;
    color: #D97757;
    border: 1.5px solid #D97757;
}

.amai-rev-btn--draft:hover:not(:disabled) {
    background: #FDF5F2;
}

.amai-rev-btn--post {
    background: #D97757;
    color: #fff;
}

.amai-rev-btn--post:hover:not(:disabled) {
    opacity: 0.88;
}

.amai-rev-btn--ignore {
    background: transparent;
    color: #A8A29E;
    border: 1.5px solid #E7DDD5;
}

.amai-rev-btn--ignore:hover:not(:disabled) {
    color: #78716C;
    border-color: #C9B9B0;
}

.amai-rev-row-msg {
    font-size: 13px;
    color: #D97757;
    min-height: 16px;
}
/* ── Copy & Mark Replied button (Facebook) ── */
.amai-rev-btn--copy {
    background: #1877F2;
    color: #fff;
}

.amai-rev-btn--copy:hover:not(:disabled) {
    opacity: 0.88;
}

/* ── Facebook reply note ── */
.amai-rev-fb-note {
    margin-top: 6px;
    font-size: 12px;
    color: #1877F2;
    font-style: italic;
}

/* ── Top nav tabs (shared partial) ── */

/* Sentiment dot -- comment inbox */
.amai-sentiment-dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    margin-top: 4px;
    flex-shrink: 0;
}
.amai-sentiment-dot--positive { background: #22C55E; }
.amai-sentiment-dot--neutral  { background: #A8A29E; }
.amai-sentiment-dot--negative { background: #EF4444; }
