/* =============================================================================
   Antradus AI — Admin Styles
   Ocean Blue palette: #003459 | #007ea7 | #00a8e8 | #e0f4fb
   ============================================================================= */

/* ── Meta Box ─────────────────────────────────────────────────────────────── */

#antradus-wrap * {
    box-sizing: border-box;
}

#antradus-wrap {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 13px;
    color: #1e2d3a;
}

/* ── Two-column layout ────────────────────────────────────────────────────── */

.antradus-two-col {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 0;
    align-items: start;
}

.antradus-col-content {
    padding: 16px 20px 16px 0;
    border-right: 1px solid #d6e4ed;
}

.antradus-col-image {
    padding: 16px 0 16px 20px;
}

@media (max-width: 900px) {
    .antradus-two-col {
        grid-template-columns: 1fr;
    }
    .antradus-col-content {
        padding: 16px 0;
        border-right: none;
        border-bottom: 1px solid #d6e4ed;
    }
    .antradus-col-image {
        padding: 16px 0;
    }
}

/* Header */
.antradus-header {
    background: linear-gradient(135deg, #003459 0%, #007ea7 55%, #00a8e8 100%);
    border-radius: 6px 6px 0 0;
    padding: 13px 18px;
    margin: -12px -12px 16px -12px;
    display: flex;
    align-items: center;
    box-shadow: 0 2px 8px rgba(0, 52, 89, .15);
}

.antradus-header span {
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: .3px;
}

.antradus-header small {
    color: rgba(255, 255, 255, .75);
    font-size: 11px;
    margin-left: auto;
}

/* Fields */
.antradus-field {
    display: flex;
    flex-direction: column;
    gap: 5px;
    margin-bottom: 12px;
}

.antradus-field label {
    font-size: 11px;
    font-weight: 700;
    color: #4a5b6b;
    text-transform: uppercase;
    letter-spacing: .5px;
}

.antradus-label-hint {
    font-weight: 400;
    text-transform: none;
    color: #8a9ba8;
    letter-spacing: 0;
}

.antradus-field input[type="text"],
.antradus-field input[type="url"],
.antradus-field select,
.antradus-field textarea {
    width: 100%;
    padding: 0 10px;
    height: 36px;
    font-size: 13px;
    border: 1px solid #c3d4de;
    border-radius: 4px;
    background: #fff;
    color: #1e2d3a;
    transition: border-color .15s, box-shadow .15s;
    font-family: inherit;
}

.antradus-field textarea {
    height: auto;
    padding: 8px 10px;
    resize: vertical;
}

.antradus-field input[type="url"] {
    font-family: monospace;
    font-size: 12px;
}

.antradus-field input:focus,
.antradus-field select:focus,
.antradus-field textarea:focus {
    border-color: #007ea7;
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 168, 232, .18);
}

.antradus-topic-field {
    margin-bottom: 14px;
}

.antradus-topic-field input {
    height: 40px;
    font-size: 14px;
}

/* Row layouts */
.antradus-row {
    display: flex;
    gap: 12px;
    margin-bottom: 12px;
}

.antradus-row .antradus-field {
    flex: 1;
    margin-bottom: 0;
}

/* Accordions */
.antradus-accordion {
    border: 1px solid #d6e4ed;
    border-radius: 6px;
    margin-bottom: 10px;
    overflow: hidden;
}

.antradus-accordion-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    background: #f5f9fc;
    cursor: pointer;
    user-select: none;
    font-size: 13px;
    font-weight: 600;
    color: #003459;
    transition: background .15s;
}

.antradus-accordion-header:hover {
    background: #e8f3fa;
}

.antradus-accordion-icon {
    font-size: 14px;
}

.antradus-accordion-arrow {
    margin-left: auto;
    display: inline-block;
    font-size: 11px;
    color: #007ea7;
    transition: transform .2s;
    transform: rotate(180deg); /* closed = ▼ */
}

.antradus-accordion.is-open .antradus-accordion-arrow {
    transform: rotate(0deg); /* open = ▲ */
}

.antradus-accordion-body {
    display: none;
    padding: 14px;
    background: #fff;
    border-top: 1px solid #d6e4ed;
}

.antradus-accordion.is-open .antradus-accordion-body {
    display: block;
}

/* URL2 row */
.antradus-url2-input-wrap {
    position: relative;
}

.antradus-url2-input-wrap input {
    padding-right: 36px;
}

.antradus-url-remove {
    position: absolute;
    top: 50%;
    right: 4px;
    transform: translateY(-50%);
    width: 28px;
    height: 28px;
    background: transparent;
    border: none;
    color: #8a9ba8;
    cursor: pointer;
    font-size: 17px;
    border-radius: 4px;
    transition: all .15s;
    line-height: 1;
}

.antradus-url-remove:hover {
    background: #ffe9e9;
    color: #d63638;
}

