/* ==================================================
   VİDEOLAR: GENEL YERLEŞİM
   ================================================== */

.yc-videos,
.yc-videos *,
.yc-videos *::before,
.yc-videos *::after {
    box-sizing: border-box;
}

.yc-videos {
    padding: clamp(48px, 7vw, 134px) 0;
    background: #fff;
    color: #476e70;
    font-family: "Poppins", sans-serif;
}

/* Solda galeri, sağda açıklama. */
.yc-videos__container {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
    align-items: center;
    gap: clamp(28px, 3.5vw, 67px);
    width: 70.416667%;
    max-width: 1352px;
    margin-inline: auto;
}

.yc-videos__gallery,
.yc-videos__content {
    min-width: 0;
}

/* ==================================================
   GERÇEK KAYDIRILABİLİR GALERİ
   ================================================== */

/* Masaüstünde iki kart görünür.
   Fazladan kart eklenirse yatay kaydırma oluşur. */
.yc-videos__cards {
    --video-gap: clamp(12px, 1vw, 20px);

    display: flex;
    gap: var(--video-gap);
    width: 100%;
    margin: 0;
    padding: 0;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    overscroll-behavior-x: contain;
    scrollbar-width: none;
}

.yc-videos__cards::-webkit-scrollbar {
    display: none;
}

/* Klavye odağı görünür kalır. */
.yc-videos__cards:focus-visible {
    outline: 3px solid #476e70;
    outline-offset: 5px;
}

/* İki kart arasındaki boşluk genişlik hesabına dahildir. */
.yc-videos__card {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: minmax(0, 1fr);
    flex: 0 0 calc((100% - var(--video-gap)) / 2);
    min-width: 0;
    aspect-ratio: 0.71;
    margin: 0;
    padding: 0;
    overflow: hidden;
    border-radius: 12px;
    background: #e3eeee;
    scroll-snap-align: start;
}

/* Kapak görseli kartın tamamını doldurur. */
.yc-videos__cover {
    grid-area: 1 / 1;
    display: block;
    width: 100%;
    height: 100%;
    min-width: 0;
    min-height: 0;
    max-width: 100%;
    margin: 0;
    object-fit: cover;
    object-position: center;
}

/* Simgeyi absolute kullanmadan kartın ortasına yerleştirir. */
.yc-videos__play {
    grid-area: 1 / 1;
    place-self: center;
    z-index: 1;
    display: block;
    width: 30%;
    max-width: 94px;
    height: auto;
    margin: 0;
    pointer-events: none;
}

/* ==================================================
   ÇALIŞAN KAYDIRMA NOKTALARI
   ================================================== */

.yc-videos__pagination {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0;
    margin-top: 12px;
}

/* Tüm kartlar görünüyorsa noktalar gizlenir. */
.yc-videos__pagination[hidden] {
    display: none;
}

/* Görsel nokta küçük, tıklama alanı 32 × 44 pikseldir. */
.yc-videos .yc-videos__dot {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 32px;
    width: 32px;
    height: 44px;
    min-height: 0;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    appearance: none;
    cursor: pointer;
}

/* Pasif nokta. */
.yc-videos__dot::before {
    content: "";
    display: block;
    width: 7px;
    height: 7px;
    border-radius: 999px;
    background: #c2d3d5;
    transition: width 160ms ease, background-color 160ms ease;
}

/* Gerçekte görüntülenen kartın aktif işareti. */
.yc-videos__dot[aria-current="true"]::before {
    width: 20px;
    background: #ba785d;
}

.yc-videos__dot:focus-visible {
    outline: 2px solid #476e70;
    outline-offset: 1px;
}

/* ==================================================
   BAŞLIK VE AÇIKLAMA
   ================================================== */

.yc-videos__title {
    margin: 0 0 clamp(16px, 1.4vw, 27px);
    color: #476e70;
    font-family: inherit;
    font-size: clamp(26px, 2.4vw, 46px);
    font-weight: 600;
    line-height: 1.2;
    overflow-wrap: break-word;
}

.yc-videos__description {
    margin: 0;
    color: #374345;
    font-family: inherit;
    font-size: clamp(13px, 0.94vw, 18px);
    font-weight: 400;
    line-height: 1.5;
    overflow-wrap: break-word;
}

/* ==================================================
   BAĞLANTI BUTONLARI
   ================================================== */

.yc-videos__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: clamp(20px, 1.8vw, 35px);
}

.yc-videos .yc-videos__button {
    display: inline-flex;
    flex: 1 1 140px;
    align-items: center;
    justify-content: center;
    min-width: 0;
    min-height: 44px;
    margin: 0;
    padding: 12px 16px;
    border: 0;
    border-radius: 3px;
    box-shadow: none;
    color: #fff;
    font-family: inherit;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.4;
    text-align: center;
    text-decoration: none;
    text-transform: none;
    white-space: normal;
    transition: background-color 160ms ease;
}

.yc-videos .yc-videos__button--youtube {
    background: #476e70;
}

.yc-videos .yc-videos__button:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.yc-videos .yc-videos__button--contact {
    background: #ba785d;
}

.yc-videos .yc-videos__button--contact:hover {
    background: #a6664d;
    color: #fff;
}

.yc-videos .yc-videos__button:focus-visible {
    outline: 3px solid #476e70;
    outline-offset: 4px;
}

/* ==================================================
   TABLET
   ================================================== */

@media (min-width: 768px) and (max-width: 1199px) {
    .yc-videos__container {
        width: calc(100% - 64px);
        gap: 28px;
    }
}

/* ==================================================
   MOBİL
   Metin üstte, kaydırılabilir tek kart altta.
   ================================================== */

@media (max-width: 767px) {
    .yc-videos {
        padding: 40px 0;
    }

    .yc-videos__container {
        grid-template-columns: minmax(0, 1fr);
        width: calc(100% - 40px);
        gap: 28px;
    }

    .yc-videos__content {
        order: 1;
    }

    .yc-videos__gallery {
        order: 2;
        width: 100%;
        max-width: 420px;
        margin-inline: auto;
    }

    /* Her kaydırmada bir kapak görünür. */
    .yc-videos__card {
        flex-basis: 100%;
        border-radius: 8px;
    }

    .yc-videos__title {
        font-size: clamp(26px, 6vw, 34px);
    }

    .yc-videos__description {
        font-size: 14px;
    }

    .yc-videos__pagination {
        margin-top: 8px;
    }
}

/* Sonraki bölümle aradaki boşluğu tek taraftan yönetir. */
.yc-videos {
    padding-bottom: 0;
}

/* Hareket azaltma tercihi. */
@media (prefers-reduced-motion: reduce) {
    .yc-videos__dot::before,
    .yc-videos .yc-videos__button {
        transition: none;
    }
}
/* Kartlar tüm ekranlarda tek yatay sırada kalır. */
.yc-videos__cards {
    flex-wrap: nowrap;
    min-width: 0;
}

/* Fare kullanılan cihazlarda sürükleme işareti. */
@media (hover: hover) and (pointer: fine) {
    .yc-videos__cards,
    .yc-videos__card {
        cursor: grab;
    }

    .yc-videos__cards {
        user-select: none;
        -webkit-user-select: none;
    }
}

/* Sürüklerken kartlara yapışma geçici olarak kapatılır.
   Fare bırakıldığında mevcut kaydırma düzeni geri gelir. */
.yc-videos__cards.is-dragging {
    scroll-snap-type: none;
    scroll-behavior: auto;
}

.yc-videos__cards.is-dragging,
.yc-videos__cards.is-dragging .yc-videos__card {
    cursor: grabbing;
}