/* Componentes reutilizaveis — Luna AI */

/* ---------- Glass Card ---------- */
.glass-card {
  background: var(--bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--spacing-xl);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: var(--shadow-card);
  transition: transform var(--transition-normal), border-color var(--transition-normal);
}

.glass-card:hover {
  transform: translateY(-4px);
  border-color: rgba(102, 126, 234, 0.3);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--spacing-sm);
  padding: 14px 28px;
  border-radius: var(--radius-full);
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all var(--transition-normal);
  text-decoration: none;
  line-height: 1;
}

.btn-primary {
  background: var(--gradient-primary);
  color: #fff;
  box-shadow: 0 4px 20px rgba(102, 126, 234, 0.3);
}

.btn-primary:hover {
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 6px 30px rgba(102, 126, 234, 0.45);
}

.btn-secondary {
  background: transparent;
  color: var(--color-text);
  border: 1px solid var(--color-border);
}

.btn-secondary:hover {
  color: #fff;
  border-color: var(--color-primary);
  background: rgba(102, 126, 234, 0.1);
}

.btn-sm {
  padding: 10px 20px;
  font-size: 0.875rem;
}

/* ---------- Code Block ---------- */
.code-block {
  background: var(--bg-secondary);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--spacing-md);
  font-family: var(--font-mono);
  font-size: 0.875rem;
  line-height: 1.7;
  color: var(--color-text);
  overflow-x: auto;
  position: relative;
}

.code-block .comment { color: var(--color-text-muted); }
.code-block .command { color: var(--color-accent); }
.code-block .flag { color: var(--color-primary); }
.code-block .string { color: #ffd700; }

.code-block-label {
  position: absolute;
  top: var(--spacing-sm);
  right: var(--spacing-sm);
  font-size: 0.75rem;
  color: var(--color-text-muted);
  font-family: var(--font-sans);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ---------- Terminal Mock ---------- */
.terminal {
  background: var(--bg-secondary);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
}

.terminal-header {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
  padding: 12px var(--spacing-md);
  background: rgba(26, 26, 36, 0.8);
  border-bottom: 1px solid var(--color-border);
}

.terminal-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.terminal-dot.red { background: #ff5f57; }
.terminal-dot.yellow { background: #febc2e; }
.terminal-dot.green { background: #28c840; }

.terminal-title {
  flex: 1;
  text-align: center;
  font-size: 0.8rem;
  color: var(--color-text-muted);
}

.terminal-body {
  padding: var(--spacing-md);
  font-family: var(--font-mono);
  font-size: 0.85rem;
  line-height: 1.8;
}

.terminal-body .prompt {
  color: var(--color-accent);
}

.terminal-body .output {
  color: var(--color-text-muted);
}

.terminal-body .highlight {
  color: var(--color-primary);
}

/* ---------- Chat Mock ---------- */
.chat-mock {
  max-width: 380px;
  width: 100%;
}

.chat-bubble {
  padding: 12px 16px;
  border-radius: var(--radius-lg);
  margin-bottom: var(--spacing-sm);
  font-size: 0.9rem;
  line-height: 1.5;
  max-width: 85%;
  animation: slideUp 0.5s ease forwards;
}

.chat-bubble.user {
  background: var(--gradient-primary);
  color: #fff;
  margin-left: auto;
  border-bottom-right-radius: var(--radius-sm);
}

.chat-bubble.bot {
  background: var(--bg-tertiary);
  color: var(--color-text);
  border-bottom-left-radius: var(--radius-sm);
}

.chat-bubble:nth-child(2) { animation-delay: 0.2s; }
.chat-bubble:nth-child(3) { animation-delay: 0.4s; }
.chat-bubble:nth-child(4) { animation-delay: 0.6s; }
.chat-bubble:nth-child(5) { animation-delay: 0.8s; }

/* ---------- Badge ---------- */
.badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.badge-primary {
  background: rgba(102, 126, 234, 0.15);
  color: var(--color-primary);
}

.badge-accent {
  background: rgba(0, 255, 136, 0.1);
  color: var(--color-accent);
}

/* ---------- Feature Icon ---------- */
.feature-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  background: rgba(102, 126, 234, 0.1);
  font-size: 1.5rem;
  margin-bottom: var(--spacing-md);
  flex-shrink: 0;
}

/* ---------- Step Number ---------- */
.step-number {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--gradient-primary);
  color: #fff;
  font-weight: 700;
  font-size: 1.25rem;
  flex-shrink: 0;
}

/* ---------- Divider ---------- */
.divider {
  height: 1px;
  background: var(--color-border);
  margin: var(--spacing-3xl) 0;
}
