/* Everything Pro Tourny offers — aligned with welcome-home-v2 / platform page */
.pt-platform-offers {
  position: relative;
  padding: clamp(3rem, 7vw, 4.5rem) 0;
  background: var(--pt-platform-bg, #f8fafc);
  color: var(--pt-platform-ink, #0b1220);
  overflow: hidden;
}

.pt-platform-offers::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 50% at 50% 0%, rgba(29, 78, 216, 0.08), transparent 60%);
  pointer-events: none;
}

.pt-platform-offers .pt-platform-container {
  position: relative;
  z-index: 1;
}

.pt-offers-head {
  text-align: center;
  max-width: 42rem;
  margin: 0 auto 1.25rem;
}

.pt-offers-eyebrow {
  margin: 0 0 0.65rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--pt-platform-brand, #1d4ed8);
}

.pt-offers-title {
  margin: 0 0 0.85rem;
  font-family: var(--pt-platform-display);
  font-size: clamp(1.85rem, 4.5vw, 2.75rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.12;
  color: var(--pt-platform-ink, #0b1220);
}

.pt-offers-title-accent {
  color: var(--pt-platform-brand, #1d4ed8);
}

.pt-offers-lead {
  margin: 0;
  font-size: clamp(0.95rem, 1.8vw, 1.05rem);
  line-height: 1.6;
  color: var(--pt-platform-muted, #64748b);
}

.pt-offers-scene {
  perspective: 1600px;
  perspective-origin: 50% 40%;
}

.pt-offers-grid {
  display: grid;
  gap: 1rem;
  align-items: stretch;
}

@media (min-width: 640px) {
  .pt-offers-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .pt-offers-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.1rem;
    grid-auto-rows: 1fr;
  }

  .pt-offers-grid--six {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.pt-offer-card {
  --pt-offer-tilt-x: 0;
  --pt-offer-tilt-y: 0;
  --pt-offer-shine-x: 50%;
  display: flex;
  min-width: 0;
  min-height: 100%;
}

.pt-offer-card-inner {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 21.5rem;
  border-radius: var(--wh-radius-sm, 12px);
  border: 1px solid var(--pt-platform-border, #e2e8f0);
  background: #fff;
  box-shadow: var(--wh-shadow-sm, 0 8px 28px rgba(12, 26, 58, 0.08));
  overflow: hidden;
  transform: rotateX(calc(var(--pt-offer-tilt-x) * 1deg)) rotateY(calc(var(--pt-offer-tilt-y) * 1deg));
  transform-style: preserve-3d;
  transition: transform 0.25s ease-out, box-shadow 0.35s ease, border-color 0.3s ease;
  position: relative;
}

.pt-offer-card-inner::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at calc(var(--pt-offer-shine-x) * 1%) 0%, rgba(29, 78, 216, 0.1), transparent 55%);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.pt-offer-card.is-offer-hover .pt-offer-card-inner {
  border-color: rgba(29, 78, 216, 0.35);
  box-shadow: var(--wh-shadow, 0 18px 50px rgba(12, 26, 58, 0.12));
  transform: rotateX(calc(var(--pt-offer-tilt-x) * 1deg)) rotateY(calc(var(--pt-offer-tilt-y) * 1deg)) translateY(-3px);
}

.pt-offer-card.is-offer-hover .pt-offer-card-inner::after {
  opacity: 1;
}

.pt-offer-card--featured .pt-offer-card-inner {
  border-color: rgba(29, 78, 216, 0.28);
  box-shadow:
    0 8px 28px rgba(12, 26, 58, 0.08),
    0 0 0 1px rgba(29, 78, 216, 0.06) inset;
}


.pt-offer-visual {
  flex-shrink: 0;
  min-height: 11.25rem;
  padding: 0.75rem;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--pt-platform-border, #e2e8f0);
  background: linear-gradient(
    145deg,
    var(--wh-blue-800, #132a5c) 0%,
    var(--wh-blue-600, #1d4ed8) 100%
  );
}

.pt-offer-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 1rem 1.15rem 1.25rem;
  position: relative;
}

.pt-offer-body h3 {
  margin: 0 0 0.4rem;
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--pt-platform-ink, #0b1220);
  letter-spacing: -0.02em;
  min-height: 2.5rem;
  line-height: 1.25;
}

.pt-offer-body p {
  margin: 0;
  flex: 1;
  font-size: 0.84rem;
  line-height: 1.55;
  color: var(--pt-platform-muted, #64748b);
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
}

/* Sports icon strip — below section intro */
.pt-offers-sports-strip {
  margin: 0 auto 2.25rem;
  max-width: 100%;
  padding: 1rem 0;
  border-radius: var(--wh-radius-sm, 12px);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.95) 0%, rgba(219, 234, 254, 0.75) 100%),
    url("/public/icons/sports/badminton.jpg") center / cover no-repeat;
  border: 1px solid var(--pt-platform-border, #e2e8f0);
  box-shadow: var(--wh-shadow-sm, 0 8px 28px rgba(12, 26, 58, 0.06));
}

.pt-offer-sports-marquee {
  width: 100%;
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
}

.pt-offer-sports-track {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  width: max-content;
  animation: pt-offer-sports-scroll 32s linear infinite;
}

.pt-offer-sports-track:hover {
  animation-play-state: paused;
}

@keyframes pt-offer-sports-scroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

.pt-offer-sport-icon {
  flex-shrink: 0;
  width: 3.65rem;
  height: 3.65rem;
  border-radius: 50%;
  background: #fff;
  border: 1px solid #bfdbfe;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 18px rgba(29, 78, 216, 0.14);
}

.pt-offer-sport-icon img {
  width: 2rem;
  height: 2rem;
  object-fit: contain;
}

.pt-offer-sport-icon--photo img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}

/* Registration */
.pt-offer-visual--reg {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 0.45rem;
  align-items: stretch;
  background: linear-gradient(160deg, #0f172a, #1e293b);
  font-size: 0.52rem;
}

.pt-offer-reg-head {
  grid-column: 1 / -1;
  font-size: 0.52rem;
  font-weight: 700;
  color: #93c5fd;
  margin: -0.15rem 0 0.15rem;
  padding-bottom: 0.25rem;
  border-bottom: 1px solid rgba(148, 163, 184, 0.2);
}

.pt-offer-reg-form {
  background: rgba(15, 23, 42, 0.65);
  border-radius: 10px;
  padding: 0.4rem 0.45rem;
  border: 1px solid rgba(148, 163, 184, 0.15);
}

.pt-offer-reg-form label {
  display: block;
  color: #64748b;
  margin-bottom: 0.15rem;
}

.pt-offer-reg-form .pt-offer-reg-value {
  color: #e2e8f0;
  font-weight: 600;
  margin-bottom: 0.28rem;
  padding-bottom: 0.2rem;
  border-bottom: 1px solid rgba(148, 163, 184, 0.2);
}

.pt-offer-reg-form .pt-offer-reg-value--paid {
  color: #86efac;
  font-weight: 700;
}

.pt-offer-reg-checks {
  list-style: none;
  margin: 0;
  padding: 0.2rem 0;
  font-size: 0.52rem;
  color: #cbd5e1;
}

.pt-offer-reg-checks li {
  position: relative;
  padding-left: 0.85rem;
  margin-bottom: 0.28rem;
}

.pt-offer-reg-checks li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: #93c5fd;
  font-weight: 800;
}

/* Draws */
.pt-offer-visual--draws {
  display: flex;
  flex-direction: column;
  background: linear-gradient(165deg, #0c1222, #111827);
  padding: 0.55rem 0.65rem;
}

.pt-offer-draws-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.58rem;
  font-weight: 700;
  color: #94a3b8;
  margin-bottom: 0.45rem;
}

.pt-offer-draws-bracket {
  display: flex;
  gap: 0.35rem;
  align-items: center;
  font-size: 0.5rem;
}

.pt-offer-draws-col {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  flex: 1;
}

.pt-offer-draws-col span {
  padding: 0.22rem 0.3rem;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.08);
  color: #e2e8f0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pt-offer-draws-col span.is-win {
  background: rgba(34, 197, 94, 0.25);
  border: 1px solid rgba(74, 222, 128, 0.35);
}

.pt-offer-draws-pdf {
  color: #93c5fd;
  font-weight: 600;
}

.pt-offer-seed {
  font-weight: 700;
}

.pt-offer-draws-col--final {
  min-width: 3.2rem;
}

.pt-offer-draws-trophy {
  text-align: center;
  font-size: 0.52rem;
  color: #fbbf24;
  font-weight: 800;
  margin-top: 0.2rem;
}

.pt-offer-draws-foot,
.pt-offer-players-foot,
.pt-offer-sched-foot,
.pt-offer-officials-foot {
  margin: 0.35rem 0 0;
  font-size: 0.48rem;
  color: #64748b;
  line-height: 1.35;
}

.pt-offer-visual--draws .pt-offer-draws-foot {
  grid-column: 1 / -1;
}

/* Players */
.pt-offer-visual--players {
  background: #0f172a;
  padding: 0.5rem 0.55rem;
}

.pt-offer-tabs {
  display: flex;
  gap: 0.35rem;
  margin-bottom: 0.45rem;
  font-size: 0.5rem;
}

.pt-offer-tabs span {
  padding: 0.2rem 0.35rem;
  border-radius: 4px;
  color: #64748b;
}

.pt-offer-tabs span.is-on {
  background: rgba(37, 99, 235, 0.35);
  color: #e0f2fe;
}

.pt-offer-player-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.48rem;
}

.pt-offer-player-table th {
  text-align: left;
  color: #64748b;
  font-weight: 600;
  padding-bottom: 0.25rem;
}

.pt-offer-player-table td {
  padding: 0.22rem 0;
  color: #e2e8f0;
  border-top: 1px solid rgba(148, 163, 184, 0.12);
}

.pt-offer-player-table .pt-offer-pts {
  color: #38bdf8;
  font-weight: 700;
}

/* Live — featured */
.pt-offer-visual--live {
  background:
    linear-gradient(180deg, rgba(5, 10, 20, 0.15) 0%, rgba(5, 10, 20, 0.92) 100%),
    linear-gradient(135deg, #1e3a8a 0%, #0f172a 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0.85rem;
}

.pt-offer-live-tourn {
  font-size: 0.5rem;
  font-weight: 700;
  color: #93c5fd;
  margin-bottom: 0.25rem;
  max-width: 100%;
  line-height: 1.3;
}

.pt-offer-live-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.58rem;
  font-weight: 800;
  color: #fecaca;
  margin-bottom: 0.25rem;
}

.pt-offer-live-badge i {
  width: 0.4rem;
  height: 0.4rem;
  border-radius: 50%;
  background: #ef4444;
  animation: pt-offer-pulse 1.2s ease-in-out infinite;
}

@keyframes pt-offer-pulse {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.5;
    transform: scale(0.85);
  }
}

.pt-offer-live-meta {
  font-size: 0.52rem;
  color: #94a3b8;
  margin-bottom: 0.5rem;
}

.pt-offer-live-faces {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.35rem;
}

.pt-offer-live-faces .pt-offer-avatar {
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: linear-gradient(135deg, #3b82f6, #1d4ed8);
  border: 2px solid rgba(255, 255, 255, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.55rem;
  font-weight: 800;
  color: #fff;
}

.pt-offer-live-faces .pt-offer-vs {
  font-size: 0.55rem;
  font-weight: 800;
  color: #64748b;
}

.pt-offer-live-names {
  font-size: 0.48rem;
  color: #cbd5e1;
  margin-bottom: 0.35rem;
  line-height: 1.35;
  max-width: 95%;
}

.pt-offer-live-score {
  font-size: 1.5rem;
  font-weight: 900;
  color: #f8fafc;
  letter-spacing: 0.04em;
}

.pt-offer-live-sets {
  font-size: 0.52rem;
  color: #64748b;
  margin-top: 0.25rem;
}

/* Schedule */
.pt-offer-visual--schedule {
  background: #0f172a;
  padding: 0.55rem;
  font-size: 0.5rem;
}

.pt-offer-date-row {
  display: flex;
  gap: 0.3rem;
  margin-bottom: 0.45rem;
}

.pt-offer-date-row span {
  padding: 0.2rem 0.35rem;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.06);
  color: #64748b;
}

.pt-offer-date-row span.is-on {
  background: rgba(37, 99, 235, 0.4);
  color: #e0f2fe;
}

.pt-offer-sched-row {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.22rem 0;
  border-top: 1px solid rgba(148, 163, 184, 0.12);
  color: #cbd5e1;
}

.pt-offer-sched-row > span:nth-child(2) {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pt-offer-sched-row time {
  font-weight: 700;
  color: #38bdf8;
  min-width: 2.2rem;
}

.pt-offer-tag {
  margin-left: auto;
  padding: 0.12rem 0.35rem;
  border-radius: 4px;
  font-size: 0.45rem;
  font-weight: 800;
  text-transform: uppercase;
}

.pt-offer-tag--live {
  background: rgba(34, 197, 94, 0.25);
  color: #86efac;
}

.pt-offer-tag--up {
  background: rgba(148, 163, 184, 0.15);
  color: #94a3b8;
}

/* Mobile */
.pt-offer-visual--mobile {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: linear-gradient(160deg, #0f172a, #1e293b);
}

.pt-offer-phone {
  width: 3.2rem;
  height: 5.5rem;
  border-radius: 10px;
  border: 2px solid rgba(148, 163, 184, 0.35);
  background: #020617;
  padding: 0.35rem 0.25rem;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.45);
}

.pt-offer-phone--back {
  transform: scale(0.88) translateY(6px);
  opacity: 0.75;
}

.pt-offer-phone-notch {
  width: 1rem;
  height: 0.15rem;
  border-radius: 99px;
  background: rgba(148, 163, 184, 0.4);
  margin: 0 auto 0.35rem;
}

.pt-offer-phone-screen {
  height: calc(100% - 0.5rem);
  border-radius: 6px;
  background: linear-gradient(180deg, #1e3a8a 0%, #0f172a 100%);
  padding: 0.25rem;
  font-size: 0.38rem;
  color: #e2e8f0;
}

.pt-offer-phone-screen strong {
  display: block;
  font-size: 0.42rem;
  margin-bottom: 0.2rem;
}

/* Calculator */
.pt-offer-visual--calc {
  display: grid;
  grid-template-columns: 1fr 0.85fr;
  gap: 0.45rem;
  padding: 0.55rem;
  background: #0f172a;
  font-size: 0.5rem;
}

.pt-offer-calc-fields label {
  display: block;
  color: #64748b;
  margin-bottom: 0.12rem;
}

.pt-offer-calc-fields .pt-offer-calc-val {
  color: #e2e8f0;
  font-weight: 700;
  margin-bottom: 0.3rem;
}

.pt-offer-calc-mini-bracket {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  justify-content: center;
}

.pt-offer-calc-mini-bracket span {
  height: 0.4rem;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.1);
}

/* Officials */
.pt-offer-visual--officials {
  background:
    linear-gradient(180deg, rgba(5, 10, 20, 0.3) 0%, rgba(5, 10, 20, 0.92) 100%),
    linear-gradient(135deg, #1e293b, #0f172a);
  padding: 0.55rem;
}

.pt-offer-official-row {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.35rem 0;
  border-bottom: 1px solid rgba(148, 163, 184, 0.12);
  font-size: 0.52rem;
}

.pt-offer-official-row:last-child {
  border-bottom: none;
}

.pt-offer-official-row .pt-offer-avatar {
  width: 1.65rem;
  height: 1.65rem;
  border-radius: 50%;
  background: linear-gradient(135deg, #475569, #334155);
  flex-shrink: 0;
}

.pt-offer-official-row strong {
  display: block;
  color: #f1f5f9;
  font-size: 0.55rem;
}

.pt-offer-official-row span {
  color: #64748b;
  font-size: 0.48rem;
}

.pt-offer-status {
  margin-left: auto;
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
}

.pt-offer-status--ok {
  background: #22c55e;
  box-shadow: 0 0 8px rgba(34, 197, 94, 0.6);
}

.pt-offer-status--busy {
  background: #ef4444;
}

@media (prefers-reduced-motion: reduce) {
  .pt-offer-card-inner {
    transform: none !important;
  }
  .pt-offer-live-badge i {
    animation: none;
  }
  .pt-offers-sports-strip .pt-offer-sports-track {
    animation: none;
    flex-wrap: wrap;
    justify-content: center;
    width: 100%;
  }
}
