/* AICoach — matches GKZiD landing tokens; load after ../style.css */

.coach-main {
  position: relative;
  isolation: isolate;
  max-width: 560px;
  margin: 0 auto;
  padding: 2rem 1.5rem 3rem;
  text-align: center;
  border-radius: 28px;
  animation: coachMainGkHalo 2.4s ease-in-out infinite;
}

/* Soft brand glow behind the hero — pulses like Go Live, in GK green */
.coach-main::before {
  content: "";
  position: absolute;
  left: 50%;
  top: -12%;
  transform: translateX(-50%);
  width: min(120%, 520px);
  height: min(52vw, 300px);
  max-height: 320px;
  background: radial-gradient(
    ellipse 75% 55% at 50% 42%,
    rgba(0, 255, 157, 0.14) 0%,
    rgba(0, 255, 157, 0.05) 42%,
    transparent 68%
  );
  pointer-events: none;
  z-index: -1;
  animation: coachGkAmbientPulse 2.4s ease-in-out infinite;
}

.coach-main h1 {
  font-family: "Syne", system-ui, sans-serif;
  font-weight: 800;
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  letter-spacing: -0.02em;
  margin: 0 0 0.75rem;
  background: linear-gradient(135deg, #fff 0%, var(--gk) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: coachTitleGkGlow 2.4s ease-in-out infinite;
}

@keyframes coachMainGkHalo {
  0%,
  100% {
    box-shadow:
      0 0 0 0 rgba(0, 255, 157, 0),
      inset 0 0 0 1px rgba(0, 255, 157, 0.07);
  }
  50% {
    box-shadow:
      0 0 24px 4px rgba(0, 255, 157, 0.16),
      0 0 52px 8px rgba(0, 255, 157, 0.07),
      inset 0 0 0 1px rgba(0, 255, 157, 0.18);
  }
}

@keyframes coachGkAmbientPulse {
  0%,
  100% {
    opacity: 0.82;
    transform: translateX(-50%) scale(1);
  }
  50% {
    opacity: 1;
    transform: translateX(-50%) scale(1.05);
  }
}

@keyframes coachTitleGkGlow {
  0%,
  100% {
    filter: drop-shadow(0 0 18px rgba(0, 255, 157, 0.22)) drop-shadow(0 0 40px rgba(0, 255, 157, 0.08));
  }
  50% {
    filter: drop-shadow(0 0 28px rgba(0, 255, 157, 0.45)) drop-shadow(0 0 62px rgba(0, 255, 157, 0.15));
  }
}

@media (prefers-reduced-motion: reduce) {
  .coach-main {
    animation: none;
    box-shadow: inset 0 0 0 1px rgba(0, 255, 157, 0.12);
  }

  .coach-main::before {
    animation: none;
    opacity: 1;
    transform: translateX(-50%) scale(1);
  }

  .coach-main h1 {
    animation: none;
    filter: drop-shadow(0 0 22px rgba(0, 255, 157, 0.28)) drop-shadow(0 0 48px rgba(0, 255, 157, 0.1));
  }
}

.coach-lead {
  margin: 0 0 1.5rem;
  max-width: 42ch;
  margin-left: auto;
  margin-right: auto;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.55;
}

.coach-suggestions {
  margin-bottom: 1.25rem;
  text-align: left;
}

.coach-suggestion {
  background: rgba(255, 255, 255, 0.04);
  padding: 14px 18px;
  margin: 10px 0;
  border-radius: 14px;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  border: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.9375rem;
  color: var(--text);
}

.coach-suggestion:hover,
.coach-suggestion:focus-visible {
  background: rgba(0, 255, 157, 0.08);
  border-color: rgba(0, 255, 157, 0.35);
  box-shadow: 0 0 24px rgba(0, 255, 157, 0.12);
  outline: none;
}

.coach-agreement {
  margin: 1.25rem auto;
  text-align: center;
  color: var(--muted);
  font-size: 0.875rem;
}

.coach-agreement label {
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.coach-agreement input {
  accent-color: var(--gk);
  width: 1rem;
  height: 1rem;
}

.coach-chat {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  width: 100%;
  max-width: 100%;
  margin-bottom: 1rem;
  justify-content: center;
}

.coach-chat input {
  flex: 1 1 200px;
  min-width: 0;
  padding: 14px 16px;
  background: var(--panel);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text);
  border-radius: 14px;
  outline: none;
  font-family: inherit;
  font-size: 0.9375rem;
}

.coach-chat input:focus {
  border-color: rgba(0, 255, 157, 0.45);
  box-shadow: 0 0 0 2px rgba(0, 255, 157, 0.12);
}

.coach-chat button {
  padding: 14px 22px;
  background: linear-gradient(135deg, var(--gk), #00c988);
  color: #050608;
  border: none;
  cursor: pointer;
  border-radius: 14px;
  font-family: "Syne", system-ui, sans-serif;
  font-weight: 800;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: transform 0.12s ease, box-shadow 0.15s ease;
}

.coach-chat button:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 24px rgba(0, 255, 157, 0.25);
}

.coach-response {
  width: 100%;
  max-width: 100%;
  min-height: 88px;
  background: rgba(0, 0, 0, 0.35);
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 18px;
  margin-bottom: 1rem;
  text-align: left;
  line-height: 1.55;
  font-size: 0.9375rem;
  color: rgba(234, 240, 255, 0.88);
}

.coach-footnote {
  margin: 0;
  font-size: 0.75rem;
  color: var(--muted);
  line-height: 1.45;
}
