/* 
 * Sidebar CSS - Standalone styles for sidebar components
 * DỰ ÁN: CHUYỂN ĐỒI TINTUCVIETDUC.NET SANG HỆ THỐNG FILE TĨNH THVAHOME
 */

/* Sidebar container */
.sidebar { 
    position: sticky; 
    top: 80px; 
    height: calc(100vh - 140px); 
    overflow-y: auto; 
    padding: 20px; 
    background: #f8f9fa;
}

.sidebar-widget {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 20px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}

.sidebar-widget h3 {
    font-size: 16px;
    font-weight: 700;
    color: #1a1a2e;
    margin: 0 0 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.sidebar-widget h3 .subtitle {
    font-size: 12px;
    font-weight: 400;
    color: #666;
}

/* Recent list styles */
.recent-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.recent-list li {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 8px 0;
    border-bottom: 1px solid #f0f2f5;
}

.recent-list li:last-child {
    border-bottom: none;
}

.recent-list a {
    font-size: 14px;
    color: #222;
    font-weight: 500;
    text-decoration: none;
    display: block;
}

.recent-list a:hover {
    color: #e67e22;
}

.recent-list .date {
    font-size: 12px;
    color: #666;
}

/* Hot News List */
.hot-news-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.hot-news-item {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.hot-news-item h4 {
    font-size: 14px;
    margin: 0;
}

.hot-news-item h4 a {
    color: #222;
    text-decoration: none;
}

.hot-news-item h4 a:hover {
    color: #e67e22;
}

.hot-news-category {
    font-size: 12px;
    color: #666;
}

/* Tags Cloud */
.tags-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag-link {
    display: inline-block;
    background: #e7f4ff;
    color: #1a73e8;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    text-decoration: none;
}

.tag-link:hover {
    background: #d2e3fc;
}

.tag-link ~ .tag-count {
    font-size: 10px;
    color: #999;
}

/* Tuvi tags */
.tuvi-tags .tag-link {
    background: #fef3c7;
    color: #92400e;
}

.tuvi-tags .tag-link:hover {
    background: #fef7ed;
}

/* Banner widgets */
.banner-widget {
    text-align: center;
    padding: 0;
    background: transparent;
    box-shadow: none;
    margin: 12px 0;
}

.banner-widget img {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
}

/* Community list */
.community-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.community-list li {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 8px 0;
    border-bottom: 1px solid #f0f2f5;
}

.community-list li:last-child {
    border-bottom: none;
}

.community-list a {
    font-size: 14px;
    color: #222;
    font-weight: 500;
    text-decoration: none;
}

.community-list a:hover {
    color: #e67e22;
}

/* Article page sidebar integration */
.article-page .sidebar {
    position: static;
    height: auto;
    overflow: visible;
    background: transparent;
}

.article-page .sidebar-widget {
    margin-bottom: 16px;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .sidebar {
        padding: 10px;
    }
    
    .sidebar-widget {
        padding: 12px;
    }
    
    .recent-list li, .community-list li {
        font-size: 13px;
    }
    
    .tag-link {
        font-size: 11px;
        padding: 5px 10px;
    }
}