/* ============================================================
   Import Module — admin import page + single post template
   ============================================================ */

/* ── Admin: upload dropzone ──────────────────────────────── */
#cs-import-dropzone {
    border: 2px dashed #d1d5db;
    border-radius: 6px;
    padding: 2.5rem 1.5rem;
    text-align: center;
    cursor: pointer;
    transition: border-color .2s, background .2s;
    background: #f9fafb;
    margin-bottom: 1.25rem;
}

#cs-import-dropzone.drag-over {
    border-color: var(--cs-admin-primary);
    background: #eff6ff;
}

.cs-import-dropzone-icon {
    font-size: 2rem !important;
    color: #6b7280;
    display: block;
    margin-bottom: .5rem;
}

#cs-import-dropzone p {
    margin: .35rem 0;
    color: #6b7280;
    font-size: .9rem;
}

.cs-import-filename {
    font-size: .85rem;
    color: var(--cs-admin-primary);
    font-weight: 600;
    margin-top: .5rem !important;
}

.cs-import-actions {
    margin-top: 1.25rem;
}

#cs-import-progress {
    display: flex;
    align-items: center;
    gap: .75rem;
    margin-top: 1rem;
    color: #374151;
    font-size: .9rem;
}

/* Results panel — colours driven by cs-admin-notice-success / error */
#cs-import-results ul {
    margin: .25rem 0 0 1rem;
    padding: 0;
    list-style: disc;
    font-size: .8rem;
    color: #6b7280;
    max-height: 160px;
    overflow-y: auto;
}

#cs-import-results p {
    margin: 0 0 .35rem;
}

/* Log table */
.cs-import-log-table {
    max-width: 900px;
}

.cs-import-stat-good {
    color: #15803d;
    font-weight: 600;
}

.cs-import-stat-bad {
    color: #b91c1c;
    font-weight: 600;
}

/* ── Frontend: single import post ────────────────────────── */

/* Meta row */
.import-meta-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 0;
    border-bottom: 2px solid var(--color-border, #e5e7eb);
    overflow: hidden;
}

.import-meta-col {
    padding: 1rem 1.25rem;
}

.import-meta-label {
    display: block;
    font-size: 1rem;
    letter-spacing: .8px;
    line-height: 1.5;
    text-transform: uppercase;
    color: var(--color-primary);
    margin-bottom: 1rem;
    font-weight: 700;
}

.import-meta-value {
    font-size: .95rem;
}

.import-meta-value a {
    font-size: .95rem;
    text-decoration: underline;
}


@media (max-width: 660px) {
    .import-meta-row {
        grid-template-columns: 1fr 1fr;
    }

    .import-meta-col {
        border-right: none;
        border-bottom: 1px solid var(--color-border, #e5e7eb);
    }

    .import-meta-col:last-child {
        border-bottom: none;
    }
}