/* Modern Treatment Cards - iOS Safari Compatible */
.treatment-card {
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    cursor: pointer !important;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
    border: 2px solid transparent;
    position: relative;
    /* iOS Safari Touch Optimizations - CRITICAL */
    -webkit-tap-highlight-color: rgba(33, 150, 243, 0.2) !important;
    -webkit-touch-callout: none !important;
    -webkit-user-select: none !important;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    touch-action: manipulation !important;
    -webkit-will-change: transform, box-shadow;
    -moz-will-change: transform, box-shadow;
    will-change: transform, box-shadow;
    -webkit-backface-visibility: hidden;
    -moz-backface-visibility: hidden;
    backface-visibility: hidden;
    /* Force hardware acceleration on iOS */
    -webkit-transform: translateZ(0);
    -moz-transform: translateZ(0);
    -ms-transform: translateZ(0);
    transform: translateZ(0);
    /* iOS Click Fix - CRITICAL */
    pointer-events: auto !important;
    z-index: 1;
}

.treatment-card:hover {
    -webkit-transform: translateY(-10px) scale(1.02);
    -moz-transform: translateY(-10px) scale(1.02);
    -ms-transform: translateY(-10px) scale(1.02);
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
    border-color: var(--primary-color);
}

.treatment-card:active {
    -webkit-transform: translateY(-5px) scale(1.01);
    -moz-transform: translateY(-5px) scale(1.01);
    -ms-transform: translateY(-5px) scale(1.01);
    transform: translateY(-5px) scale(1.01);
}

/* iOS Safari Touch States */
.treatment-card.touching {
    opacity: 0.7;
    -webkit-transform: translateY(-3px) scale(0.98);
    -moz-transform: translateY(-3px) scale(0.98);
    -ms-transform: translateY(-3px) scale(0.98);
    transform: translateY(-3px) scale(0.98);
    transition: all 0.1s ease;
}

/* iOS Safari specific media query */
@supports (-webkit-touch-callout: none) {
    .treatment-card {
        /* Additional iOS Safari optimizations */
        -webkit-transform: translate3d(0, 0, 0);
        transform: translate3d(0, 0, 0);
    }
    
    .treatment-card:active {
        -webkit-transform: translate3d(0, -5px, 0) scale(1.01);
        transform: translate3d(0, -5px, 0) scale(1.01);
    }
}

.treatment-card-image {
    position: relative;
    overflow: hidden;
    height: 250px;
    /* iOS Safari Click Fix */
    pointer-events: none;
}

.treatment-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
    filter: brightness(0.9);
    /* iOS Safari Click Fix */
    pointer-events: none;
}

.treatment-card:hover .treatment-card-image img {
    -webkit-transform: scale(1.1);
    -moz-transform: scale(1.1);
    -ms-transform: scale(1.1);
    transform: scale(1.1);
    -webkit-filter: brightness(1);
    -moz-filter: brightness(1);
    filter: brightness(1);
}

.treatment-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, 
        rgba(47, 128, 237, 0.8) 0%, 
        rgba(86, 204, 242, 0.8) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.4s ease;
    backdrop-filter: blur(2px);
    /* iOS Safari Click Fix - prevent overlay from blocking clicks */
    pointer-events: none;
}

.treatment-card:hover .treatment-overlay {
    opacity: 1;
}


.treatment-card-body {
    padding: 2rem;
    text-align: center;
    background: linear-gradient(135deg, #fff 0%, #f8f9ff 100%);
    /* iOS Safari Click Fix */
    pointer-events: none;
}

.treatment-card-body h3 {
    color: var(--primary-color);
    font-weight: 700;
    font-size: 1.5rem;
    margin-bottom: 0.8rem;
    line-height: 1.3;
}

.treatment-card-body p {
    color: #666;
    font-size: 0.95rem;
    margin: 0;
    line-height: 1.6;
    opacity: 0.9;
}

/* Treatment Modal */
.treatment-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.treatment-modal.active {
    opacity: 1;
    visibility: visible;
}

.treatment-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    -webkit-backdrop-filter: blur(5px);
    backdrop-filter: blur(5px);
}

/* Fallback for browsers that don't support backdrop-filter */
@supports not (backdrop-filter: blur(5px)) {
    .treatment-modal-overlay {
        background: rgba(0, 0, 0, 0.85);
    }
}

