/* Videolar sayfası (2026-11-24). Renkler ve kart dili ürün kataloğuyla aynı (product-catalog.css). */
#videos {
    --videos-brand: #0088c6;
    --videos-ink: #002830;
    --videos-muted: #606060;
    --videos-line: #dcdcdc;
    --videos-surface: #f7f7f7;
    --videos-gap: 30px;
    margin-top: 60px;
    margin-bottom: 100px;
}

#videos .visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
}

.videos__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: var(--videos-gap);
    margin: 0;
    padding: 0;
    list-style: none;
}

.video-card {
    display: flex;
    flex-direction: column;
    padding: 16px;
    border: 1px solid var(--videos-line);
    background: #ffffff;
    transition: border-color 250ms ease, box-shadow 250ms ease;
}

.video-card__media {
    position: relative;
    display: block;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: linear-gradient(135deg, #3c3c3b, #002830);
    -webkit-tap-highlight-color: transparent;
}

.video-card__media img,
.video-card__media video {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    pointer-events: none;
    transition: transform 500ms cubic-bezier(.2, .7, .2, 1);
}

.video-card__play {
    position: absolute;
    top: 50%;
    left: 50%;
    display: grid;
    place-items: center;
    width: 64px;
    height: 64px;
    padding-left: 4px;
    border-radius: 50%;
    background: rgba(0, 40, 48, .72);
    box-shadow: 0 0 0 2px rgba(255, 255, 255, .85);
    color: #ffffff;
    transform: translate(-50%, -50%);
    transition: background-color 250ms ease, transform 250ms ease;
}

.video-card__body {
    display: grid;
    grid-template-rows: auto 1fr;
    gap: 10px;
    flex: 1 1 auto;
    padding-top: 16px;
}

.video-card__title {
    margin: 0;
    font-size: 16px;
    font-weight: 500;
    line-height: 1.4;
    color: var(--videos-ink);
    text-wrap: pretty;
    /* panelden girilen çok uzun başlık satırı uzatmasın */
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    overflow: hidden;
}

.video-card__link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    justify-self: start;
    align-self: end; /* aynı satırdaki kartlarda "Ürüne Git" alt kenarda hizalı */
    min-height: 24px;
    font-size: 14px;
    font-weight: 500;
    color: var(--videos-brand);
}

.video-card__link svg {
    transition: transform 200ms ease;
}

/* dokunmatikte parmakla rahat basılsın; negatif boşluk düzeni oynatmaz */
@media (pointer: coarse) {
    .video-card__link {
        min-height: 44px;
        margin-block: -10px;
    }
}

.videos__empty {
    margin: 0;
    padding: 48px 24px;
    border: 1px dashed var(--videos-line);
    background: var(--videos-surface);
    font-size: 16px;
    text-align: center;
    color: var(--videos-muted);
}

/* main.css tüm öğelerde 'outline: unset !important' kullanıyor; klavye odağı yalnız burada geri getirilir. */
#videos a:focus-visible {
    outline: 2px solid var(--videos-brand) !important;
    outline-offset: 3px;
}

@media (hover: hover) {
    .video-card:hover {
        border-color: color-mix(in srgb, var(--videos-brand) 50%, transparent);
        box-shadow: 0 12px 30px -18px rgba(0, 0, 0, .3);
    }

    .video-card__media:hover img,
    .video-card__media:hover video {
        transform: scale(1.03);
    }

    .video-card__media:hover .video-card__play {
        background: var(--videos-brand);
        transform: translate(-50%, -50%) scale(1.06);
    }

    .video-card__link:hover svg {
        transform: translateX(2px);
    }
}

@media (prefers-reduced-motion: reduce) {
    .video-card,
    .video-card__media img,
    .video-card__media video,
    .video-card__play,
    .video-card__link svg {
        transition: none;
    }
}

@media (max-width: 1366px) {
    #videos {
        --videos-gap: 24px;
    }
}

@media (max-width: 1024px) {
    #videos {
        margin-top: 40px;
        margin-bottom: 70px;
    }

    .videos__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 600px) {
    #videos {
        --videos-gap: 16px;
    }

    .videos__grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .video-card__play {
        width: 56px;
        height: 56px;
    }
}
