/* =========================================================
   Hairpol Reviews — frontend.css
   6 stil: cards · slider · masonry · minimal · spotlight · marquee
   Renk: --hpr-accent (varsayılan #BD835E)
   ========================================================= */
.hpr-wrap {
    --hpr-accent: #BD835E;
    --hpr-star: #f5a623;
    --hpr-ink: #1f2330;
    --hpr-muted: #6b7280;
    --hpr-title: #1f2330;     /* başlık + büyük alıntı (düzenlenebilir) */
    --hpr-subtitle: #6b7280;  /* alt başlık (düzenlenebilir) */
    --hpr-text: #3a3f4b;      /* yorum metni (düzenlenebilir) */
    --hpr-card: #ffffff;
    --hpr-line: #ececf1;
    --hpr-radius: 16px;
    --hpr-gap: 22px;
    max-width: 1200px;
    margin: 0 auto;
    box-sizing: border-box;
    background: var(--hpr-bg, transparent);
}
/* Bölüm arka planı ayarlandıysa iç boşluk + köşe ver */
.hpr-has-bg { padding: 28px; border-radius: var(--hpr-radius); }
.hpr-wrap *, .hpr-wrap *::before, .hpr-wrap *::after { box-sizing: border-box; }

/* ---------- Başlık + platform puanları ---------- */
.hpr-head { text-align: center; margin: 0 0 34px; }
.hpr-title { font-size: clamp(24px, 3vw, 34px); line-height: 1.2; margin: 0 0 10px; color: var(--hpr-title); font-weight: 700; }
.hpr-subtitle { margin: 0 0 18px; color: var(--hpr-subtitle); font-size: 16px; }

