/* =============================================
   Hnojik Google Reviews — Inline Carousel
   ============================================= */

.hgr-carousel {
    overflow: hidden;
    position: relative;
    border-radius: 12px;
    background: #fafafa;
    border: 1px solid #e8e8e8;
}

/* Gradient fade top/bottom */
.hgr-carousel::before,
.hgr-carousel::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    height: 30px;
    z-index: 2;
    pointer-events: none;
}

.hgr-carousel::before {
    top: 0;
    background: linear-gradient(to bottom, #fafafa, transparent);
}

.hgr-carousel::after {
    bottom: 0;
    background: linear-gradient(to top, #fafafa, transparent);
}

/* Track — vertikální scroll */
.hgr-carousel__track {
    display: flex;
    flex-direction: column;
    will-change: transform;
}

@keyframes hgrScrollUp {
    0% {
        transform: translateY(0);
    }
    100% {
        transform: translateY(var(--hgr-scroll-distance, -50%));
    }
}

/* Jednotlivá karta recenze */
.hgr-carousel__card {
    padding: 14px 16px;
    border-bottom: 1px solid #eee;
    flex-shrink: 0;
}

.hgr-carousel__card:last-child {
    border-bottom: none;
}

/* Header: logo + avatar + meta */
.hgr-carousel__header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
}

.hgr-carousel__google {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.hgr-carousel__avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.hgr-carousel__avatar-initial {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #4285F4;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 12px;
    flex-shrink: 0;
    line-height: 1;
}

.hgr-carousel__meta {
    flex: 1;
    min-width: 0;
}

.hgr-carousel__name {
    font-weight: 600;
    font-size: 13px;
    color: #1a1a1a;
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.hgr-carousel__rating {
    display: flex;
    align-items: center;
    gap: 2px;
}

.hgr-carousel__star {
    font-size: 12px;
    line-height: 1;
}

.hgr-carousel__star--filled {
    color: #FBBC04;
}

.hgr-carousel__star--empty {
    color: #dadce0;
}

.hgr-carousel__date {
    font-size: 11px;
    color: #999;
    margin-left: 4px;
    white-space: nowrap;
}

/* Text recenze */
.hgr-carousel__text {
    font-size: 13px;
    line-height: 1.4;
    color: #555;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* =============================================
   Mobile
   ============================================= */
@media (max-width: 600px) {
    .hgr-carousel__card {
        padding: 10px 12px;
    }

    .hgr-carousel__avatar,
    .hgr-carousel__avatar-initial {
        width: 24px;
        height: 24px;
        font-size: 11px;
    }

    .hgr-carousel__name {
        font-size: 12px;
    }

    .hgr-carousel__text {
        font-size: 12px;
    }

    .hgr-carousel__star {
        font-size: 11px;
    }
}

/* =============================================
   Position indicator (scrollbar thumb)
   ============================================= */
.hgr-carousel__scrollbar {
    position: absolute;
    top: 8px;
    bottom: 8px;
    right: 4px;
    width: 4px;
    border-radius: 2px;
    background: rgba(0, 0, 0, 0.06);
    z-index: 3;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.hgr-carousel:hover .hgr-carousel__scrollbar,
.hgr-carousel.is-touched .hgr-carousel__scrollbar {
    opacity: 1;
}

.hgr-carousel__thumb {
    position: absolute;
    left: 0;
    right: 0;
    background: rgba(66, 133, 244, 0.55); /* google blue */
    border-radius: 2px;
    transition: background 0.15s ease;
    will-change: top, height;
}

.hgr-carousel:hover .hgr-carousel__thumb {
    background: rgba(66, 133, 244, 0.85);
}

/* =============================================
   Reduced motion
   ============================================= */
@media (prefers-reduced-motion: reduce) {
    .hgr-carousel__track {
        animation: none !important;
    }
}
