/* ==================================================
   Nuclear Fancy Pants Edition™
   File: /home/ploi/automarketer-ai.com/public/wp-content/plugins/automarketer-ai/assets/css/comments.css
   Description: Comment inbox page styles - NUCLEAR+++
   Last Edited: 2026-05-15
   ================================================== */

@import url('fonts.css');

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

/* ── Wrap ── */
.amai-comments-wrap {
    margin-top: 0;
    padding-top: 0;
    font-family: 'DM Sans', sans-serif;
}

/* ── Header ── */
.amai-comments-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    padding: 28px 0 20px;
    gap: 16px;
}

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

.amai-comments-subtitle {
    font-size: 14px;
    color: #78716C;
    margin: 0;
    line-height: 1.5;
}

.amai-comments-settings-btn {
    background: transparent;
    border: 1.5px solid #D97757;
    color: #D97757;
    font-family: 'DM Sans', sans-serif;
    font-size: 13px;
    font-weight: 600;
    padding: 8px 18px;
    border-radius: 8px;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.15s, color 0.15s;
}

.amai-comments-settings-btn:hover {
    background: #D97757;
    color: #fff;
}

/* ── Gate notice ── */
.amai-comments-gate-notice {
    display: flex;
    align-items: center;
    gap: 14px;
    background: #FFF7F4;
    border: 1.5px solid #FBDDD3;
    border-radius: 12px;
    padding: 16px 20px;
    margin-bottom: 24px;
    font-size: 14px;
    color: #44403C;
    line-height: 1.5;
}

.amai-comments-gate-icon {
    flex-shrink: 0;
}

.amai-comments-upgrade-btn {
    flex-shrink: 0;
    background: #D97757;
    color: #fff;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    padding: 8px 16px;
    border-radius: 8px;
    margin-left: auto;
    white-space: nowrap;
    transition: background 0.15s;
}

.amai-comments-upgrade-btn:hover {
    background: #C2623D;
    color: #fff;
}

/* ── Channel filter pills ── */
.amai-comments-channel-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 0;
    flex-wrap: wrap;
}

.amai-comments-channel-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 99px;
    background: #fff;
    border: 1.5px solid #E7DDD5;
    font-size: 13px;
    font-weight: 500;
    color: #57534E;
    text-decoration: none;
    transition: border-color 0.15s, color 0.15s;
    cursor: pointer;
}

.amai-comments-channel-pill.active {
    border-color: #D97757;
    color: #D97757;
    background: #FFF7F4;
    font-weight: 600;
}

.amai-comments-channel-pill:hover:not(.active) {
    border-color: #C2A99A;
    color: #44403C;
}

/* ── Status tabs ── */
.amai-comments-status-bar {
    display: flex;
    gap: 0;
    border-bottom: 2px solid #E7DDD5;
    margin: 16px 0 0;
}

.amai-comments-status-tab {
    font-size: 13px;
    font-weight: 500;
    color: #78716C;
    text-decoration: none;
    padding: 10px 16px;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    transition: color 0.15s, border-color 0.15s;
}

.amai-comments-status-tab.active {
    color: #D97757;
    border-bottom-color: #D97757;
    font-weight: 600;
}

.amai-comments-status-tab:hover:not(.active) {
    color: #44403C;
}

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

/* ── Inbox ── */
.amai-comments-inbox {
    background: #fff;
    border: 1.5px solid #E7DDD5;
    border-radius: 16px;
    margin-top: 16px;
    overflow: hidden;
}

.amai-comments-empty {
    padding: 48px 32px;
    text-align: center;
    color: #78716C;
    font-size: 14px;
}

/* ── Comment row ── */
.amai-comment-row {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 18px 20px;
    border-bottom: 1px solid #F5F0EC;
    transition: background 0.1s;
}

.amai-comment-row:last-child {
    border-bottom: none;
}

.amai-comment-row:hover {
    background: #FDFAF8;
}

.amai-comment-row.unread {
    background: #FFFBF9;
}

.amai-comment-row.followup {
    border-left: 3px solid #F59E0B;
}

