/*
 * assets/css/chat_page/articles.css
 * Styles for the Articles feature.
 * Uses CSS variables from the existing theme system.
 * Works in both light_mode and dark_mode.
 */

/* ════════════════════════════════════════════════════════════════════
   ASIDE LISTING CARD
   Layout (matches block.png mockup):
     [64px thumb]  TITLE — bold, 2-line clamp
                   [cal] Aug 5 2026  [eye] 129 Views   ← hidden for draft
                   [DRAFT] / [badge]  [avatar] Name
   ════════════════════════════════════════════════════════════════════ */

/* Make the thumbnail bigger for article items (Articles dialog window only) */
.main .aside > .site_records > .records > .list > li.article_item > div > .left,
.main .aside > .site_records > .records > .list > li.article_item > div > .left > img {
    width: 64px !important;
    height: 64px !important;
    min-width: 64px !important;
    min-height: 64px !important;
    max-width: 64px !important;
    max-height: 64px !important;
    /* border-radius: 100% !important; */
    border-radius: 6px !important;
    object-fit: cover !important;
}

/* Keep the center block full-width beside the larger thumb */
.main .aside > .site_records > .records > .list > li.article_item > div > .center {
    flex: 1 1 auto !important;
    min-width: 0 !important;
}

/* Title: allow two lines, bold */
.main .aside > .site_records > .records > .list > li.article_item > div > .center > .title > .text {
    white-space: normal;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.35;
    font-weight: 600;
}

/* Subtitle: stack rows vertically */
.main .aside > .site_records > .records > .list > li.article_item > div > .center > .subtitle {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-top: 4px;
    overflow: visible;
    width: 100% !important;
}

