/* ==========================================================================
   TagGator Admin Styles
   Uses WordPress native admin design system — no external framework.
   ========================================================================== */

.taggator-wrap {
    max-width: 1100px;
}

.taggator-panel {
    background: #fff;
    border: 1px solid #c3c4c7;
    border-radius: 3px;
    margin-bottom: 20px;
}

.taggator-panel__header {
    border-bottom: 1px solid #c3c4c7;
    padding: 12px 16px;
    font-size: 14px;
    font-weight: 600;
    color: #1d2327;
}

.taggator-panel__body {
    padding: 16px;
}

/* ── Pro Upsell Panel ─────────────────────────────────────── */

.taggator-upsell-panel {
    border-color: #b8860b;
}

.taggator-upsell-header {
    background: #fef9e7;
    border-bottom-color: #b8860b;
    color: #7a5c00;
}

.taggator-upsell-body {
    background: #fffef5;
}

.taggator-upsell-columns {
    display: flex;
    align-items: flex-start;
    gap: 24px;
    flex-wrap: wrap;
}

.taggator-upsell-features {
    list-style: none;
    margin: 0;
    padding: 0;
    flex: 1;
}

.taggator-upsell-features li {
    padding: 4px 0 4px 22px;
    position: relative;
    font-size: 13px;
    color: #1d2327;
}

.taggator-upsell-features li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #b8860b;
    font-weight: 700;
}

.taggator-upsell-cta-wrap {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.taggator-upsell-cta.button-primary {
    background: #b8860b;
    border-color: #9a700a;
    color: #fff;
    text-decoration: none;
}

.taggator-upsell-cta.button-primary:hover,
.taggator-upsell-cta.button-primary:focus {
    background: #9a700a;
    border-color: #7a5c00;
    color: #fff;
}

/* ── Pro Feature Badge ────────────────────────────────────── */

.taggator-pro-badge {
    display: inline-block;
    font-size: 10px;
    font-weight: 600;
    line-height: 1;
    padding: 3px 7px;
    border-radius: 10px;
    background: #fef9e7;
    color: #7a5c00;
    border: 1px solid #b8860b;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    vertical-align: middle;
    margin-left: 6px;
}

.taggator-pro-row {
    align-items: center;
}

.taggator-pro-disabled-wrap {
    opacity: 0.55;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.taggator-pro-section {
    margin-bottom: 20px;
}

.taggator-pro-section-title {
    font-size: 13px;
    margin-bottom: 8px;
}

/* ── Tag List Textarea ────────────────────────────────────── */

.taggator-textarea-wrap {
    margin-bottom: 16px;
}

.taggator-textarea-wrap textarea {
    font-family: monospace;
    font-size: 13px;
    line-height: 1.6;
    border: 1px solid #8c8f94;
    border-radius: 3px;
    width: 100%;
    box-sizing: border-box;
    resize: vertical;
}

.taggator-textarea-wrap textarea:focus {
    border-color: #2271b1;
    box-shadow: 0 0 0 1px #2271b1;
    outline: none;
}

/* ── Option Rows ──────────────────────────────────────────── */

.taggator-option-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
    font-size: 13px;
    color: #1d2327;
}

.taggator-option-row input[type="checkbox"] {
    margin: 0;
}

.taggator-number-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
    font-size: 13px;
    color: #1d2327;
}

.taggator-number-row input[type="number"] {
    width: 70px;
}

/* ── Post Type Table ──────────────────────────────────────── */

.taggator-cpt-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
    margin-bottom: 16px;
}

.taggator-cpt-table th {
    text-align: left;
    padding: 8px 10px;
    background: #f6f7f7;
    border-bottom: 1px solid #c3c4c7;
    font-weight: 600;
}

.taggator-cpt-table td {
    padding: 8px 10px;
    border-bottom: 1px solid #f0f0f1;
    vertical-align: middle;
}

/* ── Action Buttons ───────────────────────────────────────── */

.taggator-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 16px;
}

#taggator-batch-status {
    font-size: 13px;
    color: #646970;
    font-style: italic;
}

/* ── Notices ──────────────────────────────────────────────── */

.taggator-notice {
    margin: 0 0 12px 0;
}

/* ── Help Example ─────────────────────────────────────────── */

.taggator-help-example {
    background: #f6f7f7;
    border-left: 4px solid #2271b1;
    padding: 10px 14px;
    margin: 12px 0;
    font-family: monospace;
    font-size: 13px;
    line-height: 1.8;
}

/* ── Preview Results Table ────────────────────────────────── */

.taggator-preview-wrap {
    display: none;
    margin-top: 20px;
    border: 1px solid #c3c4c7;
    border-radius: 3px;
}

.taggator-preview-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px;
    background: #f6f7f7;
    border-bottom: 1px solid #c3c4c7;
    font-size: 13px;
}

.taggator-preview-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.taggator-preview-table th {
    text-align: left;
    padding: 8px 12px;
    background: #f6f7f7;
    border-bottom: 1px solid #c3c4c7;
    font-weight: 600;
}

.taggator-preview-table td {
    padding: 7px 12px;
    border-bottom: 1px solid #f0f0f1;
    vertical-align: top;
}

.taggator-preview-table tr:last-child td {
    border-bottom: none;
}

/* ── Meta Box: Tagging History ────────────────────────────── */

.taggator-log-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 12px;
    margin-top: 8px;
}

.taggator-log-table th {
    text-align: left;
    padding: 4px 6px;
    background: #f6f7f7;
    border-bottom: 1px solid #dcdcde;
    font-weight: 600;
}

.taggator-log-table td {
    padding: 4px 6px;
    border-bottom: 1px solid #f0f0f1;
    vertical-align: top;
}

/* ── Exclusions Checklist ─────────────────────────────────── */

.taggator-checklist {
    max-height: 150px;
    overflow-y: auto;
    border: 1px solid #dcdcde;
    border-radius: 3px;
    padding: 6px 10px;
    margin-bottom: 12px;
}

.taggator-checklist label {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 2px 0;
    font-size: 13px;
}