/**
 * Clubinio Shop Events - Frontend Styles
 */

:root {
    --clubinio-card-bg: #161616;
    --clubinio-card-radius: 12px;
    --clubinio-text-primary: #ffffff;
    --clubinio-text-secondary: #cccccc;
    --clubinio-text-muted: #9a9a9a;
    /* Nutzt die globale Elementor-Akzentfarbe (Fallback Rot) */
    --clubinio-accent: var(--e-global-color-accent, #e2231a);
    --clubinio-button-bg: #f5c518;
    --clubinio-button-text: #000000;
    --clubinio-button-hover: #ffd700;
}

/* Cache-Status im Footer */
.clubinio-events-cache-status {
    padding: 10px 16px;
    text-align: center;
    font-size: 11px;
    letter-spacing: 0.3px;
    color: var(--clubinio-text-muted);
    opacity: 0.6;
}

/* Monats-Gruppierung */
.clubinio-events-grouped {
    display: flex;
    flex-direction: column;
}

.clubinio-events-month-heading {
    margin: 40px 0 20px;
    font-size: 32px;
    font-weight: 800;
    line-height: 1.2;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-align: center;
    color: var(--clubinio-text-primary);
}

.clubinio-events-grouped .clubinio-events-month-heading:first-child {
    margin-top: 0;
}

/* Grid Layout */
.clubinio-events-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

/* List Layout */
.clubinio-events-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.clubinio-events-list .clubinio-event-card {
    display: flex;
    flex-direction: row;
}

.clubinio-events-list .clubinio-event-image-wrapper {
    width: 300px;
    flex-shrink: 0;
}

.clubinio-events-list .clubinio-event-content {
    flex-grow: 1;
}

/* Event Card */
.clubinio-event-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    background-color: var(--clubinio-card-bg);
    border-radius: var(--clubinio-card-radius);
    overflow: hidden;
    transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.35s ease;
}

.clubinio-event-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 24px 50px rgba(0, 0, 0, 0.35);
}

.clubinio-event-link {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
    text-decoration: none;
    color: inherit;
}

.clubinio-events-list .clubinio-event-link {
    flex-direction: row;
}

/* Image Wrapper – überall gleiche Größe */
.clubinio-event-image-wrapper {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    flex-shrink: 0;
    background: #0a0a0a;
}

.clubinio-event-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.clubinio-event-card:hover .clubinio-event-image {
    transform: scale(1.04);
}

/* Sold Out Badge */
.clubinio-event-sold-out-badge {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(-15deg);
    background: rgba(220, 53, 69, 0.9);
    color: #fff;
    padding: 8px 20px;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    border-radius: 4px;
    letter-spacing: 1px;
}

.clubinio-event-sold-out .clubinio-event-image {
    filter: grayscale(100%);
    opacity: 0.7;
}

/* Content – gleiche Paddings, gleicher Aufbau */
.clubinio-event-content {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 22px 24px 24px;
    flex: 1 1 auto;
}

.clubinio-event-date-line {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.4px;
    text-transform: uppercase;
    color: var(--clubinio-accent);
}

.clubinio-event-title {
    margin: 0;
    font-size: 18px;
    font-weight: 800;
    line-height: 1.25;
    letter-spacing: -0.01em;
    text-transform: uppercase;
    color: var(--clubinio-text-primary);
    /* Zwei Zeilen reservieren → alle Karten gleich aufgebaut */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 2.5em;
}

.clubinio-event-location-line {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: var(--clubinio-accent);
}

/* "Mehr erfahren" Link – immer unten bündig */
.clubinio-event-more {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: auto;
    padding-top: 18px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: var(--clubinio-accent);
}

.clubinio-event-more svg {
    fill: currentColor;
    width: 14px;
    height: 14px;
    transition: transform 0.2s ease;
}

.clubinio-event-card:hover .clubinio-event-more svg {
    transform: translateX(4px);
}

/* No Events */
.clubinio-no-events {
    padding: 40px;
    text-align: center;
    background: #f5f5f5;
    border-radius: 8px;
    color: #666;
}

/* Slider */
.clubinio-events-slider {
    position: relative;
    overflow: hidden;
}

.clubinio-slider-track {
    display: flex;
    transition: transform 0.4s ease;
}

.clubinio-slider-slide {
    flex-shrink: 0;
    padding: 0 10px;
    box-sizing: border-box;
}

.clubinio-slider-slide .clubinio-event-card {
    height: 100%;
    max-width: 400px;
    margin: 0 auto;
}

.clubinio-slider-arrow {
    position: absolute;
    top: 35%;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: background-color 0.3s ease, transform 0.2s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
}

.clubinio-slider-arrow:hover {
    background: #fff;
    transform: translateY(-50%) scale(1.1);
}

.clubinio-slider-arrow svg {
    fill: #333;
}

.clubinio-slider-prev {
    left: 10px;
}

.clubinio-slider-next {
    right: 10px;
}

.clubinio-slider-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    padding: 20px 0 10px;
}

.clubinio-slider-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    border: none;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.clubinio-slider-dot:hover {
    background: rgba(255, 255, 255, 0.5);
}

.clubinio-slider-dot.active {
    background: var(--clubinio-button-bg);
    transform: scale(1.2);
}

/* Responsive – Spaltenanzahl steuert der Elementor "Spalten"-Regler (Desktop/Tablet/Mobil) */
@media (max-width: 1024px) {
    .clubinio-events-list .clubinio-event-image-wrapper {
        width: 250px;
    }
}

@media (max-width: 768px) {
    .clubinio-events-list .clubinio-event-link {
        flex-direction: column;
    }

    .clubinio-events-list .clubinio-event-image-wrapper {
        width: 100%;
    }

    .clubinio-slider-arrow {
        width: 32px;
        height: 32px;
    }
    
    .clubinio-slider-slide .clubinio-event-card {
        max-width: 100%;
    }
}
