/* Loading Skeleton Styles */
.loading-skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: 8px;
}

@keyframes shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.hero-skeleton .skeleton-image {
    width: 100%;
    height: 420px;
    border-radius: 8px;
}

.hero-skeleton .skeleton-title {
    height: 28px;
    width: 80%;
    margin-bottom: 10px;
}

.hero-skeleton .skeleton-text {
    height: 18px;
    width: 60%;
}

.sidebar-skeleton {
    display: flex;
    gap: 12px;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    margin-bottom: 15px;
}

.sidebar-skeleton .skeleton-img {
    width: 100px;
    height: 75px;
    border-radius: 6px;
    flex-shrink: 0;
}

.sidebar-skeleton .skeleton-content {
    flex: 1;
}

.sidebar-skeleton .skeleton-line {
    height: 14px;
    margin-bottom: 8px;
    border-radius: 4px;
}

.sidebar-skeleton .skeleton-line:last-child {
    width: 50%;
    margin-bottom: 0;
}

.news-card-skeleton {
    background: var(--white);
    border-radius: 8px;
    overflow: hidden;
}

.news-card-skeleton .skeleton-img {
    width: 100%;
    height: 160px;
    border-radius: 0;
}

.news-card-skeleton .skeleton-content {
    padding: 15px;
}

.news-card-skeleton .skeleton-line {
    height: 16px;
    margin-bottom: 10px;
    border-radius: 4px;
}

.news-card-skeleton .skeleton-line:last-child {
    width: 40%;
    margin-bottom: 0;
}

.news-item-skeleton {
    display: flex;
    gap: 12px;
    padding: 12px;
    background: var(--white);
    border-radius: 8px;
}

.news-item-skeleton .skeleton-img {
    width: 80px;
    height: 60px;
    border-radius: 6px;
    flex-shrink: 0;
}

.news-item-skeleton .skeleton-content {
    flex: 1;
}

.news-item-skeleton .skeleton-line {
    height: 14px;
    margin-bottom: 8px;
    border-radius: 4px;
}

.news-item-skeleton .skeleton-line:last-child {
    width: 30%;
    margin-bottom: 0;
}

.featured-skeleton {
    margin-bottom: 15px;
}

.featured-skeleton .skeleton-img {
    width: 100%;
    height: 180px;
    border-radius: 8px;
    margin-bottom: 10px;
}

.featured-skeleton .skeleton-line {
    height: 16px;
    margin-bottom: 8px;
    border-radius: 4px;
}

.featured-skeleton .skeleton-line:last-child {
    width: 70%;
}

.list-skeleton li {
    display: flex;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid var(--border-color);
}

.list-skeleton li::before {
    content: '';
    width: 8px;
    height: 8px;
    background: #e0e0e0;
    border-radius: 50%;
    margin-right: 12px;
    flex-shrink: 0;
}

.list-skeleton li .skeleton-line {
    height: 14px;
    border-radius: 4px;
    flex: 1;
}

.list-skeleton li .skeleton-line.short {
    width: 60%;
}

/* Error State */
.error-state {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-light);
}

.error-state svg {
    width: 48px;
    height: 48px;
    margin-bottom: 15px;
    opacity: 0.5;
}

.error-state h3 {
    color: var(--text-dark);
    margin-bottom: 10px;
}

.error-state button {
    margin-top: 15px;
    padding: 10px 25px;
    background: var(--primary-color);
    color: var(--white);
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.3s;
}

.error-state button:hover {
    background: var(--accent-color);
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-light);
}

.empty-state svg {
    width: 48px;
    height: 48px;
    margin-bottom: 15px;
    opacity: 0.5;
}

/* Post Card Hover Effects (additional) */
.news-card {
    cursor: pointer;
}

.news-card .news-content h3 {
    transition: color 0.3s;
}

.news-card:hover .news-content h3 {
    color: var(--primary-color);
}

/* Image Error Fallback */
.post-image-error {
    background: linear-gradient(135deg, #e8e8e8, #f5f5f5);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    font-size: 14px;
}

.post-image-error::after {
    content: 'ছবি পাওয়া যায়নি';
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .hero-skeleton .skeleton-image {
        height: 250px;
    }
    
    .sidebar-skeleton {
        flex-direction: column;
    }
    
    .sidebar-skeleton .skeleton-img {
        width: 100%;
        height: 150px;
    }
}
