/**
 * HECmania — [HEC]KLUB přehled v klientské sekci (klub-prehled.js).
 *
 * Struktura portovaná z okfish `suma-obj.css` (ostrý provoz), barvy
 * převedeny na hecmania paletu: oranžová #fd7e14 místo okfish zlaté,
 * zelená #4caf1f jako doplněk. Tytéž tokeny jako widget, katalog
 * i hlavička — jeden vizuální systém.
 */
:root {
  --hec-orange: #fd7e14;
  --hec-orange-dark: #b45f00;
  --hec-orange-light: #fff6ed;
  --hec-orange-soft: #ffe2c7;
  --hec-green: #4caf1f;
  --hec-dark: #16171a;
  --hec-muted: #6b7280;
  --hec-border: rgba(253, 126, 20, 0.28);
}

/* Přepsaná hodnota v nativní Shoptet tabulce — oranžově, ať je vidět. */
.hec-klub-prepsano {
  color: var(--hec-orange-dark) !important;
  font-weight: 800 !important;
}

.hec-klub-card {
  box-sizing: border-box;
  width: 100%;
  margin: 0 0 24px;
  padding: 24px;
  border: 1px solid var(--hec-border);
  border-radius: 18px;
  background: linear-gradient(135deg, #ffffff 0%, var(--hec-orange-light) 100%);
  box-shadow: 0 12px 32px rgba(22, 23, 26, 0.08);
}

.hec-klub-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.hec-klub-header h3 {
  margin: 0;
  color: var(--hec-dark);
  font-size: 24px;
  font-weight: 800;
  line-height: 1.2;
}

.hec-klub-eyebrow {
  display: block;
  margin-bottom: 4px;
  color: var(--hec-orange-dark);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.3;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hec-klub-sleva {
  display: flex;
  flex: 0 0 auto;
  flex-direction: column;
  align-items: flex-end;
}

.hec-klub-sleva strong {
  color: var(--hec-orange-dark);
  font-size: 28px;
  font-weight: 800;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.hec-klub-sleva span {
  margin-top: 5px;
  color: var(--hec-muted);
  font-size: 12px;
  font-weight: 600;
}

.hec-klub-progress {
  position: relative;
  overflow: hidden;
  width: 100%;
  height: 13px;
  margin: 22px 0 14px;
  border: 1px solid rgba(253, 126, 20, 0.15);
  border-radius: 999px;
  background: var(--hec-orange-soft);
}

.hec-klub-progress > span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--hec-orange-dark) 0%, var(--hec-orange) 100%);
  box-shadow: 0 0 12px rgba(253, 126, 20, 0.35);
  transition: width 0.8s ease;
}

.hec-klub-footer {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}

.hec-klub-footer p {
  margin: 0;
  color: var(--hec-dark);
  font-size: 14px;
  line-height: 1.55;
}

.hec-klub-nakoupeno {
  flex: 0 0 auto;
  color: var(--hec-muted);
  font-size: 13px;
  line-height: 1.55;
  text-align: right;
}

.hec-klub-nakoupeno strong {
  color: var(--hec-dark);
}

.hec-klub-loading {
  box-sizing: border-box;
  display: flex;
  align-items: center;
  gap: 11px;
  width: 100%;
  margin: 20px 0;
  padding: 14px 17px;
  border: 1px solid var(--hec-border);
  border-radius: 12px;
  background: var(--hec-orange-light);
  color: var(--hec-dark);
  font-size: 14px;
}

.hec-klub-spinner {
  display: block;
  flex: 0 0 18px;
  width: 18px;
  height: 18px;
  border: 2px solid var(--hec-orange-soft);
  border-top-color: var(--hec-orange-dark);
  border-radius: 50%;
  animation: hec-klub-spin 0.75s linear infinite;
}

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

@media (max-width: 900px) {
  .hec-klub-layout {
    gap: 16px;
  }
  .hec-klub-sloupec {
    flex: 1 1 100%;
  }
}

@media (max-width: 767px) {
  .hec-klub-card {
    padding: 20px 18px;
  }
  .hec-klub-header {
    align-items: flex-start;
  }
  .hec-klub-header h3 {
    font-size: 21px;
  }
  .hec-klub-sleva strong {
    font-size: 24px;
  }
  .hec-klub-footer {
    flex-direction: column;
    gap: 7px;
  }
  .hec-klub-nakoupeno {
    text-align: left;
  }
}
