/* Sidebar Styles */
.sidebar {
    background: rgba(30, 15, 38, 0.4);
    border-radius: var(--card-radius, 16px);
    padding: 2rem;
    height: fit-content;
    position: sticky;
    top: 100px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.light-mode .sidebar {
    background: rgba(255, 255, 255, 0.6);
}

.sidebar-section {
    margin-bottom: 2.5rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid rgba(191, 162, 219, 0.1);
}

.sidebar-section:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.sidebar-title {
    font-family: var(--heading-font, 'Playfair Display', serif);
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
    color: var(--light-accent);
    border-bottom: 2px solid var(--light-accent);
    padding-bottom: 0.5rem;
}

.light-mode .sidebar-title {
    color: var(--primary-dark);
    border-bottom-color: var(--primary-dark);
}

/* Content Navigation */
.content-nav {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.content-nav-item {
    display: flex;
    align-items: center;
    padding: 1rem;
    background: rgba(30, 15, 38, 0.6);
    border-radius: var(--card-radius, 16px);
    text-decoration: none;
    color: var(--text-dark);
    transition: all 0.3s ease;
}

.light-mode .content-nav-item {
    background: rgba(255, 255, 255, 0.8);
    color: var(--text-dark);
}

.content-nav-item:hover {
    transform: translateX(5px);
    background: var(--hover-accent);
    color: var(--light-accent);
}

.content-nav-item .icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
    font-weight: 700;
    font-size: 0.9rem;
    margin-right: 0.75rem;
}

.light-mode .content-nav-item .icon {
    background: rgba(59, 28, 74, 0.08);
}

.content-nav-item .label {
    flex-grow: 1;
    font-weight: 500;
}

.content-nav-item .count {
    background: rgba(191, 162, 219, 0.2);
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.9rem;
}

/* Sidebar Posts */
.sidebar-post {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 0;
    border-bottom: 1px solid rgba(191, 162, 219, 0.1);
    transition: transform 0.3s ease;
}

.sidebar-post:hover {
    transform: translateX(5px);
}

.sidebar-post:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.sidebar-post-thumbnail {
    flex-shrink: 0;
    width: 70px;
    height: 70px;
    border-radius: 10px;
    overflow: hidden;
}

.sidebar-post-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.sidebar-post:hover .sidebar-post-thumbnail img {
    transform: scale(1.1);
}

.sidebar-post-content {
    flex-grow: 1;
    min-width: 0; /* Prevents text overflow */
}

.sidebar-post-title a {
    color: var(--light-accent);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    display: -webkit-box;
    display: box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    box-orient: vertical;
    overflow: hidden;
    transition: color 0.3s ease;
}

.light-mode .sidebar-post-title a {
    color: var(--primary-dark);
}

.sidebar-post-title a:hover {
    color: var(--link-color);
}

.sidebar-post-meta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.5rem;
    font-size: 0.8rem;
    opacity: 0.8;
}
