@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

/* 🚀 F5 REFRESH ESNASINDA YUKARIDAN AŞAĞIYA KAYMA EFEKTİNİ İPTAL ETME */
html {
    scroll-behavior: auto !important;
}

/* 🎨 SİSTEM GENELİ TIPOGRAFİ VE FONT STANDARTLARI (Icerik/Create Referanslı) */
*, ::before, ::after {
    font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
}

html, body {
    font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    font-size: 14px;
}

@media (min-width: 768px) {
    html, body {
        font-size: 15px;
    }
}

/* Basliklar - Inter Font Tight Tracking Standardı */
h1, h2, h3, h4, h5, h6, .font-heading {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif !important;
    letter-spacing: -0.025em;
}

/* Form Elemanları ve Butonlar */
input, select, textarea, button, label {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif !important;
}

/* Metin Giriş Alanları Placeholder & Focus Düzeltmesi */
::placeholder {
    font-family: 'Inter', sans-serif !important;
    font-weight: 500;
}

/* Buton Odaklanma Çerçevesi Düzeltmeleri */
.btn:focus, .btn:active:focus, .form-control:focus, .form-select:focus {
    box-shadow: 0 0 0 0.2rem rgba(16, 185, 129, 0.15) !important;
}

/* 🚫 SİSTEM GENELİ YÖN TUŞLARINI (SPINNER ARROWS ▲▼) HER YERDEN KALDIRMA */
input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
    -webkit-appearance: none !important;
    margin: 0 !important;
}

input[type=number] {
    -moz-appearance: textfield !important;
    appearance: textfield !important;
}

/* 🛡️ DÜZEN KORUMA & TUPAR OVERFLOW KORUMASI */
.currency-input {
    text-align: right;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace !important;
}

.price-display-box {
    word-break: break-all;
    overflow-wrap: anywhere;
    max-width: 100%;
}

/* ==========================================================================
   ⚡ GÖRSEL KARŞILAŞTIRMA (BEFORE/AFTER SPLIT SLIDER) STANDARTLARI
   ========================================================================== */
.split-slider-box {
    position: relative;
    width: 100%;
    max-width: 28rem;
    margin: 2.5rem auto;
    overflow: hidden;
    border: 2px solid #10b981;
    border-radius: 1.5rem;
    background-color: transparent !important;
    box-shadow: 0 12px 30px -6px rgba(16, 185, 129, 0.18), 0 6px 12px -4px rgba(0, 0, 0, 0.08);
    user-select: none;
    touch-action: pan-y;
}

.split-slider-box.split-landscape {
    aspect-ratio: 16 / 9;
}

.split-slider-box.split-portrait {
    aspect-ratio: 3 / 4 !important;
}

/* 🖼️ GÖRSELLER (BEFORE & AFTER) - HER İKİ GÖRSEL DE DOĞAL PARLAKLIĞINDA (OVERLAY / GÖLGE YOK) */
.split-slider-box .split-img,
.split-slider-box .split-img-before,
.split-slider-box .split-img-after {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: center !important;
    display: block !important;
    margin: 0 !important;
    padding: 0 !important;
    pointer-events: none;
    filter: none !important;
}

/* Alt Katman (Sonrası / After) */
.split-slider-box .split-img-after {
    z-index: 1;
    opacity: 1 !important;
    filter: none !important;
}

/* Üst Katman (Öncesi / Before): Kesim Alanı */
.split-slider-box .split-img-before {
    z-index: 2;
    clip-path: polygon(0 0, 50% 0, 50% 100%, 0 100%);
    opacity: 1 !important;
    filter: none !important;
}

/* 🏷️ ROZETLER (ÖNCESİ / SONRASI) */
.split-slider-box .split-badge {
    position: absolute;
    top: 1rem;
    z-index: 10;
    padding: 0.35rem 0.85rem;
    border-radius: 9999px;
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    pointer-events: none;
    backdrop-filter: blur(8px);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.split-slider-box .split-badge-before {
    left: 1rem;
    background-color: #f43f5e;
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 9999px;
    font-weight: 800;
}

.split-slider-box .split-badge-after {
    right: 1rem;
    background-color: #ffffff;
    color: #10b981;
    border: 1.5px solid #10b981;
    border-radius: 9999px;
    font-weight: 800;
}

/* ↕️ BÖLÜCÜ ÇİZGİ (SPLIT DIVIDER) & TUTAMAÇ (HANDLE) - Z-INDEX 30/31 */
.split-slider-box .split-divider {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 3px;
    background-color: #ffffff;
    z-index: 30;
    pointer-events: none;
    transform: translateX(-50%);
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.4);
}

.split-slider-box .split-handle {
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    width: 44px !important;
    height: 44px !important;
    border-radius: 50% !important;
    border: 3px solid #ffffff !important;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25) !important;
    font-size: 0 !important;
    line-height: 0 !important;
    color: transparent !important;
    background: linear-gradient(90deg, #f43f5e 50%, #10b981 50%);
    cursor: ew-resize;
    z-index: 31;
    pointer-events: none;
}

.split-slider-box .split-handle::after {
    content: '' !important;
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    width: 18px !important;
    height: 18px !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='8 17 3 12 8 7'%3E%3C/polyline%3E%3Cpolyline points='16 7 21 12 16 17'%3E%3C/polyline%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: center !important;
    background-size: contain !important;
    pointer-events: none !important;
}

.split-slider-box:hover .split-handle {
    transform: translate(-50%, -50%) scale(1.08) !important;
}

/* 🎛️ INVISIBLE RANGE INPUT FOR FLUID DRAGGING - Z-INDEX 40 */
.split-slider-box .split-range-input {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    z-index: 40;
    cursor: ew-resize;
    margin: 0;
    padding: 0;
    -webkit-appearance: none;
    appearance: none;
}