/* Sidebar Styles - Common for all sections */

/* Main Sidebar Container */
.articles-sidebar {
    position: sticky;
    top: 72px;
    align-self: start;
    height: fit-content;
    box-sizing: border-box;
}

/* Specific sidebar adjustments for competitions only */
.competitions-page-wrapper .articles-sidebar {
    margin-top: -20px;
}

/* Sidebar Widget Styles */
.sidebar-widget {
    background: white;
    border-radius: 6px;
    padding: 10px 12px;
    box-shadow: none;
    margin-bottom: 8px;
    border: 1px solid #e2e6ea;
}

/* Widget Title Styles */
.widget-title {
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 0 0 8px 0;
    color: #374151;
    font-size: 0.82rem;
    font-weight: 600;
}

.widget-title i {
    color: #5eb4b8;
    font-size: 0.78rem;
}

/* Tags / filter chips */
.tag-actions {
    padding-top: 0;
    border-top: none;
    margin-bottom: 8px;
}

.all-tags-link {
    display: inline-flex;
    align-items: center;
    padding: 4px 8px;
    background: #f9fafb;
    color: #4b5563;
    text-decoration: none;
    border-radius: 4px;
    border: 1px solid #e5e7eb;
    font-size: 0.74rem;
    font-weight: 600;
    transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.all-tags-link:hover,
.all-tags-link.active {
    background: #5eb4b8;
    border-color: #5eb4b8;
    color: white;
}

.tags-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}

.tag-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 7px;
    background: #f9fafb;
    color: #4b5563;
    text-decoration: none;
    border-radius: 4px;
    border: 1px solid #e5e7eb;
    font-size: 0.74rem;
    font-weight: 500;
    transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.tag-link:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
    color: #1f2937;
}

.tag-link.active {
    background: #5eb4b8;
    border-color: #5eb4b8;
    color: white;
    font-weight: 600;
}

.tag-count {
    background: rgba(0, 0, 0, 0.06);
    color: inherit;
    padding: 1px 4px;
    border-radius: 3px;
    font-size: 0.65rem;
    font-weight: 600;
    text-align: center;
}

.tag-link:hover .tag-count,
.tag-link.active .tag-count {
    background: rgba(255, 255, 255, 0.25);
    color: inherit;
}

.no-tags {
    text-align: left;
    color: #9ca3af;
    font-style: normal;
    font-size: 0.74rem;
    padding: 6px 0 2px;
    margin: 0;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .articles-sidebar {
        position: static;
        order: -1;
    }

    .sidebar-widget {
        padding: 10px 12px;
        margin-bottom: 8px;
    }
}
