/**
 * Walking Institut Carousel Styles
 * Version: 1.0.0
 */

/* Carousel Wrapper */
.wic-carousel-wrapper {
    width: 100%;
    overflow: hidden;
    position: relative;
    background: none !important;
}

.wic-carousel-wrapper::before,
.wic-carousel-wrapper::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 100px;
    z-index: 2;
    pointer-events: none;
}

.wic-carousel-wrapper::before {
    left: 0;
    background: linear-gradient(to right, rgba(241, 251, 255, 0.7), rgba(241, 251, 255, 0));
}

.wic-carousel-wrapper::after {
    right: 0;
    background: linear-gradient(to left, rgba(241, 251, 255, 0.7), rgba(241, 251, 255, 0));
}

/* Carousel Container */
.wic-carousel-container {
    width: 100%;
    position: relative;
    padding: 6px 0;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
}

.wic-carousel-container:active {
    cursor: grabbing;
}

.wic-carousel-container.dragging {
    cursor: grabbing;
    scroll-behavior: auto;
}

.wic-carousel-container.dragging .wic-carousel-track {
    animation-play-state: paused !important;
}

/* Scrollbar verstecken */
.wic-carousel-container::-webkit-scrollbar {
    display: none;
}

.wic-carousel-container {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* Carousel Track */
.wic-carousel-track {
    display: flex;
    gap: 30px;
    animation: scroll-left 60s linear infinite;
    width: fit-content;
}

.wic-carousel-track:hover {
    animation-play-state: paused;
}

/* Scroll Animation */
@keyframes scroll-left {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

/* Card Styles */
.wic-card {
    flex-shrink: 0;
    width: 680px;
    background: #ffffff;
    border-radius: 20px;
    box-shadow: rgba(50, 50, 93, 0.25) 0px 2px 5px -1px, rgba(0, 0, 0, 0.3) 0px 1px 3px -1px;
    display: flex;
    padding: 30px;
    gap: 25px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    user-select: none;
}

.wic-card:hover {
    transform: translateY(-5px);
    box-shadow: rgba(50, 50, 93, 0.35) 0px 6px 12px -2px, rgba(0, 0, 0, 0.4) 0px 3px 7px -3px;
}

/* Card Image Section */
.wic-card-image {
    flex-shrink: 0;
}

.wic-card-image img {
    width: 120px;
    height: 120px;
    border-radius: 100%;
    object-fit: cover;
    border: 4px solid #52BBEF;
    box-shadow: 0 5px 15px rgba(74, 144, 226, 0.3);
}

/* Card Content Section */
.wic-card-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.wic-card-content h2 {
    margin: 0;
    font-size: 22px;
    font-weight: 700;
    color: #2c3e50;
    line-height: 1.3;
}

.wic-card-title {
    margin: 0;
    font-size: 14px;
    font-weight: 600;
    color: #52BBEF;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Card Links */
.wic-card-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.wic-card-links a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: #52BBEF;
    color: #ffffff;
    text-decoration: none;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 2px 6px rgba(74, 144, 226, 0.3);
}

.wic-card-links a:hover {
    background: #357abd;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(74, 144, 226, 0.4);
}

.wic-card-links a:active {
    transform: translateY(0);
}

.wic-card-links a ion-icon {
    font-size: 16px;
    --ionicon-stroke-width: 48px;
    margin-right: 2px;
}

/* Responsive Design */
@media screen and (max-width: 768px) {
    .wic-card {
        width: 400px;
        flex-direction: column;
        text-align: center;
        padding: 25px;
    }
    
    .wic-card-image {
        align-self: center;
    }
    
    .wic-card-image img {
        width: 100px;
        height: 100px;
    }
    
    .wic-card-content h2 {
        font-size: 20px;
    }
    
    .wic-card-links {
        justify-content: center;
    }
    
    .wic-carousel-track {
        gap: 20px;
    }
}

/* Animation Speed Variations */
.wic-carousel-container[data-speed="15"] .wic-carousel-track {
    animation-duration: 30s;
}

.wic-carousel-container[data-speed="30"] .wic-carousel-track {
    animation-duration: 60s;
}

.wic-carousel-container[data-speed="45"] .wic-carousel-track {
    animation-duration: 90s;
}

.wic-carousel-container[data-speed="60"] .wic-carousel-track {
    animation-duration: 120s;
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    .wic-carousel-track {
        animation: none;
    }
}

/* Print Styles */
@media print {
    .wic-carousel-track {
        animation: none;
        flex-wrap: wrap;
    }
    
    .wic-card {
        page-break-inside: avoid;
        box-shadow: none;
        border: 1px solid #ddd;
    }
}