/* ICTONE Fullscreen Slider Styles */

.ictone-fullscreen-slider {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ictone-slider-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

/* Główne slajdy */
.ictone-main-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.6s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ictone-main-slide.active {
    opacity: 1;
    z-index: 2;
}

/* Kontener dla wariantów */
.ictone-variants-container {
    position: relative;
    width: 100%;
    height: 100%;
}

/* Warianty */
.ictone-variant {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ictone-variant.active {
    opacity: 1;
    z-index: 2;
}



/* Wspólne style dla obrazów */
.ictone-main-slide img,
.ictone-variant img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.ictone-slider-buttons {
    position: absolute;
    z-index: 10;
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 0;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    /* Płynne przejścia dla zmian pozycji */
    transition: all 0.3s ease-in-out;
}

/* Pozycje buttonów - domyślne wartości (tylko jako fallback) */
.ictone-fullscreen-slider[data-position="left"] .ictone-slider-buttons {
    left: 30px;
    right: auto;
    top: 50%;
    transform: translateY(-50%);
    background: transparent !important;
    transition: all 0.3s ease-in-out;
}

.ictone-fullscreen-slider[data-position="right"] .ictone-slider-buttons {
    right: 30px;
    left: auto;
    top: 50%;
    transform: translateY(-50%);
    background: transparent !important;
    transition: all 0.3s ease-in-out;
}

.ictone-fullscreen-slider[data-position="center"] .ictone-slider-buttons {
    left: 50%;
    right: auto;
    top: 50%;
    transform: translate(-50%, -50%);
    align-items: center;
    width: auto;
    background: transparent !important;
    transition: all 0.3s ease-in-out;
}

/* Nadpisanie pozycji przez kontrolki Elementor */
.ictone-fullscreen-slider .ictone-slider-buttons {
    position: absolute !important;
    z-index: 10 !important;
    display: flex !important;
    flex-direction: column !important;
    padding: 0 !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    /* Zapewnienie, że calc() działa poprawnie */
    transform-origin: center center;
}

/* Płynne przejścia podczas aktualizacji pozycji */
.ictone-fullscreen-slider .ictone-slider-buttons.position-updating {
    transition: all 0.3s ease-in-out !important;
}

.ictone-slider-button {
    background: rgba(0, 0, 0, 0.5);
    color: #ffffff;
    border: 2px solid rgba(255, 255, 255, 0.3);
    padding: 15px 25px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: none;
    white-space: nowrap;
    text-align: center;
    display: flex;
    align-items: center;
}

.ictone-slider-button .color-square {
    width: 20px;
    height: 20px;
    border-radius: 3px;
    flex-shrink: 0;
    border: 1px solid rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
    position: relative;
    display: block !important; /* Upewnij się, że kwadrat jest widoczny */
    opacity: 1 !important; /* Upewnij się, że kwadrat jest widoczny */
}



.ictone-slider-button.active .color-square {
    border-color: rgba(255, 255, 255, 0.8);
    transform: scale(1.1);
}

.ictone-slider-button .button-text {
    flex: 1;
    text-align: left;
}

.ictone-slider-button:hover {
    background: rgba(0, 0, 0, 0.5);
    border-color: rgba(255, 255, 255, 0.3);
    transform: none;
    box-shadow: none;
}

.ictone-slider-button.active {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.8);
    color: #ffffff;
    font-weight: 600;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
}

.ictone-slider-button:focus {
    outline: none;
    box-shadow: none;
}

/* Responsywność */
@media (max-width: 768px) {
    .ictone-slider-buttons {
        padding: 0;
        gap: 8px;
    }
    
    .ictone-slider-button {
        padding: 12px 20px;
        font-size: 14px;
    }
    
    .ictone-slider-button .color-square {
        width: 16px;
        height: 16px;
    }
    
    .ictone-slider-button.active .color-square {
        transform: scale(1.05);
    }
    
    /* Pozycja mobilna - dół (domyślna) */
    .ictone-fullscreen-slider[data-mobile-position="bottom"] .ictone-slider-buttons,
    .ictone-fullscreen-slider .ictone-slider-buttons {
        left: 15px !important;
        right: 15px !important;
        top: auto !important;
        bottom: 30px !important;
        transform: none !important;
        flex-direction: row !important;
        justify-content: center !important;
        flex-wrap: wrap !important;
        background: transparent !important;
    }
    
    /* Pozycja mobilna - góra */
    .ictone-fullscreen-slider[data-mobile-position="top"] .ictone-slider-buttons {
        left: 15px !important;
        right: 15px !important;
        top: 30px !important;
        bottom: auto !important;
        transform: none !important;
        flex-direction: row !important;
        justify-content: center !important;
        flex-wrap: wrap !important;
        background: transparent !important;
    }
    
    /* Pozycja mobilna - środek */
    .ictone-fullscreen-slider[data-mobile-position="center"] .ictone-slider-buttons {
        left: 50% !important;
        right: auto !important;
        top: 50% !important;
        bottom: auto !important;
        transform: translate(-50%, -50%) !important;
        flex-direction: column !important;
        justify-content: center !important;
        flex-wrap: nowrap !important;
        background: transparent !important;
    }
}

@media (max-width: 480px) {
    .ictone-slider-button {
        padding: 10px 15px;
        font-size: 12px;
        min-width: 80px;
    }
    
    .ictone-slider-button .color-square {
        width: 14px;
        height: 14px;
    }
    
    .ictone-slider-button.active .color-square {
        transform: scale(1.02);
    }
    
    .ictone-slider-buttons {
        padding: 0;
        gap: 5px;
    }
}

/* Animacje */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.ictone-main-slide.active {
    animation: fadeIn 0.6s ease-in-out;
}

.ictone-variant.active {
    animation: fadeIn 0.3s ease-in-out;
}

/* Efekty hover dla buttonów - usunięte */

/* Loading state */
.ictone-fullscreen-slider.loading {
    pointer-events: none;
}

.ictone-fullscreen-slider.loading .ictone-slider-button {
    opacity: 0.7;
    pointer-events: none;
}

/* Accessibility */
.ictone-slider-button:focus-visible {
    outline: none;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .ictone-slider-button {
        border-width: 3px;
        background: rgba(0, 0, 0, 0.9);
    }
    
    .ictone-slider-button.active {
        background: rgba(255, 255, 255, 0.9);
        color: #000000;
    }
    
    .ictone-slider-button .color-square {
        border-width: 2px;
        box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.8);
    }
}

