/*
 * Hokishop.hu Jótékonysági licit – a sablon tokenjeire épül (base.css :root), tartalékértékekkel.
 */

/* --- Ár: címke + összeg (termékoldal, kártya, Licitjeim) ------------------- */
.hka-price {
  display: inline-flex;
  flex-direction: column;
  gap: 2px;
  line-height: 1.1;
}

.hka-price__label {
  font-size: var(--fs-xs, 0.75rem);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-2, #5b6470);
}

.hka-price__amount {
  font-variant-numeric: tabular-nums;
}

.hka-price.is-updated .hka-price__amount {
  animation: hka-flash 1.2s var(--ease-out, ease-out);
}

@keyframes hka-flash {
  0% { color: var(--accent, #d62828); transform: scale(1.06); }
  100% { color: inherit; transform: none; }
}

.product-card__price .hka-price__label {
  font-size: 0.6875rem;
}

/* --- Licitdoboz ---------------------------------------------------------- */
/* The JS toggles blocks with the hidden attribute; theme classes (e.g. .hoki-btn) set display. */
.hka-box [hidden],
.hka-card [hidden],
.hka-dialog [hidden] {
  display: none !important;
}

.hka-box {
  display: flex;
  flex-direction: column;
  gap: var(--space-4, 16px);
  padding: var(--space-4, 16px);
  border-radius: var(--radius-lg, 20px);
  border: 1px solid var(--line, #e4e7e9);
  background: var(--surface, #fff);
  box-shadow: var(--shadow-sm, 0 1px 2px rgba(13, 13, 13, 0.06));
}

.hka-box__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3, 12px);
}

.hka-box__count {
  font-size: var(--fs-sm, 0.875rem);
  color: var(--ink-2, #5b6470);
}

.hka-box__count [data-hka-count] {
  font-weight: 700;
  color: var(--ink, #0d0d0d);
}

/* Állapot-pirula */
.hka-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 28px;
  padding: 0 var(--space-3, 12px);
  border-radius: var(--radius-pill, 999px);
  font-size: var(--fs-xs, 0.75rem);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: var(--surface-3, #edf0f2);
  color: var(--ink-2, #5b6470);
}

.hka-pill__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
}

.hka-pill.is-live {
  background: var(--accent-light, #fbeaea);
  color: var(--accent, #d62828);
}

.hka-pill.is-live .hka-pill__dot {
  animation: hka-pulse 1.6s infinite;
}

.hka-pill.is-upcoming {
  background: var(--warning-light, #fef3c7);
  color: var(--warning, #b45309);
}

.hka-pill.is-closed {
  background: var(--brand-black, #0d0d0d);
  color: var(--surface, #fff);
}

@keyframes hka-pulse {
  0% { box-shadow: 0 0 0 0 rgba(214, 40, 40, 0.55); }
  70% { box-shadow: 0 0 0 8px rgba(214, 40, 40, 0); }
  100% { box-shadow: 0 0 0 0 rgba(214, 40, 40, 0); }
}

@media (prefers-reduced-motion: reduce) {
  .hka-pill.is-live .hka-pill__dot,
  .hka-price.is-updated .hka-price__amount {
    animation: none;
  }
}

/* Visszaszámláló */
.hka-countdown {
  display: flex;
  flex-direction: column;
  gap: var(--space-2, 8px);
  padding: var(--space-3, 12px) var(--space-4, 16px);
  border-radius: var(--radius-md, 14px);
  background: var(--brand-black, #0d0d0d);
  color: var(--surface, #fff);
}

.hka-countdown[hidden] {
  display: none;
}

.hka-countdown__label {
  font-size: var(--fs-xs, 0.75rem);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
}

.hka-countdown__units {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-2, 8px);
}

.hka-countdown__unit {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

.hka-countdown__unit b {
  font-family: var(--font-display, Impact, sans-serif);
  font-size: clamp(1.75rem, 6vw, 2.25rem);
  font-weight: 400;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.hka-countdown__unit small {
  font-size: 0.6875rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.65);
}

.hka-countdown.is-final .hka-countdown__unit b {
  color: #ff6b6b;
}

.hka-countdown__end {
  font-size: var(--fs-xs, 0.75rem);
  color: rgba(255, 255, 255, 0.7);
}

/* Minimálár, saját állapot, figyelmeztetések */
.hka-reserve,
.hka-notice,
.hka-upcoming {
  margin: 0;
  padding: var(--space-2, 8px) var(--space-3, 12px);
  border-radius: var(--radius-sm, 10px);
  font-size: var(--fs-sm, 0.875rem);
  background: var(--surface-2, #f5f7f8);
  color: var(--ink-2, #5b6470);
}

.hka-reserve {
  background: var(--warning-light, #fef3c7);
  color: var(--warning, #b45309);
  font-weight: 600;
}

.hka-me {
  margin: 0;
  padding: var(--space-3, 12px);
  border-radius: var(--radius-sm, 10px);
  font-size: var(--fs-sm, 0.875rem);
  font-weight: 600;
}

.hka-me.is-leading {
  background: var(--success-light, #e8f5ec);
  color: var(--success, #1b873f);
}

.hka-me.is-outbid {
  background: var(--accent-light, #fbeaea);
  color: var(--accent, #d62828);
}

.hka-me small {
  display: block;
  font-weight: 500;
  color: var(--ink-2, #5b6470);
}

/* Licitálás */
.hka-bid {
  display: flex;
  flex-direction: column;
  gap: var(--space-3, 12px);
}

.hka-bid[hidden],
.hka-result[hidden],
.hka-win[hidden] {
  display: none;
}

.hka-bid__quick [data-hka-next] {
  font-variant-numeric: tabular-nums;
}

.hka-max {
  border-radius: var(--radius-md, 14px);
  border: 1px solid var(--line, #e4e7e9);
  background: var(--surface-2, #f5f7f8);
}

.hka-max summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--tap, 44px);
  padding: 0 var(--space-4, 16px);
  font-size: var(--fs-sm, 0.875rem);
  font-weight: 600;
}

.hka-max summary::-webkit-details-marker {
  display: none;
}

.hka-max summary::after {
  content: '+';
  font-size: 1.25rem;
  font-weight: 400;
  color: var(--ink-2, #5b6470);
}

.hka-max[open] summary::after {
  content: '−';
}

.hka-max__help {
  margin: 0 var(--space-4, 16px) var(--space-3, 12px);
  font-size: var(--fs-sm, 0.875rem);
  color: var(--ink-2, #5b6470);
  line-height: 1.5;
}

.hka-max__form {
  display: flex;
  flex-direction: column;
  gap: var(--space-2, 8px);
  padding: 0 var(--space-4, 16px) var(--space-4, 16px);
}

.hka-stepper {
  display: grid;
  grid-template-columns: var(--tap, 44px) 1fr var(--tap, 44px);
  gap: var(--space-2, 8px);
}

.hka-stepper__btn {
  min-height: var(--tap, 44px);
  border-radius: var(--radius-sm, 10px);
  border: 1px solid var(--line, #e4e7e9);
  background: var(--surface, #fff);
  font-size: 1.25rem;
  font-weight: 600;
  cursor: pointer;
}

.hka-stepper__btn:hover {
  border-color: var(--ink, #0d0d0d);
}

.hka-stepper__input {
  text-align: center;
  font-size: var(--fs-md, 1.125rem);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

/* Eredmény */
.hka-result {
  display: flex;
  flex-direction: column;
  gap: var(--space-3, 12px);
}

.hka-result__title {
  margin: 0;
  padding: var(--space-3, 12px) var(--space-4, 16px);
  border-radius: var(--radius-md, 14px);
  background: var(--brand-black, #0d0d0d);
  color: var(--surface, #fff);
  font-weight: 700;
}

.hka-win {
  display: flex;
  flex-direction: column;
  gap: var(--space-3, 12px);
  padding: var(--space-4, 16px);
  border-radius: var(--radius-md, 14px);
  background: var(--success-light, #e8f5ec);
}

.hka-win__title {
  margin: 0;
  font-family: var(--font-display, Impact, sans-serif);
  font-size: var(--fs-xl, 1.5rem);
  text-transform: uppercase;
  color: var(--success, #1b873f);
}

.hka-win__note,
.hka-win__info {
  margin: 0;
  font-size: var(--fs-sm, 0.875rem);
  color: var(--ink-2, #5b6470);
}

.hka-win__info p {
  margin: 0 0 var(--space-2, 8px);
}

/* Bejelentkezés */
.hka-login {
  display: flex;
  flex-direction: column;
  gap: var(--space-2, 8px);
}

.hka-login__note {
  margin: 0;
  font-size: var(--fs-sm, 0.875rem);
  color: var(--ink-2, #5b6470);
}

/* Tények, kedvezményezett */
.hka-facts {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 0;
  padding: var(--space-3, 12px) 0 0;
  list-style: none;
  border-top: 1px solid var(--line, #e4e7e9);
  font-size: var(--fs-sm, 0.875rem);
}

.hka-facts li {
  display: flex;
  justify-content: space-between;
  gap: var(--space-3, 12px);
  color: var(--ink-2, #5b6470);
}

.hka-facts strong {
  color: var(--ink, #0d0d0d);
  text-align: right;
}

.hka-beneficiary {
  display: flex;
  align-items: flex-start;
  gap: var(--space-2, 8px);
  margin: 0;
  font-size: var(--fs-sm, 0.875rem);
  line-height: 1.5;
  color: var(--ink-2, #5b6470);
}

.hka-beneficiary svg {
  flex: none;
  color: var(--success, #1b873f);
  margin-top: 1px;
}

.hka-beneficiary a {
  color: var(--ink, #0d0d0d);
  font-weight: 600;
}

/* --- Licittörténet, „Hogyan működik” ------------------------------------- */
.hka-history__list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.hka-history__row {
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-areas: 'who amount' 'time amount';
  column-gap: var(--space-3, 12px);
  padding: var(--space-2, 8px) 0;
  border-bottom: 1px solid var(--line, #e4e7e9);
}

.hka-history__row:first-child .hka-history__amount {
  color: var(--accent, #d62828);
}

.hka-history__row.is-own .hka-history__who {
  color: var(--ink, #0d0d0d);
  font-weight: 700;
}

.hka-history__who {
  grid-area: who;
  color: var(--ink, #0d0d0d);
  font-weight: 600;
}

.hka-history__who small {
  font-weight: 500;
  color: var(--ink-3, #8a9198);
}

.hka-history__amount {
  grid-area: amount;
  align-self: center;
  font-weight: 700;
  color: var(--ink, #0d0d0d);
  font-variant-numeric: tabular-nums;
}

.hka-history__time {
  grid-area: time;
  font-size: var(--fs-xs, 0.75rem);
  color: var(--ink-3, #8a9198);
}

.hka-history__empty {
  margin: 0;
}

.hka-how {
  margin: 0 0 var(--space-3, 12px);
  padding-left: 1.2em;
  display: flex;
  flex-direction: column;
  gap: var(--space-2, 8px);
}

/* --- Kártya ------------------------------------------------------------- */
.hka-card-badge {
  position: absolute;
  top: var(--space-2, 8px);
  left: var(--space-2, 8px);
  z-index: 2;
}

.product-type-aukcio .product-card__footer {
  flex-wrap: wrap;
  row-gap: var(--space-2, 8px);
}

.hka-card {
  flex-basis: 100%;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px var(--space-3, 12px);
  width: 100%;
  font-size: var(--fs-xs, 0.75rem);
  color: var(--ink-2, #5b6470);
}

.hka-card__time {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-weight: 600;
  color: var(--ink, #0d0d0d);
  font-variant-numeric: tabular-nums;
}

.hka-card.is-final .hka-card__time {
  color: var(--accent, #d62828);
}

.hka-card__me {
  font-weight: 700;
}

.hka-card__me.is-leading {
  color: var(--success, #1b873f);
}

.hka-card__me.is-outbid {
  color: var(--accent, #d62828);
}

/* --- Lapok (megerősítés, adatlap) --------------------------------------- */
.hka-dialog .hoki-sheet__body {
  gap: var(--space-3, 12px);
}

.hka-confirm__product {
  margin: 0;
  font-weight: 600;
}

.hka-confirm__label {
  margin: var(--space-2, 8px) 0 0;
  font-size: var(--fs-xs, 0.75rem);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-2, #5b6470);
}

.hka-confirm__amount {
  margin: 0;
  font-family: var(--font-display, Impact, sans-serif);
  font-size: 2.5rem;
  line-height: 1;
  color: var(--accent, #d62828);
  font-variant-numeric: tabular-nums;
}

.hka-confirm__text,
.hka-confirm__legal,
.hka-profile__lead {
  margin: 0;
  font-size: var(--fs-sm, 0.875rem);
  line-height: 1.5;
  color: var(--ink-2, #5b6470);
}

.hka-confirm__warn {
  margin: 0;
  padding: var(--space-2, 8px) var(--space-3, 12px);
  border-radius: var(--radius-sm, 10px);
  background: var(--warning-light, #fef3c7);
  color: var(--warning, #b45309);
  font-size: var(--fs-sm, 0.875rem);
  font-weight: 600;
}

.hka-dialog__actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3, 12px);
  margin-top: var(--space-2, 8px);
}

.hka-profile__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3, 12px);
}

.hka-check {
  display: flex;
  align-items: flex-start;
  gap: var(--space-2, 8px);
  font-size: var(--fs-sm, 0.875rem);
  line-height: 1.5;
  cursor: pointer;
}

.hka-check input {
  width: 20px;
  height: 20px;
  margin-top: 1px;
  flex: none;
  accent-color: var(--accent, #d62828);
}

.hka-profile .hoki-field__error[hidden] {
  display: none;
}

/* Mobil licitsáv */
.hka-bar .hoki-buybar__price {
  font-variant-numeric: tabular-nums;
}

/* --- Eseményoldal -------------------------------------------------------- */
.hka-event {
  display: flex;
  flex-direction: column;
  gap: var(--space-7, 32px);
  padding-top: var(--space-4, 16px);
  padding-bottom: var(--space-9, 56px);
}

.hka-event__crumb {
  font-size: var(--fs-sm, 0.875rem);
}

.hka-event__crumb a {
  color: var(--ink-2, #5b6470);
}

.hka-event__hero {
  display: grid;
  gap: var(--space-5, 20px);
  padding: var(--space-5, 20px);
  border-radius: var(--radius-xl, 28px);
  background: var(--brand-black, #0d0d0d);
  color: var(--surface, #fff);
  overflow: hidden;
}

.hka-event__media img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: var(--radius-lg, 20px);
}

.hka-event__intro {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-3, 12px);
}

.hka-event__title {
  margin: 0;
  font-size: var(--fs-display, clamp(2rem, 6vw, 3.5rem));
  line-height: 1;
  color: var(--surface, #fff);
}

.hka-event__beneficiary,
.hka-event__excerpt {
  margin: 0;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.5;
}

.hka-event__beneficiary strong {
  color: var(--surface, #fff);
}

.hka-event__stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-3, 12px);
  width: 100%;
  margin: var(--space-2, 8px) 0 0;
}

.hka-stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: var(--space-3, 12px);
  border-radius: var(--radius-md, 14px);
  background: rgba(255, 255, 255, 0.08);
}

.hka-stat dt {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.65);
}

.hka-stat dd {
  margin: 0;
  font-family: var(--font-display, Impact, sans-serif);
  font-size: clamp(1.125rem, 4vw, 1.75rem);
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}

.hka-stat dd[data-hka-total] {
  color: #ff6b6b;
}

.hka-event__hero .hka-pill.is-closed {
  background: rgba(255, 255, 255, 0.14);
}

.hka-event__subtitle,
.hka-archive__subtitle {
  margin: 0 0 var(--space-4, 16px);
  font-size: var(--fs-xl, 1.5rem);
}

.hka-event__content {
  max-width: 760px;
}

.hka-event__how {
  border-radius: var(--radius-md, 14px);
  border: 1px solid var(--line, #e4e7e9);
  background: var(--surface, #fff);
}

.hka-event__how summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 56px;
  padding: 0 var(--space-4, 16px);
  font-weight: 600;
}

.hka-event__how summary::-webkit-details-marker {
  display: none;
}

.hka-event__how summary::after {
  content: '+';
  font-size: 1.25rem;
  font-weight: 400;
  color: var(--ink-2, #5b6470);
}

.hka-event__how[open] summary::after {
  content: '−';
}

.hka-event__how-body {
  padding: 0 var(--space-4, 16px) var(--space-4, 16px);
  font-size: var(--fs-sm, 0.875rem);
  line-height: 1.6;
  color: var(--ink-2, #5b6470);
}

@media (min-width: 1024px) {
  .hka-event__hero {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
    align-items: center;
    padding: var(--space-7, 32px);
  }

  .hka-event__hero:not(:has(.hka-event__media)) {
    grid-template-columns: 1fr;
  }
}

/* --- Eseménylista -------------------------------------------------------- */
.hka-archive {
  display: flex;
  flex-direction: column;
  gap: var(--space-7, 32px);
  padding-top: var(--space-5, 20px);
  padding-bottom: var(--space-9, 56px);
}

.hka-archive__head h1 {
  margin: 0 0 var(--space-2, 8px);
}

.hka-archive__lead {
  max-width: 680px;
  margin: 0;
  color: var(--ink-2, #5b6470);
}

.hka-archive__empty {
  padding: var(--space-5, 20px);
}

.hka-event-list {
  display: grid;
  gap: var(--space-4, 16px);
  margin: 0;
  padding: 0;
  list-style: none;
}

@media (min-width: 768px) {
  .hka-event-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1200px) {
  .hka-event-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.hka-event-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  border-radius: var(--radius-lg, 20px);
  overflow: hidden;
  background: var(--surface, #fff);
  box-shadow: var(--shadow-sm, 0 1px 2px rgba(13, 13, 13, 0.06));
  color: inherit;
  text-decoration: none;
  transition: box-shadow var(--dur, 240ms) var(--ease-out, ease-out), transform var(--dur, 240ms) var(--ease-out, ease-out);
}

@media (hover: hover) {
  .hka-event-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md, 0 8px 24px rgba(13, 13, 13, 0.1));
  }
}

.hka-event-card__media {
  display: block;
  aspect-ratio: 16 / 9;
  background: var(--brand-black, #0d0d0d);
}

.hka-event-card__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hka-event-card__body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-2, 8px);
  padding: var(--space-4, 16px);
}

.hka-event-card__title {
  font-size: var(--fs-md, 1.125rem);
  font-weight: 700;
  line-height: 1.25;
}

.hka-event-card__meta {
  font-size: var(--fs-sm, 0.875rem);
  color: var(--ink-2, #5b6470);
}

.hka-event-card__total {
  font-weight: 700;
  color: var(--accent, #d62828);
}

.hka-event-list--past .hka-event-card {
  opacity: 0.9;
}

/* --- Licitjeim ----------------------------------------------------------- */
.hka-account {
  display: flex;
  flex-direction: column;
  gap: var(--space-5, 20px);
}

.hka-account__list {
  display: flex;
  flex-direction: column;
  gap: var(--space-3, 12px);
  margin: 0;
  padding: 0;
  list-style: none;
}

.hka-account__row {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: var(--space-3, 12px);
  padding: var(--space-3, 12px);
  border-radius: var(--radius-md, 14px);
  border: 1px solid var(--line, #e4e7e9);
  background: var(--surface, #fff);
}

.hka-account__media img {
  display: block;
  width: 88px;
  height: 88px;
  object-fit: cover;
  border-radius: var(--radius-sm, 10px);
}

.hka-account__body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  min-width: 0;
}

.hka-account__title {
  font-weight: 700;
  color: var(--ink, #0d0d0d);
}

.hka-account__event,
.hka-account__meta,
.hka-account__note,
.hka-account__contact {
  font-size: var(--fs-sm, 0.875rem);
  color: var(--ink-2, #5b6470);
}

.hka-account__price {
  font-weight: 700;
}

.hka-account__info p {
  margin: 0 0 4px;
  font-size: var(--fs-sm, 0.875rem);
}

.hka-account__row .hoki-btn {
  margin-top: var(--space-2, 8px);
}

.hka-chip {
  display: inline-flex;
  align-items: center;
  height: 24px;
  padding: 0 var(--space-2, 8px);
  border-radius: var(--radius-xs, 6px);
  font-size: var(--fs-xs, 0.75rem);
  font-weight: 700;
  background: var(--surface-3, #edf0f2);
  color: var(--ink-2, #5b6470);
}

.hka-chip.is-leading,
.hka-chip.is-paid {
  background: var(--success-light, #e8f5ec);
  color: var(--success, #1b873f);
}

.hka-chip.is-outbid {
  background: var(--accent-light, #fbeaea);
  color: var(--accent, #d62828);
}

.hka-chip.is-won {
  background: var(--accent, #d62828);
  color: var(--surface, #fff);
}

/* Esemény rácsa: a sablon ul.products rácsát használja. */
.hka-grid {
  margin: 0;
}
