/**
 * NCode Events Calendar - Elementor Widget Styles
 * Carrusel de Eventos
 */

/* =============================================
   Widget Container
   ============================================= */
.ncode-events-carousel-widget {
    padding: 20px 0;
}

.ncode-carousel-section-title {
    font-size: 28px;
    font-weight: 700;
    color: #1d2327;
    margin: 0 0 30px;
    text-align: center;
}

.ncode-no-events-msg {
    text-align: center;
    color: #646970;
    font-style: italic;
    padding: 40px;
    background: #f6f7f7;
    border-radius: 4px;
}

/* =============================================
   Carousel Container
   ============================================= */
.ncode-carousel-container {
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
}

.ncode-carousel-viewport {
    flex: 1;
    overflow: hidden;
    border-radius: 4px;
}

.ncode-carousel-track {
    display: flex;
    transition: transform 0.4s ease;
}

.ncode-carousel-slide {
    flex-shrink: 0;
    padding: 0 12px;
    box-sizing: border-box;
}

/* =============================================
   Event Card
   ============================================= */
.ncode-carousel-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    text-decoration: none;
    transition: transform 0.3s, box-shadow 0.3s;
    height: 100%;
}

.ncode-carousel-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.ncode-carousel-card.ncode-card-expired {
    opacity: 0.85;
}

/* Card Image */
.ncode-carousel-image {
    position: relative;
    height: 200px;
    overflow: hidden;
    background: #f0f0f0;
}

.ncode-carousel-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.ncode-carousel-card:hover .ncode-carousel-image img {
    transform: scale(1.05);
}

.ncode-carousel-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #e0e7ff 0%, #f0f6fc 100%);
}

.ncode-carousel-placeholder span {
    font-size: 48px;
    opacity: 0.5;
}

.ncode-carousel-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #d63638;
    color: #fff;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

/* Card Content */
.ncode-carousel-content {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Header with Date Block and Title */
.ncode-carousel-header {
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

/* Date Block */
.ncode-carousel-date-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 45px;
    flex-shrink: 0;
}

.ncode-date-day {
    font-size: 32px;
    font-weight: 700;
    color: #c62828;
    line-height: 1;
}

.ncode-date-month {
    font-size: 12px;
    font-weight: 600;
    color: #c62828;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.ncode-carousel-title {
    font-size: 16px;
    font-weight: 600;
    color: #1d2327;
    margin: 0;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Excerpt / Description */
.ncode-carousel-excerpt {
    font-size: 14px;
    color: #646970;
    line-height: 1.5;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Legacy date/location styles (kept for compatibility) */
.ncode-carousel-date,
.ncode-carousel-location {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: #646970;
}

.ncode-carousel-date {
    color: #2563eb;
    font-weight: 500;
}

.ncode-carousel-icon {
    font-size: 14px;
}

/* =============================================
   Navigation Arrows
   ============================================= */
.ncode-carousel-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 0;
    background: transparent;
    border: none;
    color: #a01a1a;
    cursor: pointer;
    transition: all 0.2s;
    flex-shrink: 0;
    z-index: 10;
    font-size: 32px;
    font-weight: 300;
    line-height: 1;
}

.ncode-carousel-arrow span {
    display: block;
}

.ncode-carousel-arrow:hover {
    color: #c62828;
}

.ncode-carousel-arrow:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.ncode-carousel-arrow svg {
    width: 24px;
    height: 24px;
}

/* =============================================
   Dots Navigation
   ============================================= */
.ncode-carousel-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 24px;
}

.ncode-carousel-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: transparent;
    border: 2px solid #2563eb;
    cursor: pointer;
    transition: all 0.2s;
    padding: 0;
}

.ncode-carousel-dot:hover,
.ncode-carousel-dot.active {
    background: #2563eb;
}

/* =============================================
   Responsive
   ============================================= */
@media (max-width: 768px) {
    .ncode-carousel-container {
        flex-direction: column;
        gap: 20px;
    }
    
    .ncode-carousel-arrow {
        display: none;
    }
    
    .ncode-carousel-section-title {
        font-size: 22px;
    }
    
    .ncode-carousel-slide {
        padding: 0 8px;
    }
}

/* =============================================
   Animation
   ============================================= */
@keyframes ncode-fade-in {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.ncode-carousel-card {
    animation: ncode-fade-in 0.4s ease;
}
