/**
 * Events Grid For User Archive - Styles
 * Version: 1.0.0
 */

.egua-events-container {
    margin: 60px 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen-Sans, Ubuntu, Cantarell, 'Helvetica Neue', sans-serif;
}

.egua-events-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.egua-events-section {
    margin-bottom: 60px;
}

.egua-section-title {
    font-size: 32px;
    font-weight: 300;
    color: #333;
    margin-bottom: 40px;
    text-align: center;
    letter-spacing: -0.5px;
}

.egua-events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100%, 1fr));
    gap: 30px;
    align-items: stretch;
}

.egua-event-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    padding: 30px;
    display: flex;
    align-items: flex-start;
    gap: 25px;
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.egua-event-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.egua-event-date {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 80px;
    padding: 20px 0;
}

.egua-date-day {
    font-size: 48px;
    font-weight: 300;
    color: #4FC3F7;
    line-height: 1;
    margin-bottom: 5px;
}

.egua-date-month-year {
    font-size: 14px;
    font-weight: 500;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-align: center;
}

.egua-event-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 120px;
}

.egua-event-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    margin-bottom: 15px;
    min-height: 60px;
}

.egua-event-title-wrapper {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.egua-event-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

.egua-event-frequency {
    font-size: 12px;
    font-weight: 600;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.egua-event-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: #4FC3F7;
}

.egua-event-indicator.past {
    background-color: #FFA726;
}

.egua-event-title {
    font-size: 20px;
    font-weight: 600;
    color: #333;
    margin: 0px;
    line-height: 1.4;
}

.egua-event-location {
    font-size: 14px;
    color: #666;
    margin: 0;
    font-style: italic;
    line-height: 1.3;
}

.egua-view-details {
    display: inline-block;
    padding: 8px 16px;
    background-color: transparent;
    color: #4FC3F7;
    text-decoration: none;
    border: 2px solid #4FC3F7;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    white-space: nowrap;
    flex-shrink: 0;
}

.egua-event-actions {
    margin-top: auto;
}

.egua-view-details:hover {
    background-color: #4FC3F7;
    color: #fff;
    transform: translateY(-1px);
}

/* Past events styling */
.egua-events-section:last-child .egua-date-day {
    color: #FFA726;
}

.egua-events-section:last-child .egua-view-details {
    color: #FFA726;
    border-color: #FFA726;
}

.egua-events-section:last-child .egua-view-details:hover {
    background-color: #FFA726;
    color: #fff;
}

/* Responsive Design */
@media (max-width: 768px) {
    .egua-events-wrapper {
        padding: 0 15px;
    }
    
    .egua-events-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .egua-event-card {
        padding: 25px 20px;
        gap: 20px;
    }
    
    .egua-section-title {
        font-size: 28px;
        margin-bottom: 30px;
    }
    
    .egua-event-title {
        font-size: 18px;
    }
    
    .egua-date-day {
        font-size: 36px;
    }
    
    .egua-event-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .egua-view-details {
        align-self: flex-start;
    }
}

@media (max-width: 480px) {
    .egua-event-card {
        flex-direction: column;
        text-align: center;
        padding: 20px;
    }
    
    .egua-event-date {
        min-width: auto;
        padding: 10px 0;
        flex-direction: row;
        gap: 10px;
        align-items: baseline;
    }
    
    .egua-date-day {
        font-size: 32px;
        margin-bottom: 0;
    }
    
    .egua-date-month-year {
        font-size: 12px;
    }
    
    .egua-section-title {
        font-size: 24px;
    }
    
    .egua-events-section {
        margin-bottom: 40px;
    }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    .egua-event-card {
        background: #2a2a2a;
        border-color: rgba(255, 255, 255, 0.1);
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    }
    
    .egua-section-title {
        color: #f0f0f0;
    }
    
    .egua-event-title {
        color: #f0f0f0;
    }
    
    .egua-event-location,
    .egua-date-month-year {
        color: #ccc;
    }
    
    .egua-event-card:hover {
        box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
    }
}

/* Animation for smooth loading */
.egua-events-container {
    opacity: 0;
    animation: fadeInUp 0.6s ease forwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.egua-event-card {
    opacity: 0;
    animation: slideInCard 0.6s ease forwards;
}

.egua-event-card:nth-child(1) { animation-delay: 0.1s; }
.egua-event-card:nth-child(2) { animation-delay: 0.2s; }
.egua-event-card:nth-child(3) { animation-delay: 0.3s; }
.egua-event-card:nth-child(4) { animation-delay: 0.4s; }

@keyframes slideInCard {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}