/**
 * Fluix News List - Frontend Styles
 * 
 * @package Fluix_Lab_Suite
 * @subpackage News_List
 */

.fluix-news-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
    width: 100%;
}

.fluix-news-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 12px;
    background: #fff;
    border-radius: 8px;
    text-decoration: none;
    color: inherit;
    transition: box-shadow 0.2s ease, transform 0.2s ease;
    border: 1px solid #e5e5e5;
}

.fluix-news-item:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

/* Thumbnail */
.fluix-news-thumb {
    flex-shrink: 0;
    width: 80px;
    height: 80px;
    border-radius: 6px;
    overflow: hidden;
    background: #f0f0f0;
}

.fluix-news-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.fluix-news-thumb-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #e0e0e0 0%, #f5f5f5 100%);
}

/* Content */
.fluix-news-content {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 4px 0;
}

.fluix-news-title {
    margin: 0 0 6px 0;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.3;
    color: #1a1a1a;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.fluix-news-item:hover .fluix-news-title {
    color: #0073aa;
}

.fluix-news-date {
    font-size: 13px;
    color: #666;
    line-height: 1;
}

/* Empty state */
.fluix-news-empty {
    padding: 20px;
    text-align: center;
    color: #666;
    font-style: italic;
}

/* Responsive */
@media (max-width: 480px) {
    .fluix-news-thumb {
        width: 70px;
        height: 70px;
    }
    
    .fluix-news-title {
        font-size: 15px;
    }
    
    .fluix-news-date {
        font-size: 12px;
    }
    
    .fluix-news-item {
        padding: 10px;
        gap: 12px;
    }
}

/* Fix per WPBakery */
.wpb_wrapper .fluix-news-list {
    margin: 0;
}

.wpb_wrapper .fluix-news-item {
    margin: 0;
}