/* ==========================================================================
   LinguaReel Studio — Frame.io V4 Product Showcase & Interactive Guide Studio
   ========================================================================== */

.showcase-panel {
  position: relative;
  margin: 10px 0 16px;
  padding: 14px 18px 16px;
  background:
    radial-gradient(circle at 85% 15%, rgba(99, 91, 255, 0.14), transparent 42%),
    radial-gradient(circle at 15% 85%, rgba(56, 189, 248, 0.08), transparent 40%),
    linear-gradient(135deg, #121522, #0c0e16);
  border: 1px solid rgba(99, 91, 255, 0.28);
  border-radius: 13px;
  box-shadow: var(--shadow-sm), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  overflow: hidden;
  transition: all 0.22s ease;
}

.showcase-panel.collapsed {
  padding: 9px 18px;
  background: #10131e;
}

.showcase-panel.collapsed .showcase-title-area,
.showcase-panel.collapsed .showcase-grid {
  display: none !important;
}

.showcase-panel.collapsed .showcase-header {
  margin-bottom: 0;
}

.showcase-panel::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--indigo), var(--cyan), transparent);
  opacity: 0.9;
}

.showcase-header {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 11px;
}

.showcase-kicker-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.showcase-left-kicker {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.showcase-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 9px;
  border-radius: 6px;
  background: rgba(99, 91, 255, 0.16);
  border: 1px solid rgba(99, 91, 255, 0.38);
  color: #c7d2fe;
  font-family: var(--font-mono);
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.showcase-badge i {
  display: inline-block;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 6px var(--cyan);
  animation: pulse 2s infinite;
}

.showcase-drama-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 3px 12px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
  color: #cbd5e1;
  font-size: 11px;
  line-height: 1.4;
  white-space: nowrap;
}

.showcase-drama-pill strong {
  color: #fff;
  font-weight: 700;
}

.showcase-drama-pill em {
  font-style: normal;
  color: var(--cyan);
  font-size: 10px;
}

.showcase-toggle-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line-strong);
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.16s ease;
}

.showcase-toggle-btn:hover {
  background: rgba(99, 91, 255, 0.16);
  border-color: rgba(99, 91, 255, 0.45);
  color: #ffffff;
}

.showcase-title-area h3 {
  margin: 1px 0 2px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 8px;
}

.showcase-title-area p {
  margin: 0;
  color: var(--muted);
  font-size: 11.5px;
  line-height: 1.45;
  max-width: 820px;
}

/* 3-card Showcase Grid */
.showcase-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.showcase-card {
  display: flex;
  flex-direction: column;
  background: #10131e;
  border: 1px solid var(--line);
  border-radius: 11px;
  overflow: hidden;
  transition: all 0.18s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
  position: relative;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.28);
}

.showcase-card:hover {
  transform: translateY(-2px);
  border-color: rgba(99, 91, 255, 0.5);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(99, 91, 255, 0.2);
}

.showcase-thumb-box {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  max-height: 118px;
  background: #06080d;
  overflow: hidden;
}

.showcase-thumb-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
  display: block;
  transition: transform 0.35s ease, filter 0.25s ease;
}

.showcase-card:hover .showcase-thumb-img {
  transform: scale(1.04);
  filter: brightness(0.88);
}

.showcase-ep-badge {
  position: absolute;
  top: 6px;
  left: 6px;
  padding: 2px 6px;
  border-radius: 5px;
  background: rgba(10, 13, 21, 0.88);
  border: 1px solid rgba(99, 91, 255, 0.42);
  color: #c7d2fe;
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 700;
  backdrop-filter: blur(4px);
  z-index: 2;
}

.showcase-duration {
  position: absolute;
  bottom: 6px;
  right: 6px;
  padding: 2px 6px;
  border-radius: 4px;
  background: rgba(0, 0, 0, 0.82);
  color: #fff;
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  backdrop-filter: blur(4px);
  z-index: 2;
}

.showcase-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.32);
  opacity: 0;
  transition: opacity 0.2s ease;
  z-index: 1;
}

.showcase-card:hover .showcase-overlay {
  opacity: 1;
}

.showcase-play-ring {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--indigo), #0ea5e9);
  color: #ffffff;
  display: grid;
  place-items: center;
  font-size: 13px;
  padding-left: 2px;
  box-shadow: 0 0 18px rgba(99, 91, 255, 0.65);
  transform: scale(0.88);
  transition: transform 0.2s ease;
}

.showcase-card:hover .showcase-play-ring {
  transform: scale(1);
}