.treatment-modal-content {
    position: relative;
    max-width: 900px;
    max-height: 90vh;
    width: 90%;
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.3);
    -webkit-transform: translateY(50px);
    -moz-transform: translateY(50px);
    -ms-transform: translateY(50px);
    transform: translateY(50px);
    transition: -webkit-transform 0.3s ease;
    transition: -moz-transform 0.3s ease;
    transition: -ms-transform 0.3s ease;
    transition: transform 0.3s ease;
    transition: transform 0.3s ease, -webkit-transform 0.3s ease, -moz-transform 0.3s ease, -ms-transform 0.3s ease;
    -webkit-will-change: transform;
    -moz-will-change: transform;
    will-change: transform;
}

.treatment-modal.active .treatment-modal-content {
    -webkit-transform: translateY(0);
    -moz-transform: translateY(0);
    -ms-transform: translateY(0);
    transform: translateY(0);
}

.treatment-modal-header {
    background: linear-gradient(135deg, var(--primary-color), #56ccf2);
    color: white;
    padding: 1.5rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.treatment-modal-header h2 {
    margin: 0;
    font-size: 1.8rem;
    font-weight: 700;
}

.treatment-modal-close {
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease;
}

.treatment-modal-close:hover {
    background: rgba(255, 255, 255, 0.2);
}

.treatment-modal-body {
    padding: 2rem;
    max-height: 60vh;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-y;
    position: relative;
}

.treatment-detail-image {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.treatment-detail h4 {
    color: var(--primary-color);
    font-weight: 600;
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.treatment-detail p {
    color: #666;
    line-height: 1.7;
    font-size: 1rem;
}

.treatment-detail .list-styled {
    padding-left: 0;
    list-style: none;
}

.treatment-detail .list-styled li {
    position: relative;
    padding-left: 2rem;
    margin-bottom: 0.8rem;
    color: #444;
    line-height: 1.6;
}

.treatment-detail .list-styled li::before {
    content: '✓';
    position: absolute;
    left: 0;
    top: 0;
    color: var(--primary-color);
    font-weight: bold;
    font-size: 1.1rem;
}

.treatment-info-box {
    background: linear-gradient(135deg, #f8f9ff, #e6f3ff);
    border-radius: 15px;
    padding: 1.5rem;
    border-left: 4px solid var(--primary-color);
    margin-top: 2rem;
}

.treatment-info-box h5 {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
}

.step-item {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
    padding: 0.5rem 0;
}

.step-number {
    background: linear-gradient(135deg, var(--primary-color), #56ccf2);
    color: white;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    margin-right: 1rem;
    font-size: 0.9rem;
}

.treatment-modal-footer {
    background: #f8f9fa;
    padding: 1.5rem 2rem;
    text-align: center;
    border-top: 1px solid #eee;
}

.treatment-modal-footer .btn-modern-appointment {
    min-width: 200px;
    font-weight: 600;
    padding: 0.8rem 2rem !important;
    font-size: 1.1rem !important;
    /* Modern buton stili korunuyor */
}

/* iOS Safari Touch Fix */
.treatment-modal-footer .btn-modern-appointment {
    -webkit-tap-highlight-color: rgba(33, 150, 243, 0.2);
    touch-action: manipulation;
    cursor: pointer;
}

/* Responsive Design */
@media (max-width: 768px) {
    .treatment-card-image {
        height: 200px;
    }
    
    .treatment-card-body {
        padding: 1.5rem;
    }
    
    .treatment-card-body h3 {
        font-size: 1.3rem;
    }
    
    .treatment-modal-content {
        width: 95%;
        max-height: 95vh;
    }
    
    .treatment-modal-header {
        padding: 1rem 1.5rem;
    }
    
    .treatment-modal-header h2 {
        font-size: 1.5rem;
    }
    
    .treatment-modal-body {
        padding: 1.5rem;
        max-height: 70vh;
        -webkit-overflow-scrolling: touch;
        touch-action: pan-y;
        position: relative;
    }
    
    .treatment-detail-image {
        height: 200px;
    }
    
    .treatment-info-box {
        margin-top: 1.5rem;
        padding: 1rem;
    }
    
    .step-number {
        width: 30px;
        height: 30px;
        font-size: 0.8rem;
    }
}

/* Animation Delays */
[data-aos-delay="100"] {
    transition-delay: 100ms;
}

[data-aos-delay="200"] {
    transition-delay: 200ms;
}