/* ═══════════════════════════════════════════════════════════
   NP2 Editorial Module Styles
   ═══════════════════════════════════════════════════════════ */

/* ─── Queue Dashboard ───────────────────────────────────── */

.ed-section {
    margin-bottom: 28px;
}

.ed-section-title {
    font-size: 13px;
    font-weight: 600;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin: 0 0 12px 0;
}

.ed-queue-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 12px;
}

.ed-queue-card {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 14px 16px;
    cursor: pointer;
    transition: box-shadow 0.15s, transform 0.15s;
}

.ed-queue-card:hover {
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transform: translateY(-1px);
}

.ed-queue-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
}

.ed-queue-name {
    font-size: 14px;
    font-weight: 600;
    color: #111827;
}

.ed-queue-count {
    font-size: 13px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 10px;
    min-width: 24px;
    text-align: center;
}

.ed-queue-desc {
    font-size: 12px;
    color: #9ca3af;
    margin-bottom: 6px;
}

.ed-queue-badges {
    display: flex;
    gap: 4px;
}

/* ─── My Articles ───────────────────────────────────────── */

.ed-my-articles {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.ed-my-article {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 14px;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.1s;
}

.ed-my-article:hover {
    background: #f9fafb;
}

.ed-my-article-headline {
    font-size: 14px;
    font-weight: 500;
    color: #111827;
}

.ed-my-article-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
}

.ed-my-article-time {
    color: #9ca3af;
    font-size: 12px;
}

/* ─── Article List ──────────────────────────────────────── */

.btn-back {
    display: flex;
    align-items: center;
    gap: 4px;
    background: none;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    padding: 6px 10px;
    font-size: 13px;
    font-family: inherit;
    color: #6b7280;
    cursor: pointer;
    transition: background 0.1s;
}

.btn-back:hover {
    background: #f3f4f6;
}

.ed-list-filters {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
}

.ed-article-headline-cell {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.ed-article-title {
    font-weight: 500;
    color: #111827;
}

.ed-article-sub {
    font-size: 12px;
    color: #9ca3af;
}

.btn-sm {
    width: 36px;
    height: 32px;
    border: 1.5px solid #93c5fd;
    border-radius: 6px;
    background: #eff6ff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #2563eb;
    font-size: 12px;
    transition: all 0.15s;
}

.btn-sm svg {
    width: 16px;
    height: 16px;
    stroke-width: 2.5;
}

.btn-sm:hover {
    background: #2563eb;
    border-color: #2563eb;
    color: white;
}

/* ─── Move Dialog ───────────────────────────────────────── */

.ed-transition-buttons {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.ed-transition-btn {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 14px;
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    cursor: pointer;
    font-family: inherit;
    text-align: left;
    transition: background 0.1s;
}

.ed-transition-btn:hover {
    background: #f9fafb;
}

.ed-transition-selected {
    background: #eff6ff !important;
    border-color: #3b82f6 !important;
}

.ed-transition-name {
    font-size: 14px;
    font-weight: 500;
    color: #111827;
}

.ed-transition-dest {
    font-size: 12px;
    color: #6b7280;
}

/* ─── Article Editor ────────────────────────────────────── */

.ed-editor-layout {
    display: grid;
    grid-template-columns: 1fr 280px;
    gap: 20px;
    margin-top: 8px;
}

@media (max-width: 900px) {
    .ed-editor-layout {
        grid-template-columns: 1fr;
    }
}

.ed-editor-main {
    min-width: 0;
}

.ed-headline-input {
    width: 100%;
    padding: 8px 0;
    border: none;
    border-bottom: 2px solid #e5e7eb;
    font-size: 24px;
    font-weight: 700;
    font-family: inherit;
    color: #111827;
    outline: none;
    transition: border-color 0.2s;
}

.ed-headline-input:focus {
    border-bottom-color: #2563eb;
}

.ed-subheadline-input {
    width: 100%;
    padding: 6px 0;
    border: none;
    border-bottom: 1px solid #e5e7eb;
    font-size: 16px;
    font-family: inherit;
    color: #4b5563;
    outline: none;
    margin-bottom: 16px;
    transition: border-color 0.2s;
}

.ed-subheadline-input:focus {
    border-bottom-color: #2563eb;
}

/* ─── Blocks ────────────────────────────────────────────── */

.ed-block-container {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 12px;
}

.ed-block {
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    background: white;
    transition: border-color 0.15s;
}

.ed-block:focus-within {
    border-color: #93c5fd;
    box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.08);
}

.ed-block-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 4px 8px;
    background: #f9fafb;
    border-bottom: 1px solid #f3f4f6;
    border-radius: 6px 6px 0 0;
}

