/* ====================================
   CSS CUSTOM PROPERTIES (DARK THEME)
   ==================================== */
:root {
  /* Primary Colors */
  --primary-dark: #000000;
  --primary-darker: #000000;
  --secondary-dark: #000000;
  --accent-blue: #333333;
  --accent-cyan: #444444;
  --accent-purple: #555555;
  
  /* Gradient Colors */
  --gradient-primary: #000000;
  --gradient-secondary: #000000;
  --gradient-accent: #000000;
  --gradient-dark: #000000;
  
  /* Text Colors */
  --text-primary: #87ceeb;
  --text-secondary: #87ceeb;
  --text-muted: #87ceeb;
  --text-accent: #5dade2;
  
  /* Background Colors */
  --bg-primary: #000000;
  --bg-secondary: #000000;
  --bg-tertiary: #000000;
  --bg-glass: rgba(255, 255, 255, 0.05);
  --bg-glass-dark: rgba(0, 0, 0, 0.8);
  
  /* Border & Shadow */
  --border-glass: rgba(255, 255, 255, 0.2);
  --shadow-primary: 0 10px 30px rgba(0, 0, 0, 0.5);
  --shadow-secondary: 0 5px 15px rgba(0, 0, 0, 0.3);
  --shadow-glow: 0 0 30px rgba(59, 130, 246, 0.3);
  
  /* Spacing */
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 1.5rem;
  --spacing-lg: 2rem;
  --spacing-xl: 3rem;
  --spacing-2xl: 4rem;
  
  /* Typography */
  --font-primary: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  --font-heading: 'Poppins', 'Inter', sans-serif;
  
  /* Transitions */
  --transition-fast: 0.2s ease-in-out;
  --transition-medium: 0.3s ease-in-out;
  --transition-slow: 0.5s ease-in-out;
  
  /* Border Radius */
  --radius-sm: 0.5rem;
  --radius-md: 1rem;
  --radius-lg: 1.5rem;
  --radius-xl: 2rem;
}

/* ====================================
   RESET & BASE STYLES
   ==================================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-primary);
  background: #000000;
  background-attachment: fixed;
  color: #87ceeb;
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--spacing-sm);
}

/* ====================================
   TYPOGRAPHY
   ==================================== */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1.2;
  margin-bottom: var(--spacing-sm);
}

h1 {
    text-align: center;
    font-family: 'Playfair Display', serif;
    color: #87ceeb; /* Azul claro */
    font-size: 3em;
    margin-bottom: 20px;
}

h6 {
    text-align: center;
    color: #87ceeb; /* Azul claro */
    font-style: italic;
    margin-bottom: 20px;
}

h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: clamp(1.5rem, 3vw, 2rem); }
h4 { font-size: clamp(1.25rem, 2.5vw, 1.5rem); }

p {
  margin-bottom: var(--spacing-sm);
  color: #87ceeb;
  line-height: 1.3;
}

/* General Links */
a:link, a:visited {
  color: #87ceeb;
  text-decoration: none;
}

a:hover {
  color: #5dade2;
  text-decoration: underline;
}

a:active {
  color: #4a9fd1;
}

/* Blockquote */
blockquote {
  color: #87ceeb;
  background-color: black;
  padding: 10px;
  text-align: center;
  font-style: italic;
  border-left: 3px solid #5dade2;
  margin: 20px 0;
}

/* ====================================
   BUTTONS
   ==================================== */
.btn {
  display: inline-block;
  padding: var(--spacing-sm) var(--spacing-lg);
  border: none;
  border-radius: var(--radius-md);
  font-family: var(--font-primary);
  font-weight: 600;
  text-decoration: none;
  text-align: center;
  cursor: pointer;
  transition: all var(--transition-medium);
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.1);
  transition: left var(--transition-medium);
}

.btn:hover::before {
  left: 100%;
}

.btn-primary {
  background: var(--gradient-primary);
  color: var(--text-primary);
  box-shadow: var(--shadow-secondary);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-primary);
}

.btn-secondary {
  background: transparent;
  color: var(--text-primary);
  border: 2px solid var(--border-glass);
  backdrop-filter: blur(10px);
}

