/* Course Enrollment Page - Minimal Clean White Theme */
@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap");

.lms-enrollment-page {
  font-family: "Poppins", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
  background: #ffffff;
  line-height: 1.5;
  min-height: 100vh;
}

.enrollment-hero {
  background: #ffffff;
  padding: 3rem 2rem 2rem;
  border-bottom: 1px solid #e5e5e7;
}

@media (max-width: 768px) {
  .enrollment-hero {
    padding: 2rem 1rem 1.5rem;
  }
}

.enrollment-container {
  max-width: 1400px;
  margin: 0 auto;
}

.enrollment-grid {
  display: grid;
  grid-template-columns: 1fr 400px;
  gap: 3rem;
  align-items: start;
}

@media (max-width: 1024px) {
  .enrollment-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

.course-main-info h1 {
  font-size: 2.5rem;
  font-weight: 700;
  color: #000000;
  margin: 0 0 1rem 0;
  font-family: "Poppins", -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

@media (max-width: 768px) {
  .course-main-info h1 {
    font-size: 2rem;
  }
}

.course-subtitle {
  font-size: 1.125rem;
  line-height: 1.6;
  color: #000000;
  margin-left: 0;
  margin-bottom: 2rem;
}

.course-meta-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2rem;
}

.meta-badge {
  background: #ffffff;
  padding: 0.75rem 1.25rem;
  border-radius: 0.75rem;
  font-size: 0.875rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  border: 1px solid #e5e5e7;
  color: #000000;
  transition: all 0.2s ease;
}

.meta-badge:hover {
  background: #f8f9fa;
  border-color: #d1d5db;
}

.enrollment-card {
  background: #ffffff;
  border: 1px solid #e5e5e7;
  border-radius: 1rem;
  padding: 2rem;
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.04);
  position: sticky;
  top: 2rem;
}

@media (max-width: 1024px) {
  .enrollment-card {
    position: static;
  }
}

.enrollment-card .course-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 0.75rem;
  margin-bottom: 1.5rem;
  border: 1px solid #e5e5e7;
}

.enrollment-card .price {
  font-size: 2rem;
  font-weight: 700;
  color: #16a34a;
  margin-bottom: 0.5rem;
  text-align: center;
  font-family: "Poppins", -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}

.enrollment-card .price-label {
  text-align: center;
  color: #86868b;
  margin-bottom: 1.5rem;
  font-size: 0.875rem;
}

.enrollment-features {
  margin-bottom: 1.5rem;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid #e5e5e7;
}

.feature-item:last-child {
  border-bottom: none;
}

.feature-item span:first-child {
  color: #16a34a;
  font-size: 1rem;
  font-weight: 600;
  flex-shrink: 0;
}

.feature-item span {
  color: #000000;
  font-size: 0.875rem;
  line-height: 1.5;
}

@media (max-width: 768px) {
  .feature-item {
    padding: 0.625rem 0;
    gap: 0.5rem;
  }

  .feature-item span:first-child {
    font-size: 0.875rem;
  }

  .feature-item span {
    font-size: 0.8125rem;
  }
}

.enroll-button {
  width: 100%;
  padding: 1rem 2rem;
  background: #3385d1;
  color: #ffffff;
  border: none;
  border-radius: 0.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  text-decoration: none;
  font-family: "Poppins", -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  box-shadow: 0 2px 10px rgba(51, 133, 209, 0.2);
}

.enroll-button:hover {
  background: #2563eb;
  color: white;
  transform: translateY(-1px);
  box-shadow: 0 4px 15px rgba(37, 99, 235, 0.3);
}

.enroll-button.enrolled {
  background: #ffffff;
  color: #1d1d1f;
  border: 2px solid #1d1d1f;
}

.enroll-button.enrolled:hover {
  background: #f8f9fa;
  border-color: #000000;
}

.course-content-section {
  max-width: 1400px;
  margin: -2rem auto 4rem;
  padding: 0 2rem;
  position: relative;
}

@media (max-width: 768px) {
  .course-content-section {
    margin: -1rem auto 3rem;
    padding: 0 1rem;
  }
}

.content-card {
  background: #ffffff;
  border: 1px solid #e5e5e7;
  border-radius: 1rem;
  padding: 3rem;
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.04);
}

@media (max-width: 768px) {
  .content-card {
    padding: 2rem;
  }
}

.section-title {
  font-size: 1.75rem;
  font-weight: 700;
  color: #000000;
  margin: 0 0 2rem 0;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: "Poppins", -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  letter-spacing: -0.02em;
}

.section-icon {
  width: 1.5rem;
  height: 1.5rem;
  color: #3385d1;
}

.lessons-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.5rem;
}

@media (max-width: 1024px) {
  .lessons-grid {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.25rem;
  }
}

@media (max-width: 768px) {
  .lessons-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
}

.lesson-card {
  border: 1px solid #e5e5e7;
  border-radius: 0.75rem;
  padding: 1.5rem;
  margin-bottom: 0;
  transition: all 0.2s ease;
  background: #ffffff;
  height: fit-content;
}

.lesson-card:hover {
  border-color: #3385d1;
  box-shadow: 0 4px 20px rgba(51, 133, 209, 0.08);
  transform: translateY(-2px);
}