.antradus-add-url-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 6px 13px;
    font-size: 12px;
    font-weight: 600;
    border: 1.5px dashed #007ea7;
    border-radius: 20px;
    background: #e0f4fb;
    color: #003459;
    cursor: pointer;
    transition: all .15s;
    margin-top: 6px;
}

.antradus-add-url-btn:hover {
    background: #007ea7;
    color: #fff;
    border-style: solid;
}

.antradus-add-url-btn.hidden {
    display: none;
}

/* Hints */
.antradus-hint {
    font-size: 12px;
    color: #007ea7;
    background: #e0f4fb;
    padding: 7px 11px;
    border-radius: 4px;
    border-left: 3px solid #00a8e8;
    margin-top: 8px;
    margin-bottom: 4px;
}

.antradus-merge-hint {
    font-size: 12px;
    color: #003459;
}

/* Topics pills */
.antradus-topics {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 2px;
}

.antradus-topic-btn {
    padding: 5px 14px;
    font-size: 12px;
    font-weight: 500;
    border: 1.5px solid #c3d4de;
    border-radius: 20px;
    background: #fff;
    color: #3c5061;
    cursor: pointer;
    transition: all .15s;
}

.antradus-topic-btn:hover {
    border-color: #007ea7;
    color: #007ea7;
}

.antradus-topic-btn.active {
    background: linear-gradient(135deg, #007ea7, #00a8e8);
    border-color: #007ea7;
    color: #fff;
}

/* Checkboxes */
.antradus-checks {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 14px;
    align-items: center;
}

.antradus-checks label {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 13px;
    color: #3c5061;
    cursor: pointer;
}

.antradus-checks input[type="checkbox"] {
    width: 15px;
    height: 15px;
    accent-color: #007ea7;
    cursor: pointer;
}

/* Mode hint bubble */
#antradus-mode-hint {
    display: none;
    font-size: 12px;
    color: #1e2d3a;
    background: #e0f4fb;
    border: 1px solid #b3d9ed;
    border-radius: 30px;
    padding: 7px 16px;
    margin-bottom: 12px;
    line-height: 1.5;
    box-shadow: 0 1px 4px rgba(0, 126, 167, .12);
}

.antradus-hint-badge {
    display: inline-block;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .5px;
    border-radius: 10px;
    padding: 2px 8px;
    margin-right: 5px;
    vertical-align: middle;
}

.antradus-badge-green { background: #00a32a; color: #fff; }
.antradus-badge-blue  { background: #007ea7; color: #fff; }
.antradus-badge-dark  { background: #003459; color: #fff; }

/* Generate button row */
.antradus-generate-row {
    display: flex;
    gap: 8px;
    align-items: stretch;
}

.antradus-generate-row #antradus-generate-btn {
    flex: 2;
}

.antradus-generate-row .antradus-secondary-btn {
    flex: 1;
    height: auto;
    min-height: 44px;
    line-height: 1.3;
    white-space: normal;
    text-align: center;
}

/* Generate Content button */
#antradus-generate-btn {
    width: 100%;
    height: 44px;
    background: linear-gradient(135deg, #003459 0%, #007ea7 55%, #00a8e8 100%);
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    letter-spacing: .3px;
    transition: opacity .2s, transform .1s;
    box-shadow: 0 2px 6px rgba(0, 126, 167, .3);
}

#antradus-generate-btn:hover  { opacity: .92; }
#antradus-generate-btn:active { transform: translateY(1px); }
#antradus-generate-btn:disabled { opacity: .5; cursor: not-allowed; box-shadow: none; }

/* Generate Image button */
#antradus-image-btn {
    width: 100%;
    height: 38px;
    background: #fff;
    color: #007ea7;
    border: 2px solid #007ea7;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    letter-spacing: .3px;
    transition: all .2s;
    margin-top: 4px;
}

#antradus-image-btn:hover    { background: #007ea7; color: #fff; }
#antradus-image-btn:disabled { opacity: .4; cursor: not-allowed; border-color: #a7aaad; color: #a7aaad; }

/* Status messages */
#antradus-status,
#antradus-image-status {
    font-size: 12px;
    margin-top: 8px;
    min-height: 18px;
    padding: 0 4px;
    color: #4a5b6b;
    border-left: 3px solid transparent;
    transition: all .15s;
}

#antradus-status:not(:empty),
#antradus-image-status:not(:empty) {
    padding: 6px 10px;
    border-radius: 0 4px 4px 0;
}

#antradus-status.error,
#antradus-image-status.error {
    color: #d63638;
    background: #fff5f5;
    border-left-color: #d63638;
}

#antradus-status.success,
#antradus-image-status.success {
    color: #00a32a;
    background: #f0fff4;
    border-left-color: #00a32a;
}

/* Meta output box */
#antradus-meta-output {
    margin-top: 14px;
    padding: 12px 14px;
    background: #f3fafd;
    border: 1px solid #c3d4de;
    border-radius: 6px;
}

