/* ==========================================================================
   sessionDetail Component Styles
   Renders the Session Detail View with:
   - Back button at top-left
   - Session Title & Description
   - 16:9 Featured Video Player Card
   - Complete stacked Library sections (Resources, Revision Video, Scribbled Notes, Carousel Posts, Attached Tools)
   ========================================================================== */

.session-detail-container {
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: 100%;
  box-sizing: border-box;
}

/* Top Back Button Row */
.session-detail-back-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: none;
  border: none;
  color: #374151;
  font-family: var(--font-inter, 'Inter', sans-serif);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  padding: 4px 0;
  outline: none;
  align-self: flex-start;
  transition: color 0.15s ease, transform 0.15s ease;
}

.session-detail-back-btn:hover {
  color: var(--color-primary, #5170FF);
  transform: translateX(-2px);
}

/* Title & Description Header */
.session-detail-header {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
}

.session-detail-title {
  font-family: var(--font-inter, 'Inter', sans-serif);
  font-size: 18px;
  font-weight: 700;
  color: #111827;
  letter-spacing: -0.02em;
  line-height: 1.3;
  margin: 0;
}

.session-detail-meta-row {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-inter, 'Inter', sans-serif);
  font-size: 11.5px;
  color: #374151;
}

.session-detail-duration-pill {
  background-color: #f1f5f9;
  border: 1px solid #cbd5e1;
  color: #1e293b;
  font-weight: 600;
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 4px;
}

.session-detail-description {
  font-family: var(--font-inter, 'Inter', sans-serif);
  font-size: 13px;
  font-weight: 400;
  color: #1f2937;
  line-height: 1.5;
  margin: 0;
}

/* Main Video Player Card */
.session-detail-video-card {
  width: 100%;
  border-radius: 12px;
  overflow: hidden;
  background-color: #0f172a;
  position: relative;
  aspect-ratio: 16 / 9;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
}

.session-detail-video-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.82;
  transition: opacity 0.3s ease;
}

.session-detail-play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: rgba(81, 112, 255, 0.94);
  color: #ffffff;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  transition: transform 0.2s ease, background-color 0.2s ease;
  outline: none;
  z-index: 3;
}

.session-detail-play-btn:hover {
  transform: translate(-50%, -50%) scale(1.08);
  background: #5170FF;
}

.session-detail-play-btn svg {
  margin-left: -1.5px;
}

/* Video Control Overlay */
.session-detail-video-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 12px 14px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #ffffff;
  z-index: 2;
}

.session-detail-video-time {
  font-family: var(--font-inter, 'Inter', sans-serif);
  font-size: 11.5px;
  font-weight: 500;
  color: #f8fafc;
}

/* Stacked Library Sections Wrapper */
.session-detail-library-wrapper {
  display: flex;
  flex-direction: column;
  gap: 24px;
  width: 100%;
  margin-top: 8px;
}
