/* css/course-detail.css — Tutor LMS style course detail page (dark theme) */

/* ═══ LAYOUT ═══ */
.tutor-wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1.5rem 2rem 3rem;
  color: #d4d4d4;
}

.tutor-container { width: 100%; }

.tutor-row {
  display: flex;
  gap: 2rem;
  align-items: flex-start;
}

.tutor-col-main {
  flex: 1;
  min-width: 0;
}

.tutor-col-sidebar {
  width: 340px;
  flex-shrink: 0;
  position: sticky;
  top: 100px;
}

/* ═══ HEADER ═══ */
.tutor-course-header {
  margin-bottom: 2rem;
}

.tutor-course-ratings-row {
  margin-bottom: 0.75rem;
}

.tutor-ratings {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.tutor-ratings-stars {
  display: flex;
  gap: 2px;
  color: #f0c040;
  font-size: 0.9rem;
}

.tutor-ratings-avg {
  font-weight: 700;
  color: #f0c040;
  font-size: 0.95rem;
}

.tutor-ratings-count {
  color: #888;
  font-size: 0.85rem;
}

.tutor-course-title {
  font-family: 'Exo', sans-serif;
  font-size: 1.8rem;
  font-weight: 700;
  color: #ffffff;
  margin: 0 0 1rem;
  line-height: 1.3;
}

.tutor-course-top-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 0.5rem;
}

.tutor-course-meta-info {
  color: #aaa;
  font-size: 0.9rem;
}

.tutor-cat-link {
  color: #beefbe;
  text-decoration: none;
}

.tutor-cat-link:hover {
  text-decoration: underline;
}

.tutor-course-actions-top {
  display: flex;
  gap: 0.75rem;
}

.inline-form { display: inline; }

.tutor-btn-ghost {
  background: transparent;
  border: 1px solid #555;
  color: #ccc;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.85rem;
  font-family: 'Exo', sans-serif;
  transition: all 0.2s;
}

.tutor-btn-ghost:hover {
  border-color: #beefbe;
  color: #beefbe;
}

/* ═══ THUMBNAIL ═══ */
.tutor-course-thumbnail {
  margin-bottom: 1.5rem;
  border-radius: 12px;
  overflow: hidden;
}

.tutor-course-thumbnail img {
  width: 100%;
  display: block;
}

/* ═══ TABS ═══ */
.tutor-tabs-container {
  margin-top: 1.5rem;
}

.tutor-tab-nav {
  display: flex;
  gap: 0;
  border-bottom: 2px solid #333;
  margin-bottom: 1.5rem;
}

.tutor-tab-link {
  padding: 0.75rem 1.25rem;
  color: #999;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  font-family: 'Exo', sans-serif;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  transition: all 0.2s;
}

.tutor-tab-link:hover {
  color: #eee;
}

.tutor-tab-link.is-active {
  color: #beefbe;
  border-bottom-color: #beefbe;
}

.tutor-tab-content {
  padding: 0.5rem 0;
}

/* ═══ ABOUT COURSE ═══ */
.tutor-about-course {
  margin-bottom: 2rem;
}

.tutor-about-course h2 {
  font-family: 'Exo', sans-serif;
  font-size: 1.2rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.75rem;
}

.tutor-description-body {
  color: #bbb;
  line-height: 1.6;
  font-size: 0.95rem;
}

.tutor-description-body ol, .tutor-description-body ul {
  padding-left: 1.5rem;
  margin: 0.5rem 0;
}

.tutor-description-body li {
  margin-bottom: 0.3rem;
}

/* ═══ CURRICULUM ACCORDION ═══ */
.tutor-curriculum-section {
  margin-top: 2rem;
}

.tutor-curriculum-section h3 {
  font-family: 'Exo', sans-serif;
  font-size: 1.2rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 1rem;
}

.tutor-accordion {
  display: flex;
  flex-direction: column;
  gap: 0;
  border: 1px solid #333;
  border-radius: 10px;
  overflow: hidden;
}

