/* ============================================
   ANA SAYFA — MÜŞTERİ YORUMLARI VİTRİNİ
   admin/yorumlar.php → "Ana sayfada göster" işaretli onaylı yorumlar
   ============================================ */

.home-reviews-section {
    padding: 70px 0;
    background: linear-gradient(180deg, #fff 0%, #f8fafc 100%);
}

/* --- Kart şeridi: kategoriler gibi sağa/sola kaydırmalı --- */
.hr-scroller {
    position: relative;
    padding: 20px 0;
    margin-top: 12px;
}

.hr-track {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-behavior: smooth;
    scroll-snap-type: x proximity;
    -webkit-overflow-scrolling: touch;
    padding: 12px 10px;
    margin: 0 -10px;

    /* Scrollbar gizle ama scroll çalışsın */
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.hr-track::-webkit-scrollbar { display: none; }

/* Kaydırma butonları — kategori şeridiyle aynı dil */
.hr-scroll-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: #fff;
    border: 2px solid var(--primary-color, #f3661f);
    color: var(--primary-color, #f3661f);
    font-size: 1.2rem;
    cursor: pointer;
    z-index: 10;
    transition: all .3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, .1);
    display: flex;
    align-items: center;
    justify-content: center;
}

.hr-scroll-btn:hover {
    background: var(--primary-color, #f3661f);
    color: #fff;
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 6px 20px rgba(243, 91, 35, .3);
}

.hr-scroll-prev { left: -10px; }
.hr-scroll-next { right: -10px; }

@media (max-width: 1024px) {
    .hr-scroll-btn { display: none; }
}

@media (max-width: 576px) {
    .home-reviews-section { padding: 48px 0; }
}

/* --- Kart --- */
.hr-card {
    flex: 0 0 360px;
    max-width: 360px;
    scroll-snap-align: start;
    background: #fff;
    border: 1px solid #e9edf3;
    border-radius: 16px;
    padding: 16px 18px;
    display: flex;
    flex-direction: column;
    gap: 9px;
    box-shadow: 0 2px 10px rgba(15, 23, 42, .05);
    transition: transform .25s ease, box-shadow .25s ease;
}

.hr-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 26px rgba(15, 23, 42, .10);
}

@media (max-width: 576px) {
    .hr-card { flex-basis: 86%; max-width: 86%; }
}

/* --- Üst satır: yıldızlar + tarih --- */
.hr-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.hr-stars { color: #f5a623; font-size: .95rem; letter-spacing: 1px; }
.hr-date  { color: #94a3b8; font-size: .78rem; white-space: nowrap; }

/* --- Metin --- */
.hr-title {
    font-size: .95rem;
    font-weight: 700;
    color: #1e293b;
    margin: 0;
}

.hr-body {
    font-size: .87rem;
    line-height: 1.55;
    color: #475569;
    margin: 0;
    /* Uzun yorumları 3 satırda kes — kartlar alçak ve eşit yükseklikte dursun */
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* --- Yorum fotoğrafı: kartta yer kaplamasın, tıklayınca açılsın --- */
.hr-photo-btn {
    align-self: flex-start;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: #fff5ef;
    color: #d8431a;
    border: 1px solid #ffd9c7;
    border-radius: 20px;
    padding: 5px 13px;
    font-size: .8rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: background .2s ease, color .2s ease;
}

.hr-photo-btn:hover {
    background: #f3661f;
    border-color: #f3661f;
    color: #fff;
}

/* --- Alt bilgi: müşteri + ürün --- */
.hr-foot {
    margin-top: auto;
    padding-top: 11px;
    border-top: 1px dashed #e9edf3;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.hr-person {
    display: flex;
    align-items: center;
    gap: 10px;
}

.hr-avatar {
    width: 32px;
    height: 32px;
    flex: 0 0 auto;
    border-radius: 50%;
    background: linear-gradient(135deg, #f3661f, #e94e18);
    color: #fff;
    font-weight: 700;
    font-size: .82rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hr-name {
    font-size: .87rem;
    font-weight: 700;
    color: #1e293b;
}

.hr-verified {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: #dcfce7;
    color: #16a34a;
    font-size: .7rem;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 20px;
}

/* Yorumun yazıldığı ürün */
.hr-product {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 8px;
    border-radius: 10px;
    background: #f8fafc;
    text-decoration: none;
    transition: background .2s ease;
}

.hr-product:hover { background: #f1f5f9; }

.hr-product img {
    width: 38px;
    height: 38px;
    flex: 0 0 auto;
    border-radius: 8px;
    object-fit: cover;
    border: 1px solid #e5e7eb;
    background: #fff;
}

.hr-product-name {
    font-size: .82rem;
    font-weight: 600;
    color: #334155;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.hr-product-go {
    margin-left: auto;
    color: #f3661f;
    font-size: .75rem;
    white-space: nowrap;
}

/* ============================================
   FOTOĞRAF BÜYÜTME (LIGHTBOX)
   ============================================ */
.hr-lightbox {
    position: fixed;
    inset: 0;
    z-index: 99999;
    background: rgba(15, 23, 42, .92);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.hr-lightbox.is-open { display: flex; }

.hr-lightbox img {
    max-width: min(92vw, 1100px);
    max-height: 86vh;
    border-radius: 10px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, .5);
}

.hr-lb-btn {
    position: absolute;
    background: rgba(255, 255, 255, .12);
    border: none;
    color: #fff;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    font-size: 1.1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .2s ease;
}

.hr-lb-btn:hover { background: rgba(255, 255, 255, .25); }

.hr-lb-close { top: 20px; right: 20px; }
.hr-lb-prev  { left: 20px;  top: 50%; transform: translateY(-50%); }
.hr-lb-next  { right: 20px; top: 50%; transform: translateY(-50%); }

.hr-lb-counter {
    position: absolute;
    bottom: 22px;
    left: 50%;
    transform: translateX(-50%);
    color: #e2e8f0;
    font-size: .85rem;
    letter-spacing: .5px;
}

@media (max-width: 576px) {
    .hr-lb-prev { left: 8px; }
    .hr-lb-next { right: 8px; }
    .hr-lb-close { top: 12px; right: 12px; }
}
