/* ===== KuyaPads Learn CSS ===== */
/* Course marketplace and certificate system */

.kp-learn {
  background: var(--kp-bg-gradient);
  min-height: 100vh;
  color: var(--kp-color-text);
}

.learn-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem;
}

.section-title {
  text-align: center;
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 3rem;
  color: #ffffff;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

/* Learning Roadmap */
.learn-roadmap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 3rem;
  padding: 2rem;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.roadmap-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  flex: 1;
  position: relative;
}

.roadmap-step:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 30px;
  right: -50%;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, #4CAF50, #45a049);
  z-index: 1;
}

.step-number {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: linear-gradient(45deg, #4CAF50, #45a049);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  box-shadow: 0 4px 15px rgba(76, 175, 80, 0.3);
  position: relative;
  z-index: 2;
}

.step-content h3 {
  color: #ffffff;
  margin-bottom: 0.5rem;
  font-size: 1.2rem;
}

.step-content p {
  color: #e0e0e0;
  font-size: 0.9rem;
  margin: 0;
}

/* Featured Courses */
.featured-courses {
  margin-bottom: 3rem;
}

.featured-courses h2 {
  color: #ffffff;
  font-size: 2rem;
  margin-bottom: 2rem;
  text-align: center;
}

.course-tabs {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 2rem;
}

.course-tab {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #e0e0e0;
  padding: 12px 24px;
  border-radius: 25px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-weight: 600;
}

.course-tab:hover,
.course-tab.active {
  background: linear-gradient(45deg, #4CAF50, #45a049);
  color: #ffffff;
  border-color: #4CAF50;
  box-shadow: 0 4px 15px rgba(76, 175, 80, 0.3);
}

.courses-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
}

.course-card {
  background: rgba(40, 40, 40, 0.9);
  border-radius: 20px;
  overflow: hidden;
  transition: all 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.course-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
}

.course-image {
  position: relative;
  height: 200px;
  overflow: hidden;
}

.course-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.course-card:hover .course-image img {
  transform: scale(1.05);
}

.course-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  color: #ffffff;
}

.course-badge.new {
  background: linear-gradient(45deg, #4CAF50, #45a049);
}

.course-badge.popular {
  background: linear-gradient(45deg, #ff6b6b, #ee5a24);
}

.course-content {
  padding: 2rem;
}

.course-content h3 {
  color: #ffffff;
  font-size: 1.3rem;
  margin-bottom: 1rem;
  font-weight: 700;
}

.course-content p {
  color: #e0e0e0;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.course-meta {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.course-meta span {
  color: #cccccc;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.course-meta i {
  color: #4CAF50;
}

.course-price {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  padding: 1rem;
  background: rgba(76, 175, 80, 0.1);
  border-radius: 15px;
  border: 1px solid rgba(76, 175, 80, 0.3);
}

.course-price i {
  color: #4CAF50;
  font-size: 1.2rem;
}

.course-price span {
  color: #4CAF50;
  font-weight: 700;
  font-size: 1.1rem;
}

.course-price small {
  color: #e0e0e0;
  font-size: 0.9rem;
  margin-left: 0.5rem;
}

.course-btn {
  width: 100%;
  background: linear-gradient(45deg, #4CAF50, #45a049);
  color: #ffffff;
  border: none;
  padding: 15px;
  border-radius: 25px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(76, 175, 80, 0.3);
}

.course-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(76, 175, 80, 0.5);
}

/* Progress Tracker */
.progress-tracker {
  background: rgba(40, 40, 40, 0.9);
  border-radius: 20px;
  padding: 2rem;
  margin-bottom: 3rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.progress-tracker h2 {
  color: #ffffff;
  margin-bottom: 2rem;
  text-align: center;
}

.current-course {
  margin-bottom: 2rem;
}

.current-course h3 {
  color: #ffffff;
  margin-bottom: 1rem;
}

.progress-bar {
  width: 100%;
  height: 12px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 1rem;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(45deg, #4CAF50, #45a049);
  transition: width 0.3s ease;
}

.current-course p {
  color: #e0e0e0;
  font-size: 0.9rem;
  margin: 0;
}

/* Certificates Section */
.certificates-section {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 2rem;
}

.certificates-section h3 {
  color: #ffffff;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 10px;
}

.certificates-section h3 i {
  color: #ffd700;
}

.certificates-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}

.certificate-card {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 1.5rem;
  background: rgba(50, 50, 50, 0.8);
  border-radius: 15px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: all 0.3s ease;
}

.certificate-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

.certificate-icon {
  font-size: 3rem;
  color: #ffd700;
  flex-shrink: 0;
}

.certificate-info {
  flex: 1;
}

.certificate-info h4 {
  color: #ffffff;
  margin: 0 0 0.5rem 0;
  font-size: 1.1rem;
}

.certificate-info p {
  color: #e0e0e0;
  margin: 0 0 1rem 0;
  font-size: 0.9rem;
}

.view-cert-btn {
  background: linear-gradient(45deg, #ffd700, #ffed4e);
  color: #1a1a1a;
  border: none;
  padding: 8px 16px;
  border-radius: 20px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 0.9rem;
}

.view-cert-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(255, 215, 0, 0.3);
}

/* Responsive Design */
@media (max-width: 768px) {
  .learn-container {
    padding: 1rem;
  }
  
  .learn-roadmap {
    flex-direction: column;
    gap: 2rem;
  }
  
  .roadmap-step:not(:last-child)::after {
    display: none;
  }
  
  .courses-grid {
    grid-template-columns: 1fr;
  }
  
  .course-tabs {
    flex-wrap: wrap;
  }
  
  .certificates-grid {
    grid-template-columns: 1fr;
  }
  
  .certificate-card {
    flex-direction: column;
    text-align: center;
  }
}
