/* Estilos para o widget de eventos em formato card compacto */
.vsel-card-item {
    margin-bottom: 16px;
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.08);
}

.vsel-card-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    border-color: #0d6efd;
}

.vsel-card-item:last-child {
    margin-bottom: 0;
}

.vsel-card-content {
    display: flex;
    align-items: flex-start;
    padding: 12px;
    gap: 12px;
}

/* Imagem pequena */
.vsel-card-image {
    flex-shrink: 0;
    width: 50px;
    height: 50px;
    border-radius: 6px;
    overflow: hidden;
    background: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
}

.vsel-card-image .vsel-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.vsel-card-image a {
    display: block;
    width: 100%;
    height: 100%;
}

.vsel-card-item:hover .vsel-thumb {
    transform: scale(1.1);
}

/* Sem imagem - ícone placeholder */
.vsel-card-item:not(:has(.vsel-card-image)) .vsel-card-content::before {
    content: "\f073"; /* Font Awesome calendar icon */
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #0d6efd 0%, #0b5ed7 100%);
    color: white;
    border-radius: 6px;
    font-size: 20px;
    flex-shrink: 0;
    margin-right: 12px;
}

/* Informações do evento */
.vsel-card-info {
    flex: 1;
    min-width: 0; /* Para permitir text-overflow */
}

.vsel-card-title {
    font-size: 14px;
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 6px;
    color: #212529;
}

.vsel-card-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.vsel-card-title a:hover {
    color: #0d6efd;
}

.vsel-card-date {
    font-size: 12px;
    color: #6c757d;
    display: flex;
    align-items: center;
    gap: 4px;
}

.vsel-card-date i {
    color: #0d6efd;
    font-size: 11px;
}

/* Container do widget */
.vsel-widget {
    background: transparent;
}

.vsel-widget-title {
    margin-bottom: 16px;
    font-size: 16px;
    font-weight: 600;
    color: #212529;
    padding-bottom: 8px;
    border-bottom: 2px solid #0d6efd;
}

/* Layout alternativo para cards maiores */
.vsel-card-large .vsel-card-content {
    flex-direction: column;
    text-align: center;
    padding: 16px;
}

.vsel-card-large .vsel-card-image {
    width: 80px;
    height: 80px;
    align-self: center;
    margin-bottom: 8px;
}

.vsel-card-large .vsel-card-title {
    font-size: 15px;
    margin-bottom: 8px;
}

.vsel-card-large .vsel-card-date {
    justify-content: center;
    font-size: 13px;
}

/* Versão mini para espaços muito pequenos */
.vsel-card-mini .vsel-card-content {
    padding: 8px;
    gap: 8px;
}

.vsel-card-mini .vsel-card-image {
    width: 40px;
    height: 40px;
}

.vsel-card-mini .vsel-card-title {
    font-size: 12px;
    margin-bottom: 4px;
}

.vsel-card-mini .vsel-card-date {
    font-size: 11px;
}

/* Estados especiais */
.vsel-card-item.vsel-featured {
    border-color: #ffc107;
    background: linear-gradient(135deg, #fff9e6 0%, #fff 100%);
}

.vsel-card-item.vsel-past {
    opacity: 0.7;
    filter: grayscale(20%);
}

.vsel-card-item.vsel-today {
    border-color: #28a745;
    background: linear-gradient(135deg, #f0fff4 0%, #fff 100%);
}

.vsel-card-item.vsel-today .vsel-card-date {
    color: #28a745;
    font-weight: 600;
}

/* Responsividade */
@media (max-width: 768px) {
    .vsel-card-content {
        padding: 10px;
        gap: 10px;
    }
    
    .vsel-card-image {
        width: 45px;
        height: 45px;
    }
    
    .vsel-card-title {
        font-size: 13px;
    }
    
    .vsel-card-date {
        font-size: 11px;
    }
}

@media (max-width: 576px) {
    .vsel-card-item {
        margin-bottom: 12px;
    }
    
    .vsel-card-content {
        padding: 8px;
        gap: 8px;
    }
    
    .vsel-card-image {
        width: 40px;
        height: 40px;
    }
    
    .vsel-card-title {
        font-size: 12px;
        margin-bottom: 4px;
    }
    
    .vsel-card-date {
        font-size: 10px;
    }
    
    .vsel-card-title a {
        white-space: normal;
        line-height: 1.2;
        max-height: 2.4em;
        overflow: hidden;
        text-overflow: ellipsis;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        line-clamp: 2;
    }
}

/* Animação de carregamento */
.vsel-card-item {
    opacity: 0;
    animation: fadeInCard 0.5s ease forwards;
}

.vsel-card-item:nth-child(1) { animation-delay: 0.1s; }
.vsel-card-item:nth-child(2) { animation-delay: 0.2s; }
.vsel-card-item:nth-child(3) { animation-delay: 0.3s; }
.vsel-card-item:nth-child(4) { animation-delay: 0.4s; }
.vsel-card-item:nth-child(5) { animation-delay: 0.5s; }

@keyframes fadeInCard {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Hover effects melhorados */
.vsel-card-item:hover .vsel-card-title {
    color: #0d6efd;
}

.vsel-card-item:hover .vsel-card-date i {
    transform: scale(1.1);
}

/* Loading skeleton (opcional) */
.vsel-card-skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}
