/*
  Custom styles live here.
  Keep Bootstrap as the source of truth for layout and components, and only override when needed.
*/

:root {
  --brand: #4f46e5;
}

/* Navbar brand logo */
.navbar-logo {
  height: 34px;
  width: auto;
  max-width: 180px;
  object-fit: contain;
  display: block;
}

@media (max-width: 576px) {
  .navbar-logo {
    height: 28px;
    max-width: 150px;
  }
}

/* Hero title logo (replaces the H1 text) */
.hero-title {
  line-height: 1;
}

.hero-logo {
  display: block;
  width: min(420px, 100%);
  height: auto;
  max-height: 120px;
  object-fit: contain;
}

@media (max-width: 576px) {
  .hero-logo {
    max-height: 96px;
    width: min(320px, 100%);
  }
}

/* Premium but not oversized primary CTA */
.play-game-btn {
  border: 0;
  background-image: linear-gradient(135deg, #4f46e5 0%, #0d6efd 45%, #10b981 100%);
  box-shadow: 0 10px 22px rgba(79, 70, 229, 0.22);
}

.play-game-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 28px rgba(79, 70, 229, 0.28);
}

.play-game-btn:focus-visible {
  box-shadow: 0 0 0 0.25rem rgba(79, 70, 229, 0.25), 0 14px 28px rgba(79, 70, 229, 0.28);
}

.hero {
  background: radial-gradient(1200px circle at 10% 10%, rgba(79, 70, 229, 0.12), transparent 50%),
    radial-gradient(900px circle at 90% 30%, rgba(16, 185, 129, 0.14), transparent 55%);
}

.feature-tile {
  border: 1px solid rgba(0, 0, 0, 0.08);
  transition: transform 140ms ease, box-shadow 140ms ease;
}

.feature-tile:hover {
  transform: translateY(-2px);
}

.screenshot {
  aspect-ratio: 16 / 10;
  object-fit: cover;
  background: linear-gradient(135deg, rgba(79, 70, 229, 0.15), rgba(16, 185, 129, 0.18));
}

.hero-media-card {
  /* Keeps the right column from feeling too tall/empty on wide screens */
  min-height: 420px;
}

.games-played-pill {
  display: inline-block;
  padding: 0.45rem 0.85rem;
  border: 1px solid rgba(79, 70, 229, 0.2);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  color: rgba(17, 24, 39, 0.75);
  font-size: 0.9rem;
  font-weight: 600;
}

.hero-highlights .highlight-chip {
  border: 1px solid rgba(0, 0, 0, 0.08);
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(6px);
  border-radius: 0.75rem;
  padding: 0.75rem 0.9rem;
}

/* If screenshots are missing, we still want the carousel area to look deliberate. */
.carousel .carousel-item {
  background: linear-gradient(135deg, rgba(79, 70, 229, 0.12), rgba(16, 185, 129, 0.12));
}

.carousel .carousel-item img.screenshot {
  display: block;
}

.divider-depth {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(79, 70, 229, 0.08), rgba(16, 185, 129, 0.08));
}

/* Divider line between columns inside the gradient section */
.divider-col-right {
  position: relative;
}

/* Match the translucent card style used by step/feature tiles to keep both columns cohesive */
.divider-col-right .right-card {
  border: 1px solid rgba(0, 0, 0, 0.08);
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(6px);
  border-radius: 0.9rem;
  box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
}

.divider-col-right .right-card iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

/* Demo video: keep full width but reduce height on larger screens. */
.demo-video-frame {
  width: 100%;
  max-width: 100%;
  aspect-ratio: 2.2 / 1;
  min-height: 240px;
  background: rgba(15, 23, 42, 0.06);
  position: relative;
  margin: 0 auto;
}

.demo-video-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

@media (max-width: 768px) {
  .demo-video-frame {
    aspect-ratio: 16 / 9;
    min-height: 200px;
  }
}

/* Smaller, cleaner icons for the right-column meta cards */
.meta-icon {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  background: linear-gradient(135deg, rgba(79, 70, 229, 0.18), rgba(16, 185, 129, 0.18));
  border: 1px solid rgba(0, 0, 0, 0.08);
  color: rgba(17, 24, 39, 0.75);
}

.meta-icon .bi {
  font-size: 1.15rem;
  line-height: 1;
}

/* Small icon badge for headings inside content cards (Research page, etc.) */
.card-icon {
  width: 44px;
  height: 44px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  background: linear-gradient(135deg, rgba(79, 70, 229, 0.16), rgba(16, 185, 129, 0.16));
  border: 1px solid rgba(0, 0, 0, 0.08);
  color: rgba(17, 24, 39, 0.75);
}

.card-icon .bi {
  font-size: 1.2rem;
  line-height: 1;
}

/* Consent modal styling (matches the site's glass cards) */
.custom-consent-modal {
  border: 1px solid rgba(0, 0, 0, 0.1);
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(10px);
  border-radius: 1rem;
  overflow: hidden;
}

.custom-consent-modal .modal-header,
.custom-consent-modal .modal-footer {
  background: rgba(255, 255, 255, 0.7);
}

.consent-body {
  max-height: min(62vh, 520px);
  overflow: auto;
}

