/* Enrollment Banner */
.enrollment-banner {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 12px;
  padding: 32px;
  margin: 24px 0;
  display: flex;
  align-items: center;
  gap: 24px;
  color: white;
  box-shadow: 0 10px 30px rgba(102, 126, 234, 0.3);
}

.enrollment-banner__icon {
  font-size: 3rem;
  flex-shrink: 0;
}

.enrollment-banner__content {
  flex: 1;
}

.enrollment-banner__content h3 {
  margin: 0 0 8px 0;
  font-size: 1.5rem;
  font-weight: 600;
  color: white;
}

.enrollment-banner__content p {
  margin: 0 0 16px 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: 1rem;
}

.enrollment-banner__button {
  background: white;
  color: #667eea;
  border: none;
  padding: 14px 28px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: transform 0.2s, box-shadow 0.2s;
}

.enrollment-banner__button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.enrollment-banner__button:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.enrollment-banner__button.button--success {
  background: #10b981;
  color: white;
}

.button__icon {
  font-size: 1.2em;
}

.button__spinner {
  display: inline-block;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.course-detail__badge--enrolled {
  background: #10b981;
  color: white;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 0.875rem;
  font-weight: 600;
}

.course-detail__locked {
  text-align: center;
  padding: 48px 24px;
  background: #f9fafb;
  border-radius: 8px;
  color: #6b7280;
}

.course-detail__locked p {
  font-size: 1.1rem;
  margin: 0;
}

/* Course Card Enrollment */
.free-course-card__badge {
  position: absolute;
  top: 12px;
  right: 12px;
  background: #10b981;
  color: white;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
}

.free-course-card__image {
  position: relative;
}

.free-course-card__actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.button--secondary {
  background: #f3f4f6;
  color: #374151;
  border: 1px solid #d1d5db;
}

.button--secondary:hover {
  background: #e5e7eb;
}

.button--success {
  background: #10b981 !important;
  color: white !important;
}

.button--full {
  width: 100%;
  justify-content: center;
}

.button span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* Locked Module/Lesson Styles */
.module-section--locked {
  background: rgba(31, 41, 55, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.08);
  opacity: 0.65;
  position: relative;
}

.module-section--locked::after {
  content: '🔒';
  position: absolute;
  top: 16px;
  right: 16px;
  font-size: 2rem;
  opacity: 0.3;
  pointer-events: none;
  z-index: 10;
}

.module-section--locked .module-section__header {
  cursor: pointer;
  opacity: 1;
}

.module-section--locked .module-section__title {
  color: rgba(255, 255, 255, 0.7);
}

.module-section--locked .module-section__description {
  color: rgba(155, 163, 175, 0.6);
}

.module-section--locked .module-section__icon {
  opacity: 0.5;
  background: rgba(139, 92, 246, 0.06);
  border-color: rgba(139, 92, 246, 0.1);
}

.module-section--locked .module-section__summary-text {
  color: rgba(255, 255, 255, 0.6);
}

.module-section--locked .module-section__summary-icon {
  opacity: 0.5;
}

.module-section--locked .module-section__toggle-icon {
  opacity: 0.5;
}

.lesson-item--locked {
  background: rgba(255, 255, 255, 0.015);
  border: 1px solid rgba(255, 255, 255, 0.03);
  cursor: not-allowed;
  opacity: 0.6;
  position: relative;
}

.lesson-item--locked .lesson-item__number {
  background: rgba(255, 255, 255, 0.05);
  color: rgba(255, 255, 255, 0.4);
}

.lesson-item--locked h4 {
  color: rgba(255, 255, 255, 0.6);
}

.lesson-item__locked-text {
  font-size: 0.85rem;
  color: rgba(155, 163, 175, 0.7);
  font-style: italic;
  margin-top: 4px;
}

.lesson-item__locked-icon {
  font-size: 1.5rem;
  opacity: 0.3;
}