/* ── Row left column ── */
.amai-comment-row-left {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding-top: 3px;
    flex-shrink: 0;
}

.amai-comment-channel-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
}

.amai-comment-unread-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #D97757;
    flex-shrink: 0;
}

/* ── Row body ── */
.amai-comment-row-body {
    flex: 1;
    min-width: 0;
}

.amai-comment-row-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 6px;
}

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

.amai-comment-channel-label {
    font-size: 12px;
    color: #78716C;
    background: #F5F0EC;
    padding: 1px 8px;
    border-radius: 99px;
}

.amai-comment-followup-pill {
    font-size: 11px;
    font-weight: 600;
    color: #92400E;
    background: #FEF3C7;
    border: 1px solid #FDE68A;
    padding: 1px 8px;
    border-radius: 99px;
}

.amai-comment-time {
    font-size: 12px;
    color: #A8A29E;
    margin-left: auto;
}

.amai-comment-content {
    font-size: 14px;
    color: #44403C;
    line-height: 1.55;
    margin-bottom: 10px;
}

/* ── Sent reply ── */
.amai-comment-sent-reply {
    font-size: 13px;
    color: #57534E;
    background: #F5F0EC;
    border-radius: 8px;
    padding: 10px 14px;
    line-height: 1.5;
    margin-top: 4px;
}

.amai-comment-sent-label {
    font-weight: 600;
    display: block;
    margin-bottom: 4px;
    color: #78716C;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

/* ── Draft block ── */
.amai-comment-draft-block {
    background: #FFF7F4;
    border: 1.5px solid #FBDDD3;
    border-radius: 10px;
    padding: 12px 14px;
    margin-top: 4px;
}

.amai-comment-draft-label {
    font-size: 12px;
    font-weight: 600;
    color: #D97757;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

/* ── Textarea ── */
.amai-comment-reply-textarea {
    width: 100%;
    box-sizing: border-box;
    border: 1.5px solid #E7DDD5;
    border-radius: 8px;
    padding: 10px 12px;
    font-family: 'DM Sans', sans-serif;
    font-size: 14px;
    color: #1C1917;
    line-height: 1.5;
    resize: vertical;
    background: #fff;
    transition: border-color 0.15s;
    margin-bottom: 10px;
}

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

/* ── Action buttons ── */
.amai-comment-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 4px;
}

.amai-comment-draft-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.amai-comment-reply-toggle,
.amai-comment-ai-draft-btn,
.amai-comment-send-btn {
    font-family: 'DM Sans', sans-serif;
    font-size: 13px;
    font-weight: 600;
    padding: 6px 14px;
    border-radius: 7px;
    cursor: pointer;
    border: none;
    transition: background 0.15s, opacity 0.15s;
}

.amai-comment-reply-toggle {
    background: #D97757;
    color: #fff;
}

.amai-comment-reply-toggle:hover {
    background: #C2623D;
}

.amai-comment-ai-draft-btn {
    background: #F5F0EC;
    color: #57534E;
    border: 1.5px solid #E7DDD5;
}

.amai-comment-ai-draft-btn:hover {
    background: #EBE3DC;
}

.amai-comment-send-btn {
    background: #D97757;
    color: #fff;
}

.amai-comment-send-btn:hover {
    background: #C2623D;
}

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

.amai-comment-ignore-btn,
.amai-comment-cancel-reply {
    font-family: 'DM Sans', sans-serif;
    font-size: 13px;
    color: #A8A29E;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px 8px;
    transition: color 0.15s;
}

.amai-comment-ignore-btn:hover,
.amai-comment-cancel-reply:hover {
    color: #57534E;
}

.amai-comment-manual-reply-block {
    width: 100%;
    margin-top: 10px;
}

/* ── Right column ── */
.amai-comment-row-right {
    flex-shrink: 0;
    padding-top: 2px;
}

/* ── Status pills ── */
.amai-comment-status-pill {
    display: inline-block;
    font-size: 11px;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 99px;
    white-space: nowrap;
}

.amai-comment-status-pill--new {
    background: #DBEAFE;
    color: #1E40AF;
}

.amai-comment-status-pill--pending_review {
    background: #FEF3C7;
    color: #92400E;
}

.amai-comment-status-pill--replied {
    background: #D1FAE5;
    color: #065F46;
}

.amai-comment-status-pill--ignored {
    background: #F5F0EC;
    color: #78716C;
}

/* ── Pagination ── */
.amai-comments-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 20px;
    border-top: 1px solid #F5F0EC;
}

