/* Course Modal Styles */
.course-modal {
  max-width: 1200px;
  width: 95vw;
  max-height: 95vh;
  overflow-y: auto;
}

.course-modal-hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
  align-items: start;
}

.course-modal-image {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
}

.course-modal-image img {
  width: 100%;
  height: 250px;
  object-fit: cover;
}

.course-modal-badges {
  position: absolute;
  top: 1rem;
  left: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.certificate-badge, .free-badge, .level-badge {
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.875rem;
  font-weight: 500;
  backdrop-filter: blur(10px);
}

.certificate-badge {
  background: rgba(34, 197, 94, 0.2);
  color: #22c55e;
  border: 1px solid rgba(34, 197, 94, 0.3);
}

.free-badge {
  background: rgba(34, 197, 94, 0.2);
  color: #22c55e;
  border: 1px solid rgba(34, 197, 94, 0.3);
}

.level-badge {
  background: rgba(99, 102, 241, 0.2);
  color: #6366f1;
  border: 1px solid rgba(99, 102, 241, 0.3);
}

.course-modal-meta {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.meta-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem;
  background: var(--surface);
  border-radius: var(--radius);
  border: 1px solid var(--line);
}

.meta-label {
  font-weight: 500;
  color: var(--muted);
  font-size: 0.875rem;
}

.meta-value {
  font-weight: 600;
  color: var(--text);
}

.course-modal-content {
  margin-bottom: 2rem;
}

.course-description, .course-topics, .course-requirements, .course-details {
  margin-bottom: 1.5rem;
}

.course-description h3, .course-topics h3, .course-requirements h3 {
  margin-bottom: 0.75rem;
  color: var(--text);
  font-size: 1.125rem;
  font-weight: 600;
}

.course-description p {
  line-height: 1.6;
  color: var(--muted);
}

.topics-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.topic-tag {
  padding: 0.5rem 1rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 20px;
  font-size: 0.875rem;
  color: var(--text);
  font-weight: 500;
}

.course-details {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
}

.detail-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem;
  background: var(--surface);
  border-radius: var(--radius);
  border: 1px solid var(--line);
}

.detail-label {
  font-weight: 500;
  color: var(--muted);
  font-size: 0.875rem;
}

.detail-value {
  font-weight: 600;
  color: var(--text);
}

.price-value.free {
  color: #22c55e;
}

.price-value.paid {
  color: var(--brand1);
}

.course-modal-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
}

.course-enroll-btn {
  flex: 1;
  min-width: 200px;
  font-weight: 600;
  font-size: 1rem;
  padding: 0.875rem 1.5rem;
}

/* Responsive design for course modal */
@media (max-width: 768px) {
  .course-modal-hero {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .course-modal-image img {
    height: 200px;
  }
  
  .course-details {
    grid-template-columns: 1fr;
  }
  
  .course-modal-actions {
    flex-direction: column;
  }
  
  .course-enroll-btn {
    min-width: auto;
  }
}
