/*
 * "Haftanın beğenilen kameralı üyeleri" strip (layout/partials/weekly-mostlikeds.twig).
 * One row of equal-width cards that scrolls sideways; arrows on desktop,
 * swipe on touch screens.
 */

.weekly-liked {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 12px 20px;
    background: #fff;
    border-bottom: 1px solid #f3e6ea;
}

.weekly-liked__title {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    gap: 10px;
    color: #2a2a2e;
    font-size: 16px;
    line-height: 1.2;
}

.weekly-liked__title svg { flex: 0 0 auto; }
.weekly-liked__title b { display: block; font-weight: 700; }
.weekly-liked__title span { display: block; color: #6b6b73; font-size: 13px; }

.weekly-liked__body {
    position: relative;
    flex: 1 1 auto;
    min-width: 0;
}

.weekly-liked__list {
    display: flex;
    flex-wrap: nowrap;
    gap: 4px;
    margin: 0;
    padding: 4px 2px;
    list-style: none;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x proximity;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}

.weekly-liked__list::-webkit-scrollbar { display: none; }

.weekly-liked__item {
    flex: 0 0 96px;
    width: 96px;
    scroll-snap-align: start;
}

.weekly-liked__item a {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 8px 4px;
    border-radius: 12px;
    color: #2a2a2e;
    text-align: center;
    text-decoration: none;
    transition: background-color .15s ease;
}

.weekly-liked__item a:hover,
.weekly-liked__item a:focus { background: #fbeef1; color: #2a2a2e; text-decoration: none; }

.weekly-liked__item .image {
    position: relative;
    width: 64px;
    height: 64px;
}

.weekly-liked__item .image img {
    display: block;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    border: 2px solid #fff;
    box-shadow: 0 0 0 2px #ead9de;
    background: #f1f1f3;
    object-fit: cover;
}

.weekly-liked__item .image .online-status {
    position: absolute;
    right: 1px;
    bottom: 1px;
    padding: 2px;
    border-radius: 50%;
    background: #fff;
}

.weekly-liked__item .image .online-status .dot { width: 10px; height: 10px; }

.weekly-liked__rank {
    position: absolute;
    top: -3px;
    left: -3px;
    z-index: 1;
    min-width: 20px;
    height: 20px;
    padding: 0 4px;
    border: 2px solid #fff;
    border-radius: 999px;
    background: #8e8e93;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    line-height: 16px;
}

.weekly-liked__rank--1 { background: #d9a400; }
.weekly-liked__rank--2 { background: #9aa3ad; }
.weekly-liked__rank--3 { background: #b9773c; }

.weekly-liked__name {
    width: 100%;
    font-size: 12.5px;
    font-weight: 600;
    line-height: 1.25;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.weekly-liked__likes {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: #6b6b73;
    font-size: 12px;
    line-height: 1;
    font-variant-numeric: tabular-nums;
}

.weekly-liked__likes svg { width: 13px; height: 13px; }

.weekly-liked__nav {
    position: absolute;
    top: 50%;
    z-index: 2;
    width: 32px;
    height: 32px;
    margin-top: -16px;
    padding: 0;
    border: 1px solid #ead9de;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .12);
    color: #2a2a2e;
    font-size: 20px;
    line-height: 28px;
    text-align: center;
    cursor: pointer;
}

.weekly-liked__nav:hover { background: #fbeef1; }
.weekly-liked__nav--prev { left: -12px; }
.weekly-liked__nav--next { right: -12px; }

@media (max-width: 991px) {
    .weekly-liked {
        flex-direction: column;
        align-items: stretch;
        gap: 6px;
        padding: 10px 0 6px 12px;
    }

    .weekly-liked__title { font-size: 14px; }
    .weekly-liked__title svg { height: 22px; width: 22px; }
    .weekly-liked__title b,
    .weekly-liked__title span { display: inline; font-size: 14px; }
    .weekly-liked__title b { margin-right: 4px; }

    .weekly-liked__item { flex-basis: 78px; width: 78px; }
    .weekly-liked__item .image,
    .weekly-liked__item .image img { width: 54px; height: 54px; }

    /* Touch screens swipe; the arrows would only cover the cards. */
    .weekly-liked__nav { display: none; }

    /* Same as the old strip: not shown inside the mobile chat page. */
    body.page__chat .weekly-liked { display: none; }
}

@media (prefers-reduced-motion: reduce) {
    .weekly-liked__item a { transition: none; }
}
