/**
 * document-icons.css
 *
 * File-type icons for the BuddyBoss document/media UI (Documents tabs, forum
 * attachments and the activity feed).
 *
 * BuddyBoss renders a file preview icon as a class on an <i> element, e.g.
 *
 *     <i class="bb-icon-file-xlsx"></i>
 *
 * A handful of glyphs (image, pdf, doc, css, …) are defined directly in the
 * loaded "bb-icons" font CSS and always work. The majority of extension
 * classes (xls, xlsx, docx, pptx, …) are only mapped via BuddyBoss's separate
 * "icons-map.css". When that asset is not applied these classes collapse to an
 * empty / "X-" box (the reported .bb-icon-file-xlsx bug).
 *
 * This file pins the glyphs for the commonly used, map-only extension classes
 * directly in the child theme so they always render regardless of BuddyBoss's
 * mapping asset. It deliberately does NOT touch classes that already have a
 * working glyph in bb-icons.css (image, pdf, doc, css, …).
 *
 * ─────────────────────────────────────────────────────────────────────────────
 * EXTENDING
 * ─────────────────────────────────────────────────────────────────────────────
 * To add or override a file type:
 *
 *   1. Give the extension an icon class in
 *      Settings → Media / Forums → file extensions (any `bb-icon-file-*`).
 *   2. Add one rule below mapping that class to a valid "bb-icons" codepoint.
 *
 * Confirmed glyphs available in bb-icons.css (weight 400 / lined):
 *
 *   \ee6e  generic file          \ee7a  word / text document
 *   \ee70  archive (zip, 7z…)    \ee83  image
 *   \ee7d  Excel block (X mark)  \ee8a  PDF
 *   \ee8c  PowerPoint            \ee92  spreadsheet grid (use this for xlsx)
 *   \ee98  Word                  \ee93  plain text
 *   \ee72  audio (mp3, wav)      \ee76  code / html / js
 *
 * ─────────────────────────────────────────────────────────────────────────────
 */

/* Keep every file icon on the lined "bb-icons" font so codepoints resolve. */
[class^="bb-icon-file-"]:before,
[class*=" bb-icon-file-"]:before {
  font-family: "bb-icons";
  font-weight: 400;
}

/* Excel / OpenDocument spreadsheet family.
 *
 * NOTE: BuddyBoss maps xlsx/xls to the "file-excel" glyph (\ee7d), which draws
 * a page with a single centred "X" mark on it — on some browsers / without the
 * icons-map this reads as a broken "X-". We pin the "file-spreadsheet" glyph
 * (\ee92) instead, which draws a clean 2×2 grid of cells. */
.bb-icon-file-xls:before,
.bb-icon-file-xlsx:before,
.bb-icon-file-xltm:before,
.bb-icon-file-xltx:before,
.bb-icon-file-xlam:before,
.bb-icon-file-xlsm:before,
.bb-icon-file-ods:before {
  content: "\ee92";
}

/* Word processing family (doc is native; only the map-only members here). */
.bb-icon-file-docm:before,
.bb-icon-file-docx:before,
.bb-icon-file-dotm:before,
.bb-icon-file-dotx:before,
.bb-icon-file-odt:before,
.bb-icon-file-rtf:before,
.bb-icon-file-abw:before {
  content: "\ee98";
}

/* Presentation family. */
.bb-icon-file-potm:before,
.bb-icon-file-potx:before,
.bb-icon-file-pps:before,
.bb-icon-file-ppsx:before,
.bb-icon-file-ppt:before,
.bb-icon-file-pptm:before,
.bb-icon-file-pptx:before {
  content: "\ee8c";
}

/* Archive family. */
.bb-icon-file-7z:before,
.bb-icon-file-ace:before,
.bb-icon-file-arc:before,
.bb-icon-file-gz:before,
.bb-icon-file-gzip:before,
.bb-icon-file-rar:before,
.bb-icon-file-tar:before,
.bb-icon-file-zip:before {
  content: "\ee70";
}

/* Plain-text / code family (css is native; only the map-only members here). */
.bb-icon-file-html:before,
.bb-icon-file-htm:before,
.bb-icon-file-js:before,
.bb-icon-file-json:before,
.bb-icon-file-txt:before,
.bb-icon-file-xml:before {
  content: "\ee93";
}
