/**
 * Event Manager Frontend Stilleri
 */

/* Event List Styles */
.event-list {
    display: grid;
    gap: 20px;
    margin: 20px 0;
}

.event-item {
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 20px;
    background: white;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: box-shadow 0.3s ease;
}

.event-item:hover {
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.event-item h3 {
    margin-top: 0;
    margin-bottom: 10px;
    font-size: 20px;
    font-weight: 600;
}

.event-item h3 a {
    color: #0073aa;
    text-decoration: none;
}

.event-item h3 a:hover {
    color: #005a87;
    text-decoration: underline;
}

.event-meta {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
    font-size: 14px;
    color: #646970;
}

.event-date:before {
    content: "📅 ";
}

.event-time:before {
    content: "🕐 ";
}

.event-venue:before {
    content: "📍 ";
}

.event-price:before {
    content: "💰 ";
}

.event-excerpt {
    color: #444;
    line-height: 1.6;
}

/* Single Event Page */
.single-event .event-header {
    background: #f8f9fa;
    padding: 30px;
    border-radius: 8px;
    margin-bottom: 30px;
}

.single-event .event-title {
    font-size: 32px;
    margin-bottom: 15px;
    color: #2c3e50;
}

.single-event .event-meta-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.single-event .meta-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 16px;
}

.single-event .meta-item .icon {
    font-size: 20px;
}

.single-event .event-content {
    font-size: 16px;
    line-height: 1.7;
    margin-bottom: 30px;
}

.single-event .event-booking {
    background: #fff;
    border: 2px solid #0073aa;
    border-radius: 8px;
    padding: 25px;
    text-align: center;
}

.single-event .event-price-display {
    font-size: 24px;
    font-weight: 600;
    color: #0073aa;
    margin-bottom: 15px;
}

.single-event .book-now-btn {
    background: #0073aa;
    color: white;
    padding: 12px 30px;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    transition: background-color 0.3s ease;
}

.single-event .book-now-btn:hover {
    background: #005a87;
    color: white;
    text-decoration: none;
}

/* Event Calendar */
.event-calendar {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.event-calendar .calendar-header {
    background: #0073aa;
    color: white;
    padding: 15px 20px;
    text-align: center;
    font-size: 18px;
    font-weight: 600;
}

.event-calendar .calendar-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.event-calendar .calendar-nav button {
    background: none;
    border: none;
    color: white;
    font-size: 18px;
    cursor: pointer;
    padding: 5px;
}

.event-calendar .calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
}

.event-calendar .calendar-day-header {
    background: #f8f9fa;
    padding: 10px;
    text-align: center;
    font-weight: 600;
    color: #646970;
    border-bottom: 1px solid #ddd;
}

.event-calendar .calendar-day {
    min-height: 80px;
    padding: 8px;
    border-right: 1px solid #eee;
    border-bottom: 1px solid #eee;
    vertical-align: top;
}

.event-calendar .calendar-day:nth-child(7n) {
    border-right: none;
}

.event-calendar .calendar-day.other-month {
    background: #f8f9fa;
    color: #ccc;
}

.event-calendar .calendar-day.today {
    background: #e3f2fd;
}

.event-calendar .calendar-day.has-events {
    background: #fff3e0;
}

.event-calendar .day-number {
    font-weight: 600;
    margin-bottom: 5px;
}

.event-calendar .day-events {
    font-size: 11px;
}

.event-calendar .day-event {
    background: #0073aa;
    color: white;
    padding: 1px 3px;
    border-radius: 2px;
    margin: 1px 0;
    display: block;
    text-decoration: none;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

/* Event Search and Filter */
.event-filter {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 30px;
}

.event-filter .filter-row {
    display: flex;
    gap: 15px;
    align-items: center;
    flex-wrap: wrap;
}

.event-filter select,
.event-filter input {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.event-filter .filter-btn {
    background: #0073aa;
    color: white;
    padding: 8px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

/* Responsive Design */
@media (max-width: 768px) {
    .event-item {
        padding: 15px;
    }
    
    .event-meta {
        flex-direction: column;
        gap: 5px;
    }
    
    .single-event .event-meta-details {
        grid-template-columns: 1fr;
    }
    
    .single-event .event-title {
        font-size: 24px;
    }
    
    .event-filter .filter-row {
        flex-direction: column;
        align-items: stretch;
    }
    
    .event-calendar .calendar-day {
        min-height: 60px;
        padding: 5px;
    }
}

/* Loading States */
.event-loading {
    text-align: center;
    padding: 40px;
    color: #646970;
}

.event-loading:after {
    content: "";
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #0073aa;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-left: 10px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Error States */
.event-error {
    background: #ffeaa7;
    border: 1px solid #fdcb6e;
    color: #2d3436;
    padding: 15px;
    border-radius: 4px;
    margin: 20px 0;
}

.event-success {
    background: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
    padding: 15px;
    border-radius: 4px;
    margin: 20px 0;
}