/* ================================================================
   Crypto Live News Feed Styles
   Class prefix: cln-
   ================================================================ */

/* ── Page Header ─────────────────────────────────────────────── */
.cln-page-description {
    font-size: 15px;
    color: #6c6c6c;
    line-height: 1.65;
    margin-top: 8px;
    max-width: 700px;
}

/* ── Feed Section ────────────────────────────────────────────── */
.cln-feed-section {
    padding: 10px 0 50px;
}

/* ── Date Divider ────────────────────────────────────────────── */
.cln-date-divider {
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 28px 0 12px 12px;
}

.cln-date-label {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.07em;
    color: #181c47;
    text-transform: uppercase;
}

.cln-date-count {
    font-size: 11px;
    font-weight: 600;
    color: #1a56db;
}

/* ── Date Group (timeline spine) ─────────────────────────────── */
.cln-date-group {
    position: relative;
    margin-left: 12px;
    padding-left: 22px;
    border-left: 2px solid #1a56db;
    margin-bottom: 8px;
}

/* ── Feed Item ───────────────────────────────────────────────── */
.cln-feed-item {
    position: relative;
    padding: 20px 0 24px;
    border-bottom: 1px solid #efefef;
}

.cln-feed-item:last-child {
    border-bottom: none;
}

/* Diamond marker positioned on the timeline spine */
.cln-feed-item::before {
    content: '';
    position: absolute;
    left: -28px;
    top: 26px;
    width: 10px;
    height: 10px;
    background-color: #1a56db;
    transform: rotate(45deg);
    z-index: 1;
}

/* ── Item Meta Row ───────────────────────────────────────────── */
.cln-item-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 10px;
    flex-wrap: wrap;
}

.cln-meta-left {
    display: flex;
    align-items: center;
    gap: 5px;
    flex-wrap: wrap;
}

/* Category badge – plain inline style, no pill background */
.cln-meta-left a.cln-category-badge,
.cln-meta-left .ce-post-category.cln-category-badge {
    font-size: 12px !important;
    font-weight: 700 !important;
    color: #181c47 !important;
    text-decoration: none !important;
    background: none !important;
    border: none !important;
    padding: 0 !important;
    border-radius: 0 !important;
    line-height: 1;
}

.cln-meta-left a.cln-category-badge:hover,
.cln-meta-left .ce-post-category.cln-category-badge:hover {
    color: #1a56db !important;
}

.cln-meta-sep {
    color: #ccc;
    font-size: 11px;
    line-height: 1;
}

.cln-author {
    font-size: 12px;
    font-weight: 500;
    color: #555;
    line-height: 1;
}

.cln-author a {
    color: #1a56db;
    text-decoration: none;
}

.cln-author a:hover {
    text-decoration: underline;
}

.cln-time-ago {
    font-size: 12px;
    color: #999;
    font-weight: 400;
    line-height: 1;
}

/* Share button – compact, aligned to the right of meta row */
.cln-meta-right {
    flex-shrink: 0;
    line-height: 1;
}

.cln-meta-right .ce-post-sharing-visible {
    position: static;
    display: inline-flex;
    align-items: center;
}

.cln-meta-right .ce-social-sharing-button {
    display: inline-flex;
}

.cln-meta-right .ce-social-sharing-button a {
    padding: 4px 6px;
    font-size: 14px;
    color: #aaa;
    transition: color 0.15s;
}

.cln-meta-right .ce-social-sharing-button a:hover {
    color: #1a56db;
}

/* ── Item Title ──────────────────────────────────────────────── */
.cln-item-title {
    font-size: 18px;
    font-weight: 700;
    line-height: 1.35;
    margin: 0 0 10px;
    color: #181c47;
}

.cln-item-title a {
    color: inherit;
    text-decoration: none;
}

.cln-item-title a:hover {
    color: #1a56db;
}

/* ── Item Body / Excerpt ─────────────────────────────────────── */
.cln-item-body {
    font-size: 15px;
    line-height: 1.65;
    color: #555;
}

.cln-item-body p {
    margin: 0 0 6px;
}

.cln-item-body p:last-child {
    margin-bottom: 0;
}

/* ── Mobile ──────────────────────────────────────────────────── */
@media (max-width: 768px) {
    .cln-date-group {
        margin-left: 6px;
        padding-left: 16px;
    }

    .cln-feed-item::before {
        left: -21px;
    }

    .cln-item-title {
        font-size: 16px;
    }

    .cln-item-body {
        font-size: 14px;
    }

    .cln-item-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }
}

/* ── Dark Mode ───────────────────────────────────────────────── */
body.ce-dark-mode .cln-date-label {
    color: #e2e8f0;
}

body.ce-dark-mode .cln-date-count {
    color: #63b3ed;
}

body.ce-dark-mode .cln-date-group {
    border-left-color: #3b82f6;
}

body.ce-dark-mode .cln-feed-item::before {
    background-color: #3b82f6;
}

body.ce-dark-mode .cln-feed-item {
    border-bottom-color: #2d3748;
}

body.ce-dark-mode .cln-item-title {
    color: #f0f4f8;
}

body.ce-dark-mode .cln-item-title a {
    color: #f0f4f8;
}

body.ce-dark-mode .cln-item-title a:hover {
    color: #63b3ed;
}

body.ce-dark-mode .cln-item-body {
    color: #a0aec0;
}

body.ce-dark-mode .cln-author a {
    color: #63b3ed;
}

body.ce-dark-mode .cln-meta-left a.cln-category-badge,
body.ce-dark-mode .cln-meta-left .ce-post-category.cln-category-badge {
    color: #e2e8f0 !important;
}

body.ce-dark-mode .cln-page-description {
    color: #a0aec0;
}
