/* ========================================
   BERITA SHOW PAGE STYLING
   ======================================== */

/* Article Content Section */
.article-content-section {
    padding: 2rem 0;
    background: #ffffff;
}

/* Main Article */
.article-main {
    background: white;
    border-radius: 0.75rem;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    overflow: hidden;
    border: 1px solid #f1f5f9;
}

/* Article Header */
.article-header {
    padding: 1.25rem 1.25rem 0.75rem 1.25rem;
    border-bottom: 1px solid #e2e8f0;
}

/* Article Title */
.article-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: #1e293b;
    line-height: 1.3;
    margin: 0 0 1rem 0;
    padding: 0;
}

.article-meta {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.article-category {
    display: flex;
    align-items: center;
}

.category-badge {
    background: #dc2626;
    color: white;
    padding: 0.3rem 0.75rem;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.article-info {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: center;
}

.article-date,
.article-views,
.article-tags {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    color: #64748b;
    font-size: 0.8rem;
}

.article-date i,
.article-views i,
.article-tags i {
    color: #2d5a9c;
    font-size: 0.7rem;
}

/* Article Image */
.article-image {
    margin: 0;
    overflow: hidden;
}

.main-image {
    width: 100%;
    height: 280px;
    object-fit: cover;
    object-position: center;
    transition: transform 0.3s ease;
}

.article-image:hover .main-image {
    transform: scale(1.02);
}

/* Article Body */
.article-body {
    padding: 1.25rem;
}

.article-content {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #374151;
}

.article-content h1,
.article-content h2,
.article-content h3,
.article-content h4,
.article-content h5,
.article-content h6 {
    color: #1e293b;
    margin: 1.5rem 0 0.75rem 0;
    font-weight: 700;
}

.article-content h2 {
    font-size: 1.2rem;
    border-bottom: 2px solid #2d5a9c;
    padding-bottom: 0.4rem;
}

.article-content h3 {
    font-size: 1.1rem;
}

.article-content p {
    margin-bottom: 1rem;
}

.article-content img {
    max-width: 100%;
    height: auto;
    border-radius: 0.4rem;
    margin: 1rem 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.article-content blockquote {
    border-left: 3px solid #2d5a9c;
    padding-left: 1rem;
    margin: 1.5rem 0;
    font-style: italic;
    background: #f8fafc;
    padding: 1rem;
    border-radius: 0 0.4rem 0.4rem 0;
}

.article-content ul,
.article-content ol {
    margin: 1rem 0;
    padding-left: 1.5rem;
}

.article-content li {
    margin-bottom: 0.4rem;
}

/* Article Footer */
.article-footer {
    padding: 1.25rem;
    border-top: 1px solid #e2e8f0;
    background: #f8fafc;
}

/* Social Share */
.social-share {
    margin-bottom: 1.5rem;
}

.social-share h4 {
    font-size: 1rem;
    font-weight: 600;
    color: #374151;
    margin-bottom: 0.75rem;
}

.share-buttons {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.share-btn {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.8rem;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.share-btn.facebook {
    background: #1877f2;
    color: white;
}

.share-btn.facebook:hover {
    background: #166fe5;
    transform: translateY(-2px);
}

.share-btn.twitter {
    background: #1da1f2;
    color: white;
}

.share-btn.twitter:hover {
    background: #1a91da;
    transform: translateY(-2px);
}

.share-btn.whatsapp {
    background: #25d366;
    color: white;
}

.share-btn.whatsapp:hover {
    background: #22c55e;
    transform: translateY(-2px);
}

.share-btn.copy-link {
    background: #6b7280;
    color: white;
    border: none;
    cursor: pointer;
}

.share-btn.copy-link:hover {
    background: #4b5563;
    transform: translateY(-2px);
}

/* Article Navigation */
.article-navigation {
    margin-top: 1.5rem;
}

.nav-buttons {
    display: flex;
    gap: 0.75rem;
    flex-direction: column;
}

.nav-btn {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    background: white;
    border: 2px solid #e2e8f0;
    border-radius: 0.5rem;
    text-decoration: none;
    color: #374151;
    transition: all 0.3s ease;
}

.nav-btn:hover {
    border-color: #2d5a9c;
    background: #f0f4ff;
    transform: translateY(-2px);
    box-shadow: 0 2px 8px rgba(45, 90, 156, 0.1);
    color: #2d5a9c;
}

.nav-btn.prev-btn {
    text-align: left;
}

.nav-btn.next-btn {
    text-align: right;
}

.nav-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.nav-label {
    font-size: 0.7rem;
    color: #64748b;
    font-weight: 500;
}

.nav-title {
    font-size: 0.85rem;
    font-weight: 600;
    color: #374151;
}

.nav-btn i {
    font-size: 1rem;
    color: #2d5a9c;
}

/* Sidebar */
.article-sidebar {
    padding-left: 1.5rem;
}

.sidebar-widget {
    background: white;
    border-radius: 0.75rem;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    border: 1px solid #f1f5f9;
    margin-bottom: 1.5rem;
    overflow: hidden;
}

.widget-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #1e293b;
    padding: 1rem 1rem 0.75rem 1rem;
    margin: 0;
    border-bottom: 1px solid #e2e8f0;
    background: #f8fafc;
}

/* Related News */
.related-news {
    padding: 1rem;
}

.related-news-item {
    display: flex;
    gap: 0.75rem;
    padding: 0.75rem 0;
    border-bottom: 1px solid #f1f5f9;
    transition: all 0.3s ease;
}

.related-news-item:last-child {
    border-bottom: none;
}

.related-news-item:hover {
    background: #f8fafc;
    border-radius: 0.4rem;
    padding: 0.75rem;
    margin: 0 -1rem;
}

.related-news-image {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    border-radius: 0.4rem;
    overflow: hidden;
}

.related-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.related-news-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.related-news-title {
    margin: 0 0 0.4rem 0;
    font-size: 0.8rem;
    line-height: 1.3;
}

.related-news-title a {
    color: #374151;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.related-news-title a:hover {
    color: #2d5a9c;
}

.related-news-meta {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.related-date {
    font-size: 0.7rem;
    color: #64748b;
}

.related-tag {
    font-size: 0.65rem;
    color: #2d5a9c;
    font-weight: 500;
}

/* Quick Links */
.quick-links {
    padding: 1rem;
}

.quick-link {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.6rem 0.8rem;
    color: #64748b;
    text-decoration: none;
    border-radius: 0.4rem;
    transition: all 0.3s ease;
    margin-bottom: 0.4rem;
}

.quick-link:hover {
    background: #f0f4ff;
    color: #2d5a9c;
    transform: translateX(4px);
}

.quick-link i {
    color: #2d5a9c;
    font-size: 0.8rem;
    width: 14px;
    text-align: center;
}

/* Splash Widget */
.splash-widget {
    background: linear-gradient(135deg, #2d5a9c 0%, #1e3a5f 100%);
    color: white;
}

.splash-widget .widget-title {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border-bottom-color: rgba(255, 255, 255, 0.2);
}

.splash-content {
    padding: 1rem;
}

.splash-date {
    font-size: 0.7rem;
    opacity: 0.8;
    margin-bottom: 0.4rem;
}

.splash-title {
    font-size: 0.9rem;
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 0.75rem;
}

.splash-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: white;
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: 600;
    padding: 0.4rem 0.8rem;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    transition: all 0.3s ease;
}

.splash-link:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    width: 40px;
    height: 40px;
    background: #2d5a9c;
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    box-shadow: 0 2px 8px rgba(45, 90, 156, 0.3);
    transition: all 0.3s ease;
    opacity: 0;
    visibility: hidden;
    z-index: 1000;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: #1e3a5f;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(45, 90, 156, 0.4);
}

/* Responsive Design */
@media (max-width: 991.98px) {
    .article-sidebar {
        padding-left: 0;
        margin-top: 2rem;
    }
    
    .article-header {
        padding: 1rem 1rem 0.6rem 1rem;
    }
    
    .article-body {
        padding: 1rem;
    }
    
    .article-footer {
        padding: 1rem;
    }
    
    .main-image {
        height: 220px;
    }
    
    .article-title {
        font-size: 1.2rem;
    }
    
    .share-buttons {
        justify-content: center;
    }
    
    .nav-buttons {
        gap: 0.6rem;
    }
    
    .nav-btn {
        padding: 0.6rem 0.8rem;
    }
    
    .sidebar-widget {
        margin-bottom: 1.25rem;
    }
}

@media (max-width: 767.98px) {
    .article-content-section {
        padding: 1.5rem 0;
    }
    
    .article-header {
        padding: 0.75rem;
    }
    
    .article-body {
        padding: 0.75rem;
    }
    
    .article-footer {
        padding: 0.75rem;
    }
    
    .main-image {
        height: 180px;
    }
    
    .article-title {
        font-size: 1.1rem;
        margin-bottom: 0.75rem;
    }
    
    .article-content {
        font-size: 0.9rem;
    }
    
    .article-info {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.6rem;
    }
    
    .category-badge {
        padding: 0.25rem 0.6rem;
        font-size: 0.65rem;
    }
    
    .article-date,
    .article-views,
    .article-tags {
        font-size: 0.75rem;
    }
    
    .share-buttons {
        flex-direction: column;
    }
    
    .share-btn {
        justify-content: center;
        padding: 0.4rem 0.8rem;
        font-size: 0.75rem;
    }
    
    .nav-btn {
        flex-direction: column;
        text-align: center;
        gap: 0.4rem;
        padding: 0.6rem;
    }
    
    .nav-content {
        order: 2;
    }
    
    .nav-btn i {
        order: 1;
    }
    
    .nav-label {
        font-size: 0.65rem;
    }
    
    .nav-title {
        font-size: 0.8rem;
    }
    
    .related-news-item {
        flex-direction: column;
        gap: 0.6rem;
    }
    
    .related-news-image {
        width: 100%;
        height: 120px;
    }
    
    .related-news-title {
        font-size: 0.75rem;
    }
    
    .related-date {
        font-size: 0.65rem;
    }
    
    .related-tag {
        font-size: 0.6rem;
    }
    
    .quick-link {
        padding: 0.5rem 0.6rem;
        font-size: 0.8rem;
    }
    
    .quick-link i {
        font-size: 0.75rem;
        width: 12px;
    }
    
    .widget-title {
        font-size: 1rem;
        padding: 0.75rem 0.75rem 0.6rem 0.75rem;
    }
    
    .splash-title {
        font-size: 0.85rem;
    }
    
    .splash-link {
        font-size: 0.75rem;
        padding: 0.3rem 0.6rem;
    }
    
    .back-to-top {
        bottom: 1rem;
        right: 1rem;
        width: 35px;
        height: 35px;
        font-size: 0.9rem;
    }
}

/* Animation Classes */
.article-main.fade-in {
    animation: fadeInUp 0.6s ease-out;
}

.sidebar-widget.fade-in {
    animation: fadeInUp 0.6s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Print Styles */
@media print {
    .article-sidebar,
    .social-share,
    .back-to-top {
        display: none;
    }
    
    .article-main {
        box-shadow: none;
        border: none;
    }
    
    .article-content-section {
        padding: 0;
    }
}