.tutor-accordion-item {
  border-bottom: 1px solid #333;
}

.tutor-accordion-item:last-child {
  border-bottom: none;
}

.tutor-accordion-header {
  display: flex;
  align-items: center;
  padding: 1rem 1.25rem;
  background: #1e1e1e;
  cursor: pointer;
  user-select: none;
  transition: background 0.2s;
}

.tutor-accordion-header:hover {
  background: #252525;
}

.tutor-accordion-title {
  flex: 1;
  font-weight: 600;
  color: #eee;
  font-size: 0.95rem;
}

.tutor-accordion-count {
  color: #888;
  font-size: 0.8rem;
  margin-right: 0.75rem;
}

.tutor-accordion-arrow {
  color: #888;
  font-size: 0.75rem;
  transition: transform 0.3s;
}

.tutor-accordion-header.is-active .tutor-accordion-arrow {
  transform: rotate(180deg);
}

.tutor-accordion-body {
  background: #161616;
}

.tutor-content-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.tutor-content-list-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.7rem 1.25rem 0.7rem 1.5rem;
  border-bottom: 1px solid #222;
  transition: background 0.15s;
}

.tutor-content-list-item:last-child {
  border-bottom: none;
}

.tutor-content-list-item:hover {
  background: #1a1a1a;
}

.tutor-content-list-item.completed {
  opacity: 0.7;
}

.tutor-content-item-left {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex: 1;
  min-width: 0;
}

.tutor-icon-video {
  color: #ff4444;
  font-size: 1rem;
  flex-shrink: 0;
}

.tutor-content-item-title {
  font-size: 0.88rem;
  min-width: 0;
}

.tutor-content-item-title a {
  color: #ccc;
  text-decoration: none;
}

.tutor-content-item-title a:hover {
  color: #beefbe;
}

.tutor-content-item-title .locked {
  color: #777;
}

.tutor-content-item-right {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-shrink: 0;
}

.tutor-content-duration {
  color: #888;
  font-size: 0.8rem;
  font-variant-numeric: tabular-nums;
}

