/* ============================================================
   Slidedeck Page (Dargan Forum 2026) — EPW-PRO-302
   ============================================================ */

body.slidedeck-active #expanded-title,
body.slidedeck-active #detail-panel,
body.slidedeck-active #bg-layer,
body.slidedeck-active #eoins-stuff,
body.slidedeck-active #epw-new-item-fab,
body.slidedeck-active #c4-link { display: none !important; }

#slidedeck-view .epw-stt-mic { display: none !important; }

/* ---- Section headings ---- */

.sld-section-heading {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 20px 0 6px;
  padding-left: 10px;
  border-left: 3px solid #be123c;
  font-size: 13px;
  font-weight: 700;
  color: #1e293b;
}
.sld-section-heading:first-child { margin-top: 4px; }
.sld-section-label { flex: 1; }
.sld-section-slides {
  font-size: 11px;
  font-weight: 500;
  color: #94a3b8;
}

/* ---- Slide card row ---- */

.sld-slide-card {
  border: 1px solid #e8e8f0;
  border-radius: 8px;
  background: #fff;
  margin-bottom: 6px;
  overflow: hidden;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.sld-slide-card:hover {
  border-color: #fda4af;
  box-shadow: 0 2px 8px rgba(190,18,60,0.07);
}

/* ---- Slide header (clickable row) ---- */

.sld-slide-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 14px 8px 10px;
  cursor: pointer;
}

/* ---- 16:9 landscape thumbnail ---- */

.sld-thumb {
  width: 72px;
  height: 41px;
  border-radius: 4px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.sld-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 4px;
}
.sld-thumb-num {
  font-size: 13px;
  font-weight: 800;
  color: rgba(255,255,255,0.9);
  letter-spacing: -0.5px;
}

/* ---- Slide info ---- */

.sld-slide-info {
  flex: 1;
  min-width: 0;
}
.sld-slide-title {
  font-size: 13px;
  font-weight: 600;
  color: #1e293b;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.sld-slide-sub {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 3px;
  flex-wrap: wrap;
}

.sld-type-badge {
  display: inline-block;
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  color: #64748b;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  border-radius: 3px;
  padding: 1px 6px;
}
.sld-pattern-badge {
  display: inline-block;
  font-size: 10px;
  font-weight: 600;
  color: #be123c;
  background: #ffe4e6;
  border: 1px solid #fecdd3;
  border-radius: 3px;
  padding: 1px 6px;
}
.sld-manual-badge {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  color: #92400e;
  background: #fef3c7;
  border: 1px solid #fde68a;
  border-radius: 3px;
  padding: 1px 6px;
}

/* ---- Action badge ---- */

.sld-slide-badges {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}
.sld-action-badge {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  border-radius: 10px;
  padding: 2px 9px;
  white-space: nowrap;
}

/* ---- Expanded body ---- */

.sld-slide-body {
  display: none;
  padding: 4px 14px 12px 14px;
  border-top: 1px solid #f1f5f9;
  background: #fafafa;
}
.sld-slide-card.spk-expanded .sld-slide-body {
  display: block;
}
.sld-slide-card.spk-expanded .spk-expand-arrow {
  transform: rotate(180deg);
}

/* ---- Action buttons ---- */

.sld-slide-actions {
  padding: 8px 0 2px;
}

/* ---- Component Mapping modal — horizontal two-column layout ---- */

#sld-map-modal .cnv-map-content {
  width: min(1200px, 96vw);
}

#sld-map-modal .cnv-map-body {
  flex-direction: row;
  overflow: hidden;
  flex: 1;
  min-height: 0;
}

#sld-map-modal .cnv-map-thumb-wrap {
  width: 420px;
  min-width: 320px;
  flex-shrink: 0;
  border-bottom: none;
  border-right: 1px solid #f0f0f4;
  overflow-y: auto;
  max-height: none;
}

#sld-map-modal .cnv-map-thumb-wrap img {
  width: 100%;
  max-height: none;
  display: block;
}

#sld-map-modal .cnv-map-table-wrap {
  flex: 1;
  overflow-y: auto;
  min-width: 0;
}

/* ---- View lightbox ---- */

.sld-lightbox {
  position: fixed;
  inset: 0;
  z-index: 9000;
  display: flex;
  align-items: center;
  justify-content: center;
}
.sld-lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.72);
  cursor: zoom-out;
}
.sld-lightbox-content {
  position: relative;
  z-index: 1;
  max-width: min(92vw, 1100px);
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.sld-lightbox-content img {
  max-width: 100%;
  max-height: 85vh;
  border-radius: 6px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.6);
  object-fit: contain;
}

/* ---- Empty state ---- */

.sld-map-empty-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  color: #92400e;
  background: #fef3c7;
  border: 1px solid #fde68a;
  border-radius: 10px;
  padding: 2px 10px;
  margin-left: 8px;
}
.sld-map-no-elements {
  padding: 24px 20px;
  color: #64748b;
  font-size: 13px;
  line-height: 1.6;
  text-align: center;
}
.sld-map-no-elements code {
  display: inline-block;
  margin-top: 4px;
  font-size: 11px;
  font-family: monospace;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 4px;
  padding: 3px 8px;
  color: #0f172a;
  word-break: break-all;
}
