/* c:/xampp/htdocs/ng/ngone/assets/css/player.css */
/* Udemy-Grade Professional Video Classroom & Document Player */

:root {
  --udemy-dark: #1c1d1f;
  --udemy-gray-dark: #2d2f31;
  --udemy-gray-light: #f7f9fa;
  --udemy-border: #d1d7dc;
  --udemy-border-subtle: #eef2f6;
  --udemy-purple: #5624d0;
  --udemy-purple-hover: #401b9c;
  --udemy-blue: #2563eb;
  --udemy-emerald: #059669;
}

/* ==========================================================================
   Classroom Top Header Bar
   ========================================================================== */

.classroom-header-bar {
  background: var(--udemy-dark);
  color: #ffffff;
  padding: 0.65rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  z-index: 50;
  box-sizing: border-box;
}

.classroom-header-left {
  display: flex;
  align-items: center;
  gap: 1rem;
  min-width: 0;
  flex: 1;
}

.btn-classroom-back {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.85rem;
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  font-size: 0.82rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.btn-classroom-back:hover {
  background: rgba(255, 255, 255, 0.2);
  color: #ffffff;
}

.classroom-course-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: #ffffff;
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.2;
}

.classroom-header-right {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-shrink: 0;
}

.classroom-progress-wrap {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.progress-track-mini {
  width: 100px;
  height: 6px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 10px;
  overflow: hidden;
}

.progress-bar-fill {
  height: 100%;
  background: #10b981;
  border-radius: 10px;
  transition: width 0.3s ease;
}

.progress-text-label {
  font-size: 0.78rem;
  color: #cbd5e1;
  font-weight: 600;
  white-space: nowrap;
}

.btn-sidebar-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.85rem;
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-sidebar-toggle:hover {
  background: rgba(255, 255, 255, 0.2);
}

/* ==========================================================================
   Classroom Main Layout Grid
   ========================================================================== */

.player-layout {
  display: grid;
  grid-template-columns: 1fr 380px;
  min-height: calc(100vh - 120px);
  background: #f8fafc;
  position: relative;
}

.player-layout.sidebar-hidden {
  grid-template-columns: 1fr;
}

.player-layout.sidebar-hidden .player-playlist-sidebar {
  display: none;
}

@media (max-width: 1024px) {
  .player-layout {
    grid-template-columns: 1fr;
  }
}

/* Playback Left Stage */
.player-main-area {
  display: flex;
  flex-direction: column;
  background: #ffffff;
  min-width: 0;
}

.video-stage-container {
  width: 100%;
  background: #000000;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.video-frame-wrap {
  width: 100%;
  max-width: 1280px;
  aspect-ratio: 16 / 9;
  background: #000000;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.video-frame-wrap iframe, 
.video-frame-wrap video {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}

/* Interactive PDF Viewer Frame */
.pdf-player-container {
  display: flex;
  flex-direction: column;
  background: #1e293b;
  width: 100%;
}

.pdf-player-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1.5rem;
  background: #0f172a;
  color: #ffffff;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  gap: 1rem;
  flex-wrap: wrap;
}

.pdf-viewer-frame-wrap {
  width: 100%;
  height: 680px;
  background: #334155;
  position: relative;
}

.pdf-viewer-frame-wrap iframe {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}

/* ==========================================================================
   Below Player: Udemy Style Tabs (Overview, Resources, Notes, Instructor)
   ========================================================================== */

.classroom-tabs-nav {
  display: flex;
  align-items: center;
  gap: 2rem;
  padding: 0 1.75rem;
  background: #ffffff;
  border-bottom: 1px solid #e2e8f0;
  overflow-x: auto;
}

.classroom-tab-btn {
  padding: 1rem 0.25rem;
  background: transparent;
  border: none;
  border-bottom: 3px solid transparent;
  font-size: 0.92rem;
  font-weight: 700;
  color: #64748b;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.classroom-tab-btn:hover {
  color: #0f172a;
}

.classroom-tab-btn.active {
  color: #0f172a;
  border-bottom-color: #0f172a;
}

.classroom-tab-pane {
  padding: 1.75rem 2rem 3rem;
  display: none;
}

.classroom-tab-pane.active {
  display: block;
}

/* Overview Header */
.lecture-headline-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid #f1f5f9;
}

.lecture-title-big {
  font-size: 1.45rem;
  font-weight: 800;
  color: #0f172a;
  margin: 0.35rem 0 0.5rem;
  line-height: 1.3;
}

.lecture-meta-trail {
  font-size: 0.82rem;
  color: #64748b;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-wrap: wrap;
}

.item-type-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.2rem 0.55rem;
  border-radius: 6px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.item-type-pill.video {
  background: #eff6ff;
  color: #1d4ed8;
  border: 1px solid #dbeafe;
}

.item-type-pill.pdf {
  background: #ecfdf5;
  color: #047857;
  border: 1px solid #a7f3d0;
}

/* Resources Box */
.resource-callout-card {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 1.15rem 1.35rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}

.resource-info-left {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.resource-icon-bubble {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: #eff6ff;
  color: #2563eb;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* ==========================================================================
   Udemy-Style Playlist Sidebar (Course Content)
   ========================================================================== */

.player-playlist-sidebar {
  background: #ffffff;
  border-left: 1px solid var(--udemy-border);
  display: flex;
  flex-direction: column;
  height: 100%;
  max-height: calc(100vh - 60px);
  overflow-y: auto;
  position: sticky;
  top: 0;
}

.playlist-head-box {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--udemy-border);
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
}

.playlist-head-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: #1c1d1f;
  margin: 0;
}

