/* =====================================================
   PSICOCOMPANY ACADEMY - ESTILOS
   Arquivo: academy.css
   ===================================================== */

/* ===== HERO DO ACADEMY ===== */
.academy-hero {
  min-height: 70vh;
  display: flex;
  align-items: center;
  padding: 120px 24px 80px;
  background: linear-gradient(135deg, #f4f2fa 0%, #e8e4f7 50%, #ddd8f0 100%);
  position: relative;
  overflow: hidden;
}

.academy-hero::before {
  content: '';
  position: absolute;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(124, 101, 181, 0.06) 0%, transparent 70%);
  top: -300px;
  right: -100px;
  animation: float 20s ease-in-out infinite;
}

.academy-hero-content {
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.academy-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--white);
  padding: 8px 20px;
  border-radius: 50px;
  font-size: 14px;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 24px;
  box-shadow: 0 4px 15px rgba(124, 101, 181, 0.1);
}

.academy-hero h1 {
  font-size: 48px;
  font-weight: 900;
  line-height: 1.2;
  color: var(--dark);
  margin-bottom: 20px;
  letter-spacing: -1px;
}

.hero-subtitle {
  font-size: 18px;
  color: var(--gray);
  margin-bottom: 32px;
  line-height: 1.6;
}

.hero-buttons {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ===== CURSO GRATUITO EM DESTAQUE ===== */
.free-course-section {
  padding: 80px 24px;
  background: var(--white);
}

.free-course-card {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 40px;
  max-width: 1100px;
  margin: 0 auto;
  background: var(--bg-light);
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 10px 40px rgba(124, 101, 181, 0.15);
  border: 2px solid var(--primary-light);
}

.course-image {
  position: relative;
  min-height: 400px;
}

.course-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.free-badge {
  position: absolute;
  top: 20px;
  left: 20px;
  background: var(--white);
  padding: 8px 16px;
  border-radius: 50px;
  font-size: 14px;
  font-weight: 600;
  color: #10b981;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.course-content {
  padding: 40px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.course-header h2 {
  font-size: 32px;
  font-weight: 900;
  color: var(--dark);
  margin-bottom: 16px;
  letter-spacing: -0.5px;
}

.course-badges {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.badge {
  padding: 6px 12px;
  border-radius: 50px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.badge-free {
  background: rgba(16, 185, 129, 0.1);
  color: #10b981;
}

.badge-online {
  background: rgba(59, 130, 246, 0.1);
  color: #3b82f6;
}

.badge-immediate {
  background: rgba(251, 146, 60, 0.1);
  color: #fb923c;
}

.course-description {
  font-size: 16px;
  line-height: 1.7;
  color: var(--gray);
}

.course-author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.author-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--gradient-primary);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 16px;
}

.author-avatar-img {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid var(--primary-light);
  flex-shrink: 0;
}

.author-avatar-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.author-info {
  display: flex;
  flex-direction: column;
}

.author-name {
  font-size: 14px;
  color: var(--dark);
  font-weight: 600;
}

.author-title {
  font-size: 13px;
  color: var(--gray);
}

.course-modules {
  border-top: 1px solid rgba(124, 101, 181, 0.1);
  padding-top: 20px;
}

.modules-toggle {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: none;
  border: none;
  padding: 12px 0;
  font-size: 15px;
  font-weight: 600;
  color: var(--primary);
  cursor: pointer;
  transition: all 0.3s;
}

.modules-toggle:hover {
  color: var(--primary-dark);
}

.toggle-icon {
  transition: transform 0.3s;
}

.modules-toggle.active .toggle-icon {
  transform: rotate(180deg);
}

.modules-list {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.modules-list.active {
  max-height: 500px;
}

.modules-list ul {
  list-style: none;
  padding: 16px 0 0 0;
  margin: 0;
}

.modules-list li {
  padding: 10px 0;
  font-size: 14px;
  color: var(--gray);
  border-bottom: 1px solid rgba(124, 101, 181, 0.05);
}

.modules-list li:last-child {
  border-bottom: none;
}

.btn-large {
  padding: 18px 40px;
  font-size: 17px;
}

/* ===== CURSOS PREMIUM ===== */
.premium-courses-section {
  padding: 80px 24px;
  background: var(--bg-light);
}

.courses-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 32px;
  margin-top: 60px;
}

.premium-course-card {
  background: var(--white);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
  transition: all 0.3s;
  position: relative;
}

.premium-course-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(124, 101, 181, 0.15);
}

.premium-course-card.locked {
  cursor: not-allowed;
}

.course-thumbnail {
  position: relative;
  width: 100%;
  height: 200px;
  overflow: hidden;
}

.course-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.locked-overlay {
  position: absolute;
  inset: 0;
  background: rgba(45, 31, 62, 0.85);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-weight: 700;
  font-size: 16px;
  letter-spacing: 0.3px;
}

.locked-overlay .lock-icon {
  font-size: 32px;
  margin-bottom: 8px;
}

.course-info {
  padding: 24px;
}

.course-category {
  display: inline-block;
  background: rgba(124, 101, 181, 0.12);
  color: var(--primary);
  padding: 4px 12px;
  border-radius: 50px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.course-info h3 {
  font-size: 20px;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 12px;
  line-height: 1.3;
}

.course-info .course-author {
  margin-bottom: 16px;
}

.course-info .author-avatar {
  width: 36px;
  height: 36px;
  font-size: 13px;
}

.btn-coming-soon {
  width: 100%;
  padding: 12px;
  background: var(--gray-light);
  color: var(--white);
  border: none;
  border-radius: 10px;
  font-weight: 600;
  cursor: not-allowed;
  opacity: 0.6;
}

/* ===== COMO FUNCIONA ===== */
.how-academy-works {
  padding: 80px 24px;
  background: var(--white);
}

.how-academy-works .steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 32px;
  margin-top: 60px;
}

.how-academy-works .step-card {
  text-align: center;
  padding: 40px 30px;
  border-radius: 20px;
  background: var(--bg-light);
  transition: all 0.3s;
}

.how-academy-works .step-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 35px rgba(124, 101, 181, 0.1);
}