#antradus-meta-output h4 {
    margin: 0 0 10px;
    font-size: 11px;
    text-transform: uppercase;
    color: #4a5b6b;
    letter-spacing: .5px;
    display: flex;
    align-items: center;
    gap: 8px;
}

#antradus-rm-hint {
    font-size: 11px;
    font-weight: 600;
    text-transform: none;
    letter-spacing: 0;
    color: #c0392b;
    background: #fdf2f1;
    border: 1px solid #f5c6c2;
    border-radius: 3px;
    padding: 2px 7px;
}

#antradus-meta-output p {
    margin: 0 0 8px;
    font-size: 13px;
    color: #003459;
}

#antradus-meta-output strong {
    color: #4a5b6b;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: .3px;
}

.antradus-copy-btn {
    font-size: 11px;
    padding: 2px 8px;
    margin-left: 6px;
    border: 1px solid #c3d4de;
    border-radius: 3px;
    cursor: pointer;
    background: #fff;
    color: #3c5061;
    transition: background .1s;
}

.antradus-copy-btn:hover { background: #e0f4fb; }

/* Divider */
.antradus-divider {
    border: none;
    border-top: 1px solid #d6e4ed;
    margin: 14px 0;
}

/* Image ready bar */
#antradus-image-ready-bar {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 10px;
}

#antradus-preview-btn {
    width: 100%;
    height: 36px;
    background: #eaf4f9;
    color: #003459;
    border: 1px solid #c3d4de;
    border-radius: 5px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: background .15s;
}

#antradus-preview-btn:hover { background: #d6e9f2; }

#antradus-set-featured-btn {
    width: 100%;
    height: 36px;
    background: #0073aa;
    color: #fff;
    border: none;
    border-radius: 5px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: opacity .2s;
}

#antradus-set-featured-btn:hover    { opacity: .85; }
#antradus-set-featured-btn:disabled { background: #a7aaad; cursor: not-allowed; opacity: 1; }

/* Album generating section */
.antradus-album-section {
    margin-top: 18px;
    border-color: #c39bd3;
}

.antradus-album-header {
    background: linear-gradient(135deg, #f8f0ff, #f0f4ff);
    color: #4a235a;
}

.antradus-album-header:hover {
    background: linear-gradient(135deg, #efe0ff, #e8edff);
}

.antradus-album-header .antradus-accordion-arrow {
    color: #9b59b6;
}

.antradus-album-body {
    border-top-color: #c39bd3;
}

/* Inline image preview (block editor) */
#antradus-inline-preview img {
    width: 100%;
    border-radius: 6px;
    display: block;
    box-shadow: 0 2px 10px rgba(0, 52, 89, .2);
}

/* Modal */
#antradus-modal-overlay {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0, 20, 40, .78);
    z-index: 999999;
    align-items: center;
    justify-content: center;
}

.antradus-modal {
    background: #fff;
    border-radius: 10px;
    padding: 20px;
    max-width: 500px;
    max-height: 90vh;
    width: 90%;
    position: relative;
    box-shadow: 0 10px 40px rgba(0, 52, 89, .4);
    overflow-y: auto;
}

#antradus-modal-close {
    position: absolute;
    top: 10px; right: 14px;
    background: none;
    border: none;
    font-size: 22px;
    cursor: pointer;
    color: #4a5b6b;
    line-height: 1;
}

#antradus-modal-close:hover { color: #d63638; }

.antradus-modal h3 {
    margin: 0 0 14px;
    font-size: 14px;
    color: #003459;
}

#antradus-modal-img {
    width: 100%;
    border-radius: 6px;
    display: block;
    margin-bottom: 14px;
    max-height: 55vh;
    object-fit: contain;
}

#antradus-modal-set-featured {
    width: 100%;
    height: 38px;
    background: #0073aa;
    color: #fff;
    border: none;
    border-radius: 5px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: opacity .2s;
}

#antradus-modal-set-featured:hover { opacity: .85; }

/* =============================================================================
   Settings Page
   ============================================================================= */

.antradus-settings-wrap {
    padding-top: 10px;
}

.antradus-settings-layout {
    display: flex;
    gap: 28px;
    align-items: flex-start;
    margin-top: 16px;
}

/* Left nav */
.antradus-settings-nav {
    width: 160px;
    flex-shrink: 0;
    position: sticky;
    top: 32px;
}

.antradus-nav-heading {
    font-size: 10px;
    font-weight: 700;
    color: #8a9ba8;
    text-transform: uppercase;
    letter-spacing: .6px;
    margin: 0 0 8px;
    padding: 0 4px;
}

.antradus-settings-nav a {
    display: block;
    padding: 7px 10px;
    font-size: 13px;
    color: #3c5061;
    text-decoration: none;
    border-radius: 5px;
    margin-bottom: 2px;
    transition: background .15s, color .15s;
}

