/* ==========================================================================
   Watch Party Meetup — modern sports aesthetic theme
   Additive overrides on top of the existing Tailwind/Bootstrap/Notus styles.
   ========================================================================== */

:root {
  --wpm-navy: #0F172A;
  --wpm-navy-light: #1E293B;
  --wpm-blue: #2563EB;
  --wpm-blue-dark: #1D4ED8;
  --wpm-green: #16A34A;
  --wpm-green-dark: #15803D;
  --wpm-orange: #F97316;
  --wpm-orange-dark: #EA580C;
  --wpm-bg: #FFFFFF;
  --wpm-gray: #64748B;
  --font-heading: 'Manrope', 'Inter', ui-sans-serif, system-ui, sans-serif;
  --font-body: 'Inter', ui-sans-serif, system-ui, sans-serif;
}

/* ---- Global type & background ---- */
body {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-family: var(--font-body);
  background-color: var(--wpm-bg) !important;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--wpm-navy);
  letter-spacing: -0.01em;
}

a, button, .transition-default {
  transition: background-color 150ms ease, color 150ms ease, border-color 150ms ease,
    box-shadow 150ms ease, transform 150ms ease;
}

/* Lighten the default page wrapper backgrounds toward white per the new palette */
.bg-blueGray-200 { background-color: #F8FAFC !important; }

/* ---- Navbar ---- */
app-auth-navbar nav {
  background-color: #ffffff !important;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.08), 0 1px 2px rgba(15, 23, 42, 0.06) !important;
  position: sticky;
  top: 0;
  z-index: 40;
}
/* Navbar tagline (repurposed from the old Watch/Party/Meetup text spans), in the
   logo's own brand colors rather than the site's navy/blue palette. */
app-auth-navbar nav h1 {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.3rem;
  row-gap: 0.1rem;
}
app-auth-navbar nav h1 span {
  font-size: 0.95rem !important;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: 0.02em;
}
app-auth-navbar nav h1 span:nth-of-type(1) { color: #E6286E !important; }
app-auth-navbar nav h1 span:nth-of-type(2) { color: #FA9600 !important; }
app-auth-navbar nav h1 span:nth-of-type(3) { color: #1EAFAF !important; }
@media (max-width: 767px) {
  app-auth-navbar nav h1 { display: none; }
}

/* ---- Buttons: blue primary, green success, orange reserved for the hero CTA ---- */
.bg-emerald-500, .bg-emerald-600,
.bg-lightBlue-400, .bg-lightBlue-500, .bg-lightBlue-600 {
  background-color: var(--wpm-blue) !important;
  background-image: none !important;
  border-color: transparent !important;
}
.bg-emerald-500:hover, .bg-emerald-600:hover,
.bg-lightBlue-400:hover, .bg-lightBlue-500:hover, .bg-lightBlue-600:hover,
.hover\:bg-emerald-600:hover, .hover\:bg-emerald-700:hover, .hover\:bg-lightBlue-600:hover {
  background-color: var(--wpm-blue-dark) !important;
}
.text-emerald-500, .text-emerald-600, .text-lightBlue-400, .text-lightBlue-500, .text-lightBlue-600 {
  color: var(--wpm-blue) !important;
}
.border-emerald-500, .border-emerald-600, .border-lightBlue-400, .border-lightBlue-500, .border-lightBlue-600 {
  border-color: var(--wpm-blue) !important;
}

button[type="submit"], button[type="button"], .btn, a.rounded, button.rounded {
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.12);
}
button:active { transform: translateY(1px); }

/* Success states (e.g. confirmations) lean green */
.text-green-500, .text-green-600, .bg-green-500, .bg-green-600 {
  color: var(--wpm-green) !important;
}
.bg-green-500, .bg-green-600 { background-color: var(--wpm-green) !important; color: #fff !important; }

/* ---- Links & focus states ---- */
a:not([class*="bg-"]):hover {
  color: var(--wpm-blue-dark);
}
input:focus, select:focus, textarea:focus, button:focus-visible, a:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.25) !important;
  border-color: var(--wpm-blue) !important;
}

/* ---- Cards ---- */
.shadow-lg { box-shadow: 0 4px 14px rgba(15, 23, 42, 0.08) !important; }
.rounded-lg { border-radius: 0.75rem !important; }

/* ---- Footer ---- */
app-footer > footer, app-footer .relative.py-4, app-footer footer {
  background-color: var(--wpm-navy) !important;
}
app-footer h1, app-footer h2, app-footer h3, app-footer h4, app-footer h5, app-footer h6,
app-footer p, app-footer li, app-footer a {
  color: #E2E8F0 !important;
}
app-footer a:hover { color: var(--wpm-orange) !important; }
app-footer .bg-white { background-color: rgba(255, 255, 255, 0.08) !important; color: #ffffff !important; }
app-footer hr { border-color: rgba(255, 255, 255, 0.15) !important; }

/* ==========================================================================
   Injected homepage sections (hero, team strip, social proof, how it works)
   ========================================================================== */

.wpm-hero {
  position: relative;
  background: linear-gradient(135deg, var(--wpm-navy) 0%, #1E3A5F 55%, var(--wpm-navy) 100%);
  background-size: 200% 200%;
  border-radius: 1rem;
  overflow: hidden;
  padding: 4rem 2rem;
  margin-bottom: 0;
  text-align: center;
  isolation: isolate;
}
.wpm-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 15% 20%, rgba(37, 99, 235, 0.35), transparent 45%),
    radial-gradient(circle at 85% 80%, rgba(249, 115, 22, 0.25), transparent 45%);
  z-index: -1;
}
.wpm-hero-eyebrow {
  display: inline-block;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #93C5FD;
  background: rgba(37, 99, 235, 0.15);
  border: 1px solid rgba(37, 99, 235, 0.4);
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  margin-bottom: 1.25rem;
}
.wpm-hero-headline {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: clamp(2rem, 5vw, 3.5rem);
  line-height: 1.08;
  color: #ffffff !important;
  max-width: 46rem;
  margin: 0 auto 1.25rem;
}
.wpm-hero-sub {
  font-family: var(--font-body);
  font-size: clamp(1rem, 2vw, 1.2rem);
  line-height: 1.6;
  color: #CBD5E1;
  max-width: 38rem;
  margin: 0 auto 2rem;
}
.wpm-hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}
.wpm-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.05rem;
  padding: 0.9rem 1.9rem;
  border-radius: 0.65rem;
  cursor: pointer;
  text-decoration: none;
  border: 2px solid transparent;
}
.wpm-btn-primary {
  background-color: var(--wpm-orange);
  color: #ffffff;
  box-shadow: 0 6px 16px rgba(249, 115, 22, 0.35);
}
.wpm-btn-primary:hover { background-color: var(--wpm-orange-dark); }
.wpm-btn-secondary {
  background-color: transparent;
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.35);
}
.wpm-btn-secondary:hover { border-color: #ffffff; background-color: rgba(255, 255, 255, 0.08); }

/* Social proof strip */
.wpm-socialproof {
  text-align: center;
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--wpm-navy);
  background-color: #EFF6FF;
  border-bottom: 1px solid #DBEAFE;
  padding: 0.9rem 1rem;
  font-size: 0.95rem;
  margin: 0;
}
.wpm-socialproof span { color: var(--wpm-blue); }

