/* ========================================
   ARTIKEL PAGE - COMPLETE STYLES
   All-in-one CSS untuk halaman artikel
======================================== */

/* ========================================
   1. MOBILE HAMBURGER MENU FIX
======================================== */
@media (max-width: 991.98px) {
    .mobile-menu-toggle {
        display: flex !important;
        visibility: visible !important;
        opacity: 1 !important;
    }
    
    .hamburger-line {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
    }
}

/* ========================================
   2. MAIN LAYOUT & CONTAINER
======================================== */
.artikel-page {
    min-height: 100vh;
    background: #f8f9fa;
    font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* Header Section */
.header-section {
    background: linear-gradient(135deg, #1e40af 0%, #3b82f6 50%, #60a5fa 100%);
    color: white;
    padding: 80px 0 60px;
    margin-bottom: 40px;
    margin-top: 80px;
    position: relative;
    overflow: hidden;
}

.header-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="1"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
}

.main-content {
    padding-bottom: 60px;
}

/* ========================================
   3. ARTICLES SECTION
======================================== */
.articles-section {
    background: white;
    border-radius: 15px;
    padding: 40px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    margin-bottom: 30px;
}

.section-header {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #e9ecef;
}

.section-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0;
    font-weight: 500;
}

.section-subtitle {
    font-size: 0.95rem;
    color: #6c757d;
    margin: 8px 0 0 0;
    font-weight: 400;
}

.back-to-all {
    color: #1e40af;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.back-to-all:hover {
    color: #1e40af;
    text-decoration: underline;
}

/* ========================================
   4. ARTICLES GRID & CARDS
======================================== */
.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

/* ARTICLE CARD - NO HOVER EFFECTS */
.article-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    border: 1px solid rgba(59, 130, 246, 0.1);
    position: relative;
    /* Completely remove hover effects */
}

/* FORCE NO HOVER EFFECTS - Override semua CSS lain */
.artikel-page .article-card:hover,
.article-card:hover {
    transform: none !important;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08) !important;
    border-color: rgba(59, 130, 246, 0.1) !important;
}

/* ARTICLE IMAGE - NO HOVER EFFECTS */
.article-image {
    height: 220px;
    overflow: hidden;
    position: relative;
}

.article-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* Completely remove any hover effects */
    transition: none !important;
    transform: none !important;
}

/* SUPER OVERRIDE untuk gambar - Override homepage.css dan file lain */
.artikel-page .article-image img:hover,
.artikel-page .article-card:hover .article-image img,
.artikel-page .article-card:hover .article-image,
.article-card:hover .article-image img,
.article-card:hover .article-image,
body .artikel-page .article-card:hover .article-image,
body .artikel-page .article-card:hover .article-image img {
    transform: none !important;
    transition: none !important;
    scale: 1 !important;
}

.image-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #3b82f6, #1e40af);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 3rem;
    opacity: 0.8;
}

/* ========================================
   5. ARTICLE CONTENT
======================================== */
.article-content {
    padding: 25px;
    position: relative;
    z-index: 2;
}

.article-title {
    margin-bottom: 15px;
}

.article-title a {
    color: #1a1a1a;
    text-decoration: none;
    font-size: 1.2rem;
    font-weight: 600;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.3s ease;
}

.article-title a:hover {
    color: #1e40af;
}

.article-excerpt {
    color: #6c757d;
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 20px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.article-meta {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 0.8rem;
    color: #6c757d;
    flex-wrap: wrap;
}

.article-meta span {
    display: flex;
    align-items: center;
    gap: 6px;
}

.article-meta i {
    color: #1e40af;
    font-size: 0.75rem;
}

.meta-category {
    background: #1e40af;
    color: white !important;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 600;
}

/* ========================================
   6. PAGINATION STYLES
======================================== */
.pagination-wrapper {
    display: flex;
    justify-content: center;
    margin-top: 50px;
    padding-top: 30px;
    border-top: 2px solid #f1f5f9;
}

.custom-pagination {
    display: flex;
    align-items: center;
    gap: 8px;
    background: white;
    padding: 12px 20px;
    border-radius: 50px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.08);
    border: 1px solid rgba(59, 130, 246, 0.1);
}

