/**
 * Pirates Park FKK Saunaclub
 * Events-Karussell CSS für die Startseite
 */

/* Upcoming Events Section */
.upcoming-events-section {
    padding: 4rem 0;
    background-color: rgba(18, 18, 18, 0.8);
    position: relative;
}

.upcoming-events-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../img/backgrounds/pattern-dark.png');
    opacity: 0.1;
    pointer-events: none;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2.5rem;
}

.section-header h2 {
    font-size: 2.5rem;
    color: var(--gold);
    margin: 0;
    position: relative;
    padding-bottom: 0.5rem;
}

.section-header h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background-color: var(--gold);
}

.view-all-link {
    color: var(--silver);
    text-decoration: none;
    font-size: 1.1rem;
    transition: color 0.3s ease;
    display: flex;
    align-items: center;
}

.view-all-link:hover {
    color: var(--gold);
}

.view-all-link i {
    margin-left: 0.5rem;
    transition: transform 0.3s ease;
}

.view-all-link:hover i {
    transform: translateX(5px);
}

.no-events-message {
    text-align: center;
    padding: 3rem;
    background-color: rgba(0, 0, 0, 0.3);
    border-radius: 8px;
    color: var(--silver);
}

.no-events-message p {
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.no-events-message a {
    color: var(--gold);
    text-decoration: none;
    transition: color 0.3s ease;
}

.no-events-message a:hover {
    color: #b8a032;
    text-decoration: underline;
}

/* Carousel Styles */
.events-carousel {
    position: relative;
    overflow: hidden;
    margin-bottom: 1.5rem;
}

.carousel-track {
    display: flex;
    transition: transform 0.5s ease;
}

.carousel-item {
    min-width: calc(33.333% - 2rem);
    padding: 0 1rem;
    box-sizing: border-box;
    opacity: 0.7;
    transform: scale(0.9);
    transition: all 0.5s ease;
}

.carousel-item.active {
    opacity: 1;
    transform: scale(1);
}

.carousel-control {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background-color: rgba(0, 0, 0, 0.5);
    border: 2px solid var(--gold);
    border-radius: 50%;
    color: var(--gold);
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
}

.carousel-control:hover {
    background-color: var(--mahogany);
}

.carousel-control.prev {
    left: 10px;
}

.carousel-control.next {
    right: 10px;
}

.carousel-indicators {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 1.5rem;
}

.indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(212, 175, 55, 0.3);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.indicator.active {
    background-color: var(--gold);
    transform: scale(1.2);
}

/* Event Card Styles */
.carousel-item .event-card {
    background-image: url('../img/backgrounds/pergament.png');
    background-size: cover;
    border-radius: 10px;
    overflow: hidden;
    height: 100%;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    color: #5A3921;
    transition: all 0.3s ease;
    transform: rotate(-1deg);
    position: relative;
    
    /* Maske für den Transparenzverlauf */
    -webkit-mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 1) 95%, rgba(0, 0, 0, 0) 100%);
    mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 1) 95%, rgba(0, 0, 0, 0) 100%);
}

.carousel-item:nth-child(even) .event-card {
    transform: rotate(1deg);
}

.carousel-item .event-card:hover {
    transform: translateY(-10px) rotate(0);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.carousel-item .event-card.ghost-effect {
    animation: cardFloat 4s infinite ease-in-out;
}

@keyframes cardFloat {
    0%, 100% {
        transform: translateY(0) rotate(-1deg);
    }
    50% {
        transform: translateY(-15px) rotate(1deg);
    }
}

.event-image {
    position: relative;
    height: 180px;
    overflow: hidden;
}

.event-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.event-card:hover .event-image img {
    transform: scale(1.1);
}

.event-date-overlay {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: var(--mahogany);
    color: white;
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: bold;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.featured-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background-color: var(--gold);
    color: black;
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: bold;
    z-index: 1;
    display: flex;
    align-items: center;
}

.featured-badge i {
    margin-right: 0.3rem;
}

.event-content {
    padding: 1.5rem;
}

.event-content h3 {
    font-size: 1.4rem;
    margin-bottom: 0.8rem;
    color: #5A3921;
}

.event-schedule {
    font-size: 0.95rem;
    color: #8A6D56;
    margin-bottom: 1rem;
}

.event-schedule p {
    margin-bottom: 0.3rem;
    display: flex;
    align-items: center;
    line-height: 1.4;
}

.event-schedule i {
    margin-right: 0.5rem;
    width: 16px;
    text-align: center;
}

.event-teaser {
    font-size: 1rem;
    line-height: 1.5;
    margin-bottom: 1.2rem;
    color: #5A3921;
}

.event-link {
    display: inline-block;
    padding: 0.6rem 1.2rem;
    background-color: #C04000;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    font-size: 0.9rem;
    transition: background-color 0.3s ease;
}

.event-link:hover {
    background-color: #A33500;
}

/* Responsive Styles */
@media (max-width: 1200px) {
    .carousel-item {
        min-width: calc(50% - 2rem);
    }
}

@media (max-width: 991px) {
    .section-header h2 {
        font-size: 2rem;
    }
    
    .carousel-item {
        min-width: calc(50% - 2rem);
    }
}

@media (max-width: 768px) {
    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .carousel-item {
        min-width: calc(100% - 2rem);
    }
    
    .carousel-control {
        width: 36px;
        height: 36px;
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .upcoming-events-section {
        padding: 3rem 0;
    }
    
    .section-header h2 {
        font-size: 1.8rem;
    }
    
    .event-image {
        height: 150px;
    }
    
    .event-content {
        padding: 1.2rem;
    }
    
    .event-content h3 {
        font-size: 1.2rem;
    }
}