/**
 * News section styles.
 *
 * The News archive and single pages deliberately reuse the Events classes
 * (.event-card, .event-image-wrapper, .event-date-badge, .event-location,
 * .event-title, .event-meta, .single-event-hero, .single-event-details-modern)
 * so the look matches Events exactly. This file only adds the few extras the
 * News section introduces: the sidebar, pagination, tags, share buttons and the
 * previous/next navigation.
 */

/* ----------------------------------------------------------------- Sidebar */
.lenspo-news-sidebar .widgettitle {
    display: block !important;
    width: 100%;
    color: var(--lp-primary-deep, #4510A0);
    font-weight: 700;
    font-size: 0.8rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin: 0 0 0.85rem;
    padding-bottom: 0.55rem;
    border-bottom: 2px solid var(--lp-primary, #6C1CEA);
    white-space: nowrap;
}

/* Kill ConvertSite ::after divider — it stacked a second line under the title */
.lenspo-news-sidebar .widgettitle::after,
.lp-ux-modern .lenspo-news-sidebar .widgettitle::after,
.lp-ux-modern .home-section-events aside .widgettitle::after,
.lp-ux-modern aside .widgettitle::after {
    content: none !important;
    display: none !important;
}

.lenspo-news-sidebar .widget {
    background: var(--lp-surface, #fff);
    border: 1px solid var(--lp-border, #E5E7EB);
    border-radius: var(--lp-radius, 16px);
    padding: 1.25rem;
    box-shadow: var(--lp-shadow, 0 10px 30px rgba(14, 8, 43, 0.08));
    margin-bottom: 1.25rem;
}

.lenspo-news-sidebar .wp-block-categories {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.lenspo-news-sidebar .cat-item {
    margin-bottom: 0;
}

.lenspo-news-sidebar .cat-item a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.6rem 0.85rem;
    text-decoration: none;
    color: var(--lp-text, #514F4C);
    border-radius: var(--lp-radius-sm, 10px);
    transition: background var(--lp-transition, 0.28s ease), color var(--lp-transition, 0.28s ease);
}

.lenspo-news-sidebar .cat-item__label {
    min-width: 0;
    overflow-wrap: anywhere;
}

.lenspo-news-sidebar .cat-item__count {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.6rem;
    padding: 0.15rem 0.5rem;
    border-radius: var(--lp-radius-pill, 999px);
    background: var(--lp-primary-soft, #F3ECFE);
    color: var(--lp-primary-deep, #4510A0);
    font-size: 0.75rem;
    font-weight: 700;
    line-height: 1.4;
}

.lenspo-news-sidebar .cat-item a:hover,
.lenspo-news-sidebar .cat-item.current-cat a {
    background: var(--lp-primary, #6C1CEA);
    color: #fff;
}

.lenspo-news-sidebar .cat-item a:hover .cat-item__count,
.lenspo-news-sidebar .cat-item.current-cat a .cat-item__count {
    background: rgba(255, 255, 255, 0.22);
    color: #fff;
}

/* ------------------------------------------------- Popular category chips */
.lenspo-news-sidebar .lenspo-popular-cats {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.lenspo-news-sidebar .lenspo-cat-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    max-width: 100%;
    padding: 0.45rem 0.8rem;
    border: 1px solid var(--lp-border, #E5E7EB);
    border-radius: var(--lp-radius-pill, 999px);
    background: var(--lp-surface, #fff);
    color: var(--lp-ink, #0E082B);
    font-size: 0.8rem;
    font-weight: 600;
    line-height: 1.3;
    text-decoration: none;
    transition:
        background var(--lp-transition, 0.28s ease),
        border-color var(--lp-transition, 0.28s ease),
        color var(--lp-transition, 0.28s ease);
}

.lenspo-news-sidebar .lenspo-cat-chip__label {
    min-width: 0;
    overflow-wrap: anywhere;
}

.lenspo-news-sidebar .lenspo-cat-chip__count {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.35rem;
    padding: 0.05rem 0.4rem;
    border-radius: var(--lp-radius-pill, 999px);
    background: var(--lp-primary-soft, #F3ECFE);
    color: var(--lp-primary-deep, #4510A0);
    font-size: 0.7rem;
    font-weight: 700;
}

.lenspo-news-sidebar .lenspo-cat-chip:hover {
    background: var(--lp-primary, #6C1CEA);
    border-color: var(--lp-primary, #6C1CEA);
    color: #fff;
}

.lenspo-news-sidebar .lenspo-cat-chip:hover .lenspo-cat-chip__count {
    background: rgba(255, 255, 255, 0.22);
    color: #fff;
}

.lenspo-news-sidebar .lenspo-recent-title {
    color: #333;
    text-decoration: none;
    font-size: 0.92rem;
    line-height: 1.35;
    transition: color 0.25s ease;
}

.lenspo-news-sidebar .lenspo-recent-title:hover {
    color: #6C1CEA;
}

.lenspo-news-search-form .winner-search-input {
    border: 2px solid #dee2e6;
    border-radius: 8px;
    padding: 0.7rem 1rem;
}

.lenspo-news-search-form .winner-search-input:focus {
    border-color: #4510A0;
    box-shadow: 0 0 0 0.2rem rgba(43, 139, 71, 0.2);
    outline: none;
}

/* ------------------------------------------------------------- Pagination */
.lenspo-news-pagination {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
}

.lenspo-news-pagination .page-numbers {
    display: inline-block;
    padding: 10px 16px;
    border-radius: 8px;
    background: #fff;
    border: 1px solid #e2e6ea;
    color: #6C1CEA;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.25s ease;
}

.lenspo-news-pagination .page-numbers:hover,
.lenspo-news-pagination .page-numbers.current {
    background: #6C1CEA;
    border-color: #6C1CEA;
    color: #fff;
}

/* ------------------------------------------------------ Single news extras */
.news-tags a {
    display: inline-block;
    background: #f1f5f2;
    color: #6C1CEA;
    padding: 0.3em 0.7em;
    border-radius: 20px;
    font-size: 0.82rem;
    text-decoration: none;
    margin: 0 0.25rem 0.4rem 0;
    transition: all 0.25s ease;
}

.news-tags a:hover {
    background: #6C1CEA;
    color: #fff;
}

.news-share-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: #6C1CEA;
    color: #fff !important;
    margin-right: 6px;
    transition: transform 0.25s ease, background 0.25s ease;
}

.news-share-btn:hover {
    background: #4510A0;
    transform: translateY(-2px);
}

.news-adjacent-link {
    text-decoration: none;
    color: #333;
    padding: 1rem;
    border: 1px solid #e9ecef;
    border-radius: 10px;
    display: block;
    height: 100%;
    transition: all 0.25s ease;
}

.news-adjacent-link:hover {
    border-color: #6C1CEA;
    box-shadow: 0 6px 18px rgba(43, 139, 71, 0.12);
    color: #6C1CEA;
}

.news-source .btn i {
    margin-right: 6px;
}
