/* ============================================================
   File Card Icons — vanilla port of urmauur/file-card-collections
   + layout helpers for use inside webpartneren.dk sections
   Usage: include this CSS + file-cards.js on any page,
   then call createFileCard('pdf') to get a DOM element.
   ============================================================ */

.fc-wrap {
  position: relative;
  width: fit-content;
}

/* The card body */
.fc-card {
  position: relative;
  z-index: 1;
  width: 56px;   /* w-14 */
  height: 72px;  /* h-18 */
  background: #ffffff;
  border-radius: 6px;
  box-shadow: 0 0 0 1px #e4e7ed;
  padding: 8px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* Coloured label badge */
.fc-badge {
  position: absolute;
  z-index: 2;
  right: -8px;
  bottom: 6px;
  border-radius: 4px;
  padding: 2px 6px;
  font-size: 8px;
  font-weight: 600;
  text-transform: uppercase;
  color: #ffffff;
  line-height: 1.4;
  font-family: inherit;
  white-space: nowrap;
}

/* Badge colours per format */
.fc-badge--doc   { background: #3b82f6; }
.fc-badge--pdf   { background: #ef4444; }
.fc-badge--md,
.fc-badge--mdx   { background: #525252; }
.fc-badge--txt   { background: #6b7280; }
.fc-badge--csv   { background: #0f766e; }
.fc-badge--xls,
.fc-badge--xlsx  { background: #059669; }
.fc-badge--ppt,
.fc-badge--pptx  { background: #f97316; }
.fc-badge--zip   { background: #a855f7; }
.fc-badge--rar   { background: #9333ea; }
.fc-badge--tar   { background: #ca8a04; }
.fc-badge--gz    { background: #a16207; }
.fc-badge--html,
.fc-badge--code  { background: #ea580c; }
.fc-badge--js    { background: #ca8a04; }
.fc-badge--jsx,
.fc-badge--tsx,
.fc-badge--css   { background: #2563eb; }
.fc-badge--json  { background: #eab308; color: #1a1a1a; }
.fc-badge--img   { background: #ec4899; }
.fc-badge--png   { background: #525252; }
.fc-badge--jpg,
.fc-badge--jpeg,
.fc-badge--video { background: #15803d; }

/* ── Layout helpers ─────────────────────────────────── */

/* Horizontal cluster of cards */
.fc-cluster {
  display: flex;
  gap: 18px;
  align-items: flex-end;
  flex-wrap: wrap;
}

/* Used inside .proof-card to replace the emoji icon */
.proof-icon--files {
  font-size: 0;       /* kill any residual text */
  margin-bottom: 4px;
}
.proof-icon--files .fc-cluster {
  justify-content: center;
  margin-bottom: 4px;
}

/* Used inside .timeline-content as a file row */
.timeline-files {
  margin-top: 12px;
}
.timeline-files .fc-cluster {
  gap: 18px;
}

/* ── Placeholder helpers ────────────────────────────── */
.fc-lines { display: flex; flex-direction: column; gap: 6px; }
.fc-row   { display: flex; gap: 4px; align-items: center; }

/* Opacity line "bars" */
.fc-bar {
  height: 2px;
  border-radius: 9999px;
  background: rgba(13,15,20,0.2);
}
.fc-bar--20 { background: rgba(13,15,20,0.20); }
.fc-bar--15 { background: rgba(13,15,20,0.15); }
.fc-bar--10 { background: rgba(13,15,20,0.10); }
.fc-bar--05 { background: rgba(13,15,20,0.05); }

/* Grid (xlsx / csv) */
.fc-grid { display: flex; flex-direction: column; gap: 2px; }
.fc-grid-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; }
.fc-grid-cell {
  height: 8px;
  background: rgba(13,15,20,0.05);
}
.fc-grid-cell--head { background: rgba(13,15,20,0.20); }

/* Zip stripe */
.fc-zip { display: flex; flex-direction: column; gap: 0; align-items: flex-start; }
.fc-zip-pair { display: flex; border-radius: 9999px; overflow: hidden; }
.fc-zip-a { width: 6px; height: 6px; background: rgba(13,15,20,0.20); }
.fc-zip-b { width: 6px; height: 6px; background: rgba(13,15,20,0.05); }

/* Small inner "slide" box (ppt / img / video) */
.fc-mini-box {
  background: rgba(13,15,20,0.05);
  border: 1px solid rgba(13,15,20,0.1);
  border-radius: 3px;
  padding: 4px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  margin-bottom: 6px;
}
.fc-mini-thumb {
  width: 12px; height: 12px;
  border-radius: 2px;
}
.fc-mini-thumb--ppt   { background: rgba(251,146,60,0.40); }
.fc-mini-thumb--img   { background: rgba(250,204,21,0.40); }

/* Code placeholder */
.fc-code { display: flex; flex-direction: column; gap: 4px; }
.fc-code-row { display: flex; align-items: center; gap: 2px; }
.fc-code-bracket { font-size: 5px; font-family: monospace; color: rgba(13,15,20,0.30); line-height: 1; }
.fc-code-token {
  height: 3px; border-radius: 9999px;
}
.fc-code-token--green { background: rgba(52,211,153,0.60); }
.fc-code-token--sky   { background: rgba(56,189,248,0.60); }

/* CSS placeholder */
.fc-css { display: flex; flex-direction: column; gap: 4px; }
.fc-css-brace { font-size: 6px; font-family: monospace; color: rgba(13,15,20,0.40); line-height: 1; }

/* Video play triangle */
.fc-play {
  width: 0; height: 0;
  border-top: 5px solid transparent;
  border-bottom: 5px solid transparent;
  border-left: 8px solid rgba(74,222,128,0.60);
}
