/* Service Carousel Widget - Alle Styles! 🚀 */

/* ==================== BASE STYLES ==================== */
.tp-service-carousel-wrapper {
    position: relative;
    width: 100%;
    margin: 0 auto;
}

.tp-service-carousel-header {
    text-align: center;
    margin-bottom: 50px;
}

.tp-service-carousel-title {
    font-size: 48px;
    font-weight: 700;
    margin: 0 0 20px 0;
    color: #1a1a1a;
}

.tp-service-carousel-subtitle {
    font-size: 18px;
    color: #666;
    margin: 0;
    line-height: 1.6;
}

.tp-service-carousel {
    position: relative;
    overflow: hidden;
}

.tp-service-carousel-track {
    display: flex;
    transition: transform 0.5s ease;
    gap: 30px;
}

.tp-service-carousel-item {
    flex: 0 0 calc(100% / var(--columns, 3) - 20px);
    min-width: 0;
}

.tp-service-carousel-item-inner {
    height: 100%;
    position: relative;
    overflow: hidden;
    border-radius: 16px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.tp-service-carousel-item-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    border-radius: 16px 16px 0 0;
}

.tp-service-carousel-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.tp-service-carousel-item-icon {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: #333;
    z-index: 2;
}

.tp-service-carousel-item-content {
    padding: 30px;
    background: #fff;
    border-radius: 0 0 16px 16px;
}

.tp-service-carousel-item-title {
    font-size: 24px;
    font-weight: 600;
    margin: 0 0 15px 0;
    color: #1a1a1a;
}

.tp-service-carousel-item-description {
    font-size: 16px;
    line-height: 1.6;
    color: #666;
    margin: 0 0 25px 0;
}

.tp-service-carousel-button {
    display: inline-block;
    padding: 12px 24px;
    background: #007bff;
    color: #fff;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.tp-service-carousel-button:hover {
    background: #0056b3;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 123, 255, 0.3);
}

.tp-service-carousel-nav {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 40px;
}

.tp-service-carousel-prev,
.tp-service-carousel-next {
    width: 50px;
    height: 50px;
    border: 2px solid #ddd;
    background: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #666;
}

.tp-service-carousel-prev:hover,
.tp-service-carousel-next:hover {
    border-color: #007bff;
    color: #007bff;
    transform: scale(1.1);
}

/* ==================== STYLE 1 - CLASSIC ==================== */
.tp-service-carousel-style-1 .tp-service-carousel-item-inner {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border: 1px solid #f0f0f0;
}

.tp-service-carousel-style-1 .tp-service-carousel-item-inner:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.tp-service-carousel-style-1 .tp-service-carousel-item-image img:hover {
    transform: scale(1.1);
}

/* ==================== STYLE 2 - LIQUID GLASS ==================== */
.tp-service-carousel-style-2 .tp-service-carousel-item-inner {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px rgba(31, 38, 135, 0.37);
}

.tp-service-carousel-style-2 .tp-service-carousel-item-content {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    color: #fff;
}

.tp-service-carousel-style-2 .tp-service-carousel-item-title {
    color: #fff;
}

.tp-service-carousel-style-2 .tp-service-carousel-item-description {
    color: rgba(255, 255, 255, 0.8);
}

.tp-service-carousel-style-2 .tp-service-carousel-item-inner:hover {
    transform: scale(1.05);
    box-shadow: 0 15px 45px rgba(31, 38, 135, 0.5);
}

/* ==================== STYLE 3 - MINIMAL ==================== */
.tp-service-carousel-style-3 .tp-service-carousel-item-inner {
    background: #fff;
    border: 2px solid #f8f9fa;
    box-shadow: none;
}

.tp-service-carousel-style-3 .tp-service-carousel-item-content {
    padding: 25px;
}

.tp-service-carousel-style-3 .tp-service-carousel-item-title {
    font-size: 20px;
    font-weight: 500;
}

.tp-service-carousel-style-3 .tp-service-carousel-item-inner:hover {
    border-color: #007bff;
    transform: none;
}