.antradus-settings-nav a:hover {
    background: #e0f4fb;
    color: #007ea7;
}

/* Main content */
.antradus-settings-main {
    flex: 1;
    min-width: 0;
}

/* Sections */
.antradus-settings-section {
    background: #fff;
    border: 1px solid #d6e4ed;
    border-radius: 8px;
    padding: 20px 24px;
    margin-bottom: 20px;
}

.antradus-settings-section h2 {
    font-size: 15px;
    font-weight: 700;
    color: #003459;
    margin: 0 0 16px;
    padding: 0;
    border: none;
    display: flex;
    align-items: center;
    gap: 8px;
}

.antradus-section-icon {
    font-size: 16px;
}

.antradus-settings-section .form-table th {
    padding: 12px 20px 12px 0;
    font-weight: 600;
    color: #3c5061;
    white-space: nowrap;
}

.antradus-settings-section .form-table td {
    padding: 10px 0;
}

.antradus-settings-section .form-table input[type="text"],
.antradus-settings-section .form-table input[type="password"] {
    transition: border-color .15s, box-shadow .15s;
}

.antradus-settings-section .form-table input:focus,
.antradus-settings-section .form-table textarea:focus {
    border-color: #007ea7;
    box-shadow: 0 0 0 3px rgba(0, 168, 232, .18);
}

/* Submit button area */
.antradus-settings-main .submit {
    margin-top: 4px;
}

.antradus-settings-main #submit {
    background: linear-gradient(135deg, #003459, #007ea7);
    border-color: #003459;
    color: #fff;
    font-weight: 700;
    padding: 8px 24px;
    height: auto;
    transition: opacity .2s;
}

.antradus-settings-main #submit:hover { opacity: .88; }

/* Inline settings links */
.antradus-settings-link {
    font-size: 14px;
    color: #007ea7;
    text-decoration: underline;
    font-weight: 400;
    text-transform: none;
    letter-spacing: 0;
    margin-left: 6px;
    white-space: nowrap;
}

.antradus-settings-link:hover {
    color: #003459;
}

.antradus-prompt-note {
    margin: 4px 0 10px;
    font-size: 11px;
}

/* ── Provider sections (settings page) ──────────────────────────────────────── */

.antradus-provider-section {
    border: 1px solid #e0e6eb;
    border-left: 4px solid #c3d4de;
    border-radius: 0 6px 6px 0;
    padding: 14px 16px 2px;
    margin: 14px 0;
    background: #fafcfd;
}

.antradus-provider-heading {
    margin: 0 0 4px;
    font-size: 13px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
}

.antradus-provider-tag {
    font-size: 10px;
    font-weight: 600;
    padding: 2px 7px;
    border-radius: 10px;
    background: rgba(0,0,0,.07);
    color: inherit;
}

