/**
 * Events Module - Public Styles
 *
 * @package VUF
 * @subpackage Modules\Events
 * @since 1.0.0
 */

/* Event Meta Styles */
.event-meta {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 20px;
    margin: 20px 0;
    font-size: 14px;
}

.event-meta > div {
    margin-bottom: 15px;
}

.event-meta > div:last-child {
    margin-bottom: 0;
}

.event-meta .label {
    font-weight: 600;
    color: #495057;
    margin-right: 8px;
}

.event-meta .value {
    color: #212529;
}

/* Event Date/Time Display */
.event-datetime {
    font-size: 16px;
    margin-bottom: 20px;
}

.event-datetime .value {
    color: #007bff;
    font-weight: 600;
}

/* Event Location */
.event-location .value {
    color: #28a745;
    font-weight: 600;
}

.event-address .value {
    color: #6c757d;
    line-height: 1.4;
}

/* Registration Button */
.event-register-button {
    display: inline-block;
    background: #007bff;
    color: white;
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: background-color 0.3s ease;
    margin-top: 10px;
}

.event-register-button:hover {
    background: #0056b3;
    color: white;
    text-decoration: none;
}

/* Events Grid */
.vuf-events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    margin: 30px 0;
}

/* Event Card */
.event-card {
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    overflow: hidden;
    transition: box-shadow 0.3s ease, transform 0.2s ease;
    position: relative;
}

.event-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

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

.event-thumbnail img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.event-card:hover .event-thumbnail img {
    transform: scale(1.05);
}

/* Event Date Badge */
.event-card::before {
    content: attr(data-event-date);
    position: absolute;
    top: 15px;
    left: 15px;
    background: rgba(0, 123, 255, 0.9);
    color: white;
    padding: 8px 12px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    z-index: 1;
}

.event-content {
    padding: 20px;
}

.event-title {
    margin: 0 0 10px 0;
    font-size: 18px;
    line-height: 1.4;
}

.event-title a {
    color: #212529;
    text-decoration: none;
    transition: color 0.2s ease;
}

.event-title a:hover {
    color: #007bff;
    text-decoration: none;
}

.event-meta-summary {
    margin-bottom: 15px;
    font-size: 13px;
}

.event-date {
    color: #007bff;
    font-weight: 600;
    margin-bottom: 5px;
}

.event-location {
    color: #28a745;
    font-weight: 500;
}

.event-excerpt {
    color: #6c757d;
    font-size: 14px;
    line-height: 1.5;
}

/* Event Status Indicators */
.event-status-upcoming {
    border-left: 4px solid #28a745;
}

.event-status-ongoing {
    border-left: 4px solid #ffc107;
}

.event-status-past {
    border-left: 4px solid #6c757d;
    opacity: 0.8;
}

/* Featured Event Styles */
.featured-event .event-card {
    border-color: #ffc107;
    position: relative;
}

.featured-event .event-card::after {
    content: "Featured";
    position: absolute;
    top: 15px;
    right: 15px;
    background: #ffc107;
    color: #212529;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    z-index: 1;
}

/* Event Categories */
.event-categories a {
    display: inline-block;
    background: #e9ecef;
    color: #495057;
    padding: 4px 8px;
    border-radius: 4px;
    text-decoration: none;
    font-size: 12px;
    margin-right: 5px;
    margin-bottom: 5px;
    transition: background-color 0.2s ease;
}

.event-categories a:hover {
    background: #dee2e6;
    text-decoration: none;
}

/* Event Calendar View */
.event-calendar {
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    overflow: hidden;
    margin: 20px 0;
}

.event-calendar-header {
    background: #007bff;
    color: white;
    padding: 15px 20px;
    font-weight: 600;
}

.event-calendar-body {
    padding: 20px;
}

.event-calendar-day {
    border-bottom: 1px solid #e9ecef;
    padding: 15px 0;
}

.event-calendar-day:last-child {
    border-bottom: none;
}

.event-calendar-date {
    font-weight: 600;
    color: #007bff;
    margin-bottom: 10px;
}

.event-calendar-events {
    margin-left: 20px;
}

.event-calendar-event {
    margin-bottom: 8px;
    padding: 8px 12px;
    background: #f8f9fa;
    border-radius: 4px;
}

.event-calendar-event a {
    color: #212529;
    text-decoration: none;
    font-weight: 500;
}

.event-calendar-event a:hover {
    color: #007bff;
}

.event-calendar-time {
    color: #6c757d;
    font-size: 12px;
    margin-left: 10px;
}

/* Archive Page Styles */
.events-archive .site-main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.events-archive .page-header {
    text-align: center;
    margin-bottom: 40px;
}

/* Single Event Styles */
.single-event .event-meta {
    margin-bottom: 30px;
}

.single-event .entry-content {
    font-size: 16px;
    line-height: 1.6;
}

/* Event Filters */
.event-filters {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 30px;
    display: flex;
    gap: 20px;
    align-items: center;
    flex-wrap: wrap;
}

.event-filters .filter-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

.event-filters label {
    font-weight: 600;
    color: #495057;
}

.event-filters select {
    padding: 8px 12px;
    border: 1px solid #ced4da;
    border-radius: 4px;
    background: #fff;
    font-size: 14px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .vuf-events-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .event-meta {
        padding: 15px;
        font-size: 13px;
    }
    
    .event-content {
        padding: 15px;
    }
    
    .event-title {
        font-size: 16px;
    }
    
    .event-filters {
        flex-direction: column;
        align-items: stretch;
        gap: 15px;
    }
    
    .event-filters .filter-group {
        flex-direction: column;
        align-items: stretch;
        gap: 5px;
    }
}

@media (max-width: 480px) {
    .event-meta > div {
        margin-bottom: 12px;
    }
    
    .event-meta .label,
    .event-meta .value {
        display: block;
    }
    
    .event-meta .label {
        margin-bottom: 2px;
    }
    
    .event-card::before {
        position: static;
        display: block;
        margin-bottom: 10px;
        text-align: center;
    }
    
    .event-register-button {
        display: block;
        text-align: center;
        width: 100%;
    }
}