/* Yambuzz Deals Hub — Steam-like sale browse, Night Signal palette */
:root {
  --yb-ink: #0b1220;
  --yb-ink-2: #121a2b;
  --yb-lime: #b8f000;
  --yb-amber: #f5a524;
  --yb-fog: #d7e0f0;
  --yb-panel: #151e32;
  --yb-line: rgba(184, 240, 0, 0.18);
}

.yb-deals {
  max-width: 1180px;
  margin: 0 auto;
  padding: 24px 18px 64px;
  color: var(--yb-fog);
}

.yb-deals-hero {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr;
  gap: 28px;
  align-items: center;
  padding: 28px 32px;
  border-radius: 22px;
  background:
    radial-gradient(ellipse at 80% 20%, rgba(184, 240, 0, 0.16), transparent 50%),
    radial-gradient(ellipse at 10% 90%, rgba(245, 165, 36, 0.12), transparent 45%),
    linear-gradient(145deg, #0d1526, #152038 55%, #10182a);
  border: 1px solid var(--yb-line);
  margin-bottom: 28px;
  overflow: hidden;
  position: relative;
}

.yb-deals-kicker {
  letter-spacing: 0.16em;
  font-size: 12px;
  font-weight: 800;
  color: var(--yb-lime);
  margin: 0 0 10px;
}

.yb-deals-hero h1 {
  margin: 0 0 12px;
  font-size: clamp(2rem, 4vw, 3.1rem);
  line-height: 1.05;
  color: #fff;
  font-weight: 900;
}

.yb-deals-hero h1 em {
  font-style: normal;
  color: var(--yb-lime);
}

.yb-deals-hero-copy > p {
  margin: 0 0 18px;
  max-width: 42ch;
  color: #b7c3da;
  font-size: 1.05rem;
}

.yb-deals-hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 20px;
  align-items: center;
}

.yb-deals-hero-meta strong {
  color: var(--yb-amber);
  font-size: 1.25rem;
}

.yb-deals-hero-meta a {
  color: var(--yb-lime);
  text-decoration: none;
  font-weight: 700;
}

.yb-deals-hero-art {
  position: relative;
  min-height: 180px;
  display: grid;
  place-items: center;
}

.yb-deals-orb {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #e8ff7a, var(--yb-lime) 40%, transparent 70%);
  filter: blur(2px);
  opacity: 0.85;
  animation: yb-orb 6s ease-in-out infinite;
}

.yb-deals-badge {
  position: absolute;
  font-size: 3rem;
  font-weight: 900;
  color: var(--yb-ink);
  background: var(--yb-amber);
  border-radius: 18px;
  padding: 10px 18px;
  transform: rotate(-8deg);
  box-shadow: 0 12px 40px rgba(245, 165, 36, 0.35);
  animation: yb-badge 4.5s ease-in-out infinite;
}

@keyframes yb-orb {
  0%, 100% { transform: scale(1); opacity: 0.8; }
  50% { transform: scale(1.08); opacity: 1; }
}
@keyframes yb-badge {
  0%, 100% { transform: rotate(-8deg) translateY(0); }
  50% { transform: rotate(-4deg) translateY(-6px); }
}

.yb-deals-section-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  margin: 8px 0 16px;
}

.yb-deals-section-head h2 {
  margin: 0;
  color: #fff;
  font-size: 1.35rem;
}

.yb-deals-section-head span {
  color: #8b9bb8;
  font-size: 0.92rem;
}

.yb-deals-featured {
  margin-bottom: 32px;
}

.yb-deals-featured-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(220px, 1fr);
  gap: 14px;
  overflow-x: auto;
  padding-bottom: 8px;
  scroll-snap-type: x mandatory;
}

