/* =============================================
   Hot Products Page
   Inherits: /blog/styles.css (base vars, reset, .wrap, .btn)
   ============================================= */

/* ---------- MAIN LAYOUT ---------- */
.hp-main {
  padding: 0 0 96px;
}

/* ---------- HERO ---------- */
.hp-hero {
  padding: 48px 0 40px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 0;
  background: radial-gradient(ellipse 80% 50% at 50% 0%, rgba(255, 45, 85, 0.08), transparent 60%);
}

.hp-hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}

.hp-hero-kicker::before {
  content: '';
  display: block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  animation: hp-kicker-pulse 2s ease-in-out infinite;
}

@keyframes hp-kicker-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.8); }
}

.hp-hero h1 {
  font-size: clamp(30px, 4.5vw, 44px);
  margin-bottom: 12px;
}

.hp-hero p {
  color: var(--fg-2);
  font-size: 17px;
  max-width: 50ch;
  line-height: 1.6;
}

/* ---------- MONTH SECTIONS ---------- */
.hp-month-section {
  padding-top: 0;
  margin-bottom: 0;
}

.hp-month-header {
  position: sticky;
  top: 72px;
  z-index: 999;
  background: var(--bg);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border-bottom: 1px solid rgba(255, 45, 85, 0.3);
  padding: 18px 0 16px;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
}

.hp-month-label {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  color: var(--fg-headline);
  letter-spacing: -0.02em;
}

.hp-month-count {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--fg-3);
  font-weight: 500;
}

.hp-month-current-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
}

/* ---------- PRODUCT GRID ---------- */
.hp-product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 360px), 1fr));
  gap: 20px;
  padding: 24px 0 8px;
}

/* ---------- PRODUCT CARD ---------- */
.hp-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s var(--ease);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.04),
    0 4px 20px rgba(0, 0, 0, 0.3);
}

.hp-card:hover {
  border-color: rgba(255, 255, 255, 0.16);
  transform: translateY(-2px);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.1),
    0 8px 32px rgba(0, 0, 0, 0.4);
}

/* Card top — thumb + core info */
.hp-card-top {
  display: flex;
  gap: 16px;
  padding: 20px 20px 0;
  align-items: flex-start;
}

.hp-card-thumb {
  width: 72px;
  height: 72px;
  border-radius: 12px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  overflow: hidden;
  flex-shrink: 0;
  display: grid;
  place-items: center;
}

.hp-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hp-card-thumb-icon {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  gap: 6px;
}

.hp-card-thumb-icon svg {
  width: 26px;
  height: 26px;
  color: var(--fg-3);
}

.hp-card-info {
  flex: 1;
  min-width: 0;
}

.hp-card-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
}

/* Category displayed as a colored pill (replaces the separate badge) */
.hp-card-category {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  padding: 2px 9px;
  border-radius: 999px;
}

.hp-card-category--viral {
  background: rgba(255, 45, 85, 0.15);
  color: #FF2D55;
  border: 1px solid rgba(255, 45, 85, 0.25);
}

.hp-card-category--trending {
  background: rgba(37, 244, 238, 0.1);
  color: #25F4EE;
  border: 1px solid rgba(37, 244, 238, 0.2);
}

.hp-card-category--hot {
  background: rgba(255, 165, 0, 0.12);
  color: #FFA500;
  border: 1px solid rgba(255, 165, 0, 0.22);
}

.hp-card-name {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  color: var(--fg-headline);
  letter-spacing: -0.02em;
  line-height: 1.25;
  margin-bottom: 6px;
}

.hp-card-teaser {
  font-size: 13px;
  color: var(--fg-2);
  line-height: 1.45;
}

/* Stats row */
.hp-card-stats {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  padding: 14px 20px 16px;
  border-bottom: 1px solid var(--border);
}

.hp-card-commission {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  color: #21D07A;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

/* External link — sits in the meta row at far right, aligned to pill baseline */
.hp-card-ext-link {
  display: inline-flex;
  align-items: flex-end;
  color: var(--fg-3);
  transition: color 0.15s;
  flex-shrink: 0;
  line-height: 1;
}

.hp-card-ext-link:hover { color: var(--fg); }

/* Locked cards — link sits above blur, top-right of card */
.hp-card-ext-link--floating {
  position: absolute;
  top: 18px;
  right: 18px;
  z-index: 3;
  color: var(--fg-2);
  background: rgba(22, 22, 22, 0.92);
  border: 1px solid var(--border-2);
  border-radius: 8px;
  padding: 6px;
  line-height: 0;
}

.hp-card-ext-link--floating:hover {
  color: var(--fg);
  border-color: rgba(255, 255, 255, 0.22);
}

.hp-card-stars {
  font-size: 13px;
  color: var(--fg-2);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.hp-card-star-val {
  color: #F5A623;
  font-weight: 600;
}

.hp-card-reviews {
  color: var(--fg-3);
  font-size: 12px;
}

/* Details section */
.hp-card-details {
  padding: 16px 20px 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.hp-detail-block {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.hp-detail-label {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fg-3);
}

.hp-detail-text {
  font-size: 14px;
  color: var(--fg-2);
  line-height: 1.55;
}

/* ---------- LOCKED CARD — full blur + centered overlay ---------- */
.hp-card--locked {
  position: relative;
  overflow: hidden;
}

.hp-card-blur-wrap {
  filter: blur(5px);
  pointer-events: none;
  user-select: none;
  /* prevent bleed outside card radius */
  transform: scale(1);
}

.hp-card-lock-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  text-align: center;
  padding: 24px;
  background: rgba(13, 13, 13, 0.55);
  z-index: 2;
}

.hp-lock-icon {
  width: 44px;
  height: 44px;
  background: rgba(22, 22, 22, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 12px;
  display: grid;
  place-items: center;
  backdrop-filter: blur(8px);
}

.hp-lock-icon svg {
  width: 20px;
  height: 20px;
  color: #fff;
}

.hp-lock-label {
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  max-width: 22ch;
  line-height: 1.35;
}

.hp-lock-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 13px;
  padding: 10px 20px;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s, transform 0.12s var(--ease);
  box-shadow: 0 4px 20px rgba(255, 45, 85, 0.45);
}

.hp-lock-btn:hover {
  background: var(--accent-dim);
  transform: translateY(-1px);
}

/* ---------- LOADING ---------- */
.hp-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 80px 0;
  color: var(--fg-2);
  font-size: 15px;
}

.hp-loading-spinner {
  width: 36px;
  height: 36px;
  border: 2px solid var(--border-2);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: hp-spin 0.7s linear infinite;
}

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

/* ---------- RESPONSIVE ---------- */
@media (max-width: 600px) {
  .hp-hero { padding: 32px 0 28px; }
  .hp-hero p { font-size: 15px; }
  .hp-product-grid { grid-template-columns: 1fr; gap: 16px; }
  .hp-card-top { gap: 12px; }
  .hp-card-thumb { width: 60px; height: 60px; }
  .hp-card-name { font-size: 15px; }
  .hp-month-header { top: 72px; }
}
