/* Softcraft Process Slider Styles */
.softcraft-process-slider {
    font-family: inherit; /* Use theme's default font */
    color: var(--main-text-color, white);

  
    width: 100%;
    box-sizing: border-box;
}

.softcraft-process-slider * {
    box-sizing: border-box;
}

.softcraft-process-slider .process-header {
    text-align: center;
    margin-bottom: 60px;
    max-width: 900px;
}

.softcraft-process-slider .process-header h1 {
    font-size: clamp(32px, 5vw, 56px);
    font-weight: 900;
    letter-spacing: -0.03em;
    margin-bottom: 24px;
    text-transform: uppercase;
    background: linear-gradient(135deg, #4a5568 0%, #2d3748 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.softcraft-process-slider .process-header .subtitle {
    font-size: clamp(18px, 3vw, 24px);
    font-weight: 400;
    line-height: 1.4;
    opacity: 0.8;
    margin-bottom: 20px;
}

.softcraft-process-slider .process-header .highlight {
    font-size: clamp(16px, 2.5vw, 20px);
    font-weight: 600;
    color: var(--accent-color, #2d5a27);
    background: #1a1a1a;
    padding: 16px 32px;
    border-radius: 8px;
    display: inline-block;
    border: 1px solid var(--accent-color, #2d5a27);
}

.softcraft-process-slider .slider-wrapper {
    width: 100%;
    max-width: 1200px;
    min-height: 600px;
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    background: #111111;
    border: 1px solid #222222;
    cursor: pointer;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.softcraft-process-slider .slider-wrapper:hover {
    transform: translateY(-2px);
}

.softcraft-process-slider .slides-container {
    display: flex;
    min-height: 600px;
    transition: transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                filter 0.6s ease;
}

.softcraft-process-slider .slide {
    flex: 0 0 100%;
    min-height: 600px;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 80px 80px 100px 80px;
    overflow: visible;
    transform: scale(0.98);
    transition: transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.softcraft-process-slider .slide.active {
    transform: scale(1);
}

/* Subtle backdrop effect */
.softcraft-process-slider .slide::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.1);
    backdrop-filter: blur(0px);
    transition: backdrop-filter 0.8s ease;
    z-index: 1;
}

/* Enhanced gradient animation */
@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    25% { background-position: 100% 50%; }
    50% { background-position: 100% 100%; }
    75% { background-position: 0% 100%; }
    100% { background-position: 0% 50%; }
}

.softcraft-process-slider .slide-content {
    height: auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    max-width: 800px;
    min-height: 450px;
    position: relative;
    z-index: 2;
}

.softcraft-process-slider .slide-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
}

.softcraft-process-slider .step-number {
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 3px;
    opacity: 0.6;
    text-transform: uppercase;
}

.softcraft-process-slider .step-duration {
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 1px;
    opacity: 0.5;
    text-transform: uppercase;
}

.softcraft-process-slider .step-title {
    font-size: clamp(40px, 8vw, 80px);
    font-weight: 900;
    line-height: 0.85;
    letter-spacing: -0.04em;
    margin-bottom: 40px;
    text-transform: uppercase;
    overflow: visible;
}

.softcraft-process-slider .step-description {
    font-size: clamp(18px, 2.5vw, 22px);
    font-weight: 400;
    line-height: 1.6;
    opacity: 0.8;
    max-width: 600px;
    margin-bottom: 50px;
}

.softcraft-process-slider .step-meta {
    display: flex;
    gap: 40px;
    align-items: center;
}

.softcraft-process-slider .step-cta {
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: white;
    text-decoration: none;
    border-bottom: 2px solid rgba(255,255,255,0.3);
    padding-bottom: 8px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.softcraft-process-slider .step-cta:hover {
    border-bottom-color: white;
    opacity: 1;
}

/* Navigation arrows */
.softcraft-process-slider .nav-arrows {
    position: absolute;
    bottom: 40px;
    left: 40px;
    display: flex;
    gap: 10px;
    z-index: 10;
}

.softcraft-process-slider .nav-arrow {
    width: 36px;
    height: 36px;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    border-radius: 8px;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.softcraft-process-slider .nav-arrow:hover {
    background: rgba(255,255,255,0.2);
    border-color: rgba(255,255,255,0.4);
    transform: scale(1.05);
}

.softcraft-process-slider .nav-arrow:active {
    transform: scale(0.95);
}

/* Progress timeline - desktop */
.softcraft-process-slider .progress-timeline {
    position: absolute;
    left: 40px;
    top: 50%;
    transform: translateY(-50%);
    height: 300px;
    width: 2px;
    background: rgba(255,255,255,0.1);
    z-index: 5;
}

.softcraft-process-slider .progress-fill {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(255,255,255,0.4);
    transition: height 0.8s ease;
    transform-origin: top;
}

.softcraft-process-slider .progress-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 0;
    background: rgba(255,255,255,0.2);
    transform-origin: top;
}

.softcraft-process-slider .progress-steps {
    position: absolute;
    left: -8px;
    top: 0;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    z-index: 6;
}

.softcraft-process-slider .progress-dot {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: rgba(255,255,255,0.2);
    border: 2px solid rgba(255,255,255,0.3);
    transition: all 0.4s ease;
    cursor: pointer;
}

.softcraft-process-slider .progress-dot.active {
    background: #ffffff !important;
    border-color: #ffffff !important;
    box-shadow: 0 0 10px rgba(255,255,255,0.5);
}

.softcraft-process-slider .progress-dot:hover {
    background: rgba(255,255,255,0.6);
    border-color: rgba(255,255,255,0.6);
    transform: scale(1.2);
}

/* Mobile timeline - horizontal */
.softcraft-process-slider .mobile-timeline {
    display: none;
    position: absolute;
    bottom: 60px;
    left: 40px;
    right: 40px;
    height: 4px;
    background: rgba(255,255,255,0.1);
    border-radius: 2px;
    z-index: 5;
}

.softcraft-process-slider .mobile-progress-fill {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    background: rgba(255,255,255,0.6);
    border-radius: 2px;
    transition: width 0.8s ease;
    transform-origin: left;
}

.softcraft-process-slider .mobile-progress-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: rgba(255,255,255,0.2);
    border-radius: 2px;
    transform-origin: left;
}

.softcraft-process-slider .mobile-progress-steps {
    position: absolute;
    top: -6px;
    left: 0;
    right: 0;
    height: 16px;
    display: flex;
    justify-content: space-between;
    z-index: 6;
}

.softcraft-process-slider .mobile-progress-dot {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: rgba(255,255,255,0.2);
    border: 2px solid rgba(255,255,255,0.3);
    transition: all 0.4s ease;
    cursor: pointer;
}

.softcraft-process-slider .mobile-progress-dot.active {
    background: #ffffff !important;
    border-color: #ffffff !important;
    box-shadow: 0 0 8px rgba(255,255,255,0.5);
}

/* Navigation indicator */
.softcraft-process-slider .slide-indicator {
    position: absolute;
    bottom: 40px;
    right: 80px;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 2px;
    opacity: 0.5;
    z-index: 10;
}

/* Text Color Overrides - Force exact colors */
.softcraft-process-slider .slide {
    color: inherit !important;
}

.softcraft-process-slider .slide * {
    color: inherit !important;
}

.softcraft-process-slider .slide .step-number,
.softcraft-process-slider .slide .step-duration,
.softcraft-process-slider .slide .step-title,
.softcraft-process-slider .slide .step-description,
.softcraft-process-slider .slide .step-cta {
    color: inherit !important;
}

.softcraft-process-slider .slide .step-cta {
    border-bottom-color: currentColor !important;
}

.softcraft-process-slider .slide .step-cta:hover {
    border-bottom-color: currentColor !important;
    opacity: 1 !important;
}

/* Content animation states */
.softcraft-process-slider .slide-content > * {
    opacity: 0;
    filter: blur(8px);
    transform: translateY(20px);
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.softcraft-process-slider .slide.active .slide-content > * {
    opacity: 1;
    filter: blur(0px);
    transform: translateY(0);
}

/* Staggered animation for active slide elements */
.softcraft-process-slider .slide.active .slide-header {
    transition-delay: 0.1s;
}

.softcraft-process-slider .slide.active .step-title {
    transition-delay: 0.2s;
}

.softcraft-process-slider .slide.active .step-description {
    transition-delay: 0.4s;
}

.softcraft-process-slider .slide.active .step-meta {
    transition-delay: 0.6s;
}

/* Subtle hover effects */
.softcraft-process-slider .slide.active .step-cta {
    animation: subtlePulse 3s ease-in-out infinite;
}

@keyframes subtlePulse {
    0%, 100% { 
        opacity: 0.8; 
    }
    50% { 
        opacity: 1; 
    }
}

/* Debug styles - only visible when WP_DEBUG is true */
.softcraft-debug-info {
    position: fixed;
    top: 10px;
    right: 10px;
    background: rgba(0,0,0,0.9);
    color: white;
    padding: 10px;
    font-size: 12px;
    font-family: monospace;
    z-index: 9999;
    border-radius: 4px;
    max-width: 300px;
}

/* Ensure slider has minimum height even with no slides */
.softcraft-process-slider .slider-wrapper {
    min-height: 600px;
    position: relative;
}

.softcraft-process-slider .slides-container {
    min-height: 600px;
    width: 100%;
}

/* Make sure single slide takes full width */
.softcraft-process-slider .slide {
    min-width: 100%;
    flex: 0 0 100%;
}

/* Debug borders (remove in production) */
.softcraft-process-slider[data-debug="true"] .slide {
    border: 2px solid red;
}

.softcraft-process-slider[data-debug="true"] .slides-container {
    border: 2px solid blue;
}

.softcraft-process-slider[data-debug="true"] .progress-dot {
    border: 2px solid yellow;
}

/* Responsive */
@media (max-width: 1024px) {
    .softcraft-process-slider .slide {
        padding: 60px 60px 80px 60px;
    }
    
    .softcraft-process-slider .progress-timeline {
        left: 30px;
    }
    
    .softcraft-process-slider .nav-arrows {
        left: 30px;
        bottom: 30px;
    }
    
    .softcraft-process-slider .slide-indicator {
        right: 60px;
        bottom: 30px;
    }
    
    .softcraft-process-slider .slides-container {
        min-height: 500px;
    }
    
    .softcraft-process-slider .slide {
        min-height: 500px;
    }
}

@media (max-width: 768px) {
    .softcraft-process-slider {
        padding: 0px; /* Dodaj padding zamiast 0 */
        min-height: 80vh;
    }
    
    .softcraft-process-slider .process-header {
        margin-bottom: 30px;
        padding: 0px;
    }
    
    .softcraft-process-slider .slider-wrapper {
        height: 80vh;
        min-height: 80vh;
        border-radius: 16px; /* Zachowaj border-radius */
        width: 100%; /* Zmień z 100vw na 100% */
        max-width: 100%; /* Dodaj max-width */
        margin: 0 auto; /* Wycentruj */
    }
    
    .softcraft-process-slider .slides-container {
        min-height: 80vh;
    }
    
    .softcraft-process-slider .slide {
        min-height: 80vh; /* Zwiększ z 70vh do 80vh */
        padding: 60px 40px 120px 40px; /* Zmniejsz lewy padding z 70px do 40px */
        justify-content: center;
    }
    
    .softcraft-process-slider .slide-content {
        min-height: auto;
        justify-content: center;
        max-width: 100%; /* Dodaj ograniczenie szerokości */
    }
    
    /* Hide desktop timeline */
    .softcraft-process-slider .progress-timeline {
        display: none;
    }
    
    /* Show mobile timeline */
    .softcraft-process-slider .mobile-timeline {
        display: block;
    }
    
    .softcraft-process-slider .nav-arrows {
        left: 40px;
        bottom: 100px;
    }
    
    .softcraft-process-slider .slide-indicator {
        right: 40px;
        bottom: 30px;
    }
    
    .softcraft-process-slider .step-meta {
        flex-direction: column;
        gap: 20px;
        align-items: flex-start;
    }
    
    .softcraft-process-slider .step-title {
        font-size: clamp(36px, 12vw, 60px);
        line-height: 0.9;
        margin-bottom: 30px;
    }
    
    .softcraft-process-slider .step-description {
        font-size: clamp(16px, 4vw, 20px);
        margin-bottom: 40px;
    }
}

@media (max-width: 480px) {
    .softcraft-process-slider {
        padding: 0px; /* Dodaj padding dla bardzo małych ekranów */
    }
    
    .softcraft-process-slider .slider-wrapper {
        border-radius: 12px; /* Mniejszy border-radius na małych ekranach */
    }
    
    .softcraft-process-slider .slide {
        padding: 40px 25px 100px 25px;
    }
    
    .softcraft-process-slider .slide-header {
        margin-bottom: 30px;
    }
    
    .softcraft-process-slider .step-title {
        margin-bottom: 25px;
        font-size: clamp(32px, 10vw, 48px);
    }
    
    .softcraft-process-slider .step-description {
        margin-bottom: 30px;
        font-size: clamp(15px, 4vw, 18px);
    }
    
    .softcraft-process-slider .nav-arrows {
        left: 25px;
        bottom: 100px;
    }
    
    .softcraft-process-slider .slide-indicator {
        right: 25px;
        bottom: 20px;
    }
    
    .softcraft-process-slider .mobile-timeline {
        left: 25px;
        right: 25px;
        bottom: 50px;
    }
}