/* ========================================
   Modern Sidebar Styling
   ======================================== */

.sidebar-modern {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.sidebar-modern .tellerpan {
    background: transparent;
}

.sidebar-widget {
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

.sidebar-widget__title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 16px;
    font-weight: 600;
    color: #222;
    margin: 0 0 16px 0;
    padding-bottom: 12px;
    border-bottom: 2px solid #f0f0f0;
}

.sidebar-widget__title svg {
    color: #f1633b;
}

/* Search Discovery Promo Widget */
.sidebar-search-promo {
    background: linear-gradient(135deg, #f1633b 0%, #e04e28 100%);
    color: #fff;
    text-align: center;
    padding: 24px 20px;
    margin-top: 20px;
}

.search-promo__icon {
    width: 56px;
    height: 56px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
}

.search-promo__icon svg {
    color: #fff;
}

.search-promo__title {
    font-size: 18px;
    font-weight: 700;
    margin: 0 0 8px 0;
    color: #fff;
}

.search-promo__text {
    font-size: 13px;
    opacity: 0.9;
    margin: 0 0 16px 0;
    line-height: 1.5;
}

.search-promo__button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #fff;
    color: #f1633b;
    padding: 10px 20px;
    border-radius: 25px;
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    transition: all 0.2s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.search-promo__button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
    color: #e04e28;
    text-decoration: none;
}

.search-promo__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    justify-content: center;
    margin-top: 16px;
}

.search-promo__tag {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 11px;
    text-decoration: none;
    transition: background 0.2s ease;
}

.search-promo__tag:hover {
    background: rgba(255, 255, 255, 0.35);
    color: #fff;
    text-decoration: none;
}

/* News List Styling */
.news-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.news-item {
    border-bottom: 1px solid #f0f0f0;
    padding-bottom: 0;
    margin-bottom: 0;
}

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

.news-item__link {
    display: flex;
    gap: 12px;
    padding: 12px 0;
    text-decoration: none;
    transition: background 0.2s ease;
    border-radius: 8px;
    margin: 0 -8px;
    padding-left: 8px;
    padding-right: 8px;
}

.news-item__link:hover {
    background: #f8f8f8;
    text-decoration: none;
}

.news-item__image {
    flex-shrink: 0;
    width: 70px;
    height: 50px;
    border-radius: 6px;
    overflow: hidden;
    background: #f0f0f0;
}

.news-item__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.news-item__placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ccc;
}

.news-item__content {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.news-item__title {
    font-size: 13px;
    font-weight: 600;
    color: #222;
    margin: 0 0 4px 0;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-item__link:hover .news-item__title {
    color: #f1633b;
}

.news-item__meta {
    display: flex;
    align-items: center;
    gap: 8px;
}

.news-item__category {
    font-size: 11px;
    color: #fff;
    background: #f1633b;
    padding: 2px 8px;
    border-radius: 10px;
    font-weight: 500;
}

/* Override old posts_sidebar styles in new sidebar */
.sidebar-modern .posts_sidebar {
    margin-top: 0;
    font-size: inherit;
}

.sidebar-modern .posts_sidebar > h4 {
    display: none; /* We use sidebar-widget__title instead */
}

.sidebar-modern .posts_sidebar ul {
    display: block;
}

.sidebar-modern .posts_sidebar ul li {
    border-bottom: none;
    padding-bottom: 0;
    margin-bottom: 0;
    display: block;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .sidebar-search-promo {
        padding: 20px 16px;
    }

    .search-promo__title {
        font-size: 16px;
    }

    .search-promo__icon {
        width: 48px;
        height: 48px;
    }

    .search-promo__icon svg {
        width: 24px;
        height: 24px;
    }
}
