/* ==========================================================================
   PORTFÓLIO PROFISSIONAL - AIRTON NETTO
   Components & Interactive UI Elements
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. NAVIGATION HEADER
   -------------------------------------------------------------------------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  background: rgba(7, 9, 14, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-subtle);
  z-index: 1000;
  transition: background var(--transition-fast), border-color var(--transition-fast);
}

.site-header.scrolled {
  background: rgba(7, 9, 14, 0.95);
  border-bottom-color: var(--border-medium);
  box-shadow: var(--shadow-sm);
}

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

/* Brand Logo */
.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 1.125rem;
  color: var(--text-primary);
  text-decoration: none;
}

.brand-symbol {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  background: var(--bg-surface);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-sm);
  color: var(--accent-cyan);
  font-size: 0.875rem;
  box-shadow: var(--shadow-glow-cyan);
}

.brand-text {
  letter-spacing: -0.01em;
}

.brand-text .accent {
  color: var(--accent-cyan);
}

/* Nav Menu Desktop */
.nav-menu {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
}

.nav-link {
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--text-secondary);
  text-decoration: none;
  position: relative;
  padding: 0.5rem 0;
  transition: color var(--transition-fast);
}

.nav-link:hover,
.nav-link.active {
  color: var(--text-primary);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent-cyan);
  transition: width var(--transition-normal);
  border-radius: var(--radius-full);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  font-family: var(--font-mono);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--accent-cyan);
  background: var(--accent-cyan-glow);
  border: 1px solid rgba(6, 182, 212, 0.4);
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
}

.nav-cta:hover {
  background: rgba(6, 182, 212, 0.28);
  border-color: var(--accent-cyan);
  color: #ffffff;
  box-shadow: var(--shadow-glow-cyan);
}

/* Mobile Toggle */
.mobile-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  padding: 0.5rem;
  cursor: pointer;
  align-items: center;
  justify-content: center;
}

.mobile-toggle:hover {
  border-color: var(--accent-cyan);
  color: var(--accent-cyan);
}

@media (max-width: 768px) {
  .mobile-toggle {
    display: flex;
  }

  .nav-menu {
    position: fixed;
    top: var(--header-height);
    right: -100%;
    width: 80%;
    max-width: 320px;
    height: calc(100vh - var(--header-height));
    background: var(--bg-surface);
    border-left: 1px solid var(--border-medium);
    flex-direction: column;
    align-items: flex-start;
    padding: 2rem 1.5rem;
    gap: 1.5rem;
    transition: right var(--transition-normal);
    box-shadow: var(--shadow-md);
  }

  .nav-menu.open {
    right: 0;
  }

  .nav-link {
    font-size: 1.125rem;
    width: 100%;
  }

  .nav-cta {
    width: 100%;
    justify-content: center;
    margin-top: 1rem;
  }
}

/* --------------------------------------------------------------------------
   2. BUTTONS & INTERACTIVE ELEMENTS
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.625rem;
  padding: 0.75rem 1.5rem;
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  font-weight: 600;
  border-radius: var(--radius-md);
  cursor: pointer;
  text-decoration: none;
  transition: all var(--transition-fast);
  border: 1px solid transparent;
  line-height: 1.25;
}

.btn-primary {
  background: var(--accent-cyan);
  color: var(--bg-dark);
  border-color: var(--accent-cyan);
}

.btn-primary:hover {
  background: #38bdf8;
  border-color: #38bdf8;
  color: var(--bg-dark);
  box-shadow: var(--shadow-glow-cyan);
  transform: translateY(-2px);
}

.btn-secondary {
  background: var(--bg-surface);
  color: var(--text-primary);
  border-color: var(--border-medium);
}

.btn-secondary:hover {
  background: var(--bg-surface-hover);
  border-color: var(--accent-cyan);
  color: var(--accent-cyan);
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  color: var(--text-secondary);
  border-color: var(--border-subtle);
}

.btn-outline:hover {
  color: var(--text-primary);
  border-color: var(--border-medium);
  background: rgba(255, 255, 255, 0.03);
}

.btn-mono {
  font-family: var(--font-mono);
  font-size: 0.875rem;
}

.btn-sm {
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
}

/* --------------------------------------------------------------------------
   3. STATUS BADGES & STACK TAGS
   -------------------------------------------------------------------------- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.25rem 0.625rem;
  border-radius: var(--radius-sm);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  white-space: nowrap;
}

.badge-concluded {
  background: var(--status-concluded-bg);
  color: var(--status-concluded-text);
  border: 1px solid var(--status-concluded-border);
}

.badge-dev {
  background: var(--status-dev-bg);
  color: var(--status-dev-text);
  border: 1px solid var(--status-dev-border);
}

.badge-planned {
  background: var(--status-planned-bg);
  color: var(--status-planned-text);
  border: 1px solid var(--status-planned-border);
}

.badge-pulse::before {
  content: '';
  width: 0.4rem;
  height: 0.4rem;
  border-radius: 50%;
  background: currentColor;
  display: inline-block;
}

.badge-dev.badge-pulse::before {
  animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
  0% { opacity: 0.4; }
  50% { opacity: 1; }
  100% { opacity: 0.4; }
}

/* Stack Pills */
.tech-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  color: var(--text-secondary);
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  padding: 0.3rem 0.65rem;
  border-radius: var(--radius-sm);
  transition: border-color var(--transition-fast), color var(--transition-fast);
}

