/**
 * File: events-archive.css
 *
 * Event Archive Grid.
 * Styles for the events archive page and grid layout.
 *
 * @package     KuK Bendorf Theme
 * @author      Oliver Ferber <admin@kuk-bendorf.de>
 * @copyright   2024-2026 KuK Bendorf e.V.
 * @license     Proprietary
 * @version     1.0.0
 */
.events-archive-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

/* Event Card - inherits base from events.css, archive-specific overrides */
.events-archive-grid .event-card {
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
    border: 1px solid #eee;
    display: flex;
    flex-direction: column;
}

.events-archive-grid .event-card:hover {
    transform: var(--hover-lift);
    box-shadow: var(--shadow-lg);
}

.event-card-image {
    height: 200px;
    overflow: hidden;
    position: relative;
}

.event-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.event-card:hover .event-card-image img {
    transform: scale(1.05);
}

.event-card-content {
    padding: 25px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.event-date-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: white;
    padding: 8px 0;
    /* Vertical padding */
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    z-index: 2;
    min-width: 60px;
    /* Ensure width for long month names */
    line-height: 1.2;
}

.event-date-badge .day {
    display: block;
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--kuk-red);
    /* KUK Red */
}

.event-date-badge .month {
    display: block;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    color: #333;
}

.event-title {
    font-size: 1.3rem;
    margin: 0 0 15px;
    line-height: 1.3;
}

.event-title a {
    color: #222;
    text-decoration: none;
    transition: color 0.2s;
}

.event-title a:hover {
    color: var(--kuk-red);
}

.event-meta-small {
    margin-bottom: 15px;
    font-size: 0.95rem;
    color: #666;
}

.event-meta-small span {
    display: block;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.event-meta-small i {
    color: var(--kuk-red);
    width: 20px;
    text-align: center;
}

.event-excerpt {
    font-size: 0.95rem;
    color: #555;
    margin-bottom: 20px;
    flex-grow: 1;
}

.btn-primary-sm {
    display: inline-block;
    padding: 8px 20px;
    background: linear-gradient(135deg, var(--kuk-red) 0%, var(--kuk-red-dark) 100%);
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 600;
    text-align: center;
    transition: all 0.2s;
    align-self: flex-start;
}

.btn-primary-sm:hover {
    background: linear-gradient(135deg, var(--kuk-red-dark) 0%, #aa0000 100%);
    transform: translateY(-2px);
    color: white;
}