/* Annoying Demo - Hello AI Personal theme */
@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;600;700;800&display=swap");

:root {
  --bg: #0a1628;
  --panel: rgba(15, 30, 50, 0.7);
  --panel-border: rgba(59, 130, 246, 0.25);
  --accent: #0ea5e9;
  --accent-2: #60a5fa;
  --text: #e0e7ff;
  --muted: #93c5fd;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Inter", system-ui, sans-serif;
  background: linear-gradient(135deg, #020617 0%, #0f172a 50%, #1e293b 100%);
  background-attachment: fixed;
  color: var(--text);
  min-height: 100vh;
  line-height: 1.5;
}

.demo-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.5rem 1.5rem 0;
  margin-bottom: 1rem;
}

.demo-header__brand {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.logo-animate {
  width: 3rem;
  height: 3rem;
  color: #3b82f6;
  filter: drop-shadow(0 0 18px rgba(59, 130, 246, 0.3));
  animation: logo-spin-pulse 3s ease-in-out infinite;
}

@keyframes logo-spin-pulse {
  0% { transform: scale(1) rotate(0deg); }
  12% { transform: scale(1.05) rotate(360deg); }
  20% { transform: scale(1.02) rotate(220deg); }
  50% { transform: scale(1.15) rotate(174deg); }
  80% { transform: scale(1.12) rotate(186deg); }
  100% { transform: scale(1) rotate(180deg); }
}

.brand-stack {
  display: flex;
  flex-direction: column;
  gap: 0.125rem;
  line-height: 1;
}

.brand-title--hello-ai {
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text);
}

.brand-title-accent {
  color: #3b82f6;
  text-shadow: 0 0 20px rgba(59, 130, 246, 0.5);
}

.brand-subtitle {
  font-size: 0.55em;
  font-weight: 600;
  letter-spacing: 0.5px;
  color: #3b82f6;
  text-transform: uppercase;
}

.brand-subtitle--demo {
  font-size: 0.65em;
}

.demo-container {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 1.5rem 2rem;
}

.demo-hero {
  margin-bottom: 2rem;
}

.demo-hero h1 {
  font-size: 1.5rem;
  font-weight: 800;
  margin: 0 0 0.5rem;
}

.demo-hero p {
  color: var(--muted);
  margin: 0 0 1rem;
  font-size: 0.95rem;
}

.demo-panel {
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: 12px;
  padding: 1.25rem;
  margin-bottom: 1.5rem;
  backdrop-filter: blur(10px);
}

.demo-panel h2 {
  font-size: 1rem;
  font-weight: 700;
  margin: 0 0 1rem;
  color: var(--text);
}

.demo-form {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: flex-end;
}

.demo-form label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
  color: var(--muted);
}

.demo-form input {
  width: 100%;
  min-width: 140px;
  padding: 0.5rem 0.75rem;
  border: 1px solid rgba(59, 130, 246, 0.3);
  border-radius: 8px;
  background: rgba(15, 30, 50, 0.6);
  color: var(--text);
  font-size: 0.95rem;
}

.demo-form input:focus {
  outline: 2px solid #3b82f6;
  outline-offset: 2px;
}

.demo-form input.error {
  border-color: #ef4444;
}

.demo-form .field {
  flex: 1;
  min-width: 120px;
}

.webhook-overrides-panel .webhook-overrides-intro {
  color: var(--muted);
  font-size: 0.9rem;
  margin: 0 0 1rem;
}

.webhook-overrides-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.webhook-overrides-form .field {
  flex: none;
  width: 100%;
  min-width: 100%;
}

.webhook-overrides-form label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
  color: var(--muted);
}

.webhook-overrides-form input,
.webhook-overrides-form textarea {
  width: 100%;
  padding: 0.5rem 0.75rem;
  border: 1px solid rgba(59, 130, 246, 0.3);
  border-radius: 8px;
  background: rgba(15, 30, 50, 0.6);
  color: var(--text);
  font-size: 0.95rem;
  font-family: inherit;
}

.webhook-overrides-form textarea {
  resize: vertical;
  min-height: 4em;
}

.webhook-overrides-form .field-hint {
  font-size: 0.8rem;
  color: var(--muted);
  margin: 0.25rem 0 0;
}

.webhook-overrides-form .copyable-example {
  cursor: pointer;
  padding: 0.15rem 0.35rem;
  border-radius: 4px;
  background: rgba(59, 130, 246, 0.15);
  font-family: inherit;
  transition: background 0.15s;
}
.webhook-overrides-form .copyable-example:hover {
  background: rgba(59, 130, 246, 0.25);
}

.demo-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  margin-top: 1rem;
}

.btn {
  padding: 0.6rem 1.25rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  border: none;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-primary {
  background: linear-gradient(135deg, #3b82f6, #60a5fa);
  color: white;
  box-shadow: 0 4px 15px -3px rgba(59, 130, 246, 0.4);
}

.btn-primary:hover {
  filter: brightness(1.1);
  transform: translateY(-1px);
}

.btn-secondary {
  background: rgba(59, 130, 246, 0.2);
  color: var(--muted);
  border: 1px solid rgba(59, 130, 246, 0.3);
}

.btn-secondary:hover {
  background: rgba(59, 130, 246, 0.3);
  color: var(--text);
}

.demo-number {
  font-size: 1.25rem;
  font-weight: 700;
  color: #3b82f6;
  letter-spacing: 0.02em;
}

.demo-number-block {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.copy-btn {
  padding: 0.4rem 0.75rem;
  font-size: 0.85rem;
}

/* Desktop: no call button, show copy. Mobile: show call button */
.demo-call-desktop {
  display: none;
}

.demo-call-mobile {
  display: inline-flex;
}

@media (min-width: 769px) {
  .demo-call-desktop {
    display: inline-flex;
  }
  .demo-call-mobile {
    display: none;
  }
}

.demo-grid {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 769px) {
  .demo-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.events-list {
  list-style: none;
  margin: 0;
  padding: 0;
  max-height: 300px;
  overflow-y: auto;
}

.events-list li {
  padding: 0.5rem 0.75rem;
  border-bottom: 1px solid rgba(59, 130, 246, 0.15);
  font-size: 0.9rem;
}

.events-list li:last-child {
  border-bottom: none;
}

.events-list .event-action {
  font-weight: 700;
  color: #3b82f6;
}

.events-list .event-time {
  font-size: 0.8rem;
  color: var(--muted);
}

.empty-state {
  color: var(--muted);
  font-size: 0.95rem;
  padding: 2rem;
  text-align: center;
}

.empty-state .demo-number {
  display: block;
  margin-top: 0.5rem;
}

.form-error {
  font-size: 0.85rem;
  color: #ef4444;
  margin-top: 0.25rem;
}