.ed-block-type-badge {
    font-size: 11px;
    font-weight: 600;
    color: #9ca3af;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.ed-block-actions {
    display: flex;
    gap: 2px;
}

.ed-block-btn {
    width: 24px;
    height: 24px;
    border: none;
    border-radius: 4px;
    background: transparent;
    cursor: pointer;
    font-size: 14px;
    color: #9ca3af;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.1s, color 0.1s;
}

.ed-block-btn:hover {
    background: #e5e7eb;
    color: #374151;
}

.ed-block-remove:hover {
    background: #fecaca;
    color: #dc2626;
}

.ed-block-content {
    padding: 8px 12px 12px;
}

.ed-block-text,
.ed-block-quote {
    width: 100%;
    border: none;
    outline: none;
    font-family: inherit;
    font-size: 14px;
    line-height: 1.6;
    color: #111827;
    resize: vertical;
    background: transparent;
}

.ed-block-quote {
    font-size: 18px;
    font-style: italic;
    color: #374151;
    line-height: 1.5;
    border-left: 3px solid #3b82f6;
    padding-left: 12px;
    margin-bottom: 8px;
}

.ed-block-input {
    width: 100%;
    padding: 4px 0;
    border: none;
    border-bottom: 1px solid #e5e7eb;
    font-family: inherit;
    font-size: 13px;
    color: #4b5563;
    outline: none;
    margin-top: 4px;
}

.ed-block-input:focus {
    border-bottom-color: #2563eb;
}

.ed-block-heading-input {
    width: 100%;
    border: none;
    outline: none;
    font-family: inherit;
    font-size: 18px;
    font-weight: 600;
    color: #111827;
}

.ed-block-code {
    font-family: 'SFMono-Regular', Consolas, monospace;
    font-size: 13px;
    background: #f8fafc;
    padding: 8px;
    border-radius: 4px;
    border: 1px solid #e5e7eb;
}

.ed-block-divider {
    border: none;
    border-top: 2px solid #e5e7eb;
    margin: 8px 0;
}

/* ─── Add Block Bar ─────────────────────────────────────── */

.ed-add-block {
    border: 1px dashed #d1d5db;
    border-radius: 6px;
    padding: 8px;
}

.ed-add-block-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}

.ed-add-block-btn {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 5px 10px;
    border: 1px solid #e5e7eb;
    border-radius: 4px;
    background: white;
    font-size: 12px;
    font-family: inherit;
    color: #6b7280;
    cursor: pointer;
    transition: background 0.1s, border-color 0.1s;
}

.ed-add-block-btn:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
    color: #374151;
}

.ed-add-block-icon {
    font-size: 14px;
}

/* ─── Sidebar ───────────────────────────────────────────── */

.ed-editor-sidebar {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.ed-sidebar-section {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 14px;
}

.ed-sidebar-section h4 {
    font-size: 12px;
    font-weight: 600;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin: 0 0 10px 0;
}

.ed-sidebar-field {
    margin-bottom: 10px;
}

.ed-sidebar-field:last-child {
    margin-bottom: 0;
}

.ed-sidebar-field label {
    display: block;
    font-size: 12px;
    font-weight: 500;
    color: #374151;
    margin-bottom: 3px;
}

.ed-sidebar-field input,
.ed-sidebar-field select,
.ed-sidebar-section textarea {
    width: 100%;
    padding: 6px 10px;
    border: 1px solid #d1d5db;
    border-radius: 5px;
    font-size: 13px;
    font-family: inherit;
    transition: border-color 0.15s;
}

.ed-sidebar-field input:focus,
.ed-sidebar-field select:focus,
.ed-sidebar-section textarea:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.08);
}

.ed-sidebar-actions {
    padding-top: 4px;
}

.ed-sidebar-meta {
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 12px;
    color: #9ca3af;
    padding: 8px 14px;
}

.ed-sidebar-meta strong {
    color: #374151;
}

.ed-checkbox {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: #374151;
    cursor: pointer;
    margin-bottom: 4px;
}

.ed-checkbox input {
    width: auto !important;
}

.ed-breadcrumb-link {
    color: #2563eb;
    text-decoration: none;
}

.ed-breadcrumb-link:hover {
    text-decoration: underline;
}