.antradus-provider-openai     { border-left-color: #10a37f; }
.antradus-provider-openai     .antradus-provider-heading { color: #065f46; }

.antradus-provider-anthropic  { border-left-color: #d4845a; }
.antradus-provider-anthropic  .antradus-provider-heading { color: #7c2d12; }

.antradus-provider-gemini     { border-left-color: #4285f4; }
.antradus-provider-gemini     .antradus-provider-heading { color: #1e40af; }

.antradus-provider-openrouter { border-left-color: #6b46c1; }
.antradus-provider-openrouter .antradus-provider-heading { color: #4c1d95; }

.antradus-fetch-row {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.antradus-fetch-row select {
    min-width: 240px;
}

.antradus-model-status {
    font-size: 12px;
    color: #646970;
}

.antradus-no-image-note {
    font-size: 12px;
    color: #555;
    padding: 8px 12px;
    background: #f8f0f0;
    border-left: 3px solid #c0392b;
    border-radius: 0 4px 4px 0;
    margin: 12px 0 4px;
}

.antradus-apikey-link {
    font-size: 11px;
    font-weight: 500;
    text-decoration: none;
    color: #ff0000;
    border: 1px solid #c3d4de;
    border-radius: 10px;
    padding: 2px 9px;
    margin-left: 6px;
    white-space: nowrap;
    transition: background .15s, color .15s;
}

.antradus-apikey-link:hover {
    background: #007ea7;
    color: #fff;
    border-color: #007ea7;
}

.antradus-openrouter-note {
    font-size: 12px;
    color: #7c3100;
    background: #fff3e0;
    border-left: 3px solid #e67e22;
    border-radius: 0 4px 4px 0;
    padding: 7px 12px;
    margin: 8px 0 12px;
}

/* ── Image preset tabs ────────────────────────────────────────────────────── */

.antradus-tab-group {
    border: 1px solid #dde3e8;
    border-radius: 0 6px 6px 6px;
    background: #fff;
    margin-bottom: 16px;
}

.antradus-tab-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 3px;
    padding: 10px 10px 0;
    border-bottom: 2px solid #dde3e8;
    background: #f6f7f7;
    border-radius: 6px 6px 0 0;
}

.antradus-tab-btn {
    padding: 6px 11px;
    font-size: 12px;
    font-weight: 500;
    border: 1px solid #c3d0d8;
    border-bottom: none;
    background: #eef1f3;
    color: #50575e;
    cursor: pointer;
    border-radius: 4px 4px 0 0;
    line-height: 1.4;
    transition: background 0.1s, color 0.1s;
    position: relative;
    bottom: -2px;
}

.antradus-tab-btn:hover {
    background: #fff;
    color: #1e2d3a;
}

.antradus-tab-btn.is-active {
    background: #fff;
    color: #003459;
    border-color: #dde3e8;
    border-bottom-color: #fff;
    font-weight: 600;
}

.antradus-tab-active-badge {
    display: inline-block;
    margin-left: 4px;
    font-size: 10px;
    color: #00a32a;
    font-weight: 700;
}

.antradus-tab-panel {
    padding: 16px;
}

.antradus-preset-active-label {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 12px;
    color: #50575e;
    margin-bottom: 10px;
    cursor: pointer;
}

.antradus-preset-active-label input[type="radio"] {
    margin: 0;
}

.antradus-preset-textarea {
    font-family: monospace;
    font-size: 12px;
    line-height: 1.6;
    min-height: 100px;
    resize: vertical;
}

/* ── Color cast ───────────────────────────────────────────────────────────── */

.antradus-color-cast-wrap {
    background: #f6f7f7;
    border: 1px solid #dde3e8;
    border-radius: 6px;
    padding: 14px 16px 10px;
    margin-top: 4px;
}

.antradus-color-cast-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    cursor: pointer;
    margin-bottom: 10px;
}

.antradus-color-cast-toggle input[type="checkbox"] {
    margin: 0;
}

.antradus-color-picker-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
}

.antradus-color-picker-row input[type="color"] {
    width: 48px;
    height: 36px;
    padding: 2px;
    border: 1px solid #c3d0d8;
    border-radius: 4px;
    cursor: pointer;
    background: #fff;
}

.antradus-color-cast-hint {
    font-size: 12px;
    color: #646970;
}

/* ── v1.1.0 — expanded features ─────────────────────────────────────────────── */

/* Inline beginner hints */
.antradus-inline-hint {
    font-size: 12px;
    color: #003459;
    background: #e0f4fb;
    padding: 7px 11px;
    border-radius: 4px;
    border-left: 3px solid #00a8e8;
    margin: 8px 0 4px;
    line-height: 1.5;
}

/* Secondary action button (Generate Meta from Existing Article) */
.antradus-secondary-btn {
    height: 40px;
    padding: 0 16px;
    background: #fff;
    color: #003459;
    border: 1.5px solid #007ea7;
    border-radius: 5px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all .15s;
    white-space: nowrap;
}

.antradus-secondary-btn:hover    { background: #e0f4fb; }
.antradus-secondary-btn:disabled { opacity: .6; cursor: wait; }

/* YouTube extension install / enable card */
.antradus-yt-install {
    border: 1px dashed #f7411d;
    border-radius: 6px;
    padding: 10px 12px;
    background: #fff8f5;
}
.antradus-yt-install-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    margin: 8px 0;
}
.antradus-yt-install-actions a.antradus-secondary-btn {
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    line-height: 40px;
}
#antradus-yt-server-fallback { font-weight: 600; }

/* SEO plugin detected / filled notice */
.antradus-seo-detected {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    font-size: 12px;
    color: #1d2327;
    background: #edfaef;
    border: 1px solid #00a32a;
    border-radius: 5px;
    padding: 9px 12px;
    line-height: 1.5;
}

.antradus-seo-detected-icon {
    flex: 0 0 auto;
    width: 18px;
    height: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #00a32a;
    color: #fff;
    border-radius: 50%;
    font-size: 11px;
    font-weight: 700;
    margin-top: 1px;
}

.antradus-seo-filled { background: #e6f6e9; border-color: #008a20; }

/* Button injected into the Yoast / Rank Math metabox */
.antradus-seo-inject-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 0 10px;
    border-bottom: 1px solid #e2e4e7;
    margin-bottom: 8px;
}

.antradus-seo-inject-button {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 6px 14px;
    font-size: 12px;
    font-weight: 700;
    background: linear-gradient(135deg, #003459, #007ea7);
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    white-space: nowrap;
    margin-right: 6px;
}

.antradus-seo-inject-button:hover    { opacity: .85; }
.antradus-seo-inject-button:disabled { opacity: .6; cursor: wait; }

#antradus-seo-inject-status { font-size: 11px; color: #007ea7; font-weight: 600; }

/* Album controls */
.antradus-album-controls {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 10px 0;
}

.antradus-album-controls label {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .4px;
    color: #4a235a;
}

.antradus-album-controls select {
    height: 32px;
    border-radius: 4px;
}

#antradus-album-btn {
    flex: 1;
    height: 34px;
    background: linear-gradient(135deg, #6c3483, #9b59b6);
    color: #fff;
    border: none;
    border-radius: 5px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: opacity .2s;
}

#antradus-album-btn:hover    { opacity: .88; }
#antradus-album-btn:disabled { background: #a7aaad; cursor: not-allowed; opacity: 1; }

#antradus-album-status {
    font-size: 12px;
    margin: 6px 0;
    min-height: 16px;
    color: #007ea7;
    line-height: 1.5;
}

#antradus-album-status.success { color: #00a32a; font-weight: 600; }
#antradus-album-status.error   { color: #d63638; font-weight: 600; }
#antradus-album-status a       { color: #007ea7; font-weight: 700; }

/* Album thumbnail grid */
.antradus-album-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin: 8px 0;
}

.antradus-album-item {
    position: relative;
    border-radius: 6px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    transition: border-color .15s;
}

.antradus-album-item img {
    width: 100%;
    height: 90px;
    object-fit: cover;
    display: block;
}

.antradus-album-item:hover  { border-color: #9b59b6; }

.antradus-album-item-star {
    position: absolute;
    left: 0; right: 0; bottom: 0;
    background: rgba(0, 52, 89, .85);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    text-align: center;
    padding: 3px 0;
    opacity: 0;
    transition: opacity .15s;
}

.antradus-album-item.is-featured {
    border-color: #00a32a;
}

.antradus-album-item.is-featured .antradus-album-item-star {
    opacity: 1;
    background: #00a32a;
}

#antradus-album-actions { margin-top: 6px; }

#antradus-album-insert-btn {
    width: 100%;
    height: 34px;
    background: #003459;
    color: #fff;
    border: none;
    border-radius: 5px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: opacity .2s;
}

#antradus-album-insert-btn:hover { opacity: .88; }

/* Rank Math popup injected button spacing */
#antradus-rm-btn { margin: 6px; }

/* ── Album item action buttons (view = click image, ★ featured, ✕ remove) ──── */

.antradus-album-item-actions {
    position: absolute;
    top: 4px;
    right: 4px;
    display: flex;
    gap: 4px;
    opacity: 0;
    transition: opacity .15s;
}

.antradus-album-item:hover .antradus-album-item-actions,
.antradus-album-item:focus-within .antradus-album-item-actions { opacity: 1; }

.antradus-album-act {
    width: 24px;
    height: 24px;
    border: none;
    border-radius: 4px;
    background: rgba(0, 52, 89, .85);
    color: #fff;
    font-size: 12px;
    line-height: 1;
    cursor: pointer;
    padding: 0;
}

.antradus-album-act:hover { background: #007ea7; }
.antradus-album-act-remove:hover { background: #d63638; }

/* ── YouTube review box (step 2 of the two-click flow) ─────────────────────── */

#antradus-yt-content {
    width: 100%;
    min-height: 110px;
    font-size: 12px;
    line-height: 1.5;
    border: 1px solid #86c5da;
    border-radius: 5px;
    background: #f4fbfe;
    padding: 8px;
    box-sizing: border-box;
}

/* ── Album describe-mode + traffic note ────────────────────────────────────── */

#antradus-album-desc {
    width: 100%;
    box-sizing: border-box;
    border-radius: 5px;
}

.antradus-album-traffic-note {
    background: #f0f8f0;
    border-left: 3px solid #00a32a;
    padding: 6px 8px;
    border-radius: 0 4px 4px 0;
}

/* ── Block-editor right sidebar panel ──────────────────────────────────────── */

.interface-complementary-area.antradus-sidebar {
    width: 380px;
    max-width: 100vw;
}

@media (max-width: 782px) {
    .interface-complementary-area.antradus-sidebar { width: 100%; }
}

.antradus-sidebar-mount { padding: 0 4px 24px; }

#antradus-wrap.antradus-in-sidebar { padding: 0 8px; }

#antradus-wrap.antradus-in-sidebar .antradus-two-col {
    grid-template-columns: 1fr;
}

#antradus-wrap.antradus-in-sidebar .antradus-col-content {
    padding: 12px 0;
    border-right: none;
    border-bottom: 1px solid #d6e4ed;
}

#antradus-wrap.antradus-in-sidebar .antradus-col-image { padding: 12px 0; }

#antradus-wrap.antradus-in-sidebar .antradus-header {
    margin: 0 -8px 14px;
    border-radius: 0;
    padding: 10px 14px;
}

/* Narrow panel: stack style/tone/language and the generate buttons */
#antradus-wrap.antradus-in-sidebar .antradus-row { flex-wrap: wrap; }
#antradus-wrap.antradus-in-sidebar .antradus-row .antradus-field { flex: 1 1 45%; }
#antradus-wrap.antradus-in-sidebar .antradus-generate-row { flex-direction: column; }

/* Injected "Generate SEO with Antradus AI" bar inside the Rank Math sidebar */
.rank-math-editor-general > .antradus-seo-inject-bar { margin: 10px 12px 4px; }

/* Same bar inside Yoast's own sidebar panel (via the YoastSidebar Fill) */
.antradus-yoast-sidebar-fill .antradus-seo-inject-bar { margin: 0 0 12px; }

/* ── Antradus AI Assistant: free-form pill input, bottom of the box/panel ──── */

.antradus-assistant {
    margin-top: 18px;
    padding-top: 16px;
    border-top: 1px solid #d6e4ed;
}

.antradus-assistant-label {
    margin: 0 0 8px;
    font-size: 12px;
    font-weight: 700;
    color: #003459;
}

.antradus-assistant-bar {
    display: flex;
    align-items: flex-end;
    gap: 8px;
    background: #fff;
    border: 1px solid #c7dbe6;
    border-radius: 22px;
    padding: 8px 8px 8px 16px;
    box-shadow: 0 1px 2px rgba(0, 52, 89, .06);
}

.antradus-assistant-bar textarea {
    flex: 1;
    border: none;
    outline: none;
    resize: none;
    max-height: 100px;
    font-size: 13px;
    line-height: 1.4;
    padding: 4px 0;
    font-family: inherit;
    box-shadow: none;
}

#antradus-assistant-send {
    flex-shrink: 0;
    width: 34px;
    height: 34px;
    border: none;
    border-radius: 50%;
    background: #003459;
    color: #fff;
    font-size: 14px;
    cursor: pointer;
    transition: background .15s;
}

#antradus-assistant-send:hover    { background: #007ea7; }
#antradus-assistant-send:disabled { background: #9db8c6; cursor: default; }

#antradus-assistant-status.success { color: #00a32a; font-weight: 600; margin-top: 6px; }
#antradus-assistant-status.error   { color: #d63638; font-weight: 600; margin-top: 6px; }

/* ── Product photo → description (WooCommerce) ─────────────────────────────── */

#antradus-product-photo-btn {
    width: 100%;
    min-height: 40px;
    background: #7f54b3; /* WooCommerce purple */
    color: #fff;
    border: none;
    border-radius: 5px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: opacity .2s;
}

