/**
 * Componentes de UI: Navbar, Dropdowns, Botões, Cards de Produto, Terminal & Badges
 */

/* ==========================================================================
   1. NAVBAR & MEGA MENU (Stripe & Linear inspiration)
   ========================================================================== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--nav-height);
  z-index: 100;
  transition: background-color var(--transition-base), border-color var(--transition-base), backdrop-filter var(--transition-base);
  border-bottom: 1px solid transparent;
}

.site-header.scrolled {
  background-color: var(--bg-glass-heavy);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-sm);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  position: relative;
}

.brand-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: -0.03em;
  color: #ffffff;
  z-index: 102;
}

.brand-logo-icon {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #18221c, #0a110d);
  border: 1px solid var(--border-glass);
  box-shadow: 0 0 15px -3px var(--veno-emerald-glow);
  overflow: hidden;
}

.brand-logo-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.brand-name {
  display: flex;
  flex-direction: column;
}

.brand-title {
  line-height: 1;
}

.brand-subtitle {
  font-family: var(--font-mono);
  font-size: 0.55rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--veno-emerald-vibrant);
  margin-top: 2px;
}

/* Nav Menu Links */
.main-nav {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.nav-item {
  position: relative;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.55rem 0.95rem;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-secondary);
  border-radius: var(--radius-sm);
  transition: color var(--transition-fast), background-color var(--transition-fast);
}

.nav-link:hover, .nav-item.active .nav-link {
  color: #ffffff;
  background-color: rgba(255, 255, 255, 0.04);
}

.nav-link svg.chevron {
  width: 12px;
  height: 12px;
  transition: transform var(--transition-fast);
  opacity: 0.7;
}

.nav-item:hover .nav-link svg.chevron {
  transform: rotate(180deg);
}

/* Dropdown Menu Overlay / Flyout */
.dropdown-menu {
  position: absolute;
  top: calc(100% + 12px);
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  width: max-content;
  min-width: 580px;
  max-width: 90vw;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  box-shadow: var(--shadow-lg), 0 0 40px -10px rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(24px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity var(--transition-base), transform var(--transition-base), visibility var(--transition-base);
  z-index: 101;
}

.nav-item:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

.dropdown-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
}

.dropdown-card {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  padding: 0.85rem;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  transition: background-color var(--transition-fast), border-color var(--transition-fast), transform var(--transition-fast);
}

.dropdown-card:hover {
  background-color: var(--bg-surface-card);
  border-color: var(--border-glass);
  transform: translateY(-1px);
}

.dropdown-icon {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  background: var(--veno-emerald-surface);
  border: 1px solid var(--veno-emerald-border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--veno-emerald-vibrant);
  flex-shrink: 0;
}

.dropdown-info {
  display: flex;
  flex-direction: column;
}

.dropdown-title {
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-highlight);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.dropdown-tag {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  padding: 0.1rem 0.35rem;
  border-radius: var(--radius-xs);
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-secondary);
}

.dropdown-desc {
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.4;
  margin-top: 0.2rem;
}

.dropdown-footer {
  margin-top: 0.85rem;
  padding-top: 0.85rem;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.78rem;
}

.dropdown-footer-link {
  color: var(--veno-emerald-vibrant);
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

/* Nav Actions (CTA) */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

/* Mobile Toggle */
.mobile-toggle {
  display: none;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
  background: var(--bg-surface-card);
  color: #ffffff;
  align-items: center;
  justify-content: center;
  z-index: 102;
}

/* ==========================================================================
   2. BUTTONS & ACTIONS
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.65rem 1.35rem;
  font-size: 0.88rem;
  font-weight: 600;
  border-radius: var(--radius-full);
  transition: all var(--transition-fast);
  text-align: center;
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}

.btn-lg {
  padding: 0.85rem 1.85rem;
  font-size: 0.95rem;
}

.btn-primary {
  background: linear-gradient(180deg, #17b275 0%, var(--veno-emerald-primary) 100%);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.25);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3), 0 0 20px -3px var(--veno-emerald-glow);
}

.btn-primary:hover {
  background: linear-gradient(180deg, #1fc985 0%, #108457 100%);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4), 0 0 30px 0px var(--veno-emerald-glow);
  transform: translateY(-1px);
}

.btn-secondary {
  background: var(--bg-surface-card);
  color: var(--text-primary);
  border: 1px solid var(--border-glass);
  backdrop-filter: blur(10px);
}

.btn-secondary:hover {
  background: var(--bg-surface-hover);
  border-color: var(--border-highlight);
  color: #ffffff;
  transform: translateY(-1px);
}

.btn-hub-login {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-primary);
  border: 1px solid var(--border-subtle);
  font-size: 0.82rem;
  padding: 0.5rem 1rem;
}

.btn-hub-login:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--border-glass);
  color: #ffffff;
}

.btn-ghost {
  color: var(--veno-emerald-vibrant);
  padding: 0;
  border-radius: 0;
  font-weight: 600;
  background: transparent;
}

.btn-ghost:hover {
  color: #ffffff;
}

.btn-ghost svg {
  transition: transform var(--transition-fast);
}

.btn-ghost:hover svg {
  transform: translateX(4px);
}

/* ==========================================================================
   3. GLASS CARDS & TECH CONTAINERS
   ========================================================================== */
.card-tech {
  background: var(--bg-surface-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  position: relative;
  overflow: hidden;
  transition: border-color var(--transition-base), transform var(--transition-base), box-shadow var(--transition-base);
}

.card-tech::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.15), transparent);
  opacity: 0.5;
}

.card-tech:hover {
  border-color: var(--border-active);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md), 0 0 30px -10px var(--veno-emerald-glow);
}

/* ==========================================================================
   4. SYSTEM TERMINAL / LIVE MONITOR WIDGET
   ========================================================================== */
.terminal-block {
  background: #080b09;
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  font-family: var(--font-mono);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.terminal-header {
  background: #0e1310;
  padding: 0.65rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-subtle);
}

.terminal-dots {
  display: flex;
  gap: 6px;
}

.terminal-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
}

.terminal-dot.red { background: #ef4444; }
.terminal-dot.yellow { background: #f59e0b; }
.terminal-dot.green { background: #10b981; }

.terminal-title {
  font-size: 0.72rem;
  color: var(--text-muted);
  letter-spacing: 0.05em;
}

.terminal-body {
  padding: 1.25rem;
  font-size: 0.8rem;
  line-height: 1.7;
  color: #c9d1c9;
}

.terminal-line {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
}

.terminal-prompt {
  color: var(--veno-emerald-vibrant);
  user-select: none;
}

.terminal-highlight {
  color: #ffffff;
  font-weight: 600;
}

.terminal-dim {
  color: var(--text-muted);
}

/* ==========================================================================
   5. STATUS BADGES
   ========================================================================== */
.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-full);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
}

.status-pill.online {
  background: var(--veno-emerald-surface);
  border-color: var(--veno-emerald-border);
  color: var(--veno-emerald-vibrant);
}

.status-pill.online .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--veno-emerald-vibrant);
  box-shadow: 0 0 6px var(--veno-emerald-vibrant);
}
