/**
 * Blog Page Styles
 * /blog, /blog/kategori/*, /blog/*
 */

/* Category Badge Large */
.category-badge-lg {
    display: inline-block;
    padding: 0.5rem 1.25rem;
    border-radius: 50px;
    color: white;
    font-size: 0.9375rem;
    font-weight: 600;
}

/* Blog Sidebar */
.blog-sidebar {
    position: sticky;
    top: 100px;
}

.sidebar-widget {
    background: white;
    padding: 1.5rem;
    border-radius: var(--radius-lg, 12px);
    box-shadow: var(--shadow, 0 1px 3px rgba(0,0,0,0.1));
    margin-bottom: 1.5rem;
}

.widget-title {
    font-size: 1.125rem;
    margin-bottom: 1.25rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid #f1f5f9;
}

/* Category List */
.category-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.category-list li {
    margin-bottom: 0.5rem;
}

.category-list a {
    display: flex;
    align-items: center;
    padding: 0.625rem 0.75rem;
    border-radius: var(--radius, 8px);
    color: #334155;
    transition: var(--transition, all 0.3s ease);
}

.category-list a:hover,
.category-list a.active {
    background: #f8fafc;
    color: var(--primary, #0d6efd);
}

.category-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin-right: 0.75rem;
}

.category-count {
    margin-left: auto;
    background: #f1f5f9;
    color: #64748b;
    padding: 0.125rem 0.5rem;
    border-radius: 50px;
    font-size: 0.75rem;
}

/* Featured Posts */
.featured-post-item {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #f1f5f9;
}

.featured-post-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.featured-post-image {
    width: 80px;
    height: 60px;
    border-radius: var(--radius, 8px);
    overflow: hidden;
    flex-shrink: 0;
}

.featured-post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.featured-placeholder {
    width: 100%;
    height: 100%;
    background: #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #94a3b8;
}

.featured-post-content h5 {
    font-size: 0.875rem;
    margin-bottom: 0.25rem;
    line-height: 1.4;
}

.featured-post-content h5 a {
    color: #0f172a;
}