#antradus-product-photo-btn:hover    { opacity: .88; }
#antradus-product-photo-btn:disabled { opacity: .6; cursor: default; }

#antradus-product-status          { margin-top: 6px; font-size: 12px; }
#antradus-product-status.success  { color: #00a32a; font-weight: 600; }
#antradus-product-status.error    { color: #d63638; font-weight: 600; }


/* ── Bulk Publishing for Agencies ──────────────────────────────────────────── */

.antradus-bulk-wrap { max-width: 1060px; }
.antradus-bulk-wrap h1 .antradus-bulk-tag {
    font-size: 13px; font-weight: 600; color: #fff; background: #0089b3;
    border-radius: 12px; padding: 3px 12px; vertical-align: middle; margin-left: 8px;
}

.antradus-bulk-tabs { display: flex; gap: 6px; margin: 18px 0 0; border-bottom: 2px solid #c3c4c7; }
.antradus-bulk-tab {
    background: none; border: none; border-bottom: 3px solid transparent;
    padding: 10px 18px; font-size: 14px; font-weight: 600; color: #50575e; cursor: pointer;
}
.antradus-bulk-tab.is-active { color: #0089b3; border-bottom-color: #0089b3; }

.antradus-bulk-panel { display: none; background: #fff; border: 1px solid #c3c4c7; border-top: none; padding: 20px; }
.antradus-bulk-panel.is-active { display: block; }

.antradus-bulk-modes { display: flex; gap: 10px; margin-bottom: 20px; }
.antradus-bulk-mode {
    flex: 1; padding: 14px; font-size: 14px; font-weight: 600; cursor: pointer;
    background: #f6f7f7; border: 2px solid #c3c4c7; border-radius: 8px; color: #50575e;
}
.antradus-bulk-mode.is-active { border-color: #0089b3; color: #0089b3; background: #f0f8fb; }

.antradus-bulk-form .antradus-field { margin-bottom: 14px; }
.antradus-bulk-form textarea, .antradus-bulk-form select, .antradus-bulk-form input[type="file"] { width: 100%; }

.antradus-bulk-checks { display: flex; flex-wrap: wrap; gap: 8px 22px; margin: 14px 0; }
.antradus-bulk-checks label { font-size: 13px; }

.antradus-bulk-schedule { border: 1px solid #c3c4c7; border-radius: 8px; padding: 12px 16px 14px; margin: 16px 0; }
.antradus-bulk-schedule legend { font-size: 11px; font-weight: 700; letter-spacing: .4px; color: #50575e; padding: 0 6px; }
.antradus-bulk-radio { display: block; margin: 7px 0; font-size: 13px; }
.antradus-bulk-drip { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin: 10px 0 2px 26px; font-size: 13px; }

.antradus-bulk-status { font-size: 13px; font-weight: 600; color: #00a32a; min-height: 18px; }
.antradus-bulk-status.is-error { color: #d63638; }

.antradus-bulk-scroll { overflow-x: auto; margin: 10px 0; }
.antradus-bulk-sample { color: #787c82; font-size: 12px; }

.antradus-bulk-batch { border: 1px solid #c3c4c7; border-radius: 8px; padding: 12px 16px; margin-bottom: 12px; }
.antradus-bulk-batch.is-selected { border-color: #0089b3; box-shadow: 0 0 0 1px #0089b3; }
.antradus-bulk-batch-head { display: flex; flex-wrap: wrap; gap: 6px 18px; align-items: baseline; font-size: 13px; color: #50575e; }
.antradus-bulk-bar { height: 8px; background: #e5e5e5; border-radius: 4px; margin: 10px 0; overflow: hidden; }
.antradus-bulk-bar-fill { height: 100%; background: #0089b3; border-radius: 4px; transition: width .4s; }
.antradus-bulk-batch-actions { display: flex; flex-wrap: wrap; gap: 6px; }
.antradus-bulk-note { color: #d63638; font-size: 12px; max-width: 340px; }

/* Bulk: AI keyword suggester */
.antradus-bulk-suggest { border: 1px dashed #0089b3; border-radius: 8px; padding: 14px 16px; margin-bottom: 18px; background: #f7fbfd; }
.antradus-bulk-suggest > label { font-size: 11px; font-weight: 700; letter-spacing: .4px; color: #0089b3; }
.antradus-bulk-suggest-bar { display: flex; gap: 8px; margin: 8px 0; }
.antradus-bulk-suggest-bar input[type="text"] { flex: 1; }
#antradus-bulk-suggest-table input[type="text"] { width: 100%; }
.antradus-suggest-new {
    font-size: 10px; font-weight: 700; color: #fff; background: #00a32a;
    border-radius: 8px; padding: 1px 7px; vertical-align: middle;
}
.antradus-bulk-suggest-newcats { display: block; font-size: 12px; margin: 2px 0 8px; color: #50575e; }

/* Bulk: jobs table docked under its batch card */
#antradus-bulk-jobs.has-jobs {
    border: 1px solid #0089b3; border-top: none; border-radius: 0 0 8px 8px;
    background: #f7fbfd; margin: -14px 0 12px; padding: 10px 14px;
}
#antradus-bulk-jobs.has-jobs .antradus-bulk-scroll { margin: 0; }
.antradus-show-all-models-label { display: block; margin-top: 10px; font-size: 13px; }

/* ── Reporting page ─────────────────────────────────────────────────────── */
.antradus-report-wrap .antradus-report-hint { color: #50575e; font-size: 13px; max-width: 760px; }
.antradus-report-h2 { margin-top: 28px; }
.antradus-report-cards { display: flex; flex-wrap: wrap; gap: 12px; margin: 12px 0 4px; }
.antradus-report-card {
    background: #fff; border: 1px solid #dcdcde; border-radius: 8px;
    padding: 14px 20px; min-width: 150px; display: flex; flex-direction: column;
    box-shadow: 0 1px 1px rgba(0,0,0,.04);
}
.antradus-report-num { font-size: 24px; font-weight: 700; color: #1d2327; line-height: 1.3; }
.antradus-report-label { font-size: 12px; color: #50575e; margin-top: 2px; }
.antradus-report-table { max-width: 1100px; margin-top: 8px; }
.antradus-report-prices input.small-text { width: 90px; }

/* ── Pro teasers: locked placeholders shown in the free edition ─────────────── */
.antradus-pro-teaser {
    display: flex; align-items: center; gap: 10px;
    padding: 10px 14px; margin: 10px 0;
    border: 1px dashed #9ec7dc; border-radius: 8px;
    background: #f5f9fc; font-size: 13px; color: #42576b;
}
.antradus-pro-teaser-icon { font-size: 16px; flex: 0 0 auto; }
.antradus-pro-teaser-text { flex: 1; line-height: 1.45; }
.antradus-pro-teaser-link {
    flex: 0 0 auto; white-space: nowrap; text-decoration: none;
    font-weight: 600; color: #007ea7;
}
.antradus-pro-teaser-link:hover { color: #003459; }
.antradus-in-sidebar .antradus-pro-teaser { flex-wrap: wrap; }
a.antradus-pro-locked-btn { text-decoration: none; opacity: .85; display: inline-block; }
a.antradus-pro-locked-btn:hover { opacity: 1; }
.antradus-settings-nav a.antradus-nav-locked { opacity: .6; }
.antradus-settings-nav a.antradus-nav-locked:hover { opacity: 1; }
