/* 
 * HIMABISDIG - Berita Detail Styles (CLEAN & MINIMALIST)
 * Version: 1.0
 */

/* ===== HERO SECTION ===== */
.detail-hero {
    position: relative;
    background: linear-gradient(135deg, #0A2463, #3E92CC);
    padding: 10rem 0 5rem;
    color: white;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 20% 80%, rgba(255, 255, 255, 0.1) 1px, transparent 1px);
    background-size: 30px 30px;
    opacity: 0.3;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.breadcrumb-nav {
    margin-bottom: 2rem;
}

.breadcrumb {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 50px;
    padding: 0.75rem 1.5rem;
    margin: 0;
    display: inline-flex;
}

.breadcrumb-item {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
}

.breadcrumb-item a {
    color: white;
    text-decoration: none;
}

.breadcrumb-item.active {
    color: rgba(255, 255, 255, 0.9);
}

.breadcrumb-item + .breadcrumb-item::before {
    content: "›";
    color: rgba(255, 255, 255, 0.6);
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 1.25rem;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 50px;
    color: white;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.detail-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

.detail-meta {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.9375rem;
}

.meta-item i {
    font-size: 1.125rem;
}

/* ===== ARTICLE SECTION ===== */
.article-section {
    padding: 4rem 0;
    background: #ffffff;
}

.article-content {
    background: white;
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    border: 1px solid #e2e8f0;
}

.featured-image {
    margin-bottom: 2rem;
    border-radius: 1rem;
    overflow: hidden;
}

.featured-image img {
    width: 100%;
    height: auto;
    display: block;
}

.article-body {
    font-size: 1.0625rem;
    line-height: 1.8;
    color: #4a5568;
}

.article-body h2,
.article-body h3,
.article-body h4 {
    color: #1a202c;
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.article-body h2 {
    font-size: 1.75rem;
}

.article-body h3 {
    font-size: 1.5rem;
}

.article-body h4 {
    font-size: 1.25rem;
}

.article-body p {
    margin-bottom: 1.5rem;
}

.article-body img {
    max-width: 100%;
    height: auto;
    border-radius: 0.5rem;
    margin: 2rem 0;
}

.article-body ul,
.article-body ol {
    margin: 1.5rem 0;
    padding-left: 2rem;
}

.article-body li {
    margin-bottom: 0.75rem;
}

.article-body blockquote {
    border-left: 4px solid #0A2463;
    padding: 1rem 1.5rem;
    background: #f7fafc;
    margin: 2rem 0;
    border-radius: 0.5rem;
    font-style: italic;
    color: #4a5568;
}

.article-body a {
    color: #0A2463;
    text-decoration: underline;
}

.article-body a:hover {
    color: #3E92CC;
}

/* ===== TAGS ===== */
.article-tags {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid #e2e8f0;
    flex-wrap: wrap;
}

.tags-label {
    font-weight: 600;
    color: #1a202c;
    font-size: 0.9375rem;
}

.tag {
    padding: 0.5rem 1rem;
    background: #f7fafc;
    color: #4a5568;
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 500;
    text-decoration: none;
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
}

.tag:hover {
    background: #0A2463;
    color: white;
    border-color: #0A2463;
}

/* ===== SHARE BUTTONS ===== */
.article-share {
    margin-top: 2rem;
    padding: 2rem;
    background: #f7fafc;
    border-radius: 1rem;
    text-align: center;
}

.article-share h4 {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1a202c;
    margin-bottom: 1.5rem;
}

.share-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.share-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.25rem;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.share-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.share-btn.facebook {
    background: #1877f2;
}

.share-btn.twitter {
    background: #1da1f2;
}

.share-btn.whatsapp {
    background: #25d366;
}

.share-btn.email {
    background: #718096;
}

/* ===== SIDEBAR ===== */
.sidebar {
    position: sticky;
    top: 100px;
}

.sidebar-widget {
    background: white;
    border-radius: 1rem;
    padding: 1.5rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    border: 1px solid #e2e8f0;
    margin-bottom: 2rem;
}

.widget-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1a202c;
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid #0A2463;
}

/* ===== RELATED ARTICLES ===== */
.related-articles {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.related-item {
    display: flex;
    gap: 1rem;
    padding: 1rem;
    background: #f7fafc;
    border-radius: 0.75rem;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid #e2e8f0;
}

.related-item:hover {
    background: white;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.07);
    transform: translateY(-2px);
}

.related-image {
    width: 80px;
    height: 80px;
    border-radius: 0.5rem;
    overflow: hidden;
    flex-shrink: 0;
    background: #e2e8f0;
}

.related-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.image-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #718096;
    font-size: 1.5rem;
}

.related-content {
    flex: 1;
    min-width: 0;
}

.related-content h4 {
    font-size: 0.9375rem;
    font-weight: 600;
    color: #1a202c;
    margin: 0 0 0.5rem;
    line-height: 1.4;
}

.related-date {
    font-size: 0.8125rem;
    color: #718096;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.375rem;
}

/* ===== BACK BUTTON ===== */
.btn-back-list {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    background: linear-gradient(135deg, #0A2463, #3E92CC);
    color: white;
    border-radius: 0.75rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-back-list:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(10, 36, 99, 0.2);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 991.98px) {
    .detail-hero {
        padding: 8rem 0 4rem;
    }
    
    .detail-title {
        font-size: 2rem;
    }
    
    .detail-meta {
        gap: 1rem;
    }
    
    .sidebar {
        position: static;
        margin-top: 3rem;
    }
}

@media (max-width: 767.98px) {
    .detail-hero {
        padding: 7rem 0 3rem;
    }
    
    .article-content {
        padding: 1.5rem;
    }
    
    .article-body {
        font-size: 1rem;
    }
    
    .share-buttons {
        gap: 0.75rem;
    }
    
    .share-btn {
        width: 45px;
        height: 45px;
        font-size: 1.125rem;
    }
}