.featured-post-content h5 a:hover {
    color: var(--primary, #0d6efd);
}

.featured-post-date {
    font-size: 0.75rem;
    color: #94a3b8;
}

/* Tag Cloud */
.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tag-item {
    background: #f1f5f9;
    color: #64748b;
    padding: 0.375rem 0.75rem;
    border-radius: 50px;
    font-size: 0.8125rem;
    transition: var(--transition, all 0.3s ease);
}

.tag-item:hover,
.tag-item.active {
    background: var(--primary, #0d6efd);
    color: white;
}

/* Search Results Info */
.search-results-info {
    background: #f8fafc;
    padding: 1rem;
    border-radius: var(--radius, 8px);
}

/* Blog Card */
.blog-card {
    background: white;
    border-radius: var(--radius-lg, 12px);
    overflow: hidden;
    box-shadow: var(--shadow, 0 1px 3px rgba(0,0,0,0.1));
    transition: var(--transition, all 0.3s ease);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
}

.blog-card-image {
    height: 200px;
    overflow: hidden;
}

.blog-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.blog-card:hover .blog-card-image img {
    transform: scale(1.05);
}

.blog-card-body {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.blog-card-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 0.8125rem;
    color: #64748b;
    margin-bottom: 0.75rem;
}

.blog-card-title {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    line-height: 1.4;
}

.blog-card-title a {
    color: #0f172a;
}

.blog-card-title a:hover {
    color: var(--primary, #0d6efd);
}

.blog-card-excerpt {
    color: #64748b;
    font-size: 0.9375rem;
    line-height: 1.6;
    flex: 1;
}

/* Blog Detail */
.blog-detail-header {
    margin-bottom: 2rem;
}

.blog-detail-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.3;
}

.blog-detail-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.5rem;
    color: #64748b;
}

.blog-detail-content {
    font-size: 1.0625rem;
    line-height: 1.8;
    color: #334155;
}

.blog-detail-content h2,
.blog-detail-content h3,
.blog-detail-content h4 {
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.blog-detail-content p {
    margin-bottom: 1.25rem;
}

.blog-detail-content img {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius, 8px);
    margin: 1.5rem 0;
}

.blog-detail-content ul,
.blog-detail-content ol {
    margin-bottom: 1.25rem;
    padding-left: 1.5rem;
}

.blog-detail-content li {
    margin-bottom: 0.5rem;
}

.blog-detail-content blockquote {
    border-left: 4px solid var(--primary, #0d6efd);
    padding: 1rem 1.5rem;
    background: #f8fafc;
    margin: 1.5rem 0;
    font-style: italic;
}

/* Blog Tags */
.blog-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid #e2e8f0;
}

.blog-tag {
    background: #f1f5f9;
    color: #64748b;
    padding: 0.375rem 0.875rem;
    border-radius: 50px;
    font-size: 0.8125rem;
}

.blog-tag:hover {
    background: var(--primary, #0d6efd);
    color: white;
}

/* Related Posts */
.related-posts {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid #e2e8f0;
}

.related-posts-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

/* Blog Show Page */
.blog-category-badge {
    display: inline-block;
    padding: 0.375rem 1rem;
    border-radius: 50px;
    color: white;
    font-size: 0.875rem;
    font-weight: 500;
}

.blog-post-meta {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.meta-author {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.author-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9375rem;
    opacity: 0.9;
}

.blog-featured-image {
    margin-top: -60px;
    margin-bottom: 3rem;
    position: relative;
    z-index: 10;
}

.featured-image-wrapper img {
    width: 100%;
    max-height: 500px;
    object-fit: cover;
}

.blog-excerpt-block {
    padding: 2rem;
    background: #f8fafc;
    border-left: 4px solid var(--primary, #0d6efd);
    border-radius: 0 var(--radius-lg, 12px) var(--radius-lg, 12px) 0;
    margin-bottom: 2rem;
}

.blog-excerpt-block p {
    margin: 0;
    color: #334155;
}

.blog-content {
    font-size: 1.0625rem;
    line-height: 1.8;
    color: #334155;
}

.blog-content p {
    margin-bottom: 1.5rem;
}

.tags-label {
    font-weight: 600;
    color: #64748b;
}

.tag-link {
    background: #f1f5f9;
    color: #64748b;
    padding: 0.375rem 0.75rem;
    border-radius: 50px;
    font-size: 0.875rem;
    transition: var(--transition, all 0.3s ease);
}

.tag-link:hover {
    background: var(--primary, #0d6efd);
    color: white;
}

.blog-share {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem 0;
    border-bottom: 1px solid #e2e8f0;
}

.share-label {
    font-weight: 600;
    color: #64748b;
}

.share-buttons {
    display: flex;
    gap: 0.5rem;
}

.share-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    transition: var(--transition, all 0.3s ease);
}

.share-btn.twitter { background: #1da1f2; }
.share-btn.facebook { background: #1877f2; }
.share-btn.linkedin { background: #0a66c2; }
.share-btn.whatsapp { background: #25d366; }

.share-btn:hover {
    transform: translateY(-2px);
    color: white;
}

.author-box {
    display: flex;
    gap: 1.5rem;
    padding: 2rem;
    background: #f8fafc;
    border-radius: var(--radius-xl, 16px);
    margin-top: 2rem;
}

.author-avatar-lg {
    width: 80px;
    height: 80px;
    flex-shrink: 0;
}

.author-avatar-lg img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

.author-info h4 {
    margin-bottom: 0.5rem;
}

.author-info p {
    margin: 0;
    color: #64748b;
}

@media (max-width: 768px) {
    .author-box {
        flex-direction: column;
        text-align: center;
    }
    
    .author-avatar-lg {
        margin: 0 auto;
    }
}