.btn-secondary:hover {
  background: var(--bg-glass);
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  color: var(--accent-blue);
  border: 2px solid var(--accent-blue);
}

.btn-outline:hover {
  background: var(--accent-blue);
  color: var(--text-primary);
  transform: translateY(-2px);
}

/* ====================================
   NAVIGATION
   ==================================== */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  background: rgba(0, 0, 0, 0.95);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-glass);
  z-index: 1000;
  transition: all var(--transition-medium);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--spacing-md) var(--spacing-lg);
  max-width: 1200px;
  margin: 0 auto;
  height: 70px;
}

.nav-logo h2 {
  background: var(--gradient-accent);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin: 0;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: var(--spacing-lg);
}

.nav-link {
  color: #87ceeb;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.1rem;
  position: relative;
  transition: color var(--transition-fast);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gradient-accent);
  transition: width var(--transition-medium);
}

.nav-link:hover {
  color: #5dade2;
  text-decoration: underline;
}

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

.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 4px;
}

.bar {
  width: 25px;
  height: 3px;
  background: var(--text-primary);
  transition: all var(--transition-fast);
  border-radius: 2px;
}

/* ====================================
   HERO SECTION
   ==================================== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #000000;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 1000"><defs><radialGradient id="a" cx="50%" cy="50%"><stop offset="0%" stop-color="%23667eea" stop-opacity="0.1"/><stop offset="100%" stop-color="%23667eea" stop-opacity="0"/></radialGradient></defs><circle cx="200" cy="200" r="300" fill="url(%23a)"/><circle cx="800" cy="800" r="400" fill="url(%23a)"/></svg>');
  opacity: 0.5;
}

.hero-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--spacing-xl);
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--spacing-lg);
  position: relative;
  z-index: 1;
}

.hero-title {
  background: var(--gradient-accent);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: var(--spacing-md);
  filter: drop-shadow(2px 2px 4px rgba(0, 0, 0, 0.3));
}

.hero-subtitle {
  font-size: 1.25rem;
  color: var(--text-secondary);
  margin-bottom: var(--spacing-xl);
}

.hero-buttons {
  display: flex;
  gap: var(--spacing-md);
  flex-wrap: wrap;
}

.hero-image {
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-icon {
  font-size: 8rem;
  color: var(--accent-blue);
  opacity: 0.8;
}



/* ====================================
   SECTION TITLES
   ==================================== */
.section-title {
  text-align: center;
  margin-bottom: var(--spacing-2xl);
  background: var(--gradient-accent);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(2px 2px 4px rgba(0, 0, 0, 0.3));
  font-weight: 700;
}

/* ====================================
   DASHBOARD SECTION
   ==================================== */
.dashboard {
  padding: var(--spacing-2xl) 0;
  background: #000000;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--spacing-lg);
}

.feature-card {
  background: #000000;
  backdrop-filter: blur(15px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-lg);
  padding: var(--spacing-xl);
  text-align: center;
  transition: all var(--transition-medium);
  position: relative;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--gradient-accent);
  opacity: 0;
  transition: opacity var(--transition-medium);
  z-index: -1;
}

.feature-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.7);
  border-color: rgba(255, 255, 255, 0.2);
}

.feature-card:hover::before {
  opacity: 0.2;
}

.card-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto var(--spacing-md);
  background: var(--gradient-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: var(--text-primary);
}

.feature-card h3 {
  color: var(--text-primary);
  margin-bottom: var(--spacing-sm);
}

.feature-card p {
  color: var(--text-secondary);
}

/* ====================================
   COURSES SECTION
   ==================================== */
.courses {
  padding: var(--spacing-2xl) 0;
  background: #000000;
}

.course-tabs {
  display: flex;
  justify-content: center;
  gap: var(--spacing-md);
  margin-bottom: var(--spacing-xl);
}

.tab-button {
  padding: var(--spacing-sm) var(--spacing-lg);
  background: transparent;
  color: var(--text-secondary);
  border: 2px solid var(--border-glass);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--transition-medium);
  font-weight: 600;
}