.tutor-completed-icon { color: #beefbe; font-size: 0.9rem; }
.tutor-lock-icon { color: #666; font-size: 0.8rem; }
.tutor-eye-icon { color: #666; font-size: 0.8rem; }

/* ═══ REVIEWS ═══ */
.tutor-reviews-summary {
  margin-bottom: 1.5rem;
}

.tutor-review-avg-box {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  background: #1e1e1e;
  border-radius: 10px;
  border: 1px solid #333;
}

.tutor-review-avg-num {
  font-size: 2rem;
  font-weight: 700;
  color: #f0c040;
}

.tutor-review-avg-stars {
  color: #f0c040;
  font-size: 0.9rem;
}

.fa-youtube{
  color: #beefbe;
}

.tutor-review-total {
  color: #888;
  font-size: 0.85rem;
}

.tutor-reviews-list {
  margin-top: 4em;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.tutor-review-item {
  padding: 1rem;
  background: #1e1e1e;
  border: 1px solid #333;
  border-radius: 8px;
}

.tutor-review-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.5rem;
}

.tutor-review-avatar {
  font-size: 2rem;
  color: #555;
}

.tutor-review-meta strong {
  color: #eee;
  font-size: 0.9rem;
}

.tutor-review-stars {
  color: #f0c040;
  font-size: 0.8rem;
  margin-top: 2px;
}

.tutor-review-text {
  color: #aaa;
  font-size: 0.9rem;
  margin: 0;
  line-height: 1.5;
}

/* Rate form */
.tutor-rate-form-section {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid #333;
}

.tutor-rate-form-section h4 {
  color: #eee;
  margin-bottom: 0.75rem;
}

.tutor-rate-form textarea {
  width: 100%;
  padding: 0.7rem;
  background: #2b2b2b;
  border: 1px solid #444;
  border-radius: 8px;
  color: #eee;
  font-family: 'Exo', sans-serif;
  resize: vertical;
  box-sizing: border-box;
}

.rate-stars-input {
  display: flex;
  flex-direction: row-reverse;
  justify-content: flex-end;
  gap: 0.25rem;
  margin-bottom: 0.75rem;
}

.rate-stars-input input { display: none; }
.rate-stars-input label {
  font-size: 1.5rem;
  color: #555;
  cursor: pointer;
  transition: color 0.2s;
}

.rate-stars-input input:checked ~ label,
.rate-stars-input label:hover,
.rate-stars-input label:hover ~ label {
  color: #f0c040;
}

.no-content {
  color: #888;
  text-align: center;
  padding: 2rem;
}

.tutor-content-list .fa-circle-question {
  color: #beefbe;
}

/* ═══ SIDEBAR ═══ */
.tutor-sidebar-card {
  background: #1a1a1a;
  border: 1px solid #333;
  border-radius: 12px;
  overflow: hidden;
}

.tutor-sidebar-card-body {
  padding: 1.5rem;
}

/* Progress section */
.tutor-progress-section {
  margin-bottom: 1.5rem;
}

.tutor-progress-section h3 {
  font-family: 'Exo', sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.75rem;
}

.tutor-progress-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
  font-size: 0.85rem;
}

.progress-steps { color: #ccc; }
.progress-percentage { color: #aaa; }

.tutor-progress-bar {
  height: 8px;
  background: #333;
  border-radius: 4px;
  overflow: hidden;
}

.tutor-progress-value {
  height: 100%;
  background: linear-gradient(90deg, #98ff98, #beefbe);
  border-radius: 4px;
  transition: width 0.3s;
}

/* CTA Button */
.tutor-btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  background: linear-gradient(135deg, #98ff98, #beefbe);
  color: #1a1a1a;
  border: none;
  border-radius: 8px;
  font-weight: 700;
  font-family: 'Exo', sans-serif;
  font-size: 0.95rem;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s;
}

.tutor-btn-primary:hover {
  background: linear-gradient(135deg, #77ee77, #a8dfa8);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(152, 255, 152, 0.3);
}

.tutor-btn-block {
  display: flex;
  width: 100%;
  text-align: center;
  margin-top: 1rem;
}

/* Alert info */
.tutor-alert-info {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  margin-top: 1rem;
  padding: 0.75rem;
  background: rgba(255, 193, 7, 0.08);
  border-left: 3px solid #f0c040;
  border-radius: 6px;
  font-size: 0.8rem;
  color: #ccc;
}

.tutor-alert-info i {
  color: #f0c040;
  margin-top: 2px;
  flex-shrink: 0;
}

/* Enrolled date */
.tutor-enrolled-date {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  margin-top: 1rem;
  font-size: 0.82rem;
  color: #aaa;
}

.tutor-enrolled-date i {
  color: #beefbe;
  margin-top: 2px;
}

.tutor-enrolled-date strong {
  color: #beefbe;
}

/* Sidebar card footer */
.tutor-sidebar-card-footer {
  padding: 1.25rem 1.5rem;
  border-top: 1px solid #333;
}

.tutor-course-info-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.tutor-course-info-list li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.5rem 0;
  font-size: 0.88rem;
  color: #bbb;
}

.tutor-course-info-list li i {
  color: #fff;
  width: 16px;
  text-align: center;
  flex-shrink: 0;
}

/* Sidebar widgets */
.tutor-sidebar-widgets {
  margin-top: 1.25rem;
}

.tutor-widget {
  margin-bottom: 1.5rem;
}

.tutor-widget h3 {
  font-family: 'Exo', sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.75rem;
}

.tutor-widget-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.tutor-widget-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  margin-bottom: 0.6rem;
  font-size: 0.88rem;
  color: #ccc;
  line-height: 1.5;
}

.tutor-bullet {
  color: #666;
  font-size: 0.35rem;
  margin-top: 7px;
  flex-shrink: 0;
}

.tutor-tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tutor-tag {
  display: inline-block;
  padding: 0.3rem 0.75rem;
  background: #2a2a2a;
  border: 1px solid #444;
  border-radius: 6px;
  color: #ccc;
  text-decoration: none;
  font-size: 0.82rem;
  transition: all 0.2s;
}

.tutor-tag:hover {
  border-color: #beefbe;
  color: #beefbe;
}

/* ═══ RESPONSIVE ═══ */
@media (max-width: 1024px) {
  .tutor-row {
    flex-direction: column;
  }
  .tutor-col-sidebar {
    width: 100%;
    position: static;
  }
}

@media (max-width: 768px) {
  .tutor-wrap { padding: 1rem; }
  .tutor-course-title { font-size: 1.4rem; }
  
  .tutor-tab-nav {
    overflow-x: auto;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
  }
  
  .tutor-course-top-row {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ═══════════════ Course completion banner ═══════════════ */

.course-completed-banner {
  background: linear-gradient(160deg, #1a3a1a, #1a2a1a);
  border: 1px solid #2d5a2d;
  border-radius: 12px;
  padding: 1.25rem 1.5rem;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  color: #beefbe;
  font-size: .95rem;
}
.course-completed-banner i { font-size: 1.5rem; color: #4caf50; flex-shrink: 0; }
.course-completed-banner a { color: #beefbe; font-weight: 600; text-decoration: underline; }
.course-completed-banner .tutor-btn-primary {
  text-decoration: none;
  padding: .5rem 1rem;
  background: #2d5a2d;
  border: 1px solid #4caf50;
  border-radius: 8px;
  color: #beefbe;
  font-size: .85rem;
  cursor: pointer;
  transition: background .2s;
}
.course-completed-banner .tutor-btn-primary:hover { background: #3a7a3a; }

/* ═══════════════ Course completed toast ═══════════════ */

.course-completed-toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: #1a2a1a;
  border: 1px solid #2d5a2d;
  border-radius: 12px;
  padding: 1rem 1.25rem;
  color: #beefbe;
  font-size: .9rem;
  z-index: 9999;
  max-width: 340px;
  display: flex;
  align-items: flex-start;
  gap: .75rem;
  box-shadow: 0 8px 32px rgba(0,0,0,.5);
  animation: toastSlideIn .3s ease;
}
.course-completed-toast i.fa-check-circle { color: #4caf50; font-size: 1.2rem; flex-shrink: 0; }
.course-completed-toast .toast-close {
  background: none; border: none; color: #888; cursor: pointer;
  font-size: 1rem; padding: 0; margin-left: auto; flex-shrink: 0;
}
.course-completed-toast .toast-close:hover { color: #ccc; }
@keyframes toastSlideIn { from { transform: translateY(20px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }

/* ═══════════════ Button variants ═══════════════ */

.tutor-btn-danger {
  background: #3a1a1a;
  color: #ef9a9a;
  border: 1px solid #5a2d2d;
  border-radius: 8px;
  cursor: pointer;
  transition: background .2s;
  font-family: 'Exo', sans-serif;
  padding: .5rem 1rem;
}
.tutor-btn-danger:hover { background: #5a2d2d; }

.tutor-btn-primary {
  background: #2d5a2d;
  color: #beefbe;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-family: 'Exo', sans-serif;
  padding: .5rem 1rem;
  transition: background .2s;
}
.tutor-btn-primary:hover { background: #3a7a3a; }

/* ═══════════════ Reviews pagination ═══════════════ */

.tutor-reviews-pagination {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid #333;
}
.tutor-reviews-pagination a {
  color: #beefbe;
  text-decoration: none;
  padding: .5rem 1rem;
  border: 1px solid #333;
  border-radius: 8px;
  transition: background .2s, border-color .2s;
}
.tutor-reviews-pagination a:hover { background: #1e1e1e; border-color: #4caf50; }
.tutor-reviews-pagination .pagination-disabled {
  color: #555;
  pointer-events: none;
  border: 1px solid #222;
  padding: .5rem 1rem;
  border-radius: 8px;
}