.lesson-featured-image {
  width: 100%;
  margin-bottom: 1rem;
  border-radius: 0.5rem;
  overflow: hidden;
  position: relative;
  padding-top: 56.25%;
  background: linear-gradient(135deg, #3385d1 0%, #00c4cc 100%);
}

.lesson-featured-image img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.lesson-card:hover .lesson-featured-image img {
  transform: scale(1.02);
}

.lesson-header {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1rem;
}

.lesson-number {
  background: #ffffff;
  color: #000000;
  border: 2px solid #000000;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.875rem;
  flex-shrink: 0;
  font-family: "Poppins", -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}

.lesson-title h3 {
  font-size: 1.125rem;
  font-weight: 600;
  color: #000000;
  margin: 0 0 0.5rem 0;
  font-family: "Poppins", -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  line-height: 1.3;
}

.lesson-meta {
  color: #000000;
  font-size: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.topics-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.5rem;
  margin-top: 1rem;
}

.topic-item {
  background: #ffffff;
  padding: 0.625rem 0.75rem;
  border-radius: 0.375rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  border: 1px solid #e5e5e7;
  transition: all 0.2s ease;
  font-size: 0.8125rem;
}

.topic-item:hover {
  background: #f8f9fa;
  border-color: #3385d1;
}

.topic-icon {
  font-size: 0.875rem;
  color: #3385d1;
  flex-shrink: 0;
}

.topic-title {
  flex: 1;
  color: #000000;
  font-weight: 500;
  line-height: 1.4;
}

.view-more-topics {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem;
  background: #f8f9fa;
  border: 1px dashed #d1d5db;
  border-radius: 0.375rem;
  margin-top: 0.5rem;
}

.more-topics-text {
  font-size: 0.75rem;
  color: #000000;
  font-weight: 500;
}

.view-topics-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.375rem 0.75rem;
  background: #3385d1;
  color: #ffffff;
  text-decoration: none;
  border-radius: 0.25rem;
  font-size: 0.75rem;
  font-weight: 600;
  transition: all 0.2s ease;
  font-family: "Poppins", -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}

.view-topics-btn:hover {
  background: #2563eb;
  color: white;
  transform: translateY(-1px);
}

.view-more-card {
  border: 2px dashed #e5e5e7;
  border-radius: 0.75rem;
  padding: 2rem;
  background: #fafbfc;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 300px;
  transition: all 0.2s ease;
  cursor: pointer;
}

.view-more-card:hover {
  border-color: #3385d1;
  background: #f0f7ff;
  transform: translateY(-2px);
}

.view-more-content {
  text-align: center;
  max-width: 250px;
}

.view-more-icon {
  width: 3rem;
  height: 3rem;
  color: #3385d1;
  opacity: 0.7;
}

.view-more-content h3 {
  font-size: 1.25rem;
  font-weight: 600;
  color: #000000;
  margin: 0 0 0.5rem 0;
  font-family: "Poppins", -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}

.view-more-content p {
  color: #000000;
  font-size: 0.875rem;
  margin: 0 0 1.5rem 0;
  line-height: 1.4;
}

.view-more-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  background: #3385d1;
  color: #ffffff;
  text-decoration: none;
  border-radius: 0.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  transition: all 0.2s ease;
  box-shadow: 0 2px 10px rgba(51, 133, 209, 0.2);
  font-family: "Poppins", -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}

.btn-icon {
  width: 1rem;
  height: 1rem;
}

.meta-icon {
  width: 0.875rem;
  height: 0.875rem;
  margin-right: 0.25rem;
}

.topic-icon-lucide {
  width: 0.75rem;
  height: 0.75rem;
  margin-right: 0.25rem;
}

.loading-icon {
  animation: spin 1s linear infinite;
}

.success-icon {
  color: var(--lms-success, #10b981);
}

@keyframes spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

.view-more-btn:hover {
  background: #2563eb;
  transform: translateY(-1px);
  box-shadow: 0 4px 15px rgba(37, 99, 235, 0.3);
}

/* Responsive Design */
@media (max-width: 1024px) {
  .enrollment-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .enrollment-card {
    position: static;
  }

  .course-main-info h1 {
    font-size: 2rem;
  }
}

@media (max-width: 768px) {
  .enrollment-hero {
    padding: 2rem 1rem 2rem;
  }

  .course-main-info h1 {
    font-size: 1.75rem;
  }

  .course-subtitle {
    font-size: 1rem;
  }

  .content-card {
    padding: 1.5rem;
  }

  .lesson-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .topics-list {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .enrollment-hero {
    padding: 1.5rem 1rem 1.5rem;
  }

  .enrollment-card {
    padding: 1.5rem;
  }

  .content-card {
    padding: 1rem;
  }

  .section-title {
    font-size: 1.5rem;
  }

  .lesson-card {
    padding: 1.5rem;
  }
}

/* Light mode support */
@media (prefers-color-scheme: light) {
  .lms-enrollment-page {
    background: #ffffff;
    color: #000000;
  }

  .enrollment-hero {
    background: #ffffff;
    border-bottom-color: #e5e5e7;
  }

  .course-main-info h1,
  .section-title,
  .lesson-title h3,
  .topic-title {
    color: #000000;
  }

  .course-subtitle,
  .lesson-description {
    color: #000000;
  }

  .meta-badge,
  .enrollment-card,
  .content-card,
  .lesson-card,
  .topic-item {
    background: #ffffff;
    border-color: #e5e5e7;
    color: #000000;
  }

  .meta-badge:hover,
  .topic-item:hover {
    background: #f8f9fa;
    border-color: #d1d5db;
  }

  .lesson-card:hover {
    border-color: #3385d1;
  }

  .lesson-meta {
    color: #000000;
  }

  .enroll-button.enrolled {
    background: #ffffff;
    color: #000000;
    border-color: #000000;
  }

  .enroll-button.enrolled:hover {
    background: #f8f9fa;
    border-color: #000000;
  }
}

/* Legacy styles for backward compatibility */
.hero-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 20px;
}

.hero-content h1 {
  font-size: 48px;
  font-weight: 700;
  margin-bottom: 20px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.hero-content p {
  font-size: 20px;
  opacity: 0.95;
  margin-bottom: 30px;
}
