/* ===================================
   UA PRO SLIDER - CSS Design
   Damla tasarımı birebir uygulanmıştır
   =================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.slider-container {
    position: relative;
    width: 100%;
    height: 600px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.slider-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.slider-track {
    display: flex;
    transition: transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    height: 100%;
    will-change: transform;
}

.slide {
    min-width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.7);
    transition: transform 0.8s ease, filter 0.8s ease;
}

.slide.active img {
    transform: scale(1.05);
    filter: brightness(0.8);
}

/* Text Boxes - Yazı Kutucukları */
.text-box {
    position: absolute;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(30px) saturate(200%);
    -webkit-backdrop-filter: blur(30px) saturate(200%);
    padding: 40px 50px;
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    max-width: 650px;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
    z-index: 5;
}

.text-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0, 180, 216, 0.08) 0%, rgba(0, 150, 199, 0.05) 100%);
    border-radius: 24px;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.text-box:hover::before {
    opacity: 1;
}

.slide.active .text-box {
    opacity: 1;
    transform: translateY(0);
}

.slide.active .text-box.center-right:hover {
    transform: translateY(-50%) translateX(0);
}

.slide.active .text-box.center:hover {
    transform: translate(-50%, -50%);
}

.slide.active .text-box.center-left:hover {
    transform: translateY(-50%) translateX(0);
}

.slide.active .text-box:hover {
    border-color: rgba(0, 180, 216, 0.35);
    background: rgba(0, 0, 0, 0.6);
}

/* Text Box Positions */
.text-box.top-left {
    top: 10%;
    left: 5%;
    animation-delay: 0.2s;
}

.text-box.top-right {
    top: 10%;
    right: 5%;
    animation-delay: 0.3s;
}

.text-box.top-center {
    top: 10%;
    left: 50%;
    transform: translateX(-50%) translateY(30px);
    animation-delay: 0.2s;
}

.slide.active .text-box.top-center {
    transform: translateX(-50%) translateY(0);
}

.text-box.center-left {
    top: 50%;
    left: 15%;
    transform: translateY(-50%) translateX(-30px);
    animation-delay: 0.2s;
}

.slide.active .text-box.center-left {
    transform: translateY(-50%) translateX(0);
}

.text-box.center-right {
    top: 50%;
    right: 5%;
    transform: translateY(-50%) translateX(30px);
    animation-delay: 0.3s;
}

.slide.active .text-box.center-right {
    transform: translateY(-50%) translateX(0);
}

.text-box.center {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    animation-delay: 0.2s;
}

.slide.active .text-box.center {
    transform: translate(-50%, -50%) scale(1);
}

.text-box.bottom-left {
    bottom: 15%;
    left: 5%;
    animation-delay: 0.3s;
}

.text-box.bottom-right {
    bottom: 15%;
    right: 5%;
    animation-delay: 0.4s;
}

.text-box.bottom-center {
    bottom: 15%;
    left: 50%;
    transform: translateX(-50%) translateY(30px);
    animation-delay: 0.3s;
}

.slide.active .text-box.bottom-center {
    transform: translateX(-50%) translateY(0);
}

