/* ====================================================
   YAPALI MARKALAR (HAREKETLİ ARKA PLAN & CAM TASARIM)
   ==================================================== */
.yapali-brands-section {
    padding: 110px 0;
    position: relative;
    overflow: hidden;
    background-color: #f0f4f8; /* Görsel yüklenene kadar görünecek renk */
}

/* Masaüstü Hareketli Arka Plan Görseli (Varsayılan) */
.yapali-brands-section::before {
    content: '';
    position: absolute;
    inset: -10%; 
    background: url('../uploads/ozelicerik/markalarimizarkaplan.png') no-repeat center center;
    background-size: cover;
    z-index: 1;
    opacity: 0.95; 
    animation: panBackground 45s linear infinite alternate;
}

/* Yavaş Kayma (Pan) Animasyonu */
@keyframes panBackground {
    0% { transform: scale(1) translateX(0); }
    100% { transform: scale(1.05) translateX(-3%); }
}

/* Binanın net gözükmesi için şeffaflaştırılmış perde */
.yb-bg-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(240, 244, 248, 0.3) 0%, rgba(226, 235, 243, 0.4) 100%);
    z-index: 2;
}

.yb-container {
    max-width: 1400px; margin: 0 auto; padding: 0 40px;
    position: relative; z-index: 3;
}

/* --- BAŞLIK ALANI --- */
.yb-header { text-align: center; max-width: 750px; margin: 0 auto 60px auto; }
.yb-badge {
    display: inline-block; font-size: 11px; font-weight: 800; color: var(--slider-light-blue, #009ce4);
    letter-spacing: 2.5px; text-transform: uppercase; margin-bottom: 15px; padding: 6px 18px;
    background: rgba(255, 255, 255, 0.85); backdrop-filter: blur(8px);
    border-radius: 50px; border: 1px solid rgba(0, 156, 228, 0.2);
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}
.yb-title { font-size: 2.8rem; font-weight: 900; color: var(--text-primary, #0b2b5e); margin-bottom: 20px; line-height: 1.2; letter-spacing: -0.5px; }
.yb-title .text-blue { color: var(--slider-light-blue, #009ce4); }
.yb-desc { font-size: 1.05rem; line-height: 1.7; color: #1a2538; font-weight: 600; }

/* ====================================================
   SÜRÜKLENEBİLİR ALAN VE KUSURSUZ MASKE
   ==================================================== */
.yb-drag-slider {
    width: 100%;
    position: relative;
    z-index: 3;
    padding: 20px 0;
    overflow-x: hidden; 
    cursor: grab; 
    /* YENİ NESİL ŞEFFAFLIK MASKESİ (Kesik görünümü önler) */
    -webkit-mask-image: linear-gradient(to right, transparent 0%, black 10%, black 90%, transparent 100%);
    mask-image: linear-gradient(to right, transparent 0%, black 10%, black 90%, transparent 100%);
}
.yb-drag-slider.grabbing { cursor: grabbing !important; }

.yb-drag-track {
    display: flex; gap: 30px; width: max-content; padding: 10px 40px; 
}

/* --- KART TASARIMI (CAM & LÜKS) --- */
.yb-card {
    width: 250px; 
    height: 130px; 
    background: rgba(255, 255, 255, 0.85); 
    backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
    border-radius: 20px; 
    padding: 15px;
    display: flex; justify-content: center; align-items: center;
    box-shadow: 0 10px 30px rgba(0, 40, 120, 0.05);
    border: 1px solid rgba(255, 255, 255, 1);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    flex-shrink: 0;
    text-decoration: none;
    position: relative;
    overflow: hidden; 
}

.yb-card::after {
    content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 3px;
    background: linear-gradient(90deg, var(--slider-light-blue, #009ce4), var(--slider-blue, #0047b3));
    opacity: 0; transition: opacity 0.4s ease;
}

.yb-card:hover {
    transform: translateY(-6px); 
    box-shadow: 0 20px 40px rgba(0, 40, 120, 0.15);
    border-color: rgba(0, 156, 228, 0.4);
    background: rgba(255, 255, 255, 1);
}
.yb-card:hover::after { opacity: 1; }

.yb-card-inner { 
    width: 100%; height: 100%; 
    display: flex; justify-content: center; align-items: center; 
}

.yb-card-inner img {
    width: 80%; 
    height: 80%; 
    object-fit: contain; 
    user-select: none; -webkit-user-drag: none; 
    transition: transform 0.4s ease;
}

.yb-card:hover .yb-card-inner img {
    transform: scale(1.06);
}

/* --- SCROLL ANİMASYONLARI (REVEAL UP) --- */
.reveal-up { opacity: 0; transform: translateY(40px); transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1); }
.reveal-up.active { opacity: 1; transform: translateY(0); }

/* ====================================================
   MOBİL UYUM (≤768px)
   ==================================================== */
@media (max-width: 768px) {
    /* Sadece mobilde çalışacak arka plan değişikliği */
    .yapali-brands-section::before {
        background-image: url('../uploads/ozelicerik/mobilmarkalarimizarkaplan.png');
    }

    .yapali-brands-section { padding: 60px 0; }
    .yb-container { padding: 0 20px; }
    
    .yb-header { margin-bottom: 30px; }
    .yb-title { font-size: 2.1rem; margin-bottom: 15px; }
    
    .yb-drag-track { gap: 15px; padding: 10px 20px; }
    
    .yb-card { width: 170px; height: 95px; padding: 10px; border-radius: 16px; }
    
    /* Mobilde maske mesafesini biraz daha daraltıyoruz */
    .yb-drag-slider {
        -webkit-mask-image: linear-gradient(to right, transparent 0%, black 5%, black 95%, transparent 100%);
        mask-image: linear-gradient(to right, transparent 0%, black 5%, black 95%, transparent 100%);
    }
}

/* Çok Küçük Ekranlar */
@media (max-width: 380px) {
    .yb-card { width: 150px; height: 85px; }
}