/**
 * Frontend styles for the Events module
 */

/* Events grid layout */
.sipm-events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    grid-gap: 30px;
    margin: 30px 0;
}

/* Event card styling */
.sipm-event-card {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background: #fff;
}

.sipm-event-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

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

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

.sipm-event-title {
    font-size: 1.5em;
    margin: 0 0 15px 0;
    color: #333;
    line-height: 1.2;
}

/* Event metadata styling */
.sipm-event-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 15px;
    color: #666;
    font-size: 0.9em;
}

.sipm-event-date,
.sipm-event-time,
.sipm-event-price {
    display: flex;
    align-items: center;
}

.sipm-event-meta i.dashicons {
    margin-right: 5px;
    font-size: 16px;
    width: 16px;
    height: 16px;
}

/* Event excerpt */
.sipm-event-excerpt {
    margin-bottom: 20px;
    color: #555;
    line-height: 1.6;
}

/* Event action buttons */
.sipm-event-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.sipm-event-button {
    display: inline-block;
    padding: 8px 16px;
    background-color: #007cba;
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 600;
    transition: background-color 0.3s ease;
}

.sipm-event-button:hover {
    background-color: #0069a0;
    color: #fff;
}

.sipm-event-link {
    color: #007cba;
    text-decoration: none;
    font-size: 0.9em;
    font-weight: 600;
}

.sipm-event-link:hover {
    text-decoration: underline;
}

.sipm-event-sold-out {
    display: inline-block;
    padding: 8px 16px;
    background-color: #f44336;
    color: #fff;
    border-radius: 4px;
    font-weight: 600;
}

/* No events message */
.sipm-no-events {
    text-align: center;
    padding: 40px;
    color: #666;
    font-style: italic;
}

/* Responsive adjustments */
@media screen and (max-width: 768px) {
    .sipm-events-grid {
        grid-template-columns: 1fr;
    }
}

@media screen and (max-width: 480px) {
    .sipm-event-meta {
        flex-direction: column;
        gap: 5px;
    }
}