/* How it works */
.wpm-howitworks {
  padding: 3.5rem 1.5rem;
  text-align: center;
  background-color: #ffffff;
}
.wpm-howitworks-heading {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  color: var(--wpm-navy);
  margin-bottom: 0.5rem;
}
.wpm-howitworks-tagline {
  color: var(--wpm-gray);
  font-size: 1.05rem;
  margin-bottom: 2.5rem;
}
.wpm-howitworks-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  max-width: 64rem;
  margin: 0 auto;
}
@media (max-width: 768px) {
  .wpm-howitworks-grid { grid-template-columns: 1fr; }
}
.wpm-howitworks-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.9rem;
}
.wpm-howitworks-icon {
  width: 4rem;
  height: 4rem;
  border-radius: 999px;
  background-color: #EFF6FF;
  color: var(--wpm-blue);
  display: flex;
  align-items: center;
  justify-content: center;
}
.wpm-howitworks-step h3 {
  font-size: 1.15rem;
  margin: 0;
}
.wpm-howitworks-step p {
  color: var(--wpm-gray);
  font-size: 0.95rem;
  margin: 0;
  max-width: 16rem;
}

/* Search card: make it the visual star of the homepage */
.wpm-search-card {
  border: 2px solid var(--wpm-blue) !important;
  box-shadow: 0 10px 30px rgba(37, 99, 235, 0.18) !important;
}
.wpm-search-card select,
.wpm-search-card input[type="text"],
.wpm-search-card input[type="date"] {
  font-size: 1.05rem !important;
  padding-top: 0.65rem !important;
  padding-bottom: 0.65rem !important;
}

@media (max-width: 640px) {
  .wpm-hero { padding: 2.75rem 1.25rem; border-radius: 0; }
}

/* The old homepage "app-cards" block just showed 3 unrelated blog placeholder
   entries, replaced below with a real interactive map. Hidden here rather than
   removed since other pages still use app-cards for legitimate meetup lists. */
app-landingpage app-cards {
  display: none !important;
}

/* Intro section (Strapi-driven copy + logo image). This section shares the ".h-300-px"
   fixed-height utility class with other unrelated parts of the page, so we can't touch
   that class globally — instead .wpm-intro-section is added via JS to this one instance
   only, letting the copy grow to a readable size and giving the logo a proper showcase. */
.wpm-intro-section {
  height: auto !important;
  min-height: 0 !important;
  padding: 3.5rem 1.5rem !important;
  background-color: #ffffff !important;
}
.wpm-intro-section > div {
  align-items: center;
}
.wpm-intro-text-col p {
  font-size: 1.2rem !important;
  line-height: 1.75 !important;
  color: var(--wpm-navy);
  font-family: var(--font-body);
}
.wpm-intro-image-col {
  display: flex !important;
  align-items: center;
  justify-content: center;
  padding: 1.5rem !important;
}
.wpm-intro-image-col img {
  max-width: 100%;
  height: auto;
  border-radius: 1rem;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.14);
}
@media (max-width: 767px) {
  .wpm-intro-section { padding: 2.5rem 1.25rem !important; }
  .wpm-intro-text-col p { font-size: 1.05rem !important; }
}

.wpm-map-section {
  padding: 3rem 1.5rem 3.5rem;
  text-align: center;
  background-color: #F8FAFC;
}
.wpm-map-heading {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  color: var(--wpm-navy);
  margin-bottom: 0.5rem;
}
.wpm-map-tagline {
  color: var(--wpm-gray);
  font-size: 1.05rem;
  margin-bottom: 2rem;
}
.wpm-map-canvas {
  max-width: 72rem;
  height: 480px;
  margin: 0 auto;
  border-radius: 0.75rem;
  overflow: hidden;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.12);
}
@media (max-width: 640px) {
  .wpm-map-canvas { height: 340px; }
}

/* ---- Contact Us: reCAPTCHA (replaces the old math security question) ---- */
.wpm-recaptcha-wrap {
  margin: 0 0 1.25rem;
}
.wpm-recaptcha-hint {
  color: #DC2626;
  font-size: 0.85rem;
  margin: 0.5rem 0 0;
}
