/**
 * @file
 * Styles for the Upcoming Events block.
 */

.zinco-upcoming-events-wrapper {
    padding: 60px 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    position: relative;
    overflow: hidden;
}

.zinco-upcoming-events-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="rgba(255,255,255,0.1)" d="M0,96L48,112C96,128,192,160,288,160C384,160,480,128,576,122.7C672,117,768,139,864,138.7C960,139,1056,117,1152,101.3C1248,85,1344,75,1392,69.3L1440,64L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>') no-repeat bottom;
    background-size: cover;
    opacity: 0.3;
}

.upcoming-events-header {
    text-align: center;
    position: relative;
    z-index: 1;
}

.upcoming-events-header .section-title {
    font-size: 36px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 12px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.upcoming-events-header .section-subtitle {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 0;
}

/* Event Card */
.event-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
}

.event-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.25);
}

.event-card-link {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.event-card-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 24px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    position: relative;
    min-height: 100px;
}

.event-date-badge {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 12px;
    padding: 12px 16px;
    text-align: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    min-width: 70px;
}

.event-date-day {
    display: block;
    font-size: 32px;
    font-weight: 700;
    color: #667eea;
    line-height: 1;
}

.event-date-month {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #764ba2;
    text-transform: uppercase;
    margin-top: 4px;
}

.event-time-label {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 8px 16px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #fff;
    font-size: 13px;
    font-weight: 600;
}

.event-time-label i {
    font-size: 14px;
}

.event-card-body {
    padding: 24px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.event-card-title {
    font-size: 22px;
    font-weight: 700;
    color: #212529;
    margin-bottom: 16px;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.event-card-location {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #667eea;
    font-size: 15px;
    margin-bottom: 12px;
    font-weight: 500;
}

.event-card-location i {
    font-size: 16px;
}

.event-card-description {
    font-size: 15px;
    color: #6c757d;
    line-height: 1.6;
    margin-bottom: 16px;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.event-card-read-more {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #667eea;
    font-weight: 600;
    font-size: 14px;
    transition: gap 0.3s ease;
}

.event-card:hover .event-card-read-more {
    gap: 12px;
}

.event-card-read-more i {
    font-size: 12px;
    transition: transform 0.3s ease;
}

.event-card:hover .event-card-read-more i {
    transform: translateX(4px);
}

/* No Events Message */
.no-events-message {
    text-align: center;
    padding: 60px 20px;
    color: rgba(255, 255, 255, 0.9);
}

.no-events-message i {
    font-size: 64px;
    margin-bottom: 20px;
    opacity: 0.7;
}

.no-events-message p {
    font-size: 18px;
    margin: 0;
}

/* Responsive Adjustments */
@media (max-width: 991px) {
    .upcoming-events-header .section-title {
        font-size: 30px;
    }

    .upcoming-events-header .section-subtitle {
        font-size: 16px;
    }

    .event-card-title {
        font-size: 20px;
    }
}

@media (max-width: 767px) {
    .zinco-upcoming-events-wrapper {
        padding: 40px 0;
    }

    .upcoming-events-header .section-title {
        font-size: 26px;
    }

    .upcoming-events-header .section-subtitle {
        font-size: 15px;
    }

    .event-card-header {
        padding: 20px;
        min-height: 80px;
    }

    .event-date-badge {
        min-width: 60px;
        padding: 10px 12px;
    }

    .event-date-day {
        font-size: 28px;
    }

    .event-date-month {
        font-size: 12px;
    }

    .event-card-title {
        font-size: 18px;
    }

    .event-card-description {
        font-size: 14px;
    }
}