/* Strzałki nawigacyjne */
.ictone-slider-arrows {
    position: absolute;
    z-index: 10;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.ictone-slider-arrow {
    position: absolute;
    background: transparent !important;
    border: none !important;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    pointer-events: auto;
}

.ictone-slider-arrow:hover {
    transform: scale(1.1);
}

.ictone-slider-arrow:active {
    transform: scale(0.95);
}

.ictone-slider-arrow img {
    width: 20px;
    height: 20px;
    object-fit: contain;
}



.ictone-slider-arrow:hover {
    transform: scale(1.1);
    background: transparent !important;
}

.ictone-slider-arrow:active {
    transform: scale(0.95);
    background: transparent !important;
}

/* Pozycje strzałek */
.ictone-slider-arrows-sides {
    top: 0;
    left: 0;
}

.ictone-slider-arrows-sides .ictone-slider-arrow-left {
    left: var(--arrows-offset-x, 0px);
    top: 50%;
    transform: translateY(-50%);
}

.ictone-slider-arrows-sides .ictone-slider-arrow-right {
    right: var(--arrows-offset-x, 0px);
    top: 50%;
    transform: translateY(-50%);
}

.ictone-slider-arrows-top {
    top: 0;
    left: 0;
}

.ictone-slider-arrows-top .ictone-slider-arrow-left {
    left: var(--arrows-offset-x, 30px);
    top: var(--arrows-offset-y, 30px);
}

.ictone-slider-arrows-top .ictone-slider-arrow-right {
    right: var(--arrows-offset-x, 30px);
    top: var(--arrows-offset-y, 30px);
}

.ictone-slider-arrows-bottom {
    top: 0;
    left: 0;
}

.ictone-slider-arrows-bottom .ictone-slider-arrow-left {
    left: var(--arrows-offset-x, 30px);
    bottom: var(--arrows-offset-y, 30px);
}

.ictone-slider-arrows-bottom .ictone-slider-arrow-right {
    right: var(--arrows-offset-x, 30px);
    bottom: var(--arrows-offset-y, 30px);
}

/* Animacje przejść dla głównych slajdów */
.ictone-main-slide {
    transition: opacity 0.5s ease-in-out, transform 0.5s ease-in-out;
}

.ictone-main-slide[data-transition="slide_left"] {
    transform: translateX(-100%);
}

.ictone-main-slide[data-transition="slide_right"] {
    transform: translateX(100%);
}

.ictone-main-slide[data-transition="slide_up"] {
    transform: translateY(-100%);
}

.ictone-main-slide[data-transition="slide_down"] {
    transform: translateY(100%);
}

.ictone-main-slide[data-transition="zoom_in"] {
    transform: scale(0.5);
}

.ictone-main-slide[data-transition="zoom_out"] {
    transform: scale(1.5);
}

.ictone-main-slide.active {
    transform: none;
}

/* Animacje dla wariantów - prostsze fade */
.ictone-variant {
    transition: opacity 0.3s ease-in-out;
}

/* Responsywność strzałek */
@media (max-width: 768px) {
    .ictone-slider-arrow {
        width: 40px;
        height: 40px;
    }
    
    .ictone-slider-arrow img {
        width: 16px;
        height: 16px;
    }
    
    .ictone-slider-arrows-sides .ictone-slider-arrow-left {
        left: 0;
    }
    
    .ictone-slider-arrows-sides .ictone-slider-arrow-right {
        right: 0;
    }
    
    .ictone-slider-arrows-top .ictone-slider-arrow-left,
    .ictone-slider-arrows-top .ictone-slider-arrow-right {
        top: 15px;
    }
    
    .ictone-slider-arrows-top .ictone-slider-arrow-left {
        left: 15px;
    }
    
    .ictone-slider-arrows-top .ictone-slider-arrow-right {
        right: 15px;
    }
    
    .ictone-slider-arrows-bottom .ictone-slider-arrow-left,
    .ictone-slider-arrows-bottom .ictone-slider-arrow-right {
        bottom: 15px;
    }
    
    .ictone-slider-arrows-bottom .ictone-slider-arrow-left {
        left: 15px;
    }
    
    .ictone-slider-arrows-bottom .ictone-slider-arrow-right {
        right: 15px;
    }
}

@media (max-width: 480px) {
    .ictone-slider-arrow {
        width: 35px;
        height: 35px;
    }
    
    .ictone-slider-arrow img {
        width: 14px;
        height: 14px;
    }
    
    .ictone-slider-arrows-sides .ictone-slider-arrow-left {
        left: 0;
    }
    
    .ictone-slider-arrows-sides .ictone-slider-arrow-right {
        right: 0;
    }
    
    .ictone-slider-arrows-top .ictone-slider-arrow-left {
        left: 10px;
    }
    
    .ictone-slider-arrows-top .ictone-slider-arrow-right {
        right: 10px;
    }
    
    .ictone-slider-arrows-bottom .ictone-slider-arrow-left {
        left: 10px;
    }
    
    .ictone-slider-arrows-bottom .ictone-slider-arrow-right {
        right: 10px;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .ictone-main-slide,
    .ictone-variant,
    .ictone-slider-button,
    .ictone-slider-button .color-square,
    .ictone-slider-arrow {
        transition: none;
    }
    
    .ictone-main-slide.active,
    .ictone-variant.active {
        animation: none;
    }
    
    .ictone-slider-arrow:hover {
        transform: none;
    }
} 