.showcase-body {
  padding: 9px 11px 11px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.showcase-card-title {
  margin: 0 0 2px;
  font-size: 12px;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.showcase-card-desc {
  margin: 0 0 6px;
  color: var(--muted);
  font-size: 10.5px;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  height: 29px;
}

.showcase-tag-list {
  display: flex;
  flex-wrap: nowrap;
  overflow-x: auto;
  scrollbar-width: none;
  gap: 4px;
  margin-bottom: 8px;
}
.showcase-tag-list::-webkit-scrollbar { display: none; }

.showcase-tag-item {
  font-size: 9px;
  font-weight: 600;
  padding: 2px 6px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
  color: #94a3b8;
  white-space: nowrap;
  flex-shrink: 0;
}

.showcase-tag-item.highlight {
  background: rgba(56, 189, 248, 0.1);
  border-color: rgba(56, 189, 248, 0.3);
  color: var(--cyan);
}

.showcase-tag-item.purple {
  background: rgba(99, 91, 255, 0.12);
  border-color: rgba(99, 91, 255, 0.32);
  color: #c7d2fe;
}

.showcase-play-btn {
  width: 100%;
  height: 29px;
  border: 1px solid rgba(99, 91, 255, 0.38);
  border-radius: 6px;
  background: rgba(99, 91, 255, 0.14);
  color: #e0e7ff;
  font-weight: 700;
  font-size: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  cursor: pointer;
  transition: all 0.16s ease;
  margin-top: auto;
}

.showcase-play-btn:hover {
  background: linear-gradient(135deg, var(--indigo), #0ea5e9);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.24);
  box-shadow: 0 4px 12px rgba(99, 91, 255, 0.38);
}

/* Cinema Modal Styles — Frame.io V4 Review Player Theater */
.showcase-modal-dialog {
  width: min(920px, 95vw);
  background: #0e111b;
  border: 1px solid var(--line-strong);
  border-radius: 16px;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.85), 0 0 40px rgba(99, 91, 255, 0.12);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  position: relative;
  max-height: 92vh;
}

.showcase-modal-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 22px;
  background: #121522;
  border-bottom: 1px solid var(--line);
}

.showcase-modal-title-box {
  display: flex;
  align-items: center;
  gap: 12px;
}

.showcase-modal-title-box strong {
  font-size: 14.5px;
  color: #fff;
}

.showcase-modal-content-grid {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 20px;
  padding: 20px 24px;
  overflow-y: auto;
  align-items: start;
}

.showcase-player-box {
  position: relative;
  width: 100%;
  aspect-ratio: 9 / 16;
  max-height: 68vh;
  background: #000;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.65);
  display: flex;
  align-items: center;
  justify-content: center;
}

.showcase-player-box video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000;
  outline: none;
}

.showcase-modal-side {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.showcase-ep-desc-box {
  padding: 12px 14px;
  border-radius: 10px;
  background: var(--panel2);
  border: 1px solid var(--line);
}

.showcase-ep-pill {
  display: inline-block;
  color: var(--cyan);
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 10.5px;
  margin-bottom: 4px;
}

#showcaseModalDesc {
  color: #cbd5e1;
  font-size: 11.5px;
  line-height: 1.55;
  margin: 0;
}

.showcase-ep-tabs {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.showcase-ep-tab {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  border-radius: 9px;
  background: var(--panel2);
  border: 1px solid var(--line);
  color: var(--muted);
  cursor: pointer;
  text-align: left;
  transition: all 0.16s ease;
}

.showcase-ep-tab:hover {
  background: var(--panel3);
  color: #fff;
  border-color: rgba(99, 91, 255, 0.4);
}

.showcase-ep-tab.active {
  background: rgba(99, 91, 255, 0.16);
  border-color: var(--indigo);
  color: #fff;
}

.showcase-ep-tab strong {
  display: block;
  font-size: 12px;
  color: #fff;
}

.showcase-ep-tab.active strong {
  color: #c7d2fe;
}

.showcase-ep-tab small {
  display: block;
  font-size: 10px;
  opacity: 0.78;
  margin-top: 2px;
}

.showcase-ep-tab > span {
  font-size: 12px;
  color: var(--cyan);
}

.showcase-feature-notes {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 12px 14px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--line);
}

.showcase-note-item {
  font-size: 11px;
  color: var(--muted);
  line-height: 1.5;
}

.showcase-note-item b {
  color: #f1f5f9;
  display: block;
  margin-bottom: 2px;
}

.showcase-modal-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 4px;
}