.pagination-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    height: 44px;
    padding: 0 16px;
    background: transparent;
    color: #64748b;
    border: 2px solid transparent;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.pagination-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(59, 130, 246, 0.1), transparent);
    transition: left 0.5s ease;
}

.pagination-btn:hover::before {
    left: 100%;
}

.pagination-btn:hover {
    background: linear-gradient(135deg, #3b82f6, #1e40af);
    color: white;
    border-color: #3b82f6;
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.3);
}

.pagination-btn.active {
    background: linear-gradient(135deg, #1e40af, #3b82f6);
    border-color: #1e40af;
    color: white;
    box-shadow: 0 6px 20px rgba(30, 64, 175, 0.4);
    transform: scale(1.1);
}

.pagination-btn.disabled {
    background: #f8fafc;
    color: #cbd5e1;
    border-color: #e2e8f0;
    cursor: not-allowed;
    transform: none;
}

.pagination-btn.disabled:hover {
    background: #f8fafc;
    color: #cbd5e1;
    border-color: #e2e8f0;
    transform: none;
    box-shadow: none;
}

.pagination-btn.disabled::before {
    display: none;
}

/* ========================================
   7. SIDEBAR STYLES
======================================== */
.sidebar {
    position: sticky;
    top: 100px;
}

.sidebar-section {
    background: white;
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 6px 30px rgba(0,0,0,0.08);
    margin-bottom: 30px;
    border: 1px solid rgba(59, 130, 246, 0.1);
    position: relative;
    overflow: hidden;
}

.sidebar-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(135deg, #1e40af, #3b82f6);
}

.sidebar-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid #f1f5f9;
    position: relative;
    padding-left: 15px;
}

.sidebar-title::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 4px;
    height: 100%;
    background: #1e40af;
    border-radius: 2px;
}

/* ========================================
   8. POPULAR ARTICLES
======================================== */
.popular-articles {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.popular-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 15px;
    border-radius: 12px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.popular-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(59, 130, 246, 0.05), transparent);
    transition: left 0.5s ease;
    z-index: 1;
}

.popular-item:hover::before {
    left: 100%;
}

.popular-item:hover {
    background: #f8fafc;
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.popular-number {
    flex: 0 0 32px;
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, #1e40af, #3b82f6);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    font-weight: 700;
    position: relative;
    z-index: 2;
    transition: all 0.3s ease;
}

.popular-item:hover .popular-number {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 4px 15px rgba(30, 64, 175, 0.4);
}

.popular-content {
    flex: 1;
    position: relative;
    z-index: 2;
}

.popular-title {
    margin-bottom: 8px;
}

.popular-title a {
    color: #1a1a1a;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: all 0.3s ease;
}

.popular-title a:hover {
    color: #1e40af;
}

.popular-date {
    font-size: 0.8rem;
    color: #6c757d;
    font-weight: 500;
}

/* ========================================
   9. CATEGORIES
======================================== */
.categories-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.category-item {
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.category-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(59, 130, 246, 0.1), transparent);
    transition: left 0.5s ease;
    z-index: 1;
}

.category-item:hover::before {
    left: 100%;
}

