/* ==========================================================================
   LMS Leo Mardeiras - Shortcodes Styles
   ========================================================================== */

/* Container Principal */
.lms-meu-acesso {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 1rem;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* Header do Usuário */
.lms-user-header {
  background: linear-gradient(135deg, #eb642f 0%, #44332f 100%);
  border-radius: 20px;
  padding: 2.5rem;
  margin-bottom: 3rem;
  color: white;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 10px 40px rgba(102, 126, 234, 0.3);
}

.lms-user-info {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.lms-user-avatar {
  position: relative;
}

.lms-user-avatar img {
  border-radius: 50%;
  border: 4px solid rgba(255, 255, 255, 0.3);
  transition: transform 0.3s ease;
}

.lms-user-avatar img:hover {
  transform: scale(1.05);
}

.lms-user-details h2 {
  margin: 0 0 0.5rem 0;
  font-size: 1.8rem;
  font-weight: 700;
}

.lms-user-subtitle {
  margin: 0;
  opacity: 0.9;
  font-size: 1.1rem;
}

.lms-user-stats {
  display: flex;
  gap: 2rem;
}

.lms-stat {
  text-align: center;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 15px;
  backdrop-filter: blur(10px);
  min-width: 120px;
}

.lms-stat-number {
  display: block;
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.lms-stat-label {
  font-size: 0.9rem;
  opacity: 0.9;
}

/* Seções */
.lms-section {
  margin-bottom: 3rem;
}

.lms-section-header {
  margin-bottom: 2rem;
}

.lms-section-header h3 {
  font-size: 1.5rem;
  color: #2d3748;
  margin: 0 0 0.5rem 0;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.lms-section-header p {
  color: #718096;
  margin: 0;
  font-size: 1rem;
}

/* Grid de Cursos */
.lms-courses-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 2rem;
}

/* Cards dos Cursos */
.lms-course-card {
  background: white;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  position: relative;
}

.lms-course-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.lms-course-free {
  border: 2px solid #48bb78;
}

.lms-course-thumbnail {
  position: relative;
  height: 200px;
  overflow: hidden;
}

.lms-course-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.lms-course-card:hover .lms-course-thumbnail img {
  transform: scale(1.05);
}

.lms-course-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #f7fafc 0%, #edf2f7 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  color: #a0aec0;
}

.lms-course-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.lms-badge-free {
  background: #48bb78;
  color: white;
}

.lms-badge-completed {
  background: #38b2ac;
  color: white;
}

.lms-badge-progress {
  background: #ed8936;
  color: white;
}

.lms-course-content {
  padding: 1.5rem;
}

.lms-course-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.lms-course-meta span {
  font-size: 0.75rem;
  padding: 0.25rem 0.75rem;
  border-radius: 12px;
  font-weight: 600;
}

.lms-difficulty {
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.lms-difficulty-beginner {
  background: #c6f6d5;
  color: #22543d;
}

.lms-difficulty-intermediate {
  background: #fed7d7;
  color: #742a2a;
}

.lms-difficulty-advanced {
  background: #fbb6ce;
  color: #702459;
}

.lms-lessons-count {
  background: #e2e8f0;
  color: #4a5568;
}

.lms-certificate {
  background: #fef5e7;
  color: #c05621;
}

.lms-course-title {
  margin: 0 0 1rem 0;
  font-size: 1.2rem;
  font-weight: 600;
  line-height: 1.4;
}

.lms-course-title a {
  color: #2d3748;
  text-decoration: none;
  transition: color 0.2s ease;
}

.lms-course-title a:hover {
  color: #eb642f;
}

.lms-course-excerpt {
  color: #718096;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

/* Barra de Progresso */
.lms-progress-container {
  margin-bottom: 1.5rem;
}

.lms-progress-bar {
  width: 100%;
  height: 8px;
  background: #e2e8f0;
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 0.5rem;
}

.lms-progress-fill {
  height: 100%;
  /* Gradiente de verde: do verde claro ao verde escuro */
  background: linear-gradient(90deg, #43e97b 0%, #2dd6b7 50%, #0bab64 100%);
  border-radius: 4px;
  transition: width 0.3s ease;
}

.lms-progress-text {
  font-size: 0.875rem;
  color: #4a5568;
  font-weight: 500;
}

/* Botões */
.lms-course-actions {
  display: flex;
  gap: 0.75rem;
}

.lms-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: 12px;
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  flex: 1;
  justify-content: center;
}

a.lms-btn.lms-btn-outline {
  font-family: "Dosis", sans-serif;
  font-weight: 600;
  font-size: 1.2rem;
  text-decoration: none;
  color: #eb642f;
}

a.lms-btn.lms-btn-outline:hover {
  color: #fff;
}

a.lms-btn.lms-btn-primary {
  background: var(--lms-primary);
  color: white;
  font-family: "Dosis", sans-serif;
  font-weight: 600;
  font-size: 1.2rem;
  text-decoration: none;
}

.lms-btn-primary {
  background: var(--lms-primary);
  color: white;
}

.lms-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.lms-btn-outline {
  background: transparent;
  border: 2px solid #eb642f;
}

.lms-btn-outline:hover {
  background: #eb642f;
  color: white;
}

/* Login Required */
.lms-login-required {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 400px;
  text-align: center;
}

.lms-login-content {
  background: white;
  padding: 3rem;
  border-radius: 20px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
  max-width: 400px;
  width: 100%;
}

.lms-login-icon {
  font-size: 4rem;
  margin-bottom: 1.5rem;
}

.lms-login-content h3 {
  color: #2d3748;
  margin-bottom: 1rem;
}

.lms-login-content p {
  color: #718096;
  margin-bottom: 2rem;
}

/* Estado Vazio */
.lms-empty-state {
  text-align: center;
  padding: 4rem 2rem;
  background: white;
  border-radius: 20px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.lms-empty-icon {
  font-size: 4rem;
  margin-bottom: 1.5rem;
}

.lms-empty-state h3 {
  color: #2d3748;
  margin-bottom: 1rem;
}

.lms-empty-state p {
  color: #718096;
  max-width: 500px;
  margin: 0 auto;
  line-height: 1.6;
}

/* Ícones usando CSS */
.lms-icon-book::before {
  content: "📚";
}
.lms-icon-gift::before {
  content: "🎁";
}
.lms-icon-play::before {
  content: "▶️";
}
.lms-icon-eye::before {
  content: "👁️";
}
.lms-icon-certificate::before {
  content: "🏆";
}

/* Responsividade */
@media (max-width: 768px) {
  .lms-meu-acesso {
    padding: 1rem;
  }

  .lms-user-header {
    flex-direction: column;
    gap: 2rem;
    text-align: center;
    padding: 2rem;
  }

  .lms-user-stats {
    justify-content: center;
  }

  .lms-courses-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .lms-course-actions {
    flex-direction: column;
  }

  .lms-btn {
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .lms-user-header {
    padding: 1.5rem;
  }

  .lms-user-stats {
    gap: 1rem;
  }

  .lms-stat {
    min-width: 100px;
    padding: 0.75rem;
  }

  .lms-stat-number {
    font-size: 1.5rem;
  }

  .lms-course-content {
    padding: 1rem;
  }
}
