/* ================================
   ADSI Upcoming Events Module
   ================================ */

.adsi-upcoming-events-wrapper {
    margin: 0 0 2rem 0;
}

.adsi-upcoming-events-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0 0 1.5rem 0;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid #e0e0e0;
}

.adsi-upcoming-events-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.adsi-upcoming-event-item {
    display: flex;
    gap: 1rem;
    padding: 1rem 0;
    border-bottom: 1px solid #f0f0f0;
    transition: background-color 0.2s ease;
}

.adsi-upcoming-event-item:last-child {
    border-bottom: none;
}

.adsi-upcoming-event-item:hover {
    background-color: #fafafa;
    padding-left: 0.5rem;
    padding-right: 0.5rem;
    margin-left: -0.5rem;
    margin-right: -0.5rem;
    border-radius: 8px;
}

/* Imagem do evento */
.adsi-upcoming-event-image {
    flex-shrink: 0;
    width: 80px;
    height: 80px;
    overflow: hidden;
    border-radius: 8px;
}

.adsi-upcoming-event-image a {
    display: block;
    width: 100%;
    height: 100%;
}

.adsi-upcoming-event-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.adsi-upcoming-event-image:hover img {
    transform: scale(1.05);
}

/* Conteúdo do evento */
.adsi-upcoming-event-content {
    flex: 1;
    min-width: 0;
}

/* Data do evento */
.adsi-upcoming-event-date {
    font-size: 0.875rem;
    color: #666;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.adsi-event-date-day {
    font-weight: 600;
    color: #a81010;
}

.adsi-event-date-time {
    color: #888;
}

.adsi-event-date-time::before {
    content: "•";
    margin-right: 0.5rem;
    color: #ccc;
}

/* Título do evento */
.adsi-upcoming-event-title {
    margin: 0 0 0.5rem 0;
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.4;
}

.adsi-upcoming-event-title a {
    color: #333;
    text-decoration: none;
    transition: color 0.2s ease;
}

.adsi-upcoming-event-title a:hover {
    color: #a81010;
}

/* Local do evento */
.adsi-upcoming-event-venue {
    font-size: 0.875rem;
    color: #777;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.adsi-upcoming-event-venue i {
    color: #a81010;
    font-size: 0.75rem;
}

/* Excerto */
.adsi-upcoming-event-excerpt {
    font-size: 0.875rem;
    color: #666;
    line-height: 1.5;
    margin-top: 0.5rem;
}

/* Rodapé - Ver todos */
.adsi-upcoming-events-footer {
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid #e0e0e0;
    text-align: center;
}

.adsi-upcoming-events-view-all {
    display: inline-block;
    font-size: 0.875rem;
    font-weight: 600;
    color: #a81010;
    text-decoration: none;
    padding: 0.5rem 1rem;
    border: 2px solid #a81010;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.adsi-upcoming-events-view-all:hover {
    background-color: #a81010;
    color: #fff;
    transform: translateY(-2px);
}

/* Mensagem vazia */
.adsi-upcoming-events-empty {
    padding: 2rem;
    text-align: center;
    color: #999;
    font-style: italic;
    background-color: #f9f9f9;
    border-radius: 8px;
}

/* Widget Sidebar */
.widget .adsi-upcoming-events-wrapper {
    margin: 0;
}

.widget .adsi-upcoming-event-image {
    width: 60px;
    height: 60px;
}

.widget .adsi-upcoming-event-title {
    font-size: 0.9rem;
}

.widget .adsi-upcoming-event-date {
    font-size: 0.8rem;
}

.widget .adsi-upcoming-event-venue {
    font-size: 0.8rem;
}

/* Responsivo */
@media (max-width: 640px) {
    .adsi-upcoming-event-item {
        flex-direction: column;
        gap: 0.75rem;
    }

    .adsi-upcoming-event-image {
        width: 100%;
        height: 200px;
    }

    .adsi-upcoming-events-title {
        font-size: 1.25rem;
    }
}

/* Variante compacta (para sidebars) */
.adsi-upcoming-events-compact .adsi-upcoming-event-item {
    flex-direction: column;
    gap: 0.5rem;
    padding: 0.75rem 0;
}

.adsi-upcoming-events-compact .adsi-upcoming-event-image {
    width: 100%;
    height: 150px;
}

.adsi-upcoming-events-compact .adsi-upcoming-event-title {
    font-size: 0.875rem;
}

.adsi-upcoming-events-compact .adsi-upcoming-event-date {
    font-size: 0.75rem;
}
