/**
 * Event Manager Widget for Elementor - Styles
 *
 * @package Event_Manager_Widget
 * @since 1.0.0
 */

/* ========================================
   Event List Shortcode Styles
   ======================================== */

/* Container - 2 Column Grid */
.event-list-container {
    margin: 20px 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

/* Event Item */
.event-item {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    transition: box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.event-item:hover {
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

/* Event Item Image - Square */
.event-item-image {
    position: relative;
    overflow: hidden;
    background: #f5f5f5;
    width: 100%;
    height: 300px;
    flex-shrink: 0;
}

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

/* Category Badge */
.event-item-category-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    z-index: 2;
}

.category-badge {
    background: rgba(0, 0, 0, 0.8);
    color: #fff;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Event Item Content */
.event-item-content {
    padding: 30px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

/* Event Title */
.event-item-title {
    margin: 0 0 20px 0;
    font-size: 24px;
    font-weight: 700;
    line-height: 1.3;
    color: #333;
}

/* Event Excerpt */
.event-item-excerpt {
    color: #555;
    font-size: 15px;
    line-height: 1.8;
}

.event-item-excerpt p {
    margin: 0 0 15px 0;
}

.event-item-excerpt p:last-child {
    margin-bottom: 0;
}

/* No Events Found */
.no-events-found {
    text-align: center;
    padding: 40px 20px;
    color: #666;
    font-size: 16px;
    font-style: italic;
}

/* ========================================
   Single Event Widget Styles
   ======================================== */

.event-details {
    position: relative;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
}

.event-banner {
    position: relative;
    overflow: hidden;
}

.event-banner img {
    width: 100%;
    height: auto;
    display: block;
}

.event-category {
    position: absolute;
    background: rgba(0, 0, 0, 0.8);
    color: #fff;
    padding: 8px 15px;
    border-radius: 5px;
    font-size: 13px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 5px;
    z-index: 10;
}

.event-category.top-left {
    top: 15px;
    left: 15px;
}

.event-category.top-right {
    top: 15px;
    right: 15px;
}

.event-category.bottom-left {
    bottom: 15px;
    left: 15px;
}

.event-category.bottom-right {
    bottom: 15px;
    right: 15px;
}

.event-title {
    margin: 20px 0 15px 0;
    font-size: 28px;
    font-weight: 700;
    color: #333;
    line-height: 1.3;
}

.event-description {
    margin-bottom: 20px;
    color: #555;
    font-size: 16px;
    line-height: 1.7;
}

.event-meta {
    margin-bottom: 20px;
}

.event-meta > div {
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: #666;
    font-size: 15px;
}

.event-meta .dashicons {
    color: #0073aa;
    font-size: 18px;
    width: 18px;
    height: 18px;
}

.event-host {
    font-weight: 600;
    color: #333;
}

.event-speakers {
    margin-bottom: 20px;
    padding: 20px;
    background: #f9f9f9;
    border-left: 4px solid #0073aa;
    border-radius: 5px;
}

.event-speakers h3 {
    margin-top: 0;
    margin-bottom: 10px;
    color: #333;
    font-size: 20px;
}

.event-ticket {
    margin-top: 25px;
}

.event-ticket-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 15px 30px;
    background: #0073aa;
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 700;
    font-size: 16px;
    transition: background 0.3s ease, transform 0.2s ease;
}

.event-ticket-link:hover {
    background: #005a87;
    transform: translateY(-2px);
    color: #fff;
}

.event-ticket-link .dashicons {
    font-size: 18px;
    width: 18px;
    height: 18px;
}

/* Tablet Responsive */
@media (max-width: 1024px) {
    .event-list-container {
        grid-template-columns: repeat(1, 1fr);
        gap: 25px;
    }
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .event-list-container {
        gap: 20px;
    }

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

    .event-item-content {
        padding: 20px;
    }

    .event-item-title {
        font-size: 20px;
        margin-bottom: 15px;
    }

    .event-item-excerpt {
        font-size: 14px;
    }

    .event-title {
        font-size: 24px;
    }
}
