/* Display page: transparent background, meant to sit inside an iframe on the store */

.hr-widget {
  max-width: 920px;
  margin: 0 auto;
  padding: 8px 4px 16px;
  background: transparent;
}

/* ===================== HEADER (summary bar) ===================== */
.hr-header {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  padding-bottom: 18px;
  margin-bottom: 18px;
  border-bottom: 1px solid var(--hr-line);
}

.hr-header__brand {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1 1 220px;
}

.hr-header__logo {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
}

.hr-header__title {
  font-family: var(--hr-font-display);
  font-weight: 800;
  font-size: 19px;
  margin: 0;
  color: var(--hr-ink);
}

.hr-header__subtitle {
  margin: 2px 0 0;
  font-size: 12.5px;
  color: var(--hr-ink-soft);
}

.hr-summary {
  display: flex;
  align-items: center;
  gap: 14px;
}

.hr-summary__score {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.hr-summary__number {
  font-family: var(--hr-font-display);
  font-weight: 800;
  font-size: 30px;
  line-height: 1;
  color: var(--hr-honey-dark);
}

.hr-stars-row { display: flex; gap: 2px; }

.hr-summary__meta {
  font-size: 12.5px;
  color: var(--hr-ink-soft);
  min-width: 140px;
}

.hr-breakdown {
  margin-top: 6px;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.hr-breakdown__row {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
}

.hr-breakdown__bar {
  flex: 1;
  height: 5px;
  background: var(--hr-line);
  border-radius: 4px;
  overflow: hidden;
}

.hr-breakdown__fill {
  height: 100%;
  background: var(--hr-honey);
  border-radius: 4px;
}

/* ===================== TOOLBAR / SORT ===================== */
.hr-toolbar {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 14px;
}

.hr-sort {
  display: flex;
  background: var(--hr-cream-deep);
  border-radius: 999px;
  padding: 3px;
  gap: 2px;
}

.hr-sort__btn {
  border: none;
  background: transparent;
  color: var(--hr-ink-soft);
  font-size: 12.5px;
  font-weight: 600;
  padding: 7px 14px;
  border-radius: 999px;
  cursor: pointer;
  transition: all .15s ease;
}

.hr-sort__btn.is-active {
  background: var(--hr-white);
  color: var(--hr-honey-dark);
  box-shadow: var(--hr-shadow-soft);
}

/* ===================== CAROUSEL ===================== */
.hr-carousel-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
}

.hr-carousel {
  flex: 1;
  overflow: hidden;
}

.hr-track {
  display: flex;
  transition: transform .4s cubic-bezier(.22,.8,.28,1);
}

.hr-card {
  flex: 0 0 100%;
  padding: 4px 6px;
}

@media (min-width: 640px) {
  .hr-card { flex: 0 0 50%; }
}
@media (min-width: 940px) {
  .hr-card { flex: 0 0 33.3333%; }
}

.hr-card__inner {
  background: var(--hr-white);
  border: 1px solid var(--hr-line);
  border-radius: var(--hr-radius-sm);
  padding: 18px;
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 10px;
  box-shadow: var(--hr-shadow-soft);
}

.hr-card__top {
  display: flex;
  align-items: center;
  gap: 10px;
}

.hr-card__avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--hr-cream-deep);
  flex-shrink: 0;
  border: 2px solid var(--hr-line);
}

.hr-card__who { min-width: 0; }

.hr-card__name {
  display: block;
  font-weight: 700;
  font-size: 14px;
  color: var(--hr-ink);
  text-decoration: none;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.hr-card__name:hover { color: var(--hr-honey-dark); text-decoration: underline; }

.hr-card__date {
  font-size: 11.5px;
  color: var(--hr-ink-soft);
}

.hr-card__stars { display: flex; gap: 2px; margin-top: 2px; }

.hr-card__title {
  font-family: var(--hr-font-display);
  font-weight: 700;
  font-size: 14.5px;
  margin: 0;
  color: var(--hr-ink);
}

.hr-card__body {
  font-size: 13.5px;
  line-height: 1.7;
  color: var(--hr-ink-soft);
  margin: 0;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 5;
  -webkit-box-orient: vertical;
}

/* ===================== NAV ARROWS / DOTS ===================== */
.hr-nav {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--hr-line);
  background: var(--hr-white);
  color: var(--hr-honey-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: var(--hr-shadow-soft);
  transition: background .15s ease, transform .15s ease;
}
.hr-nav:hover { background: var(--hr-cream-deep); transform: scale(1.05); }
.hr-nav:disabled { opacity: .35; cursor: default; transform: none; }

.hr-dots {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-top: 16px;
}

.hr-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--hr-line);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: background .15s ease, transform .15s ease;
}
.hr-dot.is-active {
  background: var(--hr-honey);
  transform: scale(1.3);
}

/* ===================== EMPTY / LOADING ===================== */
.hr-empty {
  text-align: center;
  padding: 36px 20px;
  color: var(--hr-ink-soft);
}
.hr-empty__icon { font-size: 30px; margin-bottom: 10px; }

.hr-loading {
  display: flex;
  justify-content: center;
  padding: 36px 0;
}

.hr-spinner {
  width: 26px;
  height: 26px;
  border: 3px solid var(--hr-line);
  border-top-color: var(--hr-honey);
  border-radius: 50%;
  animation: hr-spin 0.8s linear infinite;
}

@keyframes hr-spin { to { transform: rotate(360deg); } }

/* ===================== RESPONSIVE ===================== */
@media (max-width: 480px) {
  .hr-header { flex-direction: column; align-items: stretch; text-align: center; }
  .hr-header__brand { justify-content: center; }
  .hr-summary { justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
  .hr-track { transition: none; }
  .hr-nav, .hr-dot { transition: none; }
}
