/* ============================================================
   GCG EMAIL CAPTURE WIDGET
   Renders above the daily synthesis block on index.html.
   ============================================================ */

#gcg-email-capture {
  max-width: 720px;
  margin: 0 auto 32px;
  padding: 0 16px;
}

.gcg-ec-card {
  position: relative;
  background: linear-gradient(135deg, #0f1a0f 0%, #0a0e13 50%, #1a0a00 100%);
  border-radius: 16px;
  padding: 36px 40px;
  border: 1px solid rgba(245, 158, 11, 0.2);
  transition: border-color 320ms ease, box-shadow 320ms ease;
  overflow: hidden;
}

.gcg-ec-card::before {
  /* Gradient glow border on hover — pseudo-element trick */
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: 18px;
  background: linear-gradient(135deg, #f59e0b, #ef4444, #f59e0b);
  opacity: 0;
  transition: opacity 320ms ease;
  z-index: 0;
}

.gcg-ec-card::after {
  /* Inner background mask to show just the border gradient */
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 16px;
  background: linear-gradient(135deg, #0f1a0f 0%, #0a0e13 50%, #1a0a00 100%);
  z-index: 1;
}

.gcg-ec-card:hover::before {
  opacity: 1;
}

.gcg-ec-card > * {
  position: relative;
  z-index: 2;
}

/* Headline */
.gcg-ec-headline {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: clamp(20px, 4vw, 28px);
  font-weight: 800;
  color: #f0f6fc;
  margin: 0 0 10px;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.gcg-ec-headline span {
  background: linear-gradient(90deg, #f59e0b, #ff6b35);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Subline */
.gcg-ec-subline {
  font-size: 14px;
  color: #8b949e;
  margin: 0 0 24px;
  line-height: 1.55;
}

/* Form row */
.gcg-ec-form {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.gcg-ec-input {
  flex: 1 1 260px;
  background: rgba(22, 27, 34, 0.9);
  border: 1px solid rgba(48, 54, 61, 0.9);
  border-radius: 8px;
  padding: 12px 16px;
  font-size: 14px;
  color: #e6edf3;
  outline: none;
  transition: border-color 200ms ease, box-shadow 200ms ease;
  font-family: inherit;
}

.gcg-ec-input::placeholder {
  color: #484f58;
}

.gcg-ec-input:focus {
  border-color: rgba(245, 158, 11, 0.6);
  box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.12);
}

.gcg-ec-btn {
  flex: 0 0 auto;
  background: linear-gradient(135deg, #f59e0b 0%, #ef4444 100%);
  color: #0a0a0a;
  border: none;
  border-radius: 8px;
  padding: 12px 24px;
  font-size: 14px;
  font-weight: 800;
  font-family: inherit;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: opacity 200ms ease, transform 150ms ease;
  white-space: nowrap;
}

.gcg-ec-btn:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}

.gcg-ec-btn:active {
  transform: translateY(0);
  opacity: 1;
}

.gcg-ec-btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
}

/* Social proof */
.gcg-ec-proof {
  margin-top: 14px;
  font-size: 12px;
  color: #6e7681;
  display: flex;
  align-items: center;
  gap: 6px;
}

.gcg-ec-proof-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 6px #22c55e;
  animation: gcg-ec-pulse 2s ease-in-out infinite;
  flex-shrink: 0;
}

@keyframes gcg-ec-pulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.4; }
}

/* Status messages */
.gcg-ec-status {
  margin-top: 16px;
  padding: 12px 16px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  display: none;
  align-items: center;
  gap: 10px;
}

.gcg-ec-status.visible {
  display: flex;
}

.gcg-ec-status.success {
  background: rgba(34, 197, 94, 0.12);
  border: 1px solid rgba(34, 197, 94, 0.3);
  color: #4ade80;
}

.gcg-ec-status.info {
  background: rgba(14, 165, 233, 0.10);
  border: 1px solid rgba(14, 165, 233, 0.25);
  color: #38bdf8;
}

.gcg-ec-status.error {
  background: rgba(239, 68, 68, 0.10);
  border: 1px solid rgba(239, 68, 68, 0.25);
  color: #f87171;
}

/* Success / replaced state */
.gcg-ec-done {
  text-align: center;
  padding: 24px 0 8px;
}

.gcg-ec-done-icon {
  font-size: 40px;
  display: block;
  margin-bottom: 12px;
}

.gcg-ec-done-msg {
  font-size: 18px;
  font-weight: 700;
  color: #4ade80;
}

/* Validation error inline */
.gcg-ec-input.invalid {
  border-color: rgba(239, 68, 68, 0.6);
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.12);
}

@media (max-width: 600px) {
  .gcg-ec-card {
    padding: 24px 20px;
  }

  .gcg-ec-form {
    flex-direction: column;
  }

  .gcg-ec-btn {
    width: 100%;
    text-align: center;
    justify-content: center;
  }
}