.amai-comments-page-btn {
    font-size: 13px;
    font-weight: 600;
    color: #D97757;
    text-decoration: none;
    padding: 6px 14px;
    border: 1.5px solid #D97757;
    border-radius: 7px;
    transition: background 0.15s, color 0.15s;
}

.amai-comments-page-btn:hover {
    background: #D97757;
    color: #fff;
}

.amai-comments-page-info {
    font-size: 13px;
    color: #78716C;
}

/* ── Settings modal ── */
.amai-comments-settings-modal {
    position: fixed;
    inset: 0;
    z-index: 99999;
}

.amai-comments-settings-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(28, 25, 23, 0.45);
    backdrop-filter: blur(2px);
}

.amai-comments-settings-panel {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.18);
    width: 520px;
    max-width: calc(100vw - 40px);
    max-height: 80vh;
    display: flex;
    flex-direction: column;
    animation: amai-modal-spring 0.22s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes amai-modal-spring {
    from { opacity: 0; transform: translate(-50%, -48%) scale(0.96); }
    to   { opacity: 1; transform: translate(-50%, -50%) scale(1); }
}

.amai-comments-settings-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 22px 24px 16px;
    border-bottom: 1px solid #F5F0EC;
    flex-shrink: 0;
}

.amai-comments-settings-title {
    font-family: 'Nunito', sans-serif;
    font-weight: 800;
    font-size: 18px;
    color: #1C1917;
    margin: 0;
}

.amai-comments-settings-close {
    background: none;
    border: none;
    cursor: pointer;
    color: #A8A29E;
    padding: 4px;
    display: flex;
    align-items: center;
    transition: color 0.15s;
}

.amai-comments-settings-close:hover {
    color: #57534E;
}

.amai-comments-settings-body {
    padding: 20px 24px;
    overflow-y: auto;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

/* ── Channel settings block ── */
.amai-channel-settings-block {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding-bottom: 24px;
    border-bottom: 1px solid #F5F0EC;
}

.amai-channel-settings-block:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.amai-channel-settings-name {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: 'Nunito', sans-serif;
    font-weight: 700;
    font-size: 14px;
    color: #1C1917;
}

.amai-channel-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    display: inline-block;
    flex-shrink: 0;
}

.amai-settings-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.amai-settings-label {
    font-size: 12px;
    font-weight: 600;
    color: #57534E;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.amai-settings-select {
    font-family: 'DM Sans', sans-serif;
    font-size: 14px;
    color: #1C1917;
    border: 1.5px solid #E7DDD5;
    border-radius: 8px;
    padding: 8px 12px;
    background: #fff;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L6 6L11 1' stroke='%2378716C' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 32px;
    cursor: pointer;
    transition: border-color 0.15s;
}

.amai-settings-select:focus {
    outline: none;
    border-color: #D97757;
}

.amai-settings-hint {
    font-size: 12px;
    color: #78716C;
    margin: 0;
    line-height: 1.5;
    background: #FFF7F4;
    border-left: 3px solid #D97757;
    padding: 6px 10px;
    border-radius: 0 6px 6px 0;
}

/* ── Settings footer ── */
.amai-comments-settings-footer {
    padding: 16px 24px;
    border-top: 1px solid #F5F0EC;
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.amai-comments-save-settings-btn {
    font-family: 'DM Sans', sans-serif;
    font-size: 14px;
    font-weight: 600;
    background: #D97757;
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 10px 22px;
    cursor: pointer;
    transition: background 0.15s;
}

.amai-comments-save-settings-btn:hover {
    background: #C2623D;
}

.amai-comments-settings-saved {
    font-size: 13px;
    color: #059669;
    font-weight: 600;
}