/* Additional article styles for author avatar and info box */
.author-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid white;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.article-author-preview {
    width: 50px;
    height: 50px;
    object-fit: cover;
}

.related-author-avatar {
    width: 30px;
    height: 30px;
    object-fit: cover;
}

.author-info {
    background-color: #f8f8f8;
    padding: 25px;
    border-radius: 10px;
    margin: 40px 0;
    box-shadow: 0 3px 10px rgba(0,0,0,0.05);
}

.author-bio {
    color: #555;
    margin-top: 15px;
    line-height: 1.6;
}

.author-social {
    margin-top: 15px;
}

.author-social a {
    color: #666;
    margin-right: 15px;
    font-size: 1.2rem;
    text-decoration: none;
}

.author-social a:hover {
    color: #007bff;
}

/* Card styling for related articles */
.card {
    transition: transform 0.2s, box-shadow 0.2s;
    border: none;
    box-shadow: 0 3px 10px rgba(0,0,0,0.08);
    height: 100%;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.card-img-top {
    height: 180px;
    object-fit: cover;
}

.featured-image {
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    width: 100%;
}

/* Article content formatting */
.article-content {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #333;
}

.article-content p {
    margin-bottom: 1.5rem;
}

.article-content img {
    max-width: 100%;
    height: auto;
    margin: 20px 0;
    display: block;
    border-radius: 8px;
}

.article-content h2,
.article-content h3 {
    margin-top: 30px;
    margin-bottom: 20px;
}

/* Sidebar Styles */
.sidebar-container {
    padding: 20px;
    background-color: var(--color-background-alt, #f8f9fa);
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    margin-top: 30px;
    position: sticky;
    top: 30px;
}

.sidebar-widget {
    margin-bottom: 35px;
    padding-bottom: 25px;
    border-bottom: 1px solid var(--color-border, #dee2e6);
}

.sidebar-widget:last-child {
    margin-bottom: 0;
    border-bottom: none;
    padding-bottom: 0;
}

.sidebar-title {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 20px;
    padding-bottom: 10px;
    position: relative;
    color: var(--color-text, #333);
}

.sidebar-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background-color: var(--color-primary, #007bff);
    border-radius: 3px;
}

.sidebar-author {
    text-align: center;
}

.sidebar-author-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 15px;
    border: 3px solid white;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}

.sidebar-author h5 {
    margin-bottom: 10px;
    font-weight: 600;
}

.sidebar-author-bio {
    font-size: 0.9rem;
    color: var(--color-text-light, #666);
    margin-bottom: 15px;
    line-height: 1.6;
}

.sidebar-author-social {
    display: flex;
    justify-content: center;
    margin-top: 15px;
    gap: 15px;
}

.sidebar-author-social a {
    color: var(--color-text-light, #666);
    font-size: 1.2rem;
    transition: color 0.3s ease;
}

.sidebar-author-social a:hover {
    color: var(--color-primary, #007bff);
}

.sidebar-search {
    position: relative;
}

.sidebar-search input {
    border-radius: 30px;
    padding: 10px 20px;
    width: 100%;
    border: 1px solid var(--color-border, #dee2e6);
}

.sidebar-search button {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    color: var(--color-text-light, #666);
    cursor: pointer;
}

.sidebar-categories {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-categories li {
    margin-bottom: 10px;
    border-bottom: 1px dashed var(--color-border, #dee2e6);
    padding-bottom: 10px;
}

.sidebar-categories li:last-child {
    margin-bottom: 0;
    border-bottom: none;
    padding-bottom: 0;
}

.sidebar-categories a {
    color: var(--color-text, #333);
    text-decoration: none;
    transition: all 0.3s ease;
    display: block;
}

.sidebar-categories a:hover {
    color: var(--color-primary, #007bff);
    padding-left: 5px;
}

.sidebar-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.sidebar-tags .tag {
    display: inline-block;
    padding: 5px 12px;
    background-color: var(--color-background, #fff);
    color: var(--color-text-light, #666);
    border-radius: 30px;
    font-size: 0.8rem;
    text-decoration: none;
    border: 1px solid var(--color-border, #dee2e6);
    transition: all 0.3s ease;
}

.sidebar-tags .tag:hover {
    background-color: var(--color-primary, #007bff);
    color: white;
    transform: translateY(-2px);
}

/* Responsive styles */
@media (max-width: 768px) {
    .author-info {
        text-align: center;
    }
    
    .author-avatar {
        margin-bottom: 15px;
    }
    
    .sidebar-container {
        margin-top: 30px;
        position: static;
    }
}
