/**
 * Challenge Hole Tiebreaker Banner Styles
 * For: Ocean's 18 Golf (aaron@oceans18golf.com)
 *
 * Matches existing Ocean's 18 brand from challenge-hole-prompt.css:
 * - Black bg with shark silhouette pattern
 * - Pink: #ec4899 (pricing badge)
 * - Cyan: #06b6d4 (CTA button)
 * - White bold text, Futura font
 */

/* === POPUP OVERLAY === */
.chtb-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0);
  transition: background 0.3s ease;
  padding: 1rem;
}

.chtb-overlay.active {
  background: rgba(0, 0, 0, 0.75);
}

.chtb-popup-card {
  width: 100%;
  max-width: 420px;
  transform: scale(0.9) translateY(20px);
  opacity: 0;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.chtb-overlay.active .chtb-popup-card {
  transform: scale(1) translateY(0);
  opacity: 1;
}

.chtb-close-btn {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  z-index: 10;
  background: rgba(255, 255, 255, 0.15);
  border: none;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  font-size: 1.5rem;
  line-height: 1;
  color: #ffffff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease;
}

.chtb-close-btn:hover {
  background: rgba(255, 255, 255, 0.3);
}

/* === ENTRANCE === */
@keyframes chtb-enter {
  from {
    transform: scale(0.95) translateY(12px);
    opacity: 0;
  }
  to {
    transform: scale(1) translateY(0);
    opacity: 1;
  }
}

/* === MAIN BANNER === */
.chtb-banner {
  position: relative;
  background: #000000 url('/images/oceans18-challenge-background.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  border-radius: 8px;
  padding: 2rem 1.5rem 1.5rem;
  overflow: hidden;
  animation: chtb-enter 0.3s cubic-bezier(0.4, 0, 0.2, 1) both;
  font-family: 'Futura', 'Century Gothic', 'Trebuchet MS', sans-serif;
}

/* === CHALLENGE HOLE IMAGE === */
.chtb-image {
  display: block;
  width: 140px;
  height: auto;
  margin: 0 auto 1rem;
  object-fit: contain;
}

/* === TITLE === */
.chtb-title {
  font-size: 2rem;
  font-weight: 800;
  text-align: center;
  margin-bottom: 0.75rem;
  color: #ffffff;
  line-height: 1.2;
}

/* === MATCHUP — "Player A vs Player B" === */
.chtb-matchup {
  text-align: center;
  color: #e5e7eb;
  font-size: 1.125rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  line-height: 1.4;
}

.chtb-matchup-name {
  color: #ffffff;
  font-weight: 800;
}

.chtb-vs {
  display: inline;
  color: #06b6d4;
  font-weight: 900;
  margin: 0 0.25rem;
}

/* === TAGLINE === */
.chtb-tagline {
  text-align: center;
  color: #e5e7eb;
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

/* === PRICING BADGE — matches .challenge-prompt-pricing === */
.chtb-price-badge-wrapper {
  display: flex;
  justify-content: center;
  margin-bottom: 1rem;
}

.chtb-price-badge {
  background: linear-gradient(135deg, #ec4899 0%, #db2777 100%);
  border-radius: 8px;
  padding: 0.875rem 2rem;
  color: #ffffff;
  font-size: 1.5rem;
  font-weight: 800;
  text-align: center;
}

/* === CTA BUTTON — matches .challenge-prompt-got-it-btn === */
.chtb-cta {
  display: block;
  width: 100%;
  padding: 1rem 2rem;
  border: none;
  border-radius: 8px;
  background: var(--challenge-brand-color, #06b6d4);
  color: #ffffff;
  font-size: 1.125rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: 'Futura', 'Century Gothic', 'Trebuchet MS', sans-serif;
}

.chtb-cta:hover {
  background: color-mix(in srgb, var(--challenge-brand-color, #06b6d4) 85%, black);
  transform: translateY(-2px);
}

.chtb-cta:active {
  transform: translateY(0) scale(0.98);
}

/* === FOOTER TEXT === */
.chtb-footer {
  text-align: center;
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.8125rem;
  margin-top: 1rem;
}

/* === REDUCED MOTION === */
@media (prefers-reduced-motion: reduce) {
  .chtb-banner {
    animation: none;
  }
  .chtb-overlay,
  .chtb-popup-card {
    transition: none;
  }
}

/* === RESPONSIVE === */
@media (max-width: 640px) {
  .chtb-banner {
    padding: 1.5rem;
  }
  .chtb-image {
    width: 110px;
  }
  .chtb-title {
    font-size: 1.5rem;
  }
  .chtb-matchup {
    font-size: 1rem;
  }
  .chtb-price-badge {
    font-size: 1.25rem;
    padding: 0.625rem 1.5rem;
  }
}

@media (max-width: 400px) {
  .chtb-banner {
    padding: 1.25rem;
  }
  .chtb-image {
    width: 90px;
  }
  .chtb-title {
    font-size: 1.25rem;
  }
  .chtb-tagline {
    font-size: 0.9375rem;
  }
  .chtb-price-badge {
    font-size: 1.125rem;
  }
}
