/* ===================================
   ARTICLE SIDEBAR STYLES
   =================================== */

/* Sidebar Card */
.sidebar-card {
    background: white;
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid #e8edf2;
}

.sidebar-card h3 {
    font-size: 20px;
    font-weight: 900;
    color: #1a252f;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 3px solid #e8edf2;
    position: relative;
}

.sidebar-card h3::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 50px;
    height: 3px;
    background: linear-gradient(90deg, #FF6B35 0%, #FF8C42 100%);
}

/* Popular List */
.popular-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.popular-item {
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e8edf2;
}

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

.popular-link {
    display: flex;
    gap: 15px;
    align-items: flex-start;
    text-decoration: none;
    transition: all 0.3s ease;
}

.popular-link:hover {
    transform: translateX(5px);
}

.popular-link:hover .popular-rank {
    background: linear-gradient(135deg, #FF6B35 0%, #FF8C42 100%);
    color: white;
    transform: scale(1.1);
}

.popular-rank {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    background: #f8f9fa;
    color: #1a252f;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 900;
    transition: all 0.3s ease;
}

.popular-content {
    flex: 1;
}

.popular-content h4 {
    font-size: 15px;
    font-weight: 700;
    color: #1a252f;
    line-height: 1.5;
    margin-bottom: 8px;
    transition: color 0.3s ease;
}

.popular-link:hover .popular-content h4 {
    color: #FF6B35;
}

.popular-meta {
    font-size: 13px;
    color: #999;
    display: flex;
    align-items: center;
    gap: 5px;
}

.popular-meta i {
    font-size: 12px;
}

/* Related Articles */
.related-articles {
    margin: 60px 0;
}

.related-articles h3 {
    font-size: 28px;
    font-weight: 900;
    color: #1a252f;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 3px solid #e8edf2;
    position: relative;
}

.related-articles h3::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, #FF6B35 0%, #FF8C42 100%);
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.related-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid #e8edf2;
}

.related-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 30px rgba(255, 107, 53, 0.2);
    border-color: #FF6B35;
}

.related-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

.related-content {
    padding: 20px;
}

.related-category {
    display: inline-block;
    background: linear-gradient(135deg, #FF6B35 0%, #FF8C42 100%);
    color: white;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
}

.related-content h4 {
    font-size: 16px;
    font-weight: 700;
    color: #1a252f;
    line-height: 1.5;
    margin-bottom: 10px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.related-date {
    font-size: 13px;
    color: #999;
    display: block;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .related-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .sidebar-card {
        padding: 25px 20px;
    }

    .related-articles h3 {
        font-size: 24px;
    }

    .related-grid {
        grid-template-columns: 1fr;
    }

    .related-card img {
        height: 220px;
    }
}

@media (max-width: 480px) {
    .sidebar-card {
        padding: 20px 15px;
    }

    .sidebar-card h3 {
        font-size: 18px;
    }

    .popular-content h4 {
        font-size: 14px;
    }

    .related-articles h3 {
        font-size: 22px;
        margin-bottom: 25px;
    }

    .related-card img {
        height: 200px;
    }

    .related-content {
        padding: 18px;
    }

    .related-content h4 {
        font-size: 15px;
    }
}
