/* Novoshop Recent Posts Widget Styles */
.novoshop-recent-posts-widget {
    margin-bottom: 0;
    width: 100%;
    max-width: 100%;
}

.novoshop-recent-posts {
    display: flex;
    flex-direction: column;
    gap: 15px;
    width: 100%;
    max-width: 100%;
}

.recent-post-item {
    display: flex;
    align-items: flex-start;
    gap: 2px;
    padding: 2px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    width: 100%;
    max-width: 100%;
}

.recent-post-item:last-child {
    border-bottom: none;
}

.recent-post-item:hover {
    transform: translateX(5px);
}

.post-thumbnail {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    border-radius: 6px;
    overflow: hidden;
    position: relative;
}

.post-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.recent-post-item:hover .post-thumbnail img {
    transform: scale(1.05);
}

.post-content {
    flex: 1;
    min-width: 0;
    width: 100%;
    max-width: 100%;
}

.post-title {
    margin: 0 0 8px 0;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;
}

.post-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
    display: block;
}

.post-title a:hover {
    color: var(--primary-color, #ff6600);
}

.post-date {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 4px;
    font-weight: 400;
}

.post-excerpt {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.4;
    margin-top: 4px;
}

/* Widget Title Styling */
.novoshop-recent-posts-widget .widget-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 20px;
    color: var(--footer-title-color, #ffffff);
    border-bottom: 2px solid var(--primary-color, #ff6600);
    padding-bottom: 10px;
    display: block;
    width: 100%;
    text-align: center;
}

/* Responsive Design */
@media (max-width: 768px) {
    .novoshop-recent-posts-widget {
        width: 100%;
        max-width: 100%;
    }
    
    .novoshop-recent-posts {
        width: 100%;
        max-width: 100%;
    }
    
    .recent-post-item {
        gap: 8px;
        padding: 6px 0;
        width: 100%;
        max-width: 100%;
    }
    
    .post-thumbnail {
        width: 32px;
        height: 32px;
    }
    
    .post-content {
        width: 100%;
        max-width: 100%;
    }
    
    .post-title {
        font-size: 13px;
    }
    
    .post-date {
        font-size: 11px;
    }
    
    .novoshop-recent-posts-widget .widget-title {
        font-size: 16px;
        margin-bottom: 15px;
        width: 100%;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .novoshop-recent-posts-widget {
        width: 100%;
        max-width: 100%;
    }
    
    .novoshop-recent-posts {
        width: 100%;
        max-width: 100%;
    }
    
    .recent-post-item {
        gap: 6px;
        padding: 5px 0;
        width: 100%;
        max-width: 100%;
    }
    
    .post-thumbnail {
        width: 32px;
        height: 32px;
    }
    
    .post-content {
        width: 100%;
        max-width: 100%;
    }
    
    .post-title {
        font-size: 12px;
    }
    
    .post-date {
        font-size: 10px;
    }
    
    .novoshop-recent-posts-widget .widget-title {
        width: 100%;
        text-align: center;
    }
}

/* Loading Animation */
.recent-post-item {
    animation: fadeInUp 0.5s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Hover Effects */
.recent-post-item:hover .post-thumbnail {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

/* Custom Scrollbar for long lists */
.novoshop-recent-posts {
    max-height: 400px;
    overflow-y: auto;
}

.novoshop-recent-posts::-webkit-scrollbar {
    width: 4px;
}

.novoshop-recent-posts::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
}

.novoshop-recent-posts::-webkit-scrollbar-thumb {
    background: var(--primary-color, #ff6600);
    border-radius: 2px;
}

.novoshop-recent-posts::-webkit-scrollbar-thumb:hover {
    background: var(--primary-color, #e55a00);
}

