/* ==================== HAFIZ SHARED COMPONENTS ==================== */
/* Shared patterns used across multiple templates */

/* Sidebar Widget (used in blog.php and single.php) */
.sidebar-widget {
    margin-bottom: 40px;
}

.sidebar-widget:last-child {
    margin-bottom: 0;
}

.sidebar-widget h3 {
    font-size: 1.3rem;
    font-weight: 700;
    color: #0a5f59;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid rgba(10, 95, 89, 0.1);
    position: relative;
}

.sidebar-widget h3::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 30px;
    height: 2px;
    background: linear-gradient(90deg, #0a5f59 0%, #e4a520 100%);
}

.sidebar-widget ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-widget li {
    margin-bottom: 12px;
    padding: 8px 0;
    border-bottom: 1px solid rgba(10, 95, 89, 0.05);
}

.sidebar-widget li:last-child {
    border-bottom: none;
}

.sidebar-widget a {
    color: #666;
    text-decoration: none;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
}

.sidebar-widget a:hover {
    color: #0a5f59;
    transform: translateX(5px);
}

.sidebar-widget a i {
    color: #e4a520;
    font-size: 0.8rem;
}

/* Tag Cloud (used in blog.php and single.php) */
.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag-link {
    background: rgba(10, 95, 89, 0.1);
    color: #0a5f59;
    padding: 6px 12px;
    border-radius: 20px;
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 1px solid rgba(10, 95, 89, 0.1);
}

.tag-link:hover {
    background: linear-gradient(135deg, #0a5f59 0%, #e4a520 100%);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(10, 95, 89, 0.3);
}

/* No Posts Message (used in blog.php and index.php) */
.no-posts {
    text-align: center;
    padding: 80px 20px;
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(10, 95, 89, 0.1);
}

.no-posts i {
    font-size: 4rem;
    color: #e4a520;
    margin-bottom: 20px;
}

.no-posts h3 {
    color: #333;
    margin-bottom: 10px;
}

.no-posts p {
    color: #666;
    margin-bottom: 20px;
}

/* Post Placeholder (when no thumbnail) */
.post-placeholder {
    background: var(--hafiz-gradient-accent);
    display: flex;
    align-items: center;
    justify-content: center;
}

.post-placeholder-icon {
    font-size: 3rem;
    color: white;
    opacity: 0.7;
}