.tech-tag:hover {
  border-color: var(--border-medium);
  color: var(--text-primary);
}

.tech-tag svg {
  width: 1rem;
  height: 1rem;
  fill: currentColor;
}

/* --------------------------------------------------------------------------
   4. CARDS & CARDS CONTAINER
   -------------------------------------------------------------------------- */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.75rem;
  transition: transform var(--transition-normal), border-color var(--transition-normal), box-shadow var(--transition-normal);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

.card:hover {
  border-color: var(--border-medium);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.card-interactive:hover {
  border-color: var(--accent-cyan);
  box-shadow: var(--shadow-glow-cyan);
}

/* Featured Card (AWS Cost Monitor) */
.card-featured {
  background: linear-gradient(135deg, var(--bg-card) 0%, var(--bg-card-alt) 100%);
  border: 1px solid rgba(6, 182, 212, 0.25);
  box-shadow: 0 0 30px rgba(6, 182, 212, 0.08);
}

.card-featured:hover {
  border-color: var(--accent-cyan);
  box-shadow: var(--shadow-glow-cyan);
}

/* Featured Ribbon */
.card-featured-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.card-featured-label {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--accent-cyan);
  background: var(--accent-cyan-glow);
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(6, 182, 212, 0.3);
}

/* --------------------------------------------------------------------------
   5. ARCHITECTURAL SCHEMATIC (SVG / VISUAL COMPONENT)
   -------------------------------------------------------------------------- */
.schematic-wrapper {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  margin: 1.5rem 0;
  position: relative;
  overflow: hidden;
}

.schematic-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 0.75rem;
  margin-bottom: 1.25rem;
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.schematic-dots {
  display: flex;
  gap: 0.375rem;
}

.schematic-dot {
  width: 0.625rem;
  height: 0.625rem;
  border-radius: 50%;
  background: var(--border-medium);
}
.schematic-dot.red { background: #ef4444; }
.schematic-dot.yellow { background: #f59e0b; }
.schematic-dot.green { background: #10b981; }

.schematic-svg {
  width: 100%;
  height: auto;
  max-height: 280px;
}

/* --------------------------------------------------------------------------
   6. TECH MATRIX / GRID CATEGORIES
   -------------------------------------------------------------------------- */
.tech-category-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.tech-category-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 0.75rem;
}

.tech-icon-box {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: var(--radius-sm);
  background: var(--bg-surface);
  border: 1px solid var(--border-medium);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-cyan);
}

.tech-category-title {
  font-size: 1.125rem;
  font-weight: 600;
}

.tech-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

/* --------------------------------------------------------------------------
   7. FOOTER
   -------------------------------------------------------------------------- */
.site-footer {
  background: var(--bg-surface);
  border-top: 1px solid var(--border-subtle);
  padding: 3rem 0 2rem;
  margin-top: 5rem;
  color: var(--text-muted);
  font-size: 0.875rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  margin-bottom: 2.5rem;
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: 2fr 1fr 1fr;
  }
}

.footer-brand p {
  margin-top: 0.75rem;
  font-size: 0.875rem;
}

.footer-heading {
  color: var(--text-primary);
  font-family: var(--font-mono);
  font-size: 0.875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 1rem;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
}

.footer-link {
  color: var(--text-secondary);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.footer-link:hover {
  color: var(--accent-cyan);
}

.footer-bottom {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-subtle);
  font-family: var(--font-mono);
  font-size: 0.8125rem;
}

@media (min-width: 640px) {
  .footer-bottom {
    flex-direction: row;
  }
}
