/* ==========================================================================
   projectDetailView Component Styles
   Dedicated view rendered when a project item is opened.
   Features:
   - Top left back button
   - Card container with title, description
   - Subtle detail pills for days, per-day time commitment, and level
   - Sideways scrollable 5 tabs with bluish line selector at bottom of active text
   - Dynamic markdown content wrapper
   ========================================================================== */

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

/* Top Left Back Button */
.project-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;
}

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

/* Main Header Card */
.project-detail-header-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
  background-color: #ffffff;
  border: 1px solid #e9ecef;
  border-radius: 12px;
  padding: 18px 16px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
  box-sizing: border-box;
}

/* Title */
.project-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;
}

/* Description */
.project-detail-description {
  font-family: var(--font-inter, 'Inter', sans-serif);
  font-size: 13.5px;
  font-weight: 400;
  color: #374151;
  line-height: 1.5;
  margin: 0;
}

/* Subtle Details Meta Grid / Row */
.project-detail-meta-grid {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 4px;
}

/* Meta Pill */
.project-meta-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background-color: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 5px 10px;
  font-family: var(--font-inter, 'Inter', sans-serif);
  font-size: 12px;
  font-weight: 500;
  color: #374151;
  transition: background-color 0.15s ease;
}

.project-meta-pill span {
  line-height: 1.2;
}

.project-meta-pill svg {
  flex-shrink: 0;
}

/* 5 Scrollable Sideways Tabs Container */
.project-tabs-nav {
  display: flex;
  align-items: center;
  gap: 20px;
  width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  white-space: nowrap;
  border-bottom: 1px solid #e2e8f0;
  padding: 0 4px;
  margin-top: 4px;
  box-sizing: border-box;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none; /* Hide scrollbar Firefox */
}

.project-tabs-nav::-webkit-scrollbar {
  display: none; /* Hide scrollbar Chrome/Safari */
}

/* Individual Tab Item */
.project-tab-btn {
  position: relative;
  background: none;
  border: none;
  font-family: var(--font-inter, 'Inter', sans-serif);
  font-size: 13.5px;
  font-weight: 500;
  color: #6b7280;
  padding: 10px 4px 12px;
  cursor: pointer;
  outline: none;
  flex-shrink: 0;
  transition: color 0.15s ease;
}

.project-tab-btn:hover {
  color: #111827;
}

/* Active Tab Item - Bluish text + bottom line selector */
.project-tab-btn.is-active {
  color: var(--color-primary, #5170FF);
  font-weight: 600;
}

.project-tab-btn.is-active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2.5px;
  background-color: var(--color-primary, #5170FF);
  border-radius: 999px 999px 0 0;
}

/* Tab Content Wrapper below */
.project-tab-content-wrapper {
  width: 100%;
  margin-top: 4px;
}

/* Project Files & Folder System Section below Markdown */
.project-explorer-section {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
  margin-top: 12px;
}

.project-explorer-header {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 0 4px;
}

.project-explorer-title {
  font-family: var(--font-inter, 'Inter', sans-serif);
  font-size: 16px;
  font-weight: 700;
  color: #111827;
  margin: 0;
  letter-spacing: -0.01em;
}

.project-explorer-subtitle {
  font-family: var(--font-inter, 'Inter', sans-serif);
  font-size: 12.5px;
  font-weight: 400;
  color: #6b7280;
  margin: 0;
}
