/* Mavens Hive brand font only + text glow cleanup

   Current behavior:
   - Only elements marked with class "mh-brand-title" use the uploaded brand font.
   - Normal body text, headings, nav, buttons, badges and numbers stay on the site's normal font.
   - Text glow/text-shadow is removed site-wide.

   Upload this font file here:
   public/assets/fonts/Minecrafter-MA3Dw.ttf
*/

@font-face {
  font-family: "MavensBrandFont";
  src:
    url("/assets/fonts/Minecrafter-MA3Dw.ttf") format("truetype"),
    url("/assets/fonts/brand.woff2") format("woff2"),
    url("/assets/fonts/brand.ttf") format("truetype"),
    url("/assets/fonts/minecrafter.woff2") format("woff2"),
    url("/assets/fonts/minecrafter.ttf") format("truetype");
  font-weight: 400 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --mh-font-brand: "MavensBrandFont", "Arial Black", Impact, system-ui, sans-serif;
  --mh-font-normal: "Space Grotesk", "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mh-site-font: var(--mh-font-normal);
}

/* Keep all normal text normal. Do not apply the uploaded brand font globally. */
html,
body,
p,
span,
div,
section,
article,
header,
footer,
nav,
label,
small,
strong,
em,
li,
td,
th,
input,
textarea,
select,
h1,
h2,
h3,
h4,
h5,
h6,
button,
a,
.font-body,
.font-body-md,
.font-body-lg,
.font-tech,
.font-label-caps,
.font-display-xl,
.font-headline-lg,
.font-headline-md,
.font-minecraft,
.font-pixel,
.minecraft-heading,
.pixel-text {
  text-shadow: none !important;
}

/* Older classes may point to a pixel/Minecraft font. Reset them unless they are brand titles. */
.font-minecraft:not(.mh-brand-title),
.font-pixel:not(.mh-brand-title),
.minecraft-heading:not(.mh-brand-title),
.pixel-text:not(.mh-brand-title) {
  font-family: var(--mh-font-normal) !important;
}

/* Only brand-title elements use the uploaded Minecrafter/brand font. */
.mh-brand-title,
.mh-brand-title *,
[data-font="brand"],
[data-font="brand"] * {
  font-family: var(--mh-font-brand) !important;
  text-shadow: none !important;
  letter-spacing: 0.015em;
}

/* Material icons must keep their icon font. */
.material-symbols-outlined {
  font-family: "Material Symbols Outlined" !important;
  text-shadow: none !important;
}

/* Remove glow/shadow filters from text elements and arbitrary Tailwind drop-shadow classes. */
*:not(img):not(svg):not(canvas)[class*="drop-shadow"],
.minecraft-heading,
.pixel-text,
.font-minecraft,
.font-pixel,
.font-tech,
h1,
h2,
h3,
h4,
h5,
h6,
p,
span,
a,
button,
label,
small,
strong,
em,
li,
td,
th {
  filter: none !important;
  text-shadow: none !important;
}

body.mh-animations-ready .pixel-text {
  animation: mhHeroRise .84s cubic-bezier(.22, 1, .36, 1) .18s both !important;
}

.nav-link:hover,
a:hover,
button:hover {
  text-shadow: none !important;
}

@keyframes mhTextGlow {
  0%, 50%, 100% { filter: none; }
}
