/* ==========================================================================
   Adentra AI — UI Components (warm light theme)
   ========================================================================== */

/* 1. Card container */
.glass-panel {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-normal), border-color var(--transition-normal), box-shadow var(--transition-normal);
}
.glass-panel:hover {
  transform: translateY(-4px);
  border-color: var(--border-medium);
  box-shadow: var(--shadow-md);
}

/* 2. Buttons — warm charcoal primary, amber life on hover */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0.85rem 1.7rem;
  border-radius: var(--radius-pill);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast), background var(--transition-fast), border-color var(--transition-fast);
  border: 1px solid transparent;
  outline: none;
  position: relative;
  text-decoration: none;
  white-space: nowrap;
}

.btn-primary {
  background: var(--text-primary);
  color: #fdf8ee;
  box-shadow: 0 6px 18px rgba(36, 29, 20, 0.18);
}
.btn-primary:hover {
  transform: translateY(-2px);
  background: #37291a;
  box-shadow: 0 10px 26px rgba(36, 29, 20, 0.26);
}
.btn-primary:active { transform: translateY(0); box-shadow: 0 4px 12px rgba(36, 29, 20, 0.16); }

/* Amber variant for high-emphasis marketing CTAs */
.btn-accent {
  background: var(--amber-grad);
  color: #3a2708;
  box-shadow: 0 8px 22px var(--amber-glow);
}
.btn-accent:hover {
  transform: translateY(-2px);
  filter: brightness(1.04);
  box-shadow: 0 12px 30px var(--amber-glow);
}

.btn-secondary {
  background: var(--bg-surface);
  color: var(--text-primary);
  border: 1px solid var(--border-medium);
}
.btn-secondary:hover {
  background: var(--bg-alt);
  border-color: var(--amber-2);
  color: var(--amber-3);
  transform: translateY(-2px);
}
.btn-secondary:active { transform: translateY(0); }

/* 3. Software window mockups (light) */
.software-window {
  border-radius: var(--radius-md);
  background: var(--bg-surface);
  border: 1px solid var(--border-medium);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.window-header {
  height: 38px;
  background: var(--bg-alt);
  border-bottom: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1rem;
  user-select: none;
}

.window-controls { display: flex; gap: 6px; }

.window-dot {
  width: 9px; height: 9px;
  border-radius: 50%;
  background: rgba(40, 31, 20, 0.14);
}
.window-dot.red { background: #e8896b; }
.window-dot.yellow { background: #e7b64a; }
.window-dot.green { background: #6fae7f; }

.window-title {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-muted);
  font-weight: 500;
  letter-spacing: 0.02em;
}

.window-body {
  padding: 1.25rem;
  flex-grow: 1;
  overflow: auto;
  color: var(--text-primary);
}

/* 4. Terminal mockup — warm espresso, never navy */
.terminal-window {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  line-height: 1.55;
  color: var(--cream-text);
  background: var(--espresso);
  border: 1px solid var(--espresso-deep);
}
.terminal-line { margin-bottom: 4px; }
.terminal-prompt { color: var(--amber-1); }
.terminal-cursor {
  display: inline-block;
  width: 8px; height: 15px;
  background: var(--amber-1);
  animation: cursor-blink 1.2s infinite steps(2);
  vertical-align: middle;
  margin-left: 4px;
}
@keyframes cursor-blink { 0%, 100% { opacity: 0; } 50% { opacity: 1; } }

/* 5. Accordion */
.accordion { display: flex; flex-direction: column; gap: 0.75rem; width: 100%; }

.accordion-item {
  border: 1px solid var(--border-light);
  background: var(--bg-surface);
  border-radius: var(--radius-md);
  padding: 0 1.5rem;
  box-shadow: var(--shadow-sm);
  transition: border-color var(--transition-normal), box-shadow var(--transition-normal);
}
.accordion-item.active {
  border-color: var(--amber-2);
  box-shadow: var(--shadow-md);
}

.accordion-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.3rem 0;
  cursor: pointer;
  user-select: none;
}
.accordion-title {
  font-family: var(--font-display);
  font-size: 1.12rem;
  font-weight: 600;
  color: var(--text-primary);
}
.accordion-header:hover .accordion-title { color: var(--amber-3); }

.accordion-icon {
  font-size: 1.35rem;
  color: var(--text-muted);
  transition: transform var(--transition-normal), color var(--transition-normal);
  line-height: 1;
}
.accordion-item.active .accordion-icon { transform: rotate(45deg); color: var(--amber-3); }

.accordion-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--transition-normal) ease-in-out, opacity var(--transition-normal);
  opacity: 0;
}
.accordion-item.active .accordion-body { max-height: 250px; opacity: 1; padding-bottom: 1.3rem; }

.accordion-content { color: var(--text-secondary); font-size: 0.95rem; line-height: 1.65; }

/* 6. Command palette */
.command-palette {
  position: fixed; inset: 0;
  width: 100vw; height: 100vh;
  background: rgba(40, 31, 20, 0.18);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 999;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 15vh;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-fast);
}
.command-palette.active { opacity: 1; pointer-events: auto; }

.command-box {
  width: 100%;
  max-width: 640px;
  background: var(--bg-surface);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  transform: scale(0.96);
  transition: transform var(--transition-fast);
}
.command-palette.active .command-box { transform: scale(1); }

.command-input-container {
  display: flex;
  align-items: center;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--border-light);
}
.command-input-container svg { color: var(--text-muted); margin-right: 12px; }

.command-input {
  background: transparent;
  border: none;
  outline: none;
  color: var(--text-primary);
  font-size: 1rem;
  width: 100%;
  font-family: var(--font-sans);
}
.command-input::placeholder { color: var(--text-muted); }

.command-results { max-height: 320px; overflow-y: auto; padding: 0.5rem; }

.command-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background var(--transition-fast);
}
.command-item:hover, .command-item.selected { background: var(--bg-alt); }

.command-item-left {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.95rem;
  color: var(--text-primary);
}

.command-shortcut {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-muted);
  background: var(--bg-inset);
  padding: 2px 6px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-light);
}

/* 7. Status badges */
.badge-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}
.badge-status.active { background: var(--sage-soft); color: var(--sage); }
.badge-status.processing { background: var(--amber-soft); color: var(--amber-3); }
.badge-status.pending { background: #fbeede; color: var(--accent-orange); }

/* 8. Section eyebrow pill (used across sections as .hero-badge) */
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 15px;
  border-radius: var(--radius-pill);
  background: var(--amber-soft);
  border: 1px solid rgba(207, 138, 28, 0.22);
  font-family: var(--font-display);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--amber-3);
}
.hero-badge-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--amber-2);
  box-shadow: 0 0 0 4px var(--amber-glow);
  animation: badge-pulse 2s infinite;
}
@keyframes badge-pulse {
  0%, 100% { box-shadow: 0 0 0 3px rgba(207, 138, 28, 0.18); }
  50% { box-shadow: 0 0 0 6px rgba(207, 138, 28, 0.05); }
}

/* Legacy alias */
.badge-pill { }