.category-item:hover {
    background-color: #f8fafc;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.category-item.active {
    background: linear-gradient(135deg, #1e40af, #3b82f6);
    color: white;
    box-shadow: 0 4px 20px rgba(30, 64, 175, 0.3);
}

.category-item.active:hover {
    background: linear-gradient(135deg, #1e40af, #3b82f6);
    transform: translateX(4px);
}

.category-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 20px;
    color: inherit;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    position: relative;
    z-index: 2;
    transition: all 0.3s ease;
}

.category-item.active .category-link {
    color: white;
}

.category-link:hover {
    color: inherit;
    text-decoration: none;
    transform: translateX(6px);
}

.category-name {
    flex: 1;
    line-height: 1.4;
    display: flex;
    align-items: center;
    gap: 10px;
}

.category-name::before {
    content: '📁';
    font-size: 1.1rem;
    opacity: 0.8;
}

.category-item.active .category-name::before {
    content: '📂';
}

.category-count {
    background: rgba(108, 117, 125, 0.1);
    color: #6c757d;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    min-width: 25px;
    text-align: center;
    transition: all 0.3s ease;
}

.category-item.active .category-count {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

/* ========================================
   10. EMPTY STATE
======================================== */
.empty-state {
    padding: 80px 20px;
    text-align: center;
}

.empty-icon {
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, #f1f5f9, #e2e8f0);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 30px;
    border: 3px solid #e9ecef;
    position: relative;
}

.empty-icon::before {
    content: '';
    position: absolute;
    inset: -3px;
    border-radius: 50%;
    padding: 3px;
    background: linear-gradient(135deg, #1e40af, #3b82f6);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: subtract;
}

.empty-icon i {
    font-size: 2.5rem;
    color: #1e40af;
}

.empty-state h3 {
    color: #1a1a1a;
    margin-bottom: 15px;
    font-size: 1.4rem;
    font-weight: 600;
}

.empty-state p {
    color: #6c757d;
    font-size: 1rem;
    margin: 0 0 25px 0;
    line-height: 1.6;
}

/* ========================================
   11. FLOATING WHATSAPP BUTTON
======================================== */
.floating-whatsapp {
    position: fixed;
    bottom: 25px;
    right: 25px;
    z-index: 1000;
    animation: bounce 2s infinite;
}

.whatsapp-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, #25d366, #128c7e);
    color: white;
    padding: 15px 20px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    box-shadow: 0 6px 25px rgba(37, 211, 102, 0.4);
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    white-space: nowrap;
}

.whatsapp-btn:hover {
    background: linear-gradient(135deg, #128c7e, #25d366);
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 10px 35px rgba(37, 211, 102, 0.5);
    color: white;
    text-decoration: none;
}

.whatsapp-btn i {
    font-size: 1.5rem;
    animation: pulse 2s infinite;
}

.whatsapp-text {
    font-size: 0.9rem;
    margin: 0;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

/* ========================================
   12. RESPONSIVE DESIGN
======================================== */

/* Tablet */
@media (max-width: 992px) {
    .articles-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    .sidebar {
        position: static;
        margin-top: 40px;
    }
    
    .header-section {
        padding: 60px 0 40px;
    }
}

/* Mobile */
@media (max-width: 768px) {
    .header-section {
        padding: 50px 0 30px;
        margin-top: 70px;
    }
    
    .articles-section {
        padding: 25px;
        border-radius: 12px;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .article-image {
        height: 180px;
    }
    
    .article-content {
        padding: 20px;
    }
    
    .sidebar-section {
        padding: 25px;
    }
    
    .popular-item {
        padding: 12px;
    }
    
    .category-link {
        padding: 12px 15px;
    }
    
    .floating-whatsapp {
        bottom: 20px;
        right: 20px;
    }
    
    .whatsapp-btn {
        padding: 12px 16px;
    }
}

/* Small Mobile */
@media (max-width: 576px) {
    .header-section {
        padding: 40px 0 25px;
    }
    
    .articles-section {
        padding: 20px;
        margin: 0 10px 30px;
    }
    
    .section-title {
        font-size: 1.3rem;
    }
    
    .article-image {
        height: 160px;
    }
    
    .article-title a {
        font-size: 1rem;
    }
    
    .article-excerpt {
        font-size: 0.85rem;
    }
    
    .floating-whatsapp {
        bottom: 15px;
        right: 15px;
    }
    
    .whatsapp-btn {
        padding: 10px 14px;
        font-size: 0.85rem;
    }
    
    .whatsapp-text {
        display: none; /* Hide text on very small screens */
    }
    
    .whatsapp-btn {
        width: 50px;
        height: 50px;
        border-radius: 50%;
        justify-content: center;
        padding: 0;
    }
    
    .whatsapp-btn i {
        font-size: 1.3rem;
        margin: 0;
    }
}

/* ========================================
   13. ACCESSIBILITY & PERFORMANCE
======================================== */

/* Focus states */
.pagination-btn:focus,
.category-link:focus,
.popular-title a:focus,
.article-title a:focus,
.whatsapp-btn:focus {
    outline: 2px solid #1e40af;
    outline-offset: 2px;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .article-card {
        border: 2px solid #000;
    }
    
    .sidebar-section {
        border: 2px solid #000;
    }
}

/* ========================================
   END OF ARTIKEL CSS
======================================== */