/* 
  NexaClass Portal Stylesheets - 2026
  Premium Glassmorphism & High-Aesthetic Web Design System
*/

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800&display=swap');

:root {
  --font-display: 'Poppins', 'Segoe UI', sans-serif;
  --font-sans: 'Poppins', 'Segoe UI', sans-serif;

  /* Paleta oficial da plataforma Nexa */
  --bg-gradient: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 65%, #f8fafc 100%);
  --text-primary: #0f172a;
  --text-secondary: #475569;
  --brand: #2563eb;
  --brand-gradient: linear-gradient(135deg, #2563eb 0%, #10b9b1 100%);
  --brand-glow: rgba(37, 99, 235, 0.18);
  --success: #059669;
  --success-glow: rgba(16, 185, 129, 0.12);
  --warning: #b45309;
  --warning-glow: rgba(245, 158, 11, 0.14);

  /* Cartões claros no mesmo padrão visual da plataforma */
  --glass-bg: rgba(255, 255, 255, 0.78);
  --glass-border: rgba(203, 213, 225, 0.7);
  --glass-shadow: rgba(15, 23, 42, 0.08);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-sans);
  background: var(--bg-gradient);
  color: var(--text-primary);
  min-height: 100vh;
  overflow-x: hidden;
  line-height: 1.6;
}

/* Background Gradients Glows */
.ambient-glow {
  position: absolute;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.10) 0%, rgba(16, 185, 129, 0.04) 50%, transparent 100%);
  top: -150px;
  left: -150px;
  pointer-events: none;
  z-index: 1;
}

.ambient-glow-right {
  position: absolute;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(16, 185, 177, 0.08) 0%, rgba(37, 99, 235, 0.03) 60%, transparent 100%);
  bottom: 10%;
  right: -200px;
  pointer-events: none;
  z-index: 1;
}

/* Portal Shell */
.portal-container {
  position: relative;
  z-index: 10;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Glass Header */
.portal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  margin-top: 24px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 26px;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 10px 30px var(--glass-shadow);
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
}

.brand-mark {
  width: 44px;
  height: 44px;
}

.eyebrow {
  margin: 0 0 2px;
  color: var(--brand);
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.brand h1 {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  color: var(--text-primary);
}

/* Navigation Menu */
.nav-menu {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-link {
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 500;
  font-size: 14px;
  transition: color 0.2s ease, transform 0.2s ease;
}

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

.nav-link.active {
  color: var(--text-primary);
  border-bottom: 2px solid var(--brand);
  padding-bottom: 4px;
}

.cta-button {
  display: inline-flex;
  align-items: center;
  padding: 10px 20px;
  background: var(--brand);
  border: 1px solid var(--brand);
  border-radius: 14px;
  color: #ffffff;
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  box-shadow: 0 8px 20px var(--brand-glow);
  transition: all 0.2s ease;
}

.cta-button:hover {
  background: #10b9b1;
  border-color: #10b9b1;
  transform: translateY(-1px);
}

/* Hero Section */
.hero-section {
  text-align: center;
  padding: 80px 20px 60px;
  max-width: 800px;
  margin: 0 auto;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  padding: 6px 14px;
  background: rgba(37, 99, 235, 0.08);
  border: 1px solid rgba(37, 99, 235, 0.2);
  border-radius: 999px;
  color: #2563eb;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 24px;
  animation: pulse 3s infinite alternate;
}

.hero-section h2 {
  font-family: var(--font-display);
  font-size: clamp(32px, 5vw, 52px);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 20px;
  color: var(--text-primary);
}

.hero-section p {
  color: var(--text-secondary);
  font-size: clamp(16px, 1.8vw, 18px);
  line-height: 1.6;
  margin-bottom: 32px;
}

/* Grid of Simulators */
.simulators-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
  padding-bottom: 80px;
}

/* Simulator Cards */
.sim-card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 32px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 26px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 15px 35px var(--glass-shadow);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
}

.sim-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--brand-gradient);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.sim-card:hover {
  transform: translateY(-6px);
  border-color: rgba(37, 99, 235, 0.3);
  box-shadow: 0 20px 40px rgba(15, 23, 42, 0.12), 0 0 30px rgba(37, 99, 235, 0.1);
}

.sim-card:hover::before {
  opacity: 1;
}

.card-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 750;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.badge.active {
  background: var(--success-glow);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: var(--success);
}

.badge.upcoming {
  background: rgba(100, 116, 139, 0.08);
  border: 1px solid rgba(100, 116, 139, 0.16);
  color: var(--text-secondary);
}

.badge.development {
  background: var(--warning-glow);
  border: 1px solid rgba(180, 83, 9, 0.25);
  color: var(--warning);
}

.card-icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  background: rgba(37, 99, 235, 0.06);
  border: 1px solid var(--glass-border);
  border-radius: 14px;
  color: var(--brand);
}

.sim-card:hover .card-icon {
  background: rgba(37, 99, 235, 0.14);
  color: var(--brand);
  border-color: rgba(37, 99, 235, 0.3);
}

.sim-card h3 {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--text-primary);
}

.sim-card p {
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.55;
  margin-bottom: 28px;
  flex-grow: 1;
}

.sim-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 12px 24px;
  background: var(--brand-gradient);
  border: 0;
  border-radius: 14px;
  color: white;
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  transition: all 0.2s ease;
  box-shadow: 0 4px 12px var(--brand-glow);
}

.sim-link:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(37, 99, 235, 0.35);
}

.sim-link.disabled {
  background: rgba(100, 116, 139, 0.08);
  color: rgba(100, 116, 139, 0.6);
  border: 1px solid rgba(100, 116, 139, 0.14);
  box-shadow: none;
  cursor: not-allowed;
  pointer-events: none;
}

/* Learning Section */
.learning-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  padding: 60px 40px;
  margin-bottom: 80px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 28px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.learning-text h2 {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 800;
  margin-bottom: 16px;
  color: var(--text-primary);
}

.learning-text p {
  color: var(--text-secondary);
  font-size: 15px;
  line-height: 1.6;
  margin-bottom: 24px;
}

.learning-features {
  display: grid;
  gap: 16px;
}

.feat-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.feat-item span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  background: rgba(16, 185, 129, 0.12);
  border-radius: 50%;
  color: var(--success);
  font-weight: 700;
  font-size: 12px;
}

.feat-item div h4 {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 4px;
}

.feat-item div p {
  font-size: 13px;
  margin-bottom: 0;
}

/* Vector Illustration placeholder - Custom SVG */
.vector-illustration {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.vector-illustration svg {
  max-width: 320px;
  filter: drop-shadow(0 20px 40px rgba(15, 23, 42, 0.14));
}

/* Footer */
.portal-footer {
  text-align: center;
  padding: 40px 20px;
  border-top: 1px solid var(--glass-border);
  margin-top: 80px;
}

.portal-footer p {
  color: var(--text-secondary);
  font-size: 13px;
}

/* Animations */
@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(37, 99, 235, 0.4);
  }
  100% {
    box-shadow: 0 0 0 10px rgba(37, 99, 235, 0);
  }
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .portal-header {
    flex-direction: column;
    gap: 16px;
    padding: 16px;
  }
  .nav-menu {
    gap: 20px;
    flex-wrap: wrap;
    justify-content: center;
  }
  .hero-section {
    padding: 40px 10px;
  }
  .learning-section {
    grid-template-columns: 1fr;
    padding: 32px 20px;
  }
  .vector-illustration {
    order: -1;
  }
}