/* ==================== STYLE 4 - MODERN ==================== */
.tp-service-carousel-style-4 .tp-service-carousel-item-inner {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
}

.tp-service-carousel-style-4 .tp-service-carousel-item-content {
    background: transparent;
}

.tp-service-carousel-style-4 .tp-service-carousel-item-title {
    color: #fff;
}

.tp-service-carousel-style-4 .tp-service-carousel-item-description {
    color: rgba(255, 255, 255, 0.9);
}

.tp-service-carousel-style-4 .tp-service-carousel-item-inner:hover {
    transform: rotateY(10deg);
    box-shadow: -20px 20px 40px rgba(0, 0, 0, 0.3);
}

/* ==================== STYLE 5 - ELEGANT ==================== */
.tp-service-carousel-style-5 .tp-service-carousel-item-inner {
    background: #fff;
    border: 1px solid #e0e0e0;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.tp-service-carousel-style-5 .tp-service-carousel-item-inner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #ff6b6b, #4ecdc4, #45b7d1, #96ceb4);
    border-radius: 16px 16px 0 0;
}

.tp-service-carousel-style-5 .tp-service-carousel-item-inner:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.12);
}

/* ==================== STYLE 6 - CREATIVE ==================== */
.tp-service-carousel-style-6 .tp-service-carousel-item-inner {
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    position: relative;
}

.tp-service-carousel-style-6 .tp-service-carousel-item-inner::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(from 0deg, #ff6b6b, #4ecdc4, #45b7d1, #96ceb4, #ff6b6b);
    animation: rotate 4s linear infinite;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.tp-service-carousel-style-6 .tp-service-carousel-item-inner:hover::after {
    opacity: 0.1;
}

.tp-service-carousel-style-6 .tp-service-carousel-item-inner:hover {
    transform: scale(1.02) rotate(1deg);
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* ==================== STYLE 7 - PREMIUM ==================== */
.tp-service-carousel-style-7 .tp-service-carousel-item-inner {
    background: linear-gradient(145deg, #ffffff, #f0f0f0);
    border-radius: 20px;
    box-shadow: 20px 20px 60px #d9d9d9, -20px -20px 60px #ffffff;
}

.tp-service-carousel-style-7 .tp-service-carousel-item-inner:hover {
    box-shadow: inset 20px 20px 60px #d9d9d9, inset -20px -20px 60px #ffffff;
    transform: scale(0.98);
}

.tp-service-carousel-style-7 .tp-service-carousel-button {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

/* ==================== STYLE 8 - BOLD ==================== */
.tp-service-carousel-style-8 .tp-service-carousel-item-inner {
    background: #1a1a1a;
    color: #fff;
    border: 3px solid #007bff;
    border-radius: 0;
}

.tp-service-carousel-style-8 .tp-service-carousel-item-content {
    background: #1a1a1a;
}

.tp-service-carousel-style-8 .tp-service-carousel-item-title {
    color: #fff;
    font-size: 28px;
    font-weight: 700;
}

.tp-service-carousel-style-8 .tp-service-carousel-item-description {
    color: #ccc;
}

.tp-service-carousel-style-8 .tp-service-carousel-item-inner:hover {
    border-color: #ff6b6b;
    transform: translateX(10px);
}

/* ==================== STYLE 9 - FUTURISTIC ==================== */
.tp-service-carousel-style-9 .tp-service-carousel-item-inner {
    background: #0a0a0a;
    border: 1px solid #00ff88;
    border-radius: 10px;
    position: relative;
    overflow: hidden;
}

.tp-service-carousel-style-9 .tp-service-carousel-item-inner::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 255, 136, 0.2), transparent);
    transition: left 0.5s ease;
}

.tp-service-carousel-style-9 .tp-service-carousel-item-inner:hover::before {
    left: 100%;
}

.tp-service-carousel-style-9 .tp-service-carousel-item-content {
    background: #0a0a0a;
    color: #00ff88;
}

.tp-service-carousel-style-9 .tp-service-carousel-item-title {
    color: #00ff88;
    text-shadow: 0 0 10px rgba(0, 255, 136, 0.5);
}

.tp-service-carousel-style-9 .tp-service-carousel-item-description {
    color: #fff;
}

.tp-service-carousel-style-9 .tp-service-carousel-button {
    background: #00ff88;
    color: #0a0a0a;
    border: 1px solid #00ff88;
}

.tp-service-carousel-style-9 .tp-service-carousel-button:hover {
    background: transparent;
    color: #00ff88;
    box-shadow: 0 0 20px rgba(0, 255, 136, 0.5);
}

/* ==================== STYLE 10 - ARTISTIC ==================== */
.tp-service-carousel-style-10 .tp-service-carousel-item-inner {
    background: #fff;
    border-radius: 30px;
    position: relative;
    overflow: hidden;
}

.tp-service-carousel-style-10 .tp-service-carousel-item-inner::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, #ff6b6b, #4ecdc4, #45b7d1, #96ceb4, #feca57, #ff9ff3, #54a0ff, #5f27cd);
    border-radius: 30px;
    z-index: -1;
    animation: borderGlow 3s ease-in-out infinite alternate;
}

