/* ===== OFIS Learning Hub - Main Styles ===== */

/* Hero gradient */
.hero-gradient {
  background: linear-gradient(135deg, #6d28d9 0%, #7c3aed 30%, #8b5cf6 60%, #a78bfa 100%);
}
.hero-gradient-sm {
  background: linear-gradient(135deg, #6d28d9 0%, #8b5cf6 100%);
}

/* Cards - POP style */
.course-card {
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.3s ease;
  border: 2px solid transparent;
  background-clip: padding-box;
}
.course-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 20px 50px rgba(139, 92, 246, 0.25), 0 0 0 2px rgba(139, 92, 246, 0.15);
}

/* Course image with POP overlay */
.course-img {
  height: 200px;
  background-size: cover;
  background-position: center;
  position: relative;
  overflow: hidden;
}
.course-img-overlay {
  position: absolute;
  inset: 0;
  mix-blend-mode: multiply;
  opacity: 0.85;
  transition: opacity 0.3s ease;
}
.course-card:hover .course-img-overlay {
  opacity: 0.65;
}
.course-img::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.45) 0%, rgba(0,0,0,0.05) 60%);
  z-index: 1;
}
.course-img-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: flex-start;
  gap: 8px;
  height: 100%;
  padding: 20px;
}
.course-icon-badge {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: rgba(255,255,255,0.25);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  box-shadow: 0 4px 15px rgba(0,0,0,0.15);
  border: 1px solid rgba(255,255,255,0.3);
}

/* Accordion */
.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}
.accordion-content.open {
  max-height: 2000px;
}
.accordion-header {
  cursor: pointer;
  user-select: none;
}
.accordion-header:hover {
  background-color: #f5f3ff;
}
.accordion-icon {
  transition: transform 0.3s;
}
.accordion-header.active .accordion-icon {
  transform: rotate(180deg);
}

/* Progress bar */
.progress-bar {
  height: 6px;
  background: #e5e7eb;
  border-radius: 3px;
  overflow: hidden;
}
.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #7c3aed, #a78bfa);
  border-radius: 3px;
  transition: width 0.5s ease;
}

/* Smooth scrollbar */
::-webkit-scrollbar {
  width: 6px;
}
::-webkit-scrollbar-track {
  background: #f1f1f1;
}
::-webkit-scrollbar-thumb {
  background: #c4b5fd;
  border-radius: 3px;
}

/* Toast notification */
.toast {
  position: fixed;
  bottom: 20px;
  right: 20px;
  padding: 12px 24px;
  border-radius: 12px;
  color: white;
  font-weight: 500;
  z-index: 9999;
  animation: slideIn 0.3s ease, fadeOut 0.3s ease 2.7s;
}
.toast.success { background: #059669; }
.toast.error { background: #dc2626; }
.toast.info { background: #7c3aed; }

@keyframes slideIn {
  from { transform: translateX(100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}
@keyframes fadeOut {
  from { opacity: 1; }
  to { opacity: 0; }
}

/* Badge */
.badge {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
}
.badge-purple { background: #ede9fe; color: #6d28d9; }
.badge-green { background: #d1fae5; color: #059669; }
.badge-blue { background: #dbeafe; color: #2563eb; }

/* Lesson status icons */
.lesson-item {
  transition: background-color 0.15s;
}
.lesson-item:hover {
  background-color: #f9fafb;
}