.btn-toggle-all-sections {
  background: transparent;
  border: none;
  color: #5624d0;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  padding: 0;
}

.btn-toggle-all-sections:hover {
  text-decoration: underline;
}

/* Section Folder Accordion */
.udemy-section-group {
  border-bottom: 1px solid #eef2f6;
}

.udemy-section-header {
  padding: 0.9rem 1.25rem;
  background: #f7f9fa;
  border-bottom: 1px solid #eef2f6;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  user-select: none;
  transition: background 0.15s ease;
}

.udemy-section-header:hover {
  background: #f1f5f9;
}

.section-head-left {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  min-width: 0;
  flex: 1;
}

.section-head-title {
  font-size: 0.9rem;
  font-weight: 700;
  color: #1c1d1f;
  margin: 0;
  line-height: 1.3;
}

.section-head-meta {
  font-size: 0.75rem;
  color: #6a6f73;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.udemy-section-header .chevron-arrow {
  width: 16px;
  height: 16px;
  color: #6a6f73;
  transition: transform 0.2s ease;
  flex-shrink: 0;
  margin-left: 0.5rem;
}

.udemy-section-group.collapsed .chevron-arrow {
  transform: rotate(-90deg);
}

.udemy-section-group.collapsed .udemy-section-items {
  display: none;
}

/* Lesson Items */
.udemy-lesson-row {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  padding: 0.85rem 1.25rem;
  border-bottom: 1px solid #f7f9fa;
  cursor: pointer;
  transition: all 0.15s ease;
  background: #ffffff;
  position: relative;
}

.udemy-lesson-row:hover {
  background: #f7f9fa;
}

.udemy-lesson-row.active {
  background: #eff6ff;
  border-left: 4px solid #2563eb;
}

.lesson-check-wrap {
  margin-top: 0.15rem;
  flex-shrink: 0;
}

.lesson-check-box {
  width: 18px;
  height: 18px;
  border-radius: 4px;
  border: 2px solid #94a3b8;
  display: flex;
  align-items: center;
  justify-content: center;
  color: transparent;
  cursor: pointer;
  transition: all 0.15s ease;
}

.lesson-check-box.checked {
  background: #10b981;
  border-color: #10b981;
  color: #ffffff;
}

.lesson-main-info {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  min-width: 0;
  flex: 1;
}

.lesson-title-line {
  font-size: 0.86rem;
  font-weight: 600;
  color: #1c1d1f;
  line-height: 1.35;
}

.udemy-lesson-row.active .lesson-title-line {
  color: #1d4ed8;
  font-weight: 700;
}

.lesson-sub-meta {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.74rem;
  color: #6a6f73;
  flex-wrap: wrap;
}

.lesson-type-icon {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

.resource-pill-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.15rem 0.45rem;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 4px;
  color: #334155;
  font-size: 0.72rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.15s ease;
}

.resource-pill-btn:hover {
  background: #f1f5f9;
  border-color: #94a3b8;
  color: #0f172a;
}

/* ==========================================================================
   Udemy-Style Public Sales Page Curriculum Accordion (product.php)
   ========================================================================== */

.udemy-public-curriculum {
  background: #ffffff;
  border: 1px solid var(--udemy-border-subtle);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.03);
  margin-bottom: 2rem;
}

.curriculum-meta-summary-bar {
  padding: 1.1rem 1.5rem;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--udemy-border-subtle);
  flex-wrap: wrap;
  gap: 0.75rem;
}

.curriculum-summary-text {
  font-size: 0.85rem;
  color: #475569;
  font-weight: 500;
}

.public-section-card {
  border-bottom: 1px solid #f1f5f9;
}

.public-section-card:last-child {
  border-bottom: none;
}

.public-section-toggle {
  padding: 1rem 1.5rem;
  background: #f8fafc;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  user-select: none;
  transition: background 0.15s ease;
}

.public-section-toggle:hover {
  background: #f1f5f9;
}

.public-section-title-wrap {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
  flex: 1;
}

.public-section-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: #0f172a;
  margin: 0;
}

.public-section-meta {
  font-size: 0.8rem;
  color: #64748b;
  white-space: nowrap;
}

.public-lecture-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 1.5rem 0.85rem 3rem;
  border-top: 1px solid #f8fafc;
  background: #ffffff;
  gap: 1rem;
}

.public-lecture-item:hover {
  background: #fafbfc;
}

.public-lecture-left {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
}

.public-lecture-left svg {
  color: #64748b;
  flex-shrink: 0;
}

.public-lecture-title {
  font-size: 0.88rem;
  color: #1e293b;
  font-weight: 500;
}

.public-lecture-right {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  flex-shrink: 0;
  font-size: 0.8rem;
  color: #64748b;
}

.btn-public-preview {
  color: #2563eb;
  font-weight: 700;
  background: transparent;
  border: none;
  cursor: pointer;
  text-decoration: underline;
  padding: 0;
  font-size: 0.8rem;
}

.public-section-card.collapsed .public-section-items {
  display: none;
}

.public-section-card.collapsed .chevron-icon {
  transform: rotate(-90deg);
}

/* ==========================================================================
   Responsive Adaptations
   ========================================================================== */

@media (max-width: 768px) {
  .classroom-header-bar {
    padding: 0.5rem 1rem;
  }
  .classroom-course-title {
    font-size: 0.85rem;
  }
  .classroom-progress-wrap {
    display: none;
  }
  .pdf-viewer-frame-wrap {
    height: 480px;
  }
  .classroom-tab-pane {
    padding: 1.25rem 1rem 2rem;
  }
}
