﻿/* ==========================================================
   PRATİK BİLGİLER SLIDER
   Kullanan sayfa: Default.aspx

   Tüm seçiciler ipc- önekli; mevcut site sınıflarıyla
   çakışmaz. Kaydırma saf CSS (scroll-snap) + fare ile
   sürükleme; oklar ve ilerleme çubuğu JS ile yönetiliyor.
   ========================================================== */

.ipc-sarmal {
    position: relative;
    margin-top: 5px;
}

/* Ray: yatay kaydırılan alan. Yerel kaydırma çubuğu gizli,
   yerine altta kendi ilerleme çubuğumuz var. */
.ipc-ray {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    scroll-behavior: smooth;
    scroll-snap-type: x proximity;
    padding: 4px 2px 14px;
    scrollbar-width: none;
    -ms-overflow-style: none;
    cursor: grab;
}
.ipc-ray::-webkit-scrollbar { display: none; }

/* Fare basılıyken: yumuşak kaydırma ve hizalama kapanır,
   yoksa sürükleme takılıyor. Metin seçimi de engellenir. */
.ipc-ray.ipc-tut {
    cursor: grabbing;
    scroll-behavior: auto;
    scroll-snap-type: none;
    user-select: none;
    -webkit-user-select: none;
}

/* Görsel ve bağlantıların kendi sürükleme hayaleti çıkmasın */
.ipc-ray img,
.ipc-ray a {
    -webkit-user-drag: none;
    user-drag: none;
}

/* --------------------------------------------------------
   Kart
   -------------------------------------------------------- */

.ipc-kart {
    flex: 0 0 268px;
    width: 268px;
    scroll-snap-align: start;
    display: block;
    background: #fff;
    border: 1px solid #e3e9ef;
    border-radius: 10px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}
.ipc-kart:hover,
.ipc-kart:focus {
    border-color: #bcd7ea;
    box-shadow: 0 6px 18px rgba(20,50,80,.10);
    transform: translateY(-2px);
    text-decoration: none;
    color: inherit;
}
.ipc-kart:focus-visible {
    outline: 2px solid #1c8ade;
    outline-offset: 2px;
}

/* Sürükleme sırasında kartlar zıplamasın */
.ipc-ray.ipc-tut .ipc-kart:hover {
    transform: none;
    box-shadow: none;
    border-color: #e3e9ef;
}

/* Görsel: 16:9 oran kutusu. Görsel yoksa gri zemin kalır. */
.ipc-gorsel {
    position: relative;
    width: 100%;
    padding-top: 56.25%;
    background: #eef2f6;
    overflow: hidden;
}
.ipc-gorsel img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.ipc-yeni {
    position: absolute;
    top: 8px;
    left: 8px;
    z-index: 2;
    padding: 3px 9px;
    border-radius: 20px;
    background: #e8452c;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .2px;
}
.ipc-yeni .fa { margin-right: 4px; }

.ipc-govde { padding: 12px 14px 14px; }

.ipc-kategori {
    display: block;
    margin-bottom: 6px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .4px;
    text-transform: uppercase;
    color: #1c8ade;
}

/* Başlık üç satırda kesiliyor; kartlar eşit yükseklikte kalsın. */
.ipc-baslik {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 60px;
    margin: 0 0 10px;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.35;
    color: #22394d;
}
.ipc-kart:hover .ipc-baslik { color: #1c8ade; }

.ipc-tarih {
    font-size: 12.5px;
    color: #8a97a4;
}
.ipc-tarih .fa { margin-right: 5px; }

/* --------------------------------------------------------
   Son kart: Tümünü gör
   -------------------------------------------------------- */

.ipc-tumu {
    flex: 0 0 190px;
    width: 190px;
    scroll-snap-align: start;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    background: #e9f4fd;
    border: 1px solid #bcdcf5;
    border-radius: 10px;
    text-decoration: none;
    transition: background .18s ease, border-color .18s ease, transform .18s ease;
}
.ipc-tumu:hover,
.ipc-tumu:focus {
    background: #dcedfb;
    border-color: #93c6ec;
    transform: translateY(-2px);
    text-decoration: none;
}
.ipc-tumu:focus-visible {
    outline: 2px solid #1c8ade;
    outline-offset: 2px;
}

.ipc-tumu-yuvarlak {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 54px;
    height: 54px;
    border-radius: 50%;
    background: #1c8ade;
    color: #fff;
    font-size: 22px;
    box-shadow: 0 4px 12px rgba(28,138,222,.30);
}

.ipc-tumu-yazi {
    font-size: 14px;
    font-weight: 700;
    color: #1c8ade;
}

/* --------------------------------------------------------
   Oklar
   -------------------------------------------------------- */

.ipc-ok {
    position: absolute;
    top: 78px;
    z-index: 3;
    width: 42px;
    height: 42px;
    padding: 0;
    border: 1px solid #e3e9ef;
    border-radius: 50%;
    background: #fff;
    color: #22394d;
    font-size: 17px;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 3px 12px rgba(20,50,80,.16);
    transition: background .16s ease, color .16s ease, opacity .16s ease;
}
.ipc-ok:hover {
    background: #1c8ade;
    color: #fff;
    border-color: #1c8ade;
}
.ipc-ok.ipc-sol { left: -12px; }
.ipc-ok.ipc-sag { right: -12px; }

/* Uca gelindiğinde ok söner ve tıklanamaz olur.
   display:none yerine opacity — düzen zıplamıyor. */
.ipc-ok[disabled] {
    opacity: 0;
    pointer-events: none;
}

/* --------------------------------------------------------
   İlerleme çubuğu
   -------------------------------------------------------- */

.ipc-cubuk {
    height: 4px;
    border-radius: 4px;
    background: #e6edf3;
    overflow: hidden;
}
.ipc-cubuk-ic {
    height: 100%;
    width: 30%;
    border-radius: 4px;
    background: #1c8ade;
    transform: translateX(0);
    transition: transform .12s linear;
}

/* --------------------------------------------------------
   Dar ekran: oklar gizlenir, parmakla kaydırılır
   -------------------------------------------------------- */

@media (max-width: 767px) {
    .ipc-ok { display: none; }
    .ipc-ray { cursor: auto; }
    .ipc-kart {
        flex-basis: 82%;
        width: 82%;
    }
    .ipc-tumu {
        flex-basis: 60%;
        width: 60%;
        padding: 30px 0;
    }
}