/* Each subtitle row is a flex row */
.art-card-meta-row,
.art-card-author-row {
    display: flex !important;
    align-items: center !important;
    gap: 5px;
    font-size: 0.72rem;
    color: var(--left-side-content-secondary-text-color, #8f9bbf);
    flex-wrap: nowrap;
    overflow: hidden;
}

.art-card-author-row {
    justify-content: space-between !important;
    width: 100% !important;
}

.art-card-author-info {
    display: inline-flex !important;
    align-items: center !important;
    gap: 5px;
    margin-left: auto !important;
    flex-shrink: 0;
}

.art-meta-date {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    white-space: nowrap;
}

.art-views {
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 3px;
    white-space: nowrap;
    color: var(--left-side-content-secondary-text-color, #8f9bbf);
    transition: color 0.15s ease;
}
.art-views:hover,
.art-open-viewers:hover {
    color: var(--bs-accent, #6366f1);
}

/* Badges */
.art-badge {
    display: inline-block;
    padding: 2px 8px !important;
    border-radius: 20px;
    font-size: 0.68rem !important;
    font-weight: 700 !important;
    color: #ffffff !important;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    background: #4f46e5 !important;
    white-space: nowrap;
    flex-shrink: 0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
}

.art-draft-badge {
    display: inline-block;
    padding: 2px 8px !important;
    border-radius: 20px;
    font-size: 0.68rem !important;
    font-weight: 700 !important;
    color: #ffffff !important;
    background: #4b5563 !important;
    text-transform: uppercase;
    white-space: nowrap;
    flex-shrink: 0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
}

/* Author avatar (used in both listing card and chat bubble) */
.art-author-avatar {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    vertical-align: middle;
}

.art-author-name {
    font-weight: 500;
    color: var(--left-side-content-primary-text-color, #d5dcf2);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 110px;
}

/* ── Article block builder (form) ─────────────────────────────────────────── */
.art-builder-wrap {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
}

.art-block-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    padding: 8px 0;
}

.art-toolbar-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--form-secondary-text-color, #8f9bbf);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-right: 4px;
}

.art-add-block-btn {
    padding: 4px 10px;
    font-size: 0.72rem;
    border-radius: 6px;
    border: 1px solid var(--form-primary-border-color, rgba(71,85,105,0.5));
    background: var(--form-secondary-bg-color, rgba(0,0,0,0.15));
    color: var(--form-primary-text-color, #d5dcf2);
    cursor: pointer;
    transition: background 0.15s ease, border-color 0.15s ease;
    font-family: inherit;
}

.art-add-block-btn:hover {
    background: var(--bs-accent-glow, rgba(99,102,241,0.18));
    border-color: var(--bs-accent, #6366f1);
    color: var(--bs-accent-light, #a5b4fc);
}

/* ── Block list container ─────────────────────────────────────────────────── */
.art-blocks-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* ── Single block row ────────────────────────────────────────────────────────*/
.art-block-item {
    display: flex;
    flex-direction: column;
    gap: 6px;
    background: var(--form-secondary-bg-color, rgba(0,0,0,0.1));
    border: 1px solid var(--form-primary-border-color, rgba(71,85,105,0.4));
    border-radius: 8px;
    padding: 10px 12px;
    position: relative;
}

.art-block-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.art-block-type-label {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--bs-accent-light, #a5b4fc);
    padding: 2px 8px;
    background: var(--bs-accent-glow, rgba(99,102,241,0.18));
    border-radius: 12px;
}

.art-block-actions {
    display: flex;
    gap: 4px;
}

.art-block-btn {
    padding: 2px 6px;
    font-size: 0.7rem;
    border: none;
    background: transparent;
    color: var(--form-secondary-text-color, #8f9bbf);
    cursor: pointer;
    border-radius: 4px;
    transition: color 0.12s ease, background 0.12s ease;
    font-family: inherit;
}

.art-block-btn:hover { color: var(--bs-accent, #6366f1); background: var(--bs-accent-glow, rgba(99,102,241,0.18)); }
.art-block-btn.art-block-remove:hover { color: #dc3545; background: rgba(220,53,69,0.12); }

.art-block-content {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.art-block-input,
.art-block-textarea,
.art-block-select {
    width: 100%;
    padding: 6px 10px;
    border-radius: 6px;
    border: 1px solid var(--form-primary-border-color, rgba(71,85,105,0.5));
    background: var(--form-primary-bg-color, rgba(0,0,0,0.2));
    color: var(--form-primary-text-color, #d5dcf2);
    font-size: 0.82rem;
    font-family: inherit;
    resize: vertical;
    box-sizing: border-box;
    transition: border-color 0.15s ease;
}

.art-block-input:focus,
.art-block-textarea:focus,
.art-block-select:focus {
    outline: none;
    border-color: var(--bs-accent, #6366f1);
    box-shadow: 0 0 0 2px var(--bs-accent-glow, rgba(99,102,241,0.2));
}

.art-block-textarea { min-height: 80px; }

.art-image-row-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
    border-left: 2px solid var(--bs-accent-glow, rgba(99,102,241,0.3));
    padding-left: 8px;
}

.art-image-row-group label {
    font-size: 0.7rem;
    color: var(--form-secondary-text-color, #8f9bbf);
    font-weight: 500;
}

/* ── List item row ────────────────────────────────────────────────────────── */
.art-list-items { display: flex; flex-direction: column; gap: 4px; }

.art-list-item-row {
    display: flex;
    gap: 6px;
    align-items: center;
}

.art-list-item-row .art-block-input { flex: 1; }

.art-list-add-btn {
    padding: 4px 10px;
    font-size: 0.72rem;
    border-radius: 6px;
    border: 1px dashed var(--form-primary-border-color, rgba(71,85,105,0.5));
    background: transparent;
    color: var(--bs-accent, #6366f1);
    cursor: pointer;
    transition: background 0.12s ease;
    font-family: inherit;
}

.art-list-add-btn:hover { background: var(--bs-accent-glow, rgba(99,102,241,0.12)); }

/* ── Tags builder ─────────────────────────────────────────────────────────── */
.art-tags-wrap {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.art-tags-list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    min-height: 28px;
}

.art-tag-chip {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 10px;
    border-radius: 20px;
    background: var(--bs-accent-glow, rgba(99,102,241,0.18));
    border: 1px solid var(--bs-accent, #6366f1);
    color: var(--bs-accent-light, #a5b4fc);
    font-size: 0.72rem;
    font-weight: 500;
}

.art-tag-chip button {
    background: transparent;
    border: none;
    color: inherit;
    cursor: pointer;
    padding: 0;
    font-size: 0.8rem;
    line-height: 1;
    opacity: 0.7;
}

.art-tag-chip button:hover { opacity: 1; color: #dc3545; }

.art-tag-input-row {
    display: flex;
    gap: 6px;
}

.art-tag-input {
    flex: 1;
    padding: 5px 10px;
    border-radius: 6px;
    border: 1px solid var(--form-primary-border-color, rgba(71,85,105,0.5));
    background: var(--form-primary-bg-color, rgba(0,0,0,0.2));
    color: var(--form-primary-text-color, #d5dcf2);
    font-size: 0.82rem;
    font-family: inherit;
}

.art-tag-input:focus {
    outline: none;
    border-color: var(--bs-accent, #6366f1);
}

.art-tag-add-btn {
    padding: 5px 12px;
    border-radius: 6px;
    border: none;
    background: var(--bs-accent, #6366f1);
    color: #fff;
    font-size: 0.8rem;
    cursor: pointer;
    font-family: inherit;
    transition: background 0.12s ease;
}

.art-tag-add-btn:hover { background: var(--bs-accent-dark, #4338ca); }

/* ── Reading time display ─────────────────────────────────────────────────── */
.art-read-time-display {
    color: var(--form-secondary-text-color, #8f9bbf) !important;
    font-style: italic;
    cursor: default;
}

/* ── Article Reader ───────────────────────────────────────────────────────── */
.art-reader {
    padding: 20px 20px 40px;
    overflow-y: auto;
    color: var(--form-primary-text-color, #d5dcf2);
    font-size: 0.93rem;
    line-height: 1.75;
}

.art-reader-header {
    margin-bottom: 18px;
}

.art-badge-group {
    display: inline-block;
    padding: 4px 12px !important;
    border-radius: 20px;
    font-size: 0.72rem !important;
    font-weight: 700 !important;
    color: #ffffff !important;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    background: #4f46e5 !important;
    margin-bottom: 12px !important;
    box-shadow: 0 2px 6px rgba(79, 70, 229, 0.35);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
}

.art-reader-title {
    font-size: 1.75rem !important;
    font-weight: 700 !important;
    line-height: 1.3 !important;
    color: #ffffff !important;
    margin: 8px 0 14px !important;
    letter-spacing: -0.015em;
}

.art-reader-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    font-size: 0.78rem;
    color: var(--form-secondary-text-color, #8f9bbf);
}

.art-reader-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.art-reader-author {
    font-weight: 600;
    color: var(--form-primary-text-color, #d5dcf2);
}

.art-reader-sep {
    opacity: 0.4;
}

.art-reader-views {
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 3px;
}

.art-reader-views:hover {
    color: var(--bs-accent, #6366f1);
}

/* Cover image */
.art-reader-cover {
    margin: 16px 0;
    border-radius: 10px;
    overflow: hidden;
}

.art-reader-cover img {
    width: 100%;
    height: auto;
    display: block;
    max-height: 400px;
    object-fit: cover;
}

/* ── Reader body blocks ───────────────────────────────────────────────────── */
.art-reader-body {
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.art-block-paragraph {
    margin: 0;
    color: var(--form-primary-text-color, #d5dcf2);
    line-height: 1.8;
}

.art-block-heading.art-heading-2 {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--form-primary-text-color, #d5dcf2);
    margin: 0;
    padding-bottom: 6px;
    border-bottom: 2px solid var(--form-primary-border-color, rgba(71,85,105,0.4));
}

.art-block-heading.art-heading-3 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--form-primary-text-color, #d5dcf2);
    margin: 0;
}

.art-block-image img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    display: block;
}

/* Video embed */
.art-video-embed .art-video-ratio {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    border-radius: 8px;
    overflow: hidden;
}

.art-video-embed .art-video-ratio iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.art-block-video video {
    width: 100%;
    border-radius: 8px;
}

/* Standout quote */
.art-block-quote {
    border-left: 4px solid var(--bs-accent, #6366f1);
    padding: 14px 18px;
    margin: 0;
    background: var(--form-secondary-bg-color, rgba(99,102,241,0.07));
    border-radius: 0 8px 8px 0;
    font-style: italic;
    color: var(--form-primary-text-color, #d5dcf2);
    line-height: 1.7;
    font-size: 0.95rem;
    position: relative;
}

.art-quote-mark {
    font-size: 2.5rem;
    color: var(--bs-accent, #6366f1);
    line-height: 0;
    vertical-align: -0.6em;
    margin-right: 4px;
    display: inline-block;
}

/* Image rows */
.art-block-image-row {
    display: flex;
    gap: 10px;
}

.art-image-row-2 .art-image-col,
.art-image-row-3 .art-image-col {
    flex: 1;
    overflow: hidden;
    border-radius: 8px;
}

.art-image-row-2 .art-image-col img,
.art-image-row-3 .art-image-col img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    display: block;
}

/* Bulleted / ordered list */
.art-block-list {
    margin: 0;
    padding-left: 22px;
    color: var(--form-primary-text-color, #d5dcf2);
    line-height: 1.8;
}

.art-block-list li {
    margin-bottom: 4px;
}

/* ── Reader tags ──────────────────────────────────────────────────────────── */
.art-reader-tags {
    margin-top: 24px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    padding-top: 16px;
    border-top: 1px solid var(--form-primary-border-color, rgba(71,85,105,0.4));
}

.art-tags-label {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--form-secondary-text-color, #8f9bbf);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.art-reader-tag {
    display: inline-block;
    padding: 3px 12px;
    border-radius: 20px;
    background: var(--form-secondary-bg-color, rgba(0,0,0,0.12));
    border: 1px solid var(--form-primary-border-color, rgba(71,85,105,0.4));
    color: var(--form-primary-text-color, #d5dcf2);
    font-size: 0.76rem;
    cursor: pointer;
    transition: background 0.12s ease, border-color 0.12s ease;
}

.art-reader-tag:hover {
    background: var(--bs-accent-glow, rgba(99,102,241,0.15));
    border-color: var(--bs-accent, #6366f1);
    color: var(--bs-accent-light, #a5b4fc);
}

/* ── Responsive ───────────────────────────────────────────────────────────── */
@media (max-width: 600px) {
    .art-block-image-row {
        flex-direction: column;
    }

    .art-image-row-2 .art-image-col img,
    .art-image-row-3 .art-image-col img {
        height: 140px;
    }

    .art-reader-title {
        font-size: 1.1rem;
    }

    .art-block-toolbar {
        gap: 4px;
    }
}

/* ── Light mode overrides ─────────────────────────────────────────────────── */
body.light_mode .art-block-input,
body.light_mode .art-block-textarea,
body.light_mode .art-block-select,
body.light_mode .art-tag-input {
    background: rgba(0, 0, 0, 0.04);
    border-color: rgba(0, 0, 0, 0.15);
    color: #1f2328;
}

body.light_mode .art-block-item {
    background: rgba(0, 0, 0, 0.03);
    border-color: rgba(0, 0, 0, 0.1);
}

body.light_mode .art-add-block-btn {
    background: rgba(0, 0, 0, 0.04);
    border-color: rgba(0, 0, 0, 0.15);
    color: #374151;
}

body.light_mode .art-block-quote {
    background: rgba(99, 102, 241, 0.06);
}

body.light_mode .art-reader-tag {
    background: rgba(0, 0, 0, 0.05);
    border-color: rgba(0, 0, 0, 0.12);
    color: #374151;
}

/* ════════════════════════════════════════════════════════════════════
   ARTICLE CHAT CARD (posted to group via "Publish to Group")
   Reuses .url_meta structure — image left, details right.
   Matches block_posted_2group.png mockup.
   ════════════════════════════════════════════════════════════════════ */

/* Override the url_meta image size for article cards to match mockup */
.main .chatbox > .contents > .chat_messages > ul > li > div > .right > .files > div > ul > li > .url_meta.art-chat-card > .image {
    width: 80px;
    height: 80px;
    flex-shrink: 0;
}

/* Details panel: allow a bit more width for articles */
.main .chatbox > .contents > .chat_messages > ul > li > div > .right > .files > div > ul > li > .url_meta.art-chat-card > .details {
    max-width: 200px;
    max-height: none;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

/* Article title in chat card — bold, 2-line clamp */
.main .chatbox > .contents > .chat_messages > ul > li > div > .right > .files > div > ul > li > .url_meta.art-chat-card > .details > .title {
    font-weight: 700;
    font-size: var(--chat-window-primary-font-size);
    color: var(--chat-window-octonary-text-color);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    max-height: none;
    line-height: 1.4;
}

/* Description area: meta rows */
.art-chat-meta {
    display: flex !important;
    flex-direction: column;
    gap: 4px;
    font-size: var(--chat-window-tertiary-font-size);
    color: var(--chat-window-secondary-text-color, #8f9bbf);
}

.art-chat-meta-row {
    display: flex;
    align-items: center;
    gap: 4px;
    white-space: nowrap;
}

.art-chat-author {
    display: flex;
    align-items: center;
    gap: 5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Cursor pointer on the whole card (it opens the article reader) */
.url_meta.art-chat-card {
    cursor: pointer;
}

/* ════════════════════════════════════════════════════════════════════
   MIDDLE COLUMN ARTICLE READER VIEW
   ════════════════════════════════════════════════════════════════════ */

.articles_middle_view {
    height: 100%;
    width: 100%;
    overflow-y: auto;
    overflow-x: hidden;
    background: var(--chat-page-bg-color, #131722);
}

.articles_reader_wrapper {
    max-width: 860px;
    margin: 0 auto;
    padding: 24px 28px 60px;
    min-height: 100%;
    display: flex;
    flex-direction: column;
}

.articles_reader_container {
    width: 100%;
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* ── New Article Monkey Placeholder ── */
.articles_new_placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex: 1;
    min-height: calc(100vh - 140px);
    width: 100%;
    text-align: center;
    padding: 40px 20px;
    box-sizing: border-box;
}

.articles_new_placeholder_inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    max-width: 480px;
    margin: auto 0;
}

.articles_monkey_img {
    width: 210px;
    height: auto;
    max-width: 100%;
    display: block;
    margin: 0 auto 20px;
    user-select: none;
    -webkit-user-drag: none;
    pointer-events: none;
}

.articles_monkey_title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 8px;
    letter-spacing: -0.01em;
}

.articles_monkey_subtitle {
    font-size: 0.85rem;
    color: var(--form-secondary-text-color, #8f9bbf);
    margin: 0;
    line-height: 1.5;
}

.articles_middle_view .art-reader {
    padding: 0;
    overflow-y: visible;
}

.articles_middle_view .art-reader-title {
    font-size: 1.75rem !important;
    font-weight: 700 !important;
    line-height: 1.3 !important;
    margin: 8px 0 14px !important;
    color: #ffffff !important;
    letter-spacing: -0.015em;
}

.articles_middle_view .art-reader-cover {
    margin: 18px 0 24px;
    width: 100%;
}

.articles_middle_view .art-reader-cover img {
    width: 100%;
    border-radius: 12px;
    object-fit: cover;
    max-height: 440px;
    display: block;
}

.articles_middle_view .art-reader-meta {
    gap: 8px;
    font-size: 0.82rem !important;
    margin-bottom: 6px;
    color: #94a3b8 !important;
}

.articles_middle_view .art-reader-author {
    color: #ffffff !important;
    font-weight: 600 !important;
}

.articles_middle_view .art-reader-body {
    font-size: 0.98rem !important;
    line-height: 1.85 !important;
}

.articles_middle_view .art-block-paragraph,
.art-block-paragraph {
    margin-bottom: 20px !important;
    color: #e2e8f0 !important;
    font-size: 0.98rem !important;
    line-height: 1.85 !important;
    font-weight: 400 !important;
}

.articles_middle_view .art-block-heading {
    color: #ffffff !important;
    font-weight: 700 !important;
    margin-top: 28px !important;
    margin-bottom: 14px !important;
}

.articles_middle_view .art-heading-2 {
    font-size: 1.35rem !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
    padding-bottom: 8px !important;
}

.articles_middle_view .art-heading-3 {
    font-size: 1.15rem !important;
}

/* Active article item highlight in aside list */
.main .aside > .site_records > .records > .list > li.article_item {
    cursor: pointer;
    transition: background-color 0.15s ease, border-color 0.15s ease;
}

.main .aside > .site_records > .records > .list > li.article_item.active {
    background: rgba(99, 102, 241, 0.14) !important;
    border-left: 3px solid var(--bs-accent, #6366f1) !important;
}

.main .aside > .site_records > .records > .list > li.article_item:hover:not(.active) {
    background: rgba(255, 255, 255, 0.04);
}

.main .aside > .site_records > .records > .list > li.article_item .art-badge {
    color: #ffffff !important;
    background: #4f46e5 !important;
    font-weight: 700 !important;
    font-size: 0.68rem !important;
    padding: 2px 8px !important;
    letter-spacing: 0.04em;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
}

.main .aside > .site_records > .records > .list > li.article_item .art-card-meta-row {
    color: #94a3b8 !important;
    font-size: 0.74rem !important;
}

.main .aside > .site_records > .records > .list > li.article_item .art-author-name {
    color: #cbd5e1 !important;
    font-weight: 500 !important;
}

/* ── Cover Image Preview in Create/Edit Form ── */
.art-cover-preview-field {
    margin: 8px 0 !important;
}

.art-cover-preview-box {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-top: 6px;
}

.art-cover-preview-img {
    max-width: 100%;
    max-height: 160px;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

body.light_mode .art-cover-preview-img {
    border-color: rgba(0, 0, 0, 0.15);
}

.art-cover-preview-sub {
    font-size: 0.75rem;
    color: var(--form-secondary-text-color, #94a3b8);
}

/* ── Content Block Image Upload Component ── */
.art-block-upload-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
    flex-wrap: wrap;
}

.art-block-upload-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    font-size: 0.8rem;
    font-weight: 600;
    color: #e2e8f0;
    background: rgba(99, 102, 241, 0.18);
    border: 1px solid rgba(99, 102, 241, 0.4);
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.15s ease;
}

.art-block-upload-btn:hover {
    background: rgba(99, 102, 241, 0.35);
    border-color: #6366f1;
    color: #ffffff;
}

.art-block-upload-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.art-block-thumb-preview {
    position: relative;
    display: inline-flex;
    align-items: center;
    width: 64px;
    height: 48px;
    border-radius: 6px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.15);
    background: #000;
}

.art-block-thumb-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.art-block-thumb-remove {
    position: absolute;
    top: 2px;
    right: 2px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
    border: none;
    font-size: 13px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 0;
}

.art-block-thumb-remove:hover {
    background: #ef4444;
}

/* ── Fullscreen Clickable Images in Middle View ── */
.articles_middle_view .art-reader-cover img,
.articles_middle_view .art-block-image img,
.articles_middle_view .art-image-col img,
.articles_middle_view .art-reader-body img {
    cursor: zoom-in;
    transition: filter 0.2s ease, transform 0.2s ease;
}

.articles_middle_view .art-reader-cover img:hover,
.articles_middle_view .art-block-image img:hover,
.articles_middle_view .art-image-col img:hover,
.articles_middle_view .art-reader-body img:hover {
    filter: brightness(1.05);
}

/* Fallback Fullscreen Lightbox */
.art-fullscreen-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.22s ease, visibility 0.22s ease;
}

.art-fullscreen-modal.active {
    opacity: 1;
    visibility: visible;
}

.art-fullscreen-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(8px);
}

.art-fullscreen-content {
    position: relative;
    max-width: 95vw;
    max-height: 95vh;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
}

.art-fullscreen-img {
    max-width: 95vw;
    max-height: 95vh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.85);
    user-select: none;
}

.art-fullscreen-close {
    position: fixed;
    top: 20px;
    right: 25px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: #ffffff;
    font-size: 28px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: background 0.15s ease, transform 0.15s ease;
}

.art-fullscreen-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.08);
}