.tab-button.active,
.tab-button:hover {
  background: var(--gradient-primary);
  color: var(--text-primary);
  border-color: transparent;
}

.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
}

.courses-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: var(--spacing-lg);
}

.course-card {
  background: #000000;
  backdrop-filter: blur(15px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--transition-medium);
  position: relative;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
}

.course-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.7);
  border-color: rgba(255, 255, 255, 0.2);
}

.course-card.premium {
  border: 2px solid rgba(255, 255, 255, 0.2);
}

.course-card.premium::before {
  content: 'PREMIUM';
  position: absolute;
  top: var(--spacing-sm);
  right: var(--spacing-sm);
  background: var(--gradient-primary);
  color: var(--text-primary);
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  font-weight: 600;
  z-index: 1;
}

.course-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: var(--spacing-lg);
  background: var(--bg-glass-dark);
}

.course-header h3 {
  color: var(--text-primary);
  margin: 0;
}

.course-price {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--accent-blue);
}

.course-price.free {
  color: var(--accent-cyan);
}

.course-content {
  padding: var(--spacing-lg);
}

.course-content p {
  margin-bottom: var(--spacing-md);
}

.course-features {
  list-style: none;
  margin-bottom: var(--spacing-lg);
}

.course-features li {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
  margin-bottom: var(--spacing-xs);
  color: var(--text-secondary);
}

.course-features i {
  color: var(--accent-cyan);
}

/* ====================================
   ARTICLES SECTION
   ==================================== */
.articles {
  padding: var(--spacing-2xl) 0;
  background: #000000;
}

.articles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: var(--spacing-lg);
}

.article-card {
  background: #000000;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-lg);
  padding: var(--spacing-xl);
  backdrop-filter: blur(15px);
  transition: var(--transition-smooth);
  position: relative;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
}

.article-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient-accent);
  transform: scaleX(0);
  transition: var(--transition-smooth);
}

.article-card:hover::before {
  transform: scaleX(1);
}

.article-card:hover {
  transform: translateY(-5px);
  border-color: rgba(255, 255, 255, 0.2);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.7);
}

.article-icon {
  width: 60px;
  height: 60px;
  background: var(--gradient-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--spacing-md);
  font-size: 1.5rem;
  color: var(--text-primary);
}

.article-card h3 {
  color: var(--text-primary);
  margin-bottom: var(--spacing-sm);
  font-size: 1.25rem;
}

.article-card p {
  color: #87ceeb;
  line-height: 1.6;
}

/* Articles Section Styling */
.articles-section {
  font-size: 0.9em;
  margin: 20px 2em;
  text-align: justify;
  color: #87ceeb;
}

.articles-section h3 {
  margin-left: 0;
  color: #87ceeb;
}


/* ====================================
   FOOTER
   ==================================== */
.footer {
  background: #000000;
  padding: var(--spacing-2xl) 0 var(--spacing-lg);
  border-top: 1px solid var(--border-glass);
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--spacing-xl);
  margin-bottom: var(--spacing-xl);
}

.footer-section h3 {
  color: #87ceeb;
  margin-bottom: var(--spacing-md);
}

.footer-section h4 {
  color: #87ceeb;
  margin-bottom: var(--spacing-md);
  font-size: 1.1rem;
}

.footer-section p {
  color: #87ceeb;
  margin-bottom: var(--spacing-md);
}

.footer-section ul {
  list-style: none;
}

.footer-section ul li {
  margin-bottom: var(--spacing-xs);
}

.footer-section ul li a {
  color: #87ceeb;
  text-decoration: none;
  transition: color var(--transition-fast);
}

.footer-section ul li a:hover {
  color: #5dade2;
}

.social-links {
  display: flex;
  gap: var(--spacing-sm);
  margin-top: var(--spacing-md);
}

.social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: var(--bg-glass);
  color: var(--text-secondary);
  border-radius: 50%;
  text-decoration: none;
  transition: all var(--transition-medium);
  border: 1px solid var(--border-glass);
}

.social-links a:hover {
  background: var(--gradient-primary);
  color: var(--text-primary);
  transform: translateY(-3px);
  box-shadow: var(--shadow-secondary);
}