.how-academy-works .step-icon {
  font-size: 48px;
  margin-bottom: 20px;
}

.how-academy-works .step-card h3 {
  font-size: 20px;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 12px;
}

.how-academy-works .step-card p {
  color: var(--gray);
  line-height: 1.6;
}

/* ===== EXPERTS SECTION ===== */
.experts-section {
  padding: 60px 24px;
  background: linear-gradient(135deg, #7c65b5 0%, #8b72c4 100%);
  color: var(--white);
}

.experts-content {
  text-align: center;
  max-width: 700px;
  margin: 0 auto;
}

.experts-icon {
  font-size: 64px;
  margin-bottom: 24px;
}

.experts-content h2 {
  font-size: 36px;
  font-weight: 900;
  margin-bottom: 16px;
  letter-spacing: -0.5px;
}

.experts-content p {
  font-size: 17px;
  line-height: 1.7;
  opacity: 0.95;
}

/* ===== CTA FINAL ===== */
.academy-cta-final {
  padding: 80px 24px;
  background: linear-gradient(135deg, #f4f2fa 0%, #e8e4f7 100%);
  text-align: center;
}

.academy-cta-final .cta-content {
  max-width: 700px;
  margin: 0 auto;
}

.academy-cta-final h2 {
  font-size: 40px;
  font-weight: 900;
  color: var(--dark);
  margin-bottom: 16px;
  letter-spacing: -1px;
}

.academy-cta-final p {
  font-size: 18px;
  color: var(--gray);
  margin-bottom: 32px;
}

/* ===== RESPONSIVO ===== */
@media (max-width: 968px) {
  .academy-hero h1 {
    font-size: 36px;
  }

  .free-course-card {
    grid-template-columns: 1fr;
  }

  .course-image {
    min-height: 300px;
  }

  .courses-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .academy-hero {
    padding: 100px 20px 60px;
  }

  .academy-hero h1 {
    font-size: 28px;
  }

  .hero-buttons {
    flex-direction: column;
    width: 100%;
  }

  .btn {
    width: 100%;
    justify-content: center;
  }

  .course-content {
    padding: 24px;
  }

  .course-header h2 {
    font-size: 24px;
  }

  .academy-cta-final h2 {
    font-size: 28px;
  }
}