/**
 * File: events.css
 *
 * Event Cards Styling.
 * Styles for event grids and individual event cards.
 *
 * @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-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.event-card {
    background: white;
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
    overflow: hidden;
    transition: var(--hover-transition);
    position: relative;
}

.event-card:hover {
    transform: var(--hover-lift);
    box-shadow: var(--shadow-lg);
}

.event-card-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.event-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.event-card:hover .event-card-image img {
    transform: scale(1.05);
}

.event-card-content {
    padding: 20px;
    position: relative;
}

.event-date-badge {
    position: absolute;
    top: -30px;
    right: 20px;
    background: var(--primary);
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(211, 47, 47, 0.3);
}

.event-date-badge .day {
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1;
}

.event-date-badge .month {
    font-size: 0.8rem;
    text-transform: uppercase;
    margin-top: 2px;
}

.event-title {
    margin: 10px 0 15px;
    font-size: 1.3rem;
}

.event-title a {
    color: var(--text-dark);
    text-decoration: none;
    transition: color 0.3s ease;
}

.event-title a:hover {
    color: var(--primary);
}

.event-meta-small {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 15px;
    font-size: 0.9rem;
    color: var(--text-light);
}

.event-meta-small span {
    display: flex;
    align-items: center;
    gap: 8px;
}

.event-meta-small i {
    color: var(--primary);
    width: 16px;
}

.event-excerpt {
    margin-bottom: 15px;
    color: var(--text-light);
    line-height: 1.6;
}

/* Single Event Page */
.event-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin: 20px 0 30px;
    padding: 20px;
    background: var(--bg-light);
    border-radius: var(--radius);
}

.event-detail {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1rem;
}

.event-detail i {
    color: var(--primary);
    font-size: 1.2rem;
}

.event-image {
    margin: 30px 0;
    border-radius: var(--radius);
    overflow: hidden;
}

.event-image img {
    width: 100%;
    height: auto;
    display: block;
}

.no-events {
    text-align: center;
    padding: 60px 20px;
    background: white;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.no-events p {
    font-size: 1.1rem;
    color: var(--text-light);
}

/* Responsive */
@media (max-width: 768px) {
    .events-grid {
        grid-template-columns: 1fr;
    }

    .event-meta {
        flex-direction: column;
        gap: 10px;
    }
}

/* =========================================
   SINGLE EVENT PAGE - HERO BANNER DESIGN
   ========================================= */

.single-event-container {
    background: #fff;
}

/* Hero Banner Section */
.single-event-hero {
    position: relative;
    width: 100%;
    height: 500px;
    overflow: hidden;
    background: linear-gradient(135deg, var(--kuk-red) 0%, var(--kuk-red-dark) 100%);
}

.event-hero-poster {
    width: 100%;
    height: 100%;
}

.event-hero-poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.event-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom,
            rgba(0, 0, 0, 0.1) 0%,
            rgba(0, 0, 0, 0.3) 100%);
    pointer-events: none;
}

/* Floating Date Badge on Hero */
.event-hero-date-badge {
    position: absolute;
    bottom: 30px;
    right: 30px;
    background: var(--primary);
    color: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    text-align: center;
    min-width: 120px;
    z-index: 2;
}

.badge-day {
    font-size: 3rem;
    font-weight: 800;
    line-height: 1;
}

.badge-month {
    font-size: 1rem;
    text-transform: uppercase;
    font-weight: 600;
    margin-top: 5px;
    opacity: 0.9;
}

.badge-year {
    font-size: 0.9rem;
    opacity: 0.8;
    margin-top: 3px;
}

/* Breadcrumb */
.event-breadcrumb {
    position: absolute;
    top: 30px;
    left: 30px;
    z-index: 2;
}

.event-breadcrumb a {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.95);
    color: #333;
    padding: 10px 20px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.event-breadcrumb a:hover {
    background: white;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

/* Content Area */
.single-event-content {
    background: white;
    padding: 60px 0;
}

.event-content-wrapper {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 30px;
}

/* Event Header */
.event-header {
    margin-bottom: 40px;
    text-align: center;
}

.event-title {
    font-size: 3rem;
    font-weight: 800;
    line-height: 1.1;
    color: #111;
    margin: 0;
}

/* Meta Grid */
.event-meta-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 25px;
    margin-bottom: 50px;
    background: #f9fafb;
    padding: 30px;
    border-radius: 12px;
    border: 1px solid #eee;
}

.meta-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.meta-icon {
    width: 45px;
    height: 45px;
    background: rgba(211, 47, 47, 0.1);
    color: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.meta-label {
    display: block;
    font-size: 0.8rem;
    color: #6b7280;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.meta-value {
    display: block;
    font-size: 1.15rem;
    font-weight: 700;
    color: #111;
    line-height: 1.3;
}

/* Description */
.event-description {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #4b5563;
    margin-bottom: 50px;
}

.event-description h2,
.event-description h3 {
    color: #111;
    font-weight: 700;
    margin-top: 30px;
    margin-bottom: 15px;
}

.event-description h2 {
    font-size: 2rem;
}

.event-description h3 {
    font-size: 1.5rem;
}

.event-description p {
    margin-bottom: 20px;
}

/* Maps Section */
.event-map-section {
    margin-top: 50px;
    padding-top: 50px;
    border-top: 1px solid #eee;
}

.map-heading {
    font-size: 1.8rem;
    font-weight: 700;
    color: #111;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.map-heading i {
    color: var(--primary);
}

.btn-map {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--primary);
    color: white;
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 20px;
    transition: all 0.3s ease;
}

.btn-map:hover {
    background: var(--kuk-red-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(211, 47, 47, 0.3);
}

.event-map-iframe {
    width: 100%;
    border-radius: 12px;
    border: 1px solid #eee;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

/* Responsive */
@media (max-width: 768px) {
    .single-event-hero {
        height: 350px;
    }

    .event-hero-date-badge {
        bottom: 20px;
        right: 20px;
        padding: 15px;
        min-width: 100px;
    }

    .badge-day {
        font-size: 2.5rem;
    }

    .event-breadcrumb {
        top: 20px;
        left: 20px;
    }

    .event-title {
        font-size: 2rem;
    }

    .event-content-wrapper {
        padding: 0 20px;
    }

    .event-meta-grid {
        grid-template-columns: 1fr;
        padding: 20px;
    }

    .map-heading {
        font-size: 1.4rem;
    }
}

/* =============================================
   LIGHTBOX FOR FULL-SIZE POSTER VIEWING
   ============================================= */

.event-lightbox {
    display: none;
    position: fixed;
    z-index: 9999;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    align-items: center;
    justify-content: center;
    cursor: zoom-out;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.lightbox-content {
    max-width: 95%;
    max-height: 95%;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.lightbox-close {
    position: absolute;
    top: 30px;
    right: 40px;
    color: white;
    font-size: 50px;
    font-weight: 300;
    cursor: pointer;
    z-index: 10000;
    transition: opacity 0.3s ease;
}

.lightbox-close:hover {
    opacity: 0.7;
}

.lightbox-caption {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    font-size: 1rem;
    opacity: 0.8;
    text-align: center;
}

@media (max-width: 768px) {
    .lightbox-close {
        top: 20px;
        right: 20px;
        font-size: 40px;
    }

    .lightbox-caption {
        bottom: 20px;
        font-size: 0.9rem;
    }
}