.contact-info p {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
  margin-bottom: var(--spacing-sm);
}

.contact-info i {
  color: var(--accent-blue);
  width: 20px;
}

.footer-bottom {
  text-align: center;
  padding-top: var(--spacing-lg);
  border-top: 1px solid var(--border-glass);
  color: #87ceeb;
}

/* ====================================
   RESPONSIVE DESIGN
   ==================================== */

/* Tablet */
@media (max-width: 768px) {
  .hamburger {
    display: flex;
  }
  
  .nav-menu {
    position: fixed;
    top: 70px;
    left: -100%;
    width: 100%;
    height: calc(100vh - 70px);
    background: rgba(0, 0, 0, 0.98);
    backdrop-filter: blur(20px);
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    padding-top: var(--spacing-xl);
    transition: left var(--transition-medium);
  }
  
  .nav-menu.active {
    left: 0;
  }
  
  .nav-menu li {
    margin: var(--spacing-md) 0;
  }
  
  .hero-content {
    grid-template-columns: 1fr;
    text-align: center;
    gap: var(--spacing-lg);
  }
  
  .hero-buttons {
    justify-content: center;
  }
  
  .dashboard-grid {
    grid-template-columns: 1fr;
  }
  
  .courses-grid,
  .articles-grid {
    grid-template-columns: 1fr;
  }
  
  .course-tabs {
    flex-direction: column;
    align-items: center;
  }
}

/* Mobile */
@media (max-width: 480px) {
  .container {
    padding: 0 var(--spacing-sm);
  }
  
  .nav-container {
    padding: var(--spacing-sm);
  }
  
  .hero {
    padding: var(--spacing-xl) 0;
  }
  
  .hero-content {
    padding: 0 var(--spacing-sm);
  }
  
  .hero-buttons {
    flex-direction: column;
  }
  
  .btn {
    width: 100%;
  }
  
  .feature-card,
  .course-card {
    margin: 0 var(--spacing-sm);
  }
  
  .dashboard-grid,
  .courses-grid,
  .articles-grid {
    grid-template-columns: 1fr;
    gap: var(--spacing-md);
  }
  
  .footer-content {
    grid-template-columns: 1fr;
    gap: var(--spacing-lg);
  }
}

/* ====================================
   ACCESSIBILITY & UTILITIES
   ==================================== */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Focus styles for accessibility */
button:focus,
a:focus,
input:focus,
select:focus,
textarea:focus {
  outline: 2px solid var(--accent-blue);
  outline-offset: 2px;
}

/* Smooth scrolling for navigation */
html {
  scroll-padding-top: 80px;
}

/* Loading animation for better UX */
@keyframes shimmer {
  0% { background-position: -200px 0; }
  100% { background-position: calc(200px + 100%) 0; }
}

.loading {
  background: #000000;
  background-size: 200px;
  animation: shimmer 1.5s infinite;
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg-secondary);
}

::-webkit-scrollbar-thumb {
  background: var(--accent-blue);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--accent-cyan);
}

/* Forçar título em azul claro */
h1 {
    color: #87ceeb !important;
    text-align: center;
    font-size: 3em;
    margin: 20px 0;
    background: none !important;
}

/* Header fix */
header h1 {
    color: #87ceeb !important;
    background: transparent !important;
}

/* Garantir que não há override no header */
header {
    background-color: #333 !important;
}

/* Corrigir texto da empresa */
.company-info, header p {
    color: #87ceeb !important;
    font-size: 0.9em;
    text-align: center;
}

/* CORREÇÕES URGENTES */
h1, .main-title {
    color: #87ceeb !important;
    background-color: transparent !important;
    background: none !important;
    text-shadow: none !important;
}

/* Corrigir header */
header h1 {
    color: #87ceeb !important;
    background: transparent !important;
    padding: 0 !important;
}

/* Remover sobreposições */
.card, .feature-card {
    position: static !important;
    float: none !important;
    clear: both !important;
}

/* Forçar layout limpo */
#mainpage {
    clear: both;
    overflow: hidden;
    padding: 20px;
}