.consent-terms {
  margin-top: 1rem;
  padding: 0.9rem 1rem;
  border-radius: 0.9rem;
  border: 1px solid rgba(0, 0, 0, 0.08);
  background: rgba(255, 255, 255, 0.98);
  max-height: 260px;
  overflow: auto;
}

/* UNT logo inside consent modal: give the white logo background a subtle container so it blends in. */
.consent-logo {
  display: flex;
  justify-content: center;
  margin-bottom: 0.6rem;
}

.consent-logo-img {
  max-width: min(220px, 70%);
  max-height: 72px;
  height: auto;
  padding: 0.15rem 0.25rem;
  border-radius: 0.6rem;
  background: transparent;
  
}

.consent-btn {
  min-width: 120px;
  border-radius: 999px;
}

/* Small follow-up message shown after Yes/No, before continuing. */
.consent-followup-dialog {
  max-width: min(560px, calc(100vw - 1.5rem));
}

.consent-followup-modal {
  border: 1px solid rgba(0, 0, 0, 0.1);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  border-radius: 0.9rem;
  overflow: hidden;
}

.consent-followup-modal .modal-header,
.consent-followup-modal .modal-footer {
  background: rgba(255, 255, 255, 0.75);
}

.consent-followup-modal .modal-title {
  font-size: 1.02rem;
  font-weight: 600;
}

.consent-followup-modal .modal-body {
  padding-top: 0.9rem;
  padding-bottom: 0.9rem;
}

@media (max-width: 575.98px) {
  .consent-followup-dialog {
    max-width: calc(100vw - 1rem);
    margin: 0.5rem auto;
  }

  .consent-followup-modal .modal-title {
    font-size: 0.98rem;
  }
}

@media (min-width: 992px) {
  .divider-col-right {
    padding-left: 1.5rem;
  }

  .divider-col-right::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.75rem;
    bottom: 0.75rem;
    width: 1px;
    /* Section background is light, so a subtle dark divider reads better */
    background: rgba(17, 24, 39, 0.14);
  }
}

@media (max-width: 991.98px) {
  .divider-col-right {
    margin-top: 1rem;
    padding-top: 1.25rem;
    border-top: 1px solid rgba(255, 255, 255, 0.25);
  }
}

.who-list li {
  position: relative;
  padding-left: 1.1rem;
  margin-bottom: 0.4rem;
  color: #495057;
}

.who-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 999px;
  background: rgba(13, 110, 253, 0.35);
}

.divider-depth::before {
  content: "";
  position: absolute;
  inset: -20% -10% -20% -10%;
  background:
    radial-gradient(700px circle at 20% 30%, rgba(79, 70, 229, 0.18), transparent 55%),
    radial-gradient(900px circle at 80% 40%, rgba(16, 185, 129, 0.16), transparent 60%);
  filter: blur(2px);
  pointer-events: none;
}

.divider-depth > .container {
  position: relative;
  z-index: 1;
}

.icon-pill {
  width: 44px;
  height: 44px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  font-weight: 700;
  color: white;
  background: linear-gradient(135deg, rgba(79, 70, 229, 1), rgba(16, 185, 129, 1));
}

.step-tile {
  border: 1px solid rgba(0, 0, 0, 0.08);
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(6px);
  border-radius: 0.9rem;
  padding: 0.9rem 0.95rem;
}

.step-number {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  font-weight: 800;
  margin-bottom: 0.6rem;
  color: white;
  background: linear-gradient(135deg, rgba(79, 70, 229, 1), rgba(16, 185, 129, 1));
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08);
}

.feature-row {
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
  border: 1px solid rgba(0, 0, 0, 0.08);
  background: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(6px);
  border-radius: 0.9rem;
  padding: 0.8rem 0.9rem;
}

.feature-icon {
  width: 36px;
  height: 36px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid rgba(0, 0, 0, 0.08);
  line-height: 1;
}

.navbar-brand {
  letter-spacing: 0.2px;
}

/* Slightly nicer code styling */
code {
  background: rgba(0, 0, 0, 0.04);
  padding: 0.15rem 0.3rem;
  border-radius: 0.35rem;
}

.site-footer .footer-links a {
  color: rgba(0, 0, 0, 0.65);
  text-decoration: none;
}

.site-footer .footer-links a:hover {
  color: rgba(0, 0, 0, 0.9);
  text-decoration: underline;
}

.team-avatar {
  width: 96px;
  height: 96px;
  border-radius: 999px;
  object-fit: cover;
  border: 3px solid rgba(255, 255, 255, 0.9);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
}

/* When #team .card-body becomes a flex column, inline images can lose their
   text-align centering behavior. Force the avatar to center in its card. */
#team .team-avatar {
  display: block;
  margin-left: auto;
  margin-right: auto;
}

/* Team cards: keep CTA buttons aligned across cards.
   The enclosing .card already uses .h-100, so making the body a flex-column lets us
   push the CTA to the bottom with Bootstrap's .mt-auto utility. */
#team .card-body {
  display: flex;
  flex-direction: column;
}

#team .team-card-cta {
  padding-top: 0.25rem;
}