.hpr-scores { display: inline-flex; gap: 14px; flex-wrap: wrap; justify-content: center; }
.hpr-score {
    display: inline-flex; align-items: center; gap: 8px;
    background: #fff; border: 1px solid var(--hpr-line);
    box-shadow: 0 2px 10px rgba(31,35,48,.06);
    padding: 9px 16px; border-radius: 12px; text-decoration: none;
    transition: transform .16s, box-shadow .16s;
}
a.hpr-score:hover { transform: translateY(-2px); box-shadow: 0 6px 18px rgba(31,35,48,.12); }
.hpr-score-logo { display: inline-flex; line-height: 0; }
.hpr-score-num { font-size: 19px; font-weight: 800; color: var(--hpr-ink); line-height: 1; }
.hpr-score-meta { font-size: 12.5px; color: var(--hpr-muted); }
.hpr-score-google .hpr-score-num { color: #4285F4; }
.hpr-score-tp .hpr-score-num { color: #00B67A; }

/* ---------- Yıldızlar ---------- */
.hpr-stars { display: inline-flex; gap: 2px; line-height: 0; vertical-align: middle; }
.hpr-star svg { fill: #d8dae0; display: block; }
.hpr-star-on svg { fill: var(--hpr-star); }
.hpr-stars-lg .hpr-star svg { width: 22px; height: 22px; }
.hpr-stars-sm .hpr-star svg { width: 13px; height: 13px; }

/* ---------- Ortak kart ---------- */
.hpr-card {
    background: var(--hpr-card); border: 1px solid var(--hpr-line); border-radius: var(--hpr-radius);
    padding: 24px 22px; display: flex; flex-direction: column; gap: 14px; height: 100%;
    box-shadow: 0 4px 18px rgba(31,35,48,.06); transition: transform .22s ease, box-shadow .22s ease; position: relative;
}
.hpr-card::before {
    content: "\201C"; position: absolute; top: 6px; right: 20px; z-index: 0;
    font-family: Georgia, "Times New Roman", serif; font-size: 72px; line-height: 1;
    color: var(--hpr-accent); opacity: .12; pointer-events: none;
}
.hpr-card > * { position: relative; z-index: 1; }
.hpr-card:hover { transform: translateY(-4px); box-shadow: 0 12px 30px rgba(31,35,48,.12); }

.hpr-card-top { display: flex; align-items: center; gap: 12px; }
.hpr-avatar { flex: 0 0 auto; width: 52px; height: 52px; }
.hpr-avatar img, .hpr-initials {
    width: 52px; height: 52px; border-radius: 50%; object-fit: cover;
    display: flex; align-items: center; justify-content: center;
}
.hpr-initials { color: #fff; font-weight: 700; font-size: 18px; letter-spacing: .5px; text-transform: uppercase; user-select: none; }
.hpr-id { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1 1 auto; }
.hpr-name { font-weight: 700; color: var(--hpr-ink); font-size: 15.5px; display: inline-flex; align-items: center; gap: 5px; }
.hpr-verified { display: inline-flex; color: var(--hpr-accent); }
.hpr-verified svg { fill: currentColor; }
.hpr-loc { color: var(--hpr-muted); font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hpr-source { flex: 0 0 auto; display: inline-flex; align-items: center; line-height: 0; }

.hpr-text { color: var(--hpr-text); font-size: 15px; line-height: 1.6; margin: 0; flex: 1 1 auto; }

.hpr-card-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; border-top: 1px solid var(--hpr-line); padding-top: 12px; margin-top: 2px; }
.hpr-badges { display: flex; flex-wrap: wrap; gap: 6px; }
.hpr-badge { font-size: 11.5px; font-weight: 600; line-height: 1; padding: 5px 10px; border-radius: 999px; }
.hpr-badge-tech { background: var(--hpr-accent); color: #fff; }
.hpr-badge-graft { border: 1.5px solid var(--hpr-accent); color: var(--hpr-accent); background: transparent; }
.hpr-date { color: var(--hpr-muted); font-size: 12.5px; white-space: nowrap; }

/* ---------- STİL: cards / masonry (ızgara) ---------- */
.hpr-grid { display: grid; gap: var(--hpr-gap); }
.hpr-cols-2 { grid-template-columns: repeat(2, 1fr); }
.hpr-cols-3 { grid-template-columns: repeat(3, 1fr); }
.hpr-cols-4 { grid-template-columns: repeat(4, 1fr); }

.hpr-masonry { column-gap: var(--hpr-gap); }
.hpr-masonry.hpr-cols-2 { column-count: 2; }
.hpr-masonry.hpr-cols-3 { column-count: 3; }
.hpr-masonry.hpr-cols-4 { column-count: 4; }
.hpr-masonry-item { break-inside: avoid; margin-bottom: var(--hpr-gap); display: block; }
.hpr-masonry .hpr-card { height: auto; }

/* ---------- STİL: minimal (sade) ---------- */
.hpr-minimal { display: grid; gap: 4px 40px; }
.hpr-minimal.hpr-cols-2 { grid-template-columns: repeat(2, 1fr); }
.hpr-min { display: flex; gap: 14px; padding: 22px 4px; border-bottom: 1px solid var(--hpr-line); }
.hpr-min .hpr-avatar { width: 46px; height: 46px; }
.hpr-min .hpr-avatar img, .hpr-min .hpr-initials { width: 46px; height: 46px; font-size: 16px; }
.hpr-min-body { flex: 1 1 auto; min-width: 0; }
.hpr-min-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 7px; }
.hpr-min .hpr-text { font-size: 15px; }
.hpr-min-meta { display: flex; align-items: center; gap: 12px; margin-top: 8px; }

/* ---------- STİL: spotlight (vitrin) ---------- */
.hpr-spotlight .hpr-slide { flex-basis: 100%; }
.hpr-spot { text-align: center; max-width: 760px; margin: 0 auto; padding: 8px 16px 4px; }
.hpr-spot .hpr-stars { justify-content: center; margin-bottom: 18px; }
.hpr-spot-text { font-size: clamp(18px, 2.2vw, 24px); line-height: 1.55; color: var(--hpr-title); font-weight: 500; margin: 0 0 22px; border: 0; quotes: "\201C" "\201D"; }
.hpr-spot-text::before { content: open-quote; color: var(--hpr-accent); }
.hpr-spot-text::after { content: close-quote; color: var(--hpr-accent); }
.hpr-spot-author { display: inline-flex; align-items: center; gap: 12px; text-align: left; }
.hpr-spot-author .hpr-id { align-items: flex-start; }

/* ---------- STİL: slider + spotlight ortak carousel ---------- */
.hpr-carousel { position: relative; padding: 0 8px; }
.hpr-track { display: flex; gap: var(--hpr-gap); overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; -webkit-overflow-scrolling: touch; padding: 6px 2px 18px; scrollbar-width: none; }
.hpr-track::-webkit-scrollbar { display: none; }
.hpr-slide { flex: 0 0 calc((100% - var(--hpr-gap)) / 2); scroll-snap-align: start; display: flex; }
.hpr-carousel[data-columns="1"] .hpr-slide { flex-basis: 100%; }
.hpr-carousel[data-columns="3"] .hpr-slide { flex-basis: calc((100% - (2 * var(--hpr-gap))) / 3); }
.hpr-carousel[data-columns="4"] .hpr-slide { flex-basis: calc((100% - (3 * var(--hpr-gap))) / 4); }
/* single: tek tek normal kart, ortalanmış */
.hpr-style-single .hpr-card { max-width: 680px; margin: 0 auto; }
.hpr-slide > .hpr-card { width: 100%; }

.hpr-nav { position: absolute; top: calc(50% - 9px); transform: translateY(-50%); z-index: 5; width: 42px; height: 42px; border-radius: 50%; background: var(--hpr-accent); color: #fff; border: none; cursor: pointer; font-size: 24px; line-height: 1; display: flex; align-items: center; justify-content: center; box-shadow: 0 3px 12px rgba(31,35,48,.22); transition: opacity .18s, transform .18s; }
.hpr-nav:hover { transform: translateY(-50%) scale(1.06); }
.hpr-nav[disabled] { opacity: .35; cursor: default; transform: translateY(-50%); }
.hpr-prev { left: -8px; }
.hpr-next { right: -8px; }
.hpr-dots { display: flex; justify-content: center; gap: 7px; margin-top: 8px; }
.hpr-dots button { width: 8px; height: 8px; padding: 0; border: none; border-radius: 50%; background: #d3d6de; cursor: pointer; transition: background .18s, width .18s; }
.hpr-dots button.is-active { background: var(--hpr-accent); width: 22px; border-radius: 4px; }

/* ---------- STİL: marquee (kayan şerit) ---------- */
.hpr-marquee { overflow: hidden; position: relative; -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
/* gap yerine item başına margin: translateX(-50%) döngü noktası kusursuz hizalanır */
.hpr-marquee-track { display: flex; width: max-content; animation: hpr-scroll 48s linear infinite; }
.hpr-marquee:hover .hpr-marquee-track { animation-play-state: paused; }
.hpr-marquee-paused .hpr-marquee-track { animation-play-state: paused; }
.hpr-marquee-item { flex: 0 0 340px; max-width: 340px; margin-right: var(--hpr-gap); }
@keyframes hpr-scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .hpr-marquee-track { animation: none; } }

.hpr-empty { text-align: center; color: #999; padding: 30px; border: 1px dashed var(--hpr-line); border-radius: 12px; }

/* =========================================================
   EK STİLLER
   ========================================================= */

/* ---- compact: küçük kartlar ---- */
.hpr-style-compact .hpr-card { padding: 16px 16px; gap: 10px; border-radius: 12px; }
.hpr-style-compact .hpr-avatar, .hpr-style-compact .hpr-avatar img, .hpr-style-compact .hpr-initials { width: 40px; height: 40px; font-size: 15px; }
.hpr-style-compact .hpr-name { font-size: 14px; }
.hpr-style-compact .hpr-text { font-size: 13.5px; line-height: 1.5; }
.hpr-style-compact .hpr-star svg { width: 14px; height: 14px; }
.hpr-style-compact .hpr-card::before { font-size: 50px; top: 2px; }

/* ---- wall: yoğun küçük ızgara ---- */
.hpr-style-wall .hpr-grid { grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; }
.hpr-style-wall .hpr-card { padding: 16px; gap: 9px; border-radius: 12px; }
.hpr-style-wall .hpr-avatar, .hpr-style-wall .hpr-avatar img, .hpr-style-wall .hpr-initials { width: 38px; height: 38px; font-size: 14px; }
.hpr-style-wall .hpr-name { font-size: 13.5px; }
.hpr-style-wall .hpr-text { font-size: 13px; line-height: 1.5; }
.hpr-style-wall .hpr-star svg { width: 13px; height: 13px; }
.hpr-style-wall .hpr-card::before { display: none; }

/* ---- list: tek sütun yoğun satırlar ---- */
.hpr-style-list .hpr-minimal { grid-template-columns: 1fr; gap: 0; max-width: 760px; margin: 0 auto; }
.hpr-style-list .hpr-min { padding: 16px 4px; gap: 12px; }
.hpr-style-list .hpr-min .hpr-avatar, .hpr-style-list .hpr-min .hpr-avatar img, .hpr-style-list .hpr-min .hpr-initials { width: 40px; height: 40px; font-size: 14px; }
.hpr-style-list .hpr-min .hpr-text { font-size: 14px; }

/* ---- bubbles: konuşma balonu ---- */
.hpr-style-bubbles .hpr-grid { gap: 26px 22px; }
.hpr-style-bubbles .hpr-card { background: #faf6f2; border-color: transparent; border-radius: 18px; box-shadow: 0 3px 14px rgba(31,35,48,.07); }
.hpr-style-bubbles .hpr-card::before { display: none; }
.hpr-style-bubbles .hpr-card::after { content: ""; position: absolute; left: 30px; bottom: -11px; width: 22px; height: 22px; background: #faf6f2; transform: rotate(45deg); border-radius: 0 0 4px 0; box-shadow: 3px 3px 6px rgba(31,35,48,.05); }
.hpr-style-bubbles .hpr-card-foot { border-top-color: rgba(0,0,0,.06); }

/* ---- quote: editöryel büyük alıntı ---- */
.hpr-style-quote .hpr-card { text-align: center; align-items: center; border: none; box-shadow: 0 4px 22px rgba(31,35,48,.07); padding: 40px 26px 26px; }
.hpr-style-quote .hpr-card::before { content: "\201C"; position: static; display: block; font-size: 60px; opacity: .25; margin-bottom: -18px; }
.hpr-style-quote .hpr-card-top { flex-direction: column; text-align: center; gap: 8px; order: 3; }
.hpr-style-quote .hpr-id { align-items: center; }
.hpr-style-quote .hpr-stars { order: 1; justify-content: center; }
.hpr-style-quote .hpr-text { order: 2; font-size: 16px; font-style: italic; }
.hpr-style-quote .hpr-card-foot { justify-content: center; order: 4; border: none; }
.hpr-style-quote .hpr-source { position: absolute; top: 16px; right: 16px; }

/* ---- ticker: tek satır kayan bant ---- */
.hpr-ticker .hpr-slide { flex-basis: 100%; }
.hpr-ticker .hpr-track { padding: 4px 2px; }
.hpr-tick { display: flex; align-items: center; gap: 10px; background: #fff; border: 1px solid var(--hpr-line); border-radius: 999px; padding: 10px 20px; box-shadow: 0 2px 10px rgba(31,35,48,.05); width: 100%; }
.hpr-tick .hpr-stars { flex: 0 0 auto; }
.hpr-tick-text { flex: 1 1 auto; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--hpr-text); font-size: 14.5px; }
.hpr-tick-name { flex: 0 0 auto; color: var(--hpr-muted); font-size: 13px; font-weight: 600; }
.hpr-style-ticker .hpr-dots { display: none; }

/* ---- summary: büyük özet puan ---- */
.hpr-summary { text-align: center; max-width: 420px; margin: 0 auto; padding: 26px 20px; background: #fff; border: 1px solid var(--hpr-line); border-radius: var(--hpr-radius); box-shadow: 0 4px 18px rgba(31,35,48,.06); }
.hpr-sum-score { font-size: 56px; font-weight: 800; line-height: 1; color: var(--hpr-title); }
.hpr-summary .hpr-stars { justify-content: center; margin: 10px 0 6px; }
.hpr-sum-meta { color: var(--hpr-muted); font-size: 14px; }

/* ---- avatars + summary ortak avatar şeridi ---- */
.hpr-proof-avatars { display: inline-flex; justify-content: center; margin-top: 14px; }
.hpr-proof-av { display: inline-flex; margin-left: -12px; }
.hpr-proof-av:first-child { margin-left: 0; }
.hpr-proof-av img, .hpr-proof-av .hpr-initials { width: 40px; height: 40px; font-size: 14px; border: 2px solid #fff; box-shadow: 0 1px 3px rgba(0,0,0,.12); }

/* ---- avatars: sosyal kanıt şeridi ---- */
.hpr-proof { display: inline-flex; align-items: center; gap: 14px; flex-wrap: wrap; justify-content: center; width: 100%; }
.hpr-proof .hpr-proof-avatars { margin-top: 0; }
.hpr-proof-text { display: inline-flex; align-items: center; gap: 8px; }
.hpr-proof-score { font-size: 20px; font-weight: 800; color: var(--hpr-title); }
.hpr-proof-count { color: var(--hpr-muted); font-size: 14px; }

/* ---- platforms: Google + Trustpilot kartları ---- */
.hpr-platforms { display: flex; gap: 18px; flex-wrap: wrap; justify-content: center; }
.hpr-platforms .hpr-score { flex-direction: column; align-items: flex-start; gap: 6px; padding: 18px 22px; border-radius: 14px; min-width: 220px; }
.hpr-platforms .hpr-score-num { font-size: 30px; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
    .hpr-cols-4 { grid-template-columns: repeat(3, 1fr); }
    .hpr-masonry.hpr-cols-4 { column-count: 3; }
}
@media (max-width: 820px) {
    .hpr-cols-3, .hpr-cols-4 { grid-template-columns: repeat(2, 1fr); }
    .hpr-masonry.hpr-cols-3, .hpr-masonry.hpr-cols-4 { column-count: 2; }
    .hpr-carousel[data-columns="3"] .hpr-slide, .hpr-carousel[data-columns="4"] .hpr-slide { flex-basis: calc((100% - var(--hpr-gap)) / 2); }
}
@media (max-width: 560px) {
    .hpr-grid { gap: 16px; }
    .hpr-cols-2, .hpr-cols-3, .hpr-cols-4 { grid-template-columns: 1fr; }
    .hpr-masonry.hpr-cols-2, .hpr-masonry.hpr-cols-3, .hpr-masonry.hpr-cols-4 { column-count: 1; }
    .hpr-minimal.hpr-cols-2 { grid-template-columns: 1fr; }
    .hpr-slide, .hpr-carousel[data-columns="3"] .hpr-slide, .hpr-carousel[data-columns="4"] .hpr-slide { flex-basis: 88%; }
    .hpr-spotlight .hpr-slide { flex-basis: 100%; }
    .hpr-nav { display: none; }
    .hpr-card { padding: 20px 18px; }
    .hpr-marquee-item { flex-basis: 280px; max-width: 280px; }
}