@keyframes borderGlow {
    0% { filter: hue-rotate(0deg); }
    100% { filter: hue-rotate(360deg); }
}

.tp-service-carousel-style-10 .tp-service-carousel-item-inner:hover {
    transform: scale(1.05) rotate(2deg);
}

.tp-service-carousel-style-10 .tp-service-carousel-button {
    background: linear-gradient(45deg, #ff6b6b, #4ecdc4);
    border: none;
    color: #fff;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ==================== RESPONSIVE DESIGN ==================== */
@media (max-width: 1200px) {
    .tp-service-carousel-item {
        flex: 0 0 calc(100% / 2 - 15px);
    }
}

@media (max-width: 768px) {
    .tp-service-carousel-item {
        flex: 0 0 100%;
    }
    
    .tp-service-carousel-title {
        font-size: 36px;
    }
    
    .tp-service-carousel-item-content {
        padding: 20px;
    }
}

@media (max-width: 480px) {
    .tp-service-carousel-title {
        font-size: 28px;
    }
    
    .tp-service-carousel-item-content {
        padding: 15px;
    }
    
    .tp-service-carousel-item-title {
        font-size: 20px;
    }
}

/* ==================== COLUMNS SYSTEM ==================== */
.tp-service-carousel[data-columns="1"] .tp-service-carousel-item {
    flex: 0 0 100%;
}

.tp-service-carousel[data-columns="2"] .tp-service-carousel-item {
    flex: 0 0 calc(50% - 15px);
}

.tp-service-carousel[data-columns="3"] .tp-service-carousel-item {
    flex: 0 0 calc(33.333% - 20px);
}

.tp-service-carousel[data-columns="4"] .tp-service-carousel-item {
    flex: 0 0 calc(25% - 22.5px);
}

.tp-service-carousel[data-columns="5"] .tp-service-carousel-item {
    flex: 0 0 calc(20% - 24px);
}

/* ==================== AUTOPLAY ANIMATION ==================== */
.tp-service-carousel[data-autoplay="yes"] .tp-service-carousel-track {
    animation: autoScroll var(--autoplay-speed, 3000ms) linear infinite;
}

@keyframes autoScroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-100%); }
}

/* ==================== HOVER EFFECTS ==================== */
.tp-service-carousel-item-inner:hover .tp-service-carousel-item-image img {
    transform: scale(1.1);
}

.tp-service-carousel-item-inner:hover .tp-service-carousel-item-icon {
    transform: rotate(360deg);
    transition: transform 0.6s ease;
}

/* ==================== LOADING ANIMATION ==================== */
.tp-service-carousel-wrapper {
    opacity: 0;
    animation: fadeIn 0.8s ease forwards;
}

@keyframes fadeIn {
    to { opacity: 1; }
}

/* ==================== ACCESSIBILITY ==================== */
.tp-service-carousel-nav button:focus {
    outline: 2px solid #007bff;
    outline-offset: 2px;
}

.tp-service-carousel-button:focus {
    outline: 2px solid #fff;
    outline-offset: 2px;
}
