/**
 * LinkedinVO - Styles Frontend
 * 
 * @package LinkedinVO
 * @since 1.0.0
 */

/* Styles de base pour le flux LinkedIn */
.linkedin-feed {
    padding: 1rem;
    margin: 2rem 0;
}

/* Grille responsive */
.linkedin-feed.grid {
    display: grid;
    gap: 1.5rem;
}

.linkedin-feed.grid-cols-1 {
    grid-template-columns: repeat(1, minmax(0, 1fr));
}

@media (min-width: 640px) {
    .linkedin-feed.grid-cols-1.sm\:grid-cols-2 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 1024px) {
    .linkedin-feed.grid-cols-1.sm\:grid-cols-2.lg\:grid-cols-4 {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

/* Articles */
.linkedin-feed article {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 0.75rem;
    padding: 1rem;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
}

.linkedin-feed article:hover {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    transform: translateY(-2px);
}

/* Images */
.linkedin-feed article img {
    width: 100%;
    height: 10rem;
    object-fit: cover;
    border-radius: 0.375rem;
    margin-bottom: 0.75rem;
}

/* Texte */
.linkedin-feed article p {
    font-size: 0.875rem;
    line-height: 1.25rem;
    color: #1f2937;
    margin-bottom: 0.5rem;
}

.linkedin-feed article p.line-clamp-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Liens */
.linkedin-feed article a {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.875rem;
    line-height: 1.25rem;
    color: #2563eb;
    text-decoration: none;
    transition: all 0.2s ease;
}

.linkedin-feed article a:hover {
    text-decoration: underline;
    color: #1d4ed8;
}

.linkedin-feed article a svg {
    width: 1rem;
    height: 1rem;
}

/* Date */
.linkedin-feed article span {
    display: block;
    margin-top: 0.5rem;
    font-size: 0.75rem;
    line-height: 1rem;
    color: #6b7280;
}

/* Message d'erreur */
.linkedinvo-error {
    padding: 1rem;
    background: #fff3cd;
    border: 1px solid #ffc107;
    border-radius: 0.25rem;
    color: #856404;
    margin: 1rem 0;
}

.linkedinvo-error strong {
    font-weight: 600;
}

/* Responsive pour petits écrans */
@media (max-width: 639px) {
    .linkedin-feed {
        padding: 0.5rem;
    }
    
    .linkedin-feed article {
        padding: 0.75rem;
    }
    
    .linkedin-feed article img {
        height: 8rem;
    }
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.linkedin-feed article {
    animation: fadeIn 0.5s ease-out;
}

.linkedin-feed article:nth-child(1) {
    animation-delay: 0.1s;
}

.linkedin-feed article:nth-child(2) {
    animation-delay: 0.2s;
}

.linkedin-feed article:nth-child(3) {
    animation-delay: 0.3s;
}

.linkedin-feed article:nth-child(4) {
    animation-delay: 0.4s;
}