.yb-deal-feature {
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  border-radius: 16px;
  overflow: hidden;
  background: var(--yb-panel);
  border: 1px solid var(--yb-line);
  text-decoration: none;
  color: inherit;
  min-height: 260px;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.yb-deal-feature:hover {
  transform: translateY(-3px);
  border-color: rgba(184, 240, 0, 0.45);
}

.yb-deal-feature img,
.yb-deal-placeholder {
  width: 100%;
  height: 140px;
  object-fit: cover;
  background: linear-gradient(135deg, #1a2438, #0f1624);
}

.yb-deal-feature-body {
  padding: 14px 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

.yb-deal-feature-body h3 {
  margin: 0;
  font-size: 1rem;
  color: #fff;
}

.yb-deal-feature-body p,
.yb-deal-price {
  margin: 0;
  display: flex;
  gap: 10px;
  align-items: baseline;
  flex-wrap: wrap;
}

.yb-deal-feature-body del,
.yb-deal-price del {
  opacity: 0.55;
  font-size: 0.85rem;
}

.yb-deal-feature-body strong,
.yb-deal-price strong {
  color: var(--yb-lime);
  font-size: 1.2rem;
}

.yb-deal-pct {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--yb-lime);
  color: var(--yb-ink);
  font-weight: 900;
  font-size: 0.85rem;
  padding: 4px 8px;
  border-radius: 6px;
  width: fit-content;
}

.yb-deal-media .yb-deal-pct {
  position: absolute;
  left: 10px;
  top: 10px;
}

.yb-deals-filters {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr auto auto;
  gap: 12px;
  align-items: end;
  margin-bottom: 22px;
  padding: 16px;
  border-radius: 16px;
  background: var(--yb-panel);
  border: 1px solid var(--yb-line);
}

.yb-deals-filters label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #8b9bb8;
}

.yb-deals-filters input,
.yb-deals-filters select {
  min-height: 42px;
  border-radius: 10px;
  border: 1px solid #2a3650;
  background: #0c1320;
  color: #e8eef8;
  padding: 0 12px;
  font: inherit;
}

.yb-deals-filters button,
.yb-deal-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 16px;
  border: 0;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--yb-lime), #9ed000);
  color: var(--yb-ink);
  font-weight: 800;
  cursor: pointer;
  text-decoration: none;
}

.yb-deals-reset {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  color: #9eb0cc;
  text-decoration: none;
  font-weight: 700;
}

.yb-deals-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.yb-deal-card {
  display: flex;
  flex-direction: column;
  background: var(--yb-panel);
  border: 1px solid var(--yb-line);
  border-radius: 16px;
  overflow: hidden;
}

.yb-deal-media {
  position: relative;
  display: block;
}

.yb-deal-media img,
.yb-deal-media .yb-deal-placeholder {
  width: 100%;
  height: 160px;
  object-fit: cover;
  background: #0f1624;
}

.yb-deal-copy {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

.yb-deal-kind {
  margin: 0;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--yb-amber);
  font-weight: 800;
}

.yb-deal-copy h3 {
  margin: 0;
  font-size: 1.05rem;
}

.yb-deal-copy h3 a {
  color: #fff;
  text-decoration: none;
}

.yb-deal-save,
.yb-deal-extra,
.yb-deal-ends {
  margin: 0;
  font-size: 0.88rem;
  color: #9eb0cc;
}

.yb-deal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: auto;
  padding-top: 10px;
  align-items: center;
}

.yb-deal-actions a:not(.yb-deal-cta) {
  color: #b7c3da;
  font-weight: 700;
  text-decoration: none;
}

.yb-deals-empty {
  text-align: center;
  padding: 48px 20px;
  border-radius: 16px;
  border: 1px dashed var(--yb-line);
  background: rgba(21, 30, 50, 0.6);
}

.yb-deals-empty h3 {
  color: #fff;
  margin: 0 0 8px;
}

.yb-deals-pager {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  margin-top: 28px;
}

.yb-deals-pager a {
  color: var(--yb-lime);
  font-weight: 800;
  text-decoration: none;
}

@media (max-width: 980px) {
  .yb-deals-hero { grid-template-columns: 1fr; }
  .yb-deals-filters { grid-template-columns: 1fr 1fr; }
  .yb-deals-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 600px) {
  .yb-deals-filters { grid-template-columns: 1fr; }
  .yb-deals-grid { grid-template-columns: 1fr; }
  .yb-deals-hero-art { min-height: 120px; }
}