.showcase-modal-actions a {
  color: var(--cyan);
  font-size: 11.5px;
  text-decoration: none;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.showcase-modal-actions a:hover {
  text-decoration: underline;
}

@media (max-width: 800px) {
  .showcase-modal-content-grid {
    grid-template-columns: 1fr;
  }
  .showcase-player-box {
    max-height: 52vh;
    width: 280px;
    margin: 0 auto;
  }
}

@media (max-width: 680px) {
  .showcase-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
}

/* =========================================================
   Guide Page Styles — Frame.io V4 Interactive Documentation
   ========================================================= */
.guide-workspace-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.85fr);
  gap: 18px;
  align-items: start;
}

.guide-player-panel {
  padding: 16px;
  background: var(--panel);
  border-radius: 14px;
}

.guide-video-wrapper video {
  width: 100%;
  display: block;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: #000;
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.55);
}

.guide-meta-bar {
  margin-top: 12px;
}

.guide-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.guide-tag-badge {
  padding: 5px 11px;
  font-size: 11px;
  font-weight: 600;
  border-radius: 6px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  color: var(--muted);
}

.guide-tag-badge.cyan {
  color: var(--cyan);
  border-color: rgba(56, 189, 248, 0.3);
  background: rgba(56, 189, 248, 0.1);
}

.guide-tag-badge.purple {
  color: #c7d2fe;
  border-color: rgba(99, 91, 255, 0.35);
  background: rgba(99, 91, 255, 0.14);
}

.guide-tag-badge.green {
  color: #34d399;
  border-color: rgba(16, 185, 129, 0.3);
  background: rgba(16, 185, 129, 0.1);
}

.guide-chapters-panel {
  padding: 18px;
  background: var(--panel);
  border-radius: 14px;
}

.guide-chapters-header {
  margin-bottom: 12px;
}

.guide-chap-title {
  display: flex;
  align-items: center;
  gap: 10px;
}

.guide-chap-title span {
  font-size: 18px;
}

.guide-chap-title strong {
  font-size: 14px;
  display: block;
  color: #ffffff;
}

.guide-chap-title small {
  font-size: 11px;
  color: var(--muted);
  display: block;
  margin-top: 2px;
}

.guide-chapters-list {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.guide-chapter-item {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9px 12px;
  background: var(--panel2);
  border: 1px solid var(--line);
  border-radius: 9px;
  color: var(--text);
  cursor: pointer;
  text-align: left;
  transition: all 0.16s ease;
}

.guide-chapter-item:hover {
  background: var(--panel3);
  border-color: rgba(99, 91, 255, 0.4);
  transform: translateX(2px);
}

.guide-chapter-item.active {
  background: rgba(99, 91, 255, 0.16);
  border-color: var(--indigo);
  box-shadow: inset 3px 0 0 var(--indigo);
}

.guide-time-pill {
  padding: 3px 8px;
  font-size: 10.5px;
  font-weight: 700;
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  background: #090b11;
  border: 1px solid var(--line-strong);
  border-radius: 5px;
  color: var(--cyan);
}

.guide-chap-text {
  flex: 1;
  min-width: 0;
}

.guide-chap-text strong {
  display: block;
  font-size: 12px;
  color: #ffffff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.guide-chap-text small {
  display: block;
  font-size: 10.5px;
  color: var(--muted);
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.guide-play-icon {
  font-size: 11px;
  color: var(--muted);
}

.guide-chapter-item:hover .guide-play-icon,
.guide-chapter-item.active .guide-play-icon {
  color: var(--cyan);
}

.guide-cards-section > .section-head {
  margin-top: 26px;
  margin-bottom: 14px;
}

.guide-steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 14px;
}

.guide-step-card {
  padding: 0;
  overflow: hidden;
  background: var(--panel);
  border-radius: 12px;
  border: 1px solid var(--line);
  transition: transform 0.18s ease, border-color 0.18s ease;
}

.guide-step-card:hover {
  transform: translateY(-3px);
  border-color: rgba(99, 91, 255, 0.45);
}

.guide-card-thumb {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
  overflow: hidden;
}

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

.guide-step-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  padding: 3px 8px;
  background: rgba(9, 11, 17, 0.82);
  backdrop-filter: blur(4px);
  border: 1px solid rgba(99, 91, 255, 0.45);
  border-radius: 5px;
  color: #c7d2fe;
  font-family: var(--font-mono);
  font-size: 9.5px;
  font-weight: 700;
}

.guide-card-body {
  padding: 13px 15px;
}

.guide-card-body h4 {
  margin: 0 0 5px;
  font-size: 13px;
  color: #ffffff;
}

.guide-card-body p {
  margin: 0;
  font-size: 11px;
  line-height: 1.5;
  color: var(--muted);
}

@media (max-width: 1050px) {
  .guide-workspace-grid {
    grid-template-columns: 1fr;
  }
}
