/* Sidebar Component Styles */
.component-sidebar {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.component-sidebar .component-title {
    color: #2c3e50;
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
    border-bottom: 2px solid #3498db;
    padding-bottom: 0.5rem;
}

.sidebar-content {
    /* Container for sidebar content - spacing handled by parent */
}

.sidebar-widget {
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #e9ecef;
}

.sidebar-widget:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.widget-title {
    color: #495057;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
}

.widget-title::before {
    content: '';
    width: 4px;
    height: 20px;
    background: #3498db;
    margin-right: 0.75rem;
    border-radius: 2px;
}

/* Quick Links */
.sidebar-content ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-content li {
    margin-bottom: 0.5rem;
}

.sidebar-content a {
    color: #6c757d;
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.3s ease;
    display: flex;
    align-items: center;
}

.sidebar-content a:hover {
    color: #3498db;
}

.sidebar-content a::before {
    content: '→';
    margin-left: 0.5rem;
    color: #3498db;
    font-weight: bold;
}

/* Recent Posts */
.recent-posts {
    /* Container for recent posts - spacing handled by child elements */
}

.recent-post-item {
    margin-bottom: 0.75rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #f1f3f4;
}

.recent-post-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.recent-post-item a {
    color: #495057 !important;
    font-size: 0.9rem;
    line-height: 1.4;
}

.recent-post-item a:hover {
    color: #3498db !important;
}

.recent-post-item a::before {
    content: '📄';
    margin-right: 0.5rem;
}

/* Categories */
.categories-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.categories-list .badge {
    background: #e3f2fd !important;
    color: #1976d2 !important;
    border: 1px solid #bbdefb;
    font-size: 0.85rem;
    padding: 0.375rem 0.75rem;
    transition: all 0.3s ease;
}

.categories-list .badge:hover {
    background: #1976d2 !important;
    color: white !important;
    transform: translateY(-1px);
    box-shadow: 0 2px 5px rgba(25, 118, 210, 0.3);
}

/* Responsive Design */
@media (max-width: 768px) {
    .component-sidebar {
        padding: 1rem;
        margin-bottom: 1.5rem;
    }

    .component-sidebar .component-title {
        font-size: 1.1rem;
    }

    .widget-title {
        font-size: 1rem;
    }

    .sidebar-content a {
        font-size: 0.9rem;
    }

    .recent-post-item a {
        font-size: 0.85rem;
    }

    .categories-list {
        gap: 0.375rem;
    }

    .categories-list .badge {
        font-size: 0.8rem;
        padding: 0.25rem 0.5rem;
    }
}

@media (max-width: 576px) {
    .component-sidebar {
        padding: 0.75rem;
    }

    .sidebar-widget {
        margin-bottom: 1rem;
    }

    .categories-list .badge {
        display: block;
        width: 100%;
        margin-bottom: 0.25rem;
        text-align: center;
    }
}