/* DINAMIKUS EVENTON CAROUSEL - Modern & Responsive */

.event-carousel-container {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* Carousel fejléc */
.carousel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 2px solid #f1f5f9;
}

.carousel-header h2 {
    font-size: 28px;
    font-weight: 700;
    color: #1e293b;
    margin: 0;
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.carousel-controls {
    display: flex;
    gap: 10px;
}

.carousel-btn {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    border: none;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    color: #64748b;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-btn:hover:not(:disabled) {
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.3);
}

.carousel-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    transform: none;
}

/* Carousel fő container */
.event-carousel {
    position: relative;
    overflow: hidden;
    border-radius: 16px;
    margin-bottom: 25px;
}

.carousel-track {
    display: flex;
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    gap: 20px;
}

.carousel-slide {
    flex: 0 0 33.333%;
    min-width: 0;
}

/* Event kártya stílus */
.event-card-dynamic {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.4s ease;
    height: 420px;
    display: flex;
    flex-direction: column;
    position: relative;
}

.event-card-dynamic:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.event-image-container {
    position: relative;
    height: 250px;
    overflow: hidden;
}

.event-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.4s ease;
}

.event-card-dynamic:hover .event-image-container img {
    transform: scale(1.05);
}

/* Event overlay és dátum badge */
.event-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.1) 0%,
        transparent 30%,
        transparent 70%,
        rgba(0, 0, 0, 0.3) 100%
    );
    display: flex;
    align-items: flex-start;
    justify-content: flex-end;
    padding: 16px;
}

.event-date-badge {
    background: var(--event-color, #3b82f6);
    color: white;
    padding: 8px 12px;
    border-radius: 12px;
    text-align: center;
    min-width: 60px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
}

.event-date-badge .day {
    display: block;
    font-size: 18px;
    font-weight: 700;
    line-height: 1;
}

/* Kisebb font a hosszabb szövegekhez (MA, HOLNAP) */
.event-date-badge .day:only-child {
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
}

.event-date-badge .month {
    display: block;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    opacity: 0.9;
    margin-top: 2px;
}

/* Event info szekció */
.event-info {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.event-meta {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 14px;
}

.event-datetime {
    font-size: 14px;
    color: #3b82f6;
    font-weight: 600;
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    padding: 8px 12px;
    border-radius: 8px;
    border-left: 3px solid #3b82f6;
    display: inline-block;
}

.event-location {
    font-size: 12px;
    color: #64748b;
    font-weight: 500;
    background: #f1f5f9;
    padding: 6px 10px;
    border-radius: 6px;
    display: inline-block;
}

.event-title {
    font-size: 18px;
    font-weight: 700;
    color: #1e293b;
    margin: 0 0 10px 0;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.event-excerpt {
    font-size: 14px;
    color: #64748b;
    line-height: 1.5;
    margin: 0 0 16px 0;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.event-link-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--event-color, #3b82f6);
    color: white;
    padding: 12px 20px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
    align-self: flex-start;
    margin-top: auto;
}

.event-link-btn:hover {
    background: var(--event-color, #1d4ed8);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.4);
    color: white;
    text-decoration: none;
}

.btn-arrow {
    transition: transform 0.3s ease;
}

.event-link-btn:hover .btn-arrow {
    transform: translateX(4px);
}

/* Dots indikátor */
.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 20px;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: none;
    background: #cbd5e1;
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot.active {
    background: #3b82f6;
    transform: scale(1.2);
}

.dot:hover {
    background: #64748b;
}

/* Responsive Design */

/* Tablet */
@media (max-width: 1024px) {
    .carousel-slide {
        flex: 0 0 50%;
    }
    
    .event-card-dynamic {
        height: 380px;
    }
    
    .event-image-container {
        height: 220px;
    }
    
    .carousel-header h2 {
        font-size: 24px;
    }
}

/* Mobil tájkép */
@media (max-width: 768px) {
    .event-carousel-container {
        padding: 0 16px;
        margin: 30px auto;
    }
    
    .carousel-header {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
        margin-bottom: 25px;
    }
    
    .carousel-header h2 {
        font-size: 22px;
    }
    
    .carousel-controls {
        align-self: flex-end;
    }
    
    .carousel-btn {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }
    
    .carousel-track {
        gap: 15px;
    }
    
    .event-card-dynamic {
        height: 360px;
    }
    
    .event-image-container {
        height: 200px;
    }
    
    .event-info {
        padding: 16px;
    }
    
    .event-title {
        font-size: 16px;
    }
    
    .event-excerpt {
        font-size: 13px;
    }
}

/* Mobil álló */
@media (max-width: 480px) {
    .carousel-slide {
        flex: 0 0 100%;
    }
    
    .event-carousel-container {
        margin: 25px auto;
        padding: 0 12px;
    }
    
    .carousel-header {
        margin-bottom: 20px;
    }
    
    .carousel-header h2 {
        font-size: 20px;
    }
    
    .carousel-track {
        gap: 12px;
    }
    
    .event-card-dynamic {
        height: 340px;
    }
    
    .event-image-container {
        height: 180px;
    }
    
    .event-info {
        padding: 14px;
    }
    
    .event-title {
        font-size: 15px;
        -webkit-line-clamp: 2;
    }
    
    .event-excerpt {
        font-size: 12px;
        -webkit-line-clamp: 2;
        margin-bottom: 12px;
    }
    
    .event-link-btn {
        padding: 10px 16px;
        font-size: 13px;
    }
    
    .event-meta {
        gap: 6px;
        margin-bottom: 12px;
    }
    
    .event-datetime {
        font-size: 13px;
        padding: 6px 10px;
    }
    
    .event-location {
        font-size: 11px;
        padding: 4px 8px;
    }
    
    .dot {
        width: 10px;
        height: 10px;
    }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    .event-card-dynamic {
        background: #1e293b;
    }
    
    .event-title {
        color: #f1f5f9;
    }
    
    .event-excerpt {
        color: #94a3b8;
    }
    
    .event-datetime {
        background: #1e40af;
        color: #93c5fd;
        border-left-color: #60a5fa;
    }
    
    .event-location {
        background: #334155;
        color: #cbd5e1;
    }
    
    .carousel-header h2 {
        color: #f1f5f9;
    }
}

/* Loading animation placeholder */
.event-card-dynamic.loading {
    background: linear-gradient(90deg, #f1f5f9 25%, #e2e8f0 50%, #f1f5f9 75%);
    background-size: 200% 100%;
    animation: loading 2s infinite;
}

@keyframes loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* Scroll behavior smooth */
html {
    scroll-behavior: smooth;
}

/* Focus styles for accessibility */
.carousel-btn:focus,
.dot:focus,
.event-link-btn:focus {
    outline: 2px solid #3b82f6;
    outline-offset: 2px;
}