.text-box-title {
    font-family: 'Exo', sans-serif;
    font-size: 38px;
    font-weight: 400;
    background: linear-gradient(135deg, #ffffff 0%, rgba(255, 255, 255, 0.9) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 0 !important;
    margin-top: 0 !important;
    margin-bottom: 8px !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    line-height: 0.9 !important;
    letter-spacing: -0.5px;
    text-shadow: 0 2px 20px rgba(255, 255, 255, 0.3);
    display: block;
    word-wrap: break-word;
    overflow-wrap: break-word;
    vertical-align: top;
}

.text-box-subtitle {
    font-family: 'Exo', sans-serif;
    font-size: 14px;
    color: #FFD89B;
    font-weight: 700;
    margin: 0 0 12px 0;
    padding: 6px 12px;
    text-transform: uppercase;
    letter-spacing: 3px;
    opacity: 0.9;
    text-shadow: 0 0 20px rgba(255, 216, 155, 0.5);
    line-height: 1.2;
    display: inline-block;
    border: 1px solid rgba(255, 216, 155, 0.4);
    background: rgba(255, 216, 155, 0.15);
    border-radius: 4px;
}

.text-box-description {
    font-family: 'Exo', sans-serif;
    font-size: 17px;
    color: rgba(255, 255, 255, 0.85);
    font-weight: 300;
    line-height: 1.7;
    margin-bottom: 28px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.text-box-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.text-box-button {
    display: inline-block;
    padding: 16px 32px;
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-family: 'Exo', sans-serif;
    font-weight: 700;
    font-size: 15px;
    letter-spacing: 0.5px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    flex: 1;
    min-width: 140px;
    text-align: center;
    border: none;
    outline: none;
}

.text-box-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s ease;
}

.text-box-button:hover::before {
    left: 100%;
}

.text-box-button::after {
    content: '';
    margin-left: 10px;
    width: 0;
    height: 0;
    border-left: 6px solid currentColor;
    border-top: 4px solid transparent;
    border-bottom: 4px solid transparent;
    display: inline-block;
    vertical-align: middle;
    transition: all 0.3s ease;
    opacity: 0.9;
}

.text-box-button:hover::after {
    transform: translateX(5px);
    opacity: 1;
    border-left-width: 8px;
}

/* Primary Button - Pastel mavi-turkuaz */
.text-box-button.btn-primary {
    background: linear-gradient(135deg, #8BC4D8 0%, #7BB4C8 50%, #6BA4B8 100%);
}

.text-box-button.btn-primary:hover {
    background: linear-gradient(135deg, #9BC4E8 0%, #8BC4D8 50%, #7BB4C8 100%);
}

/* Secondary Button - Koyu lacivert gradient */
.text-box-button.btn-secondary {
    background: linear-gradient(135deg, #4A5D8E 0%, #3D4F7E 50%, #2F416E 100%);
}

.text-box-button.btn-secondary:hover {
    background: linear-gradient(135deg, #5B6E9E 0%, #4A5D8E 50%, #3D4F7E 100%);
}

.text-box-button:active {
    transform: none;
}

.text-box-button:focus,
.text-box-button:focus-visible {
    outline: none;
    border: none;
}

/* Navigation Arrows */
.slider-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.5);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: white;
    transition: all 0.3s ease;
    z-index: 10;
    border: none;
    outline: none;
}

.slider-nav:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-50%) scale(1.1);
    border-color: rgba(255, 255, 255, 0.8);
}

.slider-nav.prev {
    left: 30px;
}

.slider-nav.next {
    right: 30px;
}

.slider-nav:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

/* Dot Indicators */
.slider-dots {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 10;
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    padding: 15px 25px;
    border-radius: 30px;
}

.dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    border: 2px solid rgba(255, 255, 255, 0.8);
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.dot::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: white;
    transition: transform 0.3s ease;
}

.dot.active::before {
    transform: translate(-50%, -50%) scale(1);
}

.dot.active {
    background: white;
    border-color: white;
}

.dot:hover {
    transform: scale(1.2);
}

/* Progress Bar */
.slider-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 4px;
    background: rgba(255, 255, 255, 0.2);
    width: 100%;
    z-index: 10;
}

.slider-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #00b4d8 0%, #0096c7 50%, #0077b6 100%);
    width: 0%;
    transition: none;
    box-shadow: 0 0 10px rgba(0, 180, 216, 0.8);
    will-change: width;
}

/* Parallax Effect */
.slide-content-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
    pointer-events: none;
    z-index: 1;
}

