/**
 * AEIO Events Sync Styles
 */

/* Container Styles */
.aeio-events-container {

    @media (max-width: 768px) {
        margin: 0.5rem 0;
    }
    margin: 2rem 0;
    clear: both;
}

/* Grid Layout */
.aeio-events-grid {
    display: flex;
    flex-wrap: wrap;
    flex-direction: column;
    gap: 2rem;
    justify-content: center;
}

@media (min-width: 992px) {
    .aeio-events-grid {
        justify-content: center;
    }
}

@media (max-width: 991px) {
    .aeio-events-grid {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .aeio-events-grid {
        flex-direction: column;
        align-items: center;
    }
}

/* List Layout */
.aeio-events-list .aeio-event-card {
    margin-bottom: 2rem;
    max-width: 100%;
}

/* Event Card */
.aeio-event-card {
    background: #ffffff !important;
    font-family: Open Sans, sans-serif;
    border: 1px solid #e1e4e8;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    width: 320px;
    flex: 0 0 auto;
}

@media (min-width: 992px) {
    .aeio-events-grid .aeio-event-card {
        width: 320px;
    }
}

@media (min-width: 768px) and (max-width: 991px) {
    .aeio-events-grid .aeio-event-card {
        width: 320px;
    }
}

@media (max-width: 767px) {
    .aeio-events-grid .aeio-event-card {
        width: 100%;
        max-width: 320px;
    }
}

/*.aeio-event-card:hover {*/
/*    transform: translateY(-4px);*/
/*    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);*/
/*    border-color: #217dbb;*/
/*}*/

/* Event Image */
.aeio-event-image {
    width: 100%;
    height: 264px;
    overflow: hidden;
    background: #f5f5f5;
}

.aeio-event-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Event Content */
.aeio-event-content {
    padding: 1rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.aeio-event-title {
    margin: 0 0 1rem 0;
    font-size: 1.5rem;
    font-weight: 600;
    line-height: 1.3;
    color: #217dbb !important;
}

/* Event Meta */
.aeio-event-meta {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 1rem;
    font-size: 1rem;
    color: #586069;
}

.aeio-event-date,
.aeio-event-location {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.1rem;
    color: #217dbb;

    time {
        color: #217dbb;
    }
}

.aeio-event-date svg,
.aeio-event-location svg {
    flex-shrink: 0;
    opacity: 0.7;
}

/* Category Badge */
.aeio-event-category {
    margin-top: 0.25rem;
}

.category-badge {
    display: inline-block;
    background: #217dbb;
    color: white;
    padding: 0.35rem 0.85rem;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Event Description */
.aeio-event-description {
    margin: 0;
    color: #333333;
    line-height: 1.6;
    flex: 1;
    /*font-size: 12px;*/
}

/* Event Speakers */
.aeio-event-speakers {
    margin: 1rem 0;
    padding: 1rem;
    background: #f6f8fa;
    border-radius: 8px;
    font-size: 1rem;
}

.aeio-event-speakers strong {
    color: #1a6396;
    font-size: 1.2rem;
    display: block;
}

.speakers-list {
    color: #586069;
    line-height: 1.2;
    padding-top: 5px;
}

.speaker-name {
    font-weight: 500;
}

/* Event Button */
.aeio-event-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: #217dbb;
    color: white !important;
    padding: 5px 10px;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1.2rem;
    margin-top: 0.5rem;
    transition: all 0.3s ease;
    align-self: flex-start;
    border: 2px solid transparent;
}

.aeio-event-button:hover {
    background: #1a6599;
    color: white !important;
    transform: translateX(4px);
}

.aeio-event-button:active {
    transform: translateX(2px);
}

.aeio-event-button svg {
    transition: transform 0.3s ease;
}

.aeio-event-button:hover svg {
    transform: translateX(4px);
}

/* View All Events Button */
.aeio-view-all-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background: #217dbb;
    color: white !important;
    padding: 12px 24px;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.aeio-view-all-button:hover {
    background: #1a6599;
    color: white !important;
    text-decoration: none;
}

.aeio-view-all-button svg {
    transition: transform 0.3s ease;
}

.aeio-view-all-button:hover svg {
    transform: translate(2px, -2px);
}

/* Error & Empty States */
.aeio-events-error,
.aeio-events-empty {
    padding: 2rem;
    text-align: center;
    border-radius: 8px;
    margin: 2rem 0;
}

.aeio-events-error {
    background: #fff5f5;
    border: 2px solid #fc8181;
    color: #c53030;
}

.aeio-events-empty {
    background: #f7fafc;
    border: 2px solid #e2e8f0;
    color: #718096;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .aeio-event-content {
        padding: 1.25rem;
    }

    .aeio-event-title {
        font-size: 1.25rem;
    }

    .aeio-event-button {
        padding: 5px 10px;
        font-size: 1.1rem;
    }

    .aeio-event-image {
        height: 250px;
    }
}

/* Print Styles */
@media print {
    .aeio-event-button {
        display: none;
    }

    .aeio-event-card {
        page-break-inside: avoid;
        box-shadow: none;
        border: 1px solid #ddd;
    }
}

/* Desktop/Mobile Carousel Switching */
.aeio-events-mobile {
    display: none;
}

.aeio-events-desktop {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    justify-content: center;
}

@media (max-width: 768px) {
    .aeio-events-desktop {
        display: none !important;
    }

    .aeio-events-mobile {
        display: block;
        width: 100%;
        padding-bottom: 50px;
    }
}

/* Swiper Carousel Styles */
.aeio-events-mobile .swiper-slide {
    display: flex;
    justify-content: center;
    align-items: start;
    height: auto;
}

.aeio-events-mobile .aeio-event-card {
    width: 100%;
    max-width: 320px;
}

/* Swiper Pagination Dots */
.aeio-events-mobile .swiper-pagination {
    bottom: 10px !important;
}

.aeio-events-mobile .swiper-pagination-bullet {
    width: 10px;
    height: 10px;
    background: #217dbb;
    opacity: 0.5;
    transition: opacity 0.3s;
}

.aeio-events-mobile .swiper-pagination-bullet-active {
    opacity: 1;
    background: #217dbb;
}
