/**
 * WP LMS Pro Stylesheet
 */

:root {
  --wplms-primary: #2563eb;
  --wplms-primary-hover: #1d4ed8;
  --wplms-success: #16a34a;
  --wplms-dark: #0f172a;
  --wplms-gray-100: #f1f5f9;
  --wplms-gray-200: #e2e8f0;
  --wplms-gray-600: #475569;
  --wplms-radius: 12px;
}

/* Container */
.wplms-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 30px 20px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: #1e293b;
}

/* Course Grid */
.wplms-courses-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
  margin-top: 24px;
}

.wplms-course-card {
  background: #ffffff;
  border: 1px solid var(--wplms-gray-200);
  border-radius: var(--wplms-radius);
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  display: flex;
  flex-direction: column;
}

.wplms-course-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px -10px rgba(0, 0, 0, 0.1);
}

.wplms-card-thumb {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  background: #e2e8f0;
}

.wplms-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.wplms-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  padding: 4px 10px;
  border-radius: 9999px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.wplms-badge-free {
  background: #dcfce7;
  color: #15803d;
}

.wplms-badge-paid {
  background: #dbeafe;
  color: #1d4ed8;
}

.wplms-card-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.wplms-level {
  font-size: 12px;
  text-transform: uppercase;
  font-weight: 600;
  color: #64748b;
  margin-bottom: 6px;
}

.wplms-title {
  font-size: 18px;
  font-weight: 700;
  line-height: 1.4;
  margin: 0 0 8px;
}

.wplms-title a {
  color: #0f172a;
  text-decoration: none;
}

.wplms-title a:hover {
  color: var(--wplms-primary);
}

.wplms-instructor {
  font-size: 14px;
  color: #64748b;
  margin-bottom: 16px;
}

.wplms-card-footer {
  margin-top: auto;
}

/* Buttons */
.wplms-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 20px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  border: 1px solid transparent;
  transition: background 0.15s ease;
}

.wplms-btn-primary {
  background: var(--wplms-primary);
  color: #ffffff;
}

.wplms-btn-primary:hover {
  background: var(--wplms-primary-hover);
}

.wplms-btn-lg {
  width: 100%;
  padding: 14px 24px;
  font-size: 16px;
}

/* YouTube Video Responsive Wrapper */
.wplms-video-responsive {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 aspect ratio */
  height: 0;
  overflow: hidden;
  max-width: 100%;
  background: #000;
  border-radius: 10px;
}

.wplms-video-responsive iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* Classroom Layout */
.wplms-classroom-layout {
  display: flex;
  min-height: calc(100vh - 80px);
  background: #f8fafc;
}

.wplms-classroom-main {
  flex: 1;
  padding: 30px;
  max-width: 900px;
}

.wplms-classroom-sidebar {
  width: 340px;
  background: #ffffff;
  border-left: 1px solid var(--wplms-gray-200);
  padding: 24px;
}

.wplms-lesson-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--wplms-gray-200);
}

.wplms-btn-completed {
  background: #22c55e;
  color: #fff;
}

.wplms-progress-bar-wrap {
  width: 100%;
  height: 8px;
  background: #e2e8f0;
  border-radius: 9999px;
  overflow: hidden;
  margin: 10px 0;
}

.wplms-progress-bar-fill {
  height: 100%;
  background: #22c55e;
  transition: width 0.3s ease;
}

/* Access Gate */
.wplms-access-gate {
  text-align: center;
  padding: 80px 20px;
}

.wplms-gate-card {
  background: #ffffff;
  padding: 40px;
  border-radius: var(--wplms-radius);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
  max-width: 480px;
  margin: 0 auto;
}

.wplms-lock-big {
  font-size: 48px;
  display: block;
  margin-bottom: 16px;
}