/* Responsive */
@media (max-width: 768px) {
    .slider-container {
        height: 450px !important;
    }

    .slider-nav {
        width: 45px;
        height: 45px;
        font-size: 22px;
    }

    .slider-nav.prev {
        left: 15px;
    }

    .slider-nav.next {
        right: 15px;
    }

    .text-box {
        padding: 28px 32px;
        max-width: 100% !important;
        width: calc(100% - 40px) !important;
        left: 20px !important;
        right: 20px !important;
        border-radius: 20px;
        margin: 0 auto;
    }
    
    .text-box.center {
        top: 50% !important;
        transform: translateY(-50%) scale(0.9) !important;
        left: 20px !important;
        right: 20px !important;
    }
    
    .slide.active .text-box.center {
        transform: translateY(-50%) scale(1) !important;
    }
    
    .text-box.top-center {
        top: 10% !important;
        transform: translateY(30px) !important;
        left: 20px !important;
        right: 20px !important;
    }
    
    .slide.active .text-box.top-center {
        transform: translateY(0) !important;
    }
    
    .text-box.bottom-center {
        bottom: 15% !important;
        top: auto !important;
        transform: translateY(30px) !important;
        left: 20px !important;
        right: 20px !important;
    }
    
    .slide.active .text-box.bottom-center {
        transform: translateY(0) !important;
    }
    
    .text-box.center-left {
        top: 50% !important;
        transform: translateY(-50%) !important;
        left: 20px !important;
        right: 20px !important;
    }
    
    .slide.active .text-box.center-left {
        transform: translateY(-50%) !important;
    }
    
    .text-box.center-right {
        top: 50% !important;
        transform: translateY(-50%) !important;
        left: 20px !important;
        right: 20px !important;
    }
    
    .slide.active .text-box.center-right {
        transform: translateY(-50%) !important;
    }
    
    .text-box.top-left,
    .text-box.top-right {
        top: 10% !important;
        transform: translateY(30px) !important;
        left: 20px !important;
        right: 20px !important;
    }
    
    .slide.active .text-box.top-left,
    .slide.active .text-box.top-right {
        transform: translateY(0) !important;
    }
    
    .text-box.bottom-left,
    .text-box.bottom-right {
        bottom: 15% !important;
        top: auto !important;
        transform: translateY(30px) !important;
        left: 20px !important;
        right: 20px !important;
    }
    
    .slide.active .text-box.bottom-left,
    .slide.active .text-box.bottom-right {
        transform: translateY(0) !important;
    }

    .text-box-title {
        font-size: 28px;
        font-weight: 400;
        line-height: 0.9 !important;
        margin: 0 !important;
        margin-top: 0 !important;
        margin-bottom: 8px !important;
        padding-top: 0 !important;
        padding-bottom: 0 !important;
        display: block;
        word-wrap: break-word;
        overflow-wrap: break-word;
        vertical-align: top;
    }

    .text-box-subtitle {
        font-size: 12px;
        letter-spacing: 2px;
    }

    .text-box-description {
        font-size: 15px;
        line-height: 1.6;
    }

    .text-box-buttons {
        gap: 12px;
        flex-direction: column;
    }

    .text-box-button {
        padding: 14px 24px;
        font-size: 14px;
        min-width: 100%;
    }

    .slider-dots {
        bottom: 15px;
        padding: 10px 15px;
    }
}

/* Elementor Override Styles */
.elementor-widget-ua_pro_slider .slider-container {
    width: 100%;
}

.elementor-widget-ua_pro_slider .text-box-title {
    /* Elementor typography control will override this */
}

.elementor-widget-ua_pro_slider .text-box-subtitle {
    /* Elementor typography control will override this */
}

.elementor-widget-ua_pro_slider .text-box-description {
    /* Elementor typography control will override this */
}

.elementor-widget-ua_pro_slider .text-box {
    /* Elementor background and border controls will override this */
}

.elementor-widget-ua_pro_slider .text-box-button.btn-primary {
    /* Elementor background and color controls will override this */
    border: none !important;
    outline: none !important;
}

.elementor-widget-ua_pro_slider .text-box-button.btn-primary:focus,
.elementor-widget-ua_pro_slider .text-box-button.btn-primary:focus-visible {
    outline: none !important;
    border: none !important;
}

.elementor-widget-ua_pro_slider .text-box-button.btn-secondary {
    /* Elementor background and color controls will override this */
    border: none !important;
    outline: none !important;
}

.elementor-widget-ua_pro_slider .text-box-button.btn-secondary:focus,
.elementor-widget-ua_pro_slider .text-box-button.btn-secondary:focus-visible {
    outline: none !important;
    border: none !important;
}

