/* ==========================================================================
   Global Styles — applied to all pages
   ========================================================================== */

/* Full-width tables — ensures consistent table widths across all pages.
   table-layout: auto lets the browser distribute column widths proportionally
   based on content, preventing awkward empty space in narrow tables. */
.md-typeset table:not(.highlighttable) {
    width: 100%;
    table-layout: auto;
}

/* ==========================================================================
   Minecraft Enderman Theme
   ==========================================================================
   Scoped to pages with `theme: minecraft` YAML front matter.
   Only affects content inside the .minecraft-theme wrapper div injected
   by docs/overrides/main.html.

   Color palette — The End dimension and Enderman:
     Ender purple glow:   #C77DFF
     Deep obsidian:       #4A148C
     Ender glow text:     #E0B0FF
     Chorus flower:       #CE93D8
     Ender pearl flash:   #EA80FC
     Purpur block:        #9C27B0
     End void tint:       rgba(126, 86, 194, 0.12)
   ========================================================================== */

/* ---------------------------------------------------------------------------
   Headings — Ender purple glow
   --------------------------------------------------------------------------- */

.minecraft-theme h1,
.minecraft-theme h2,
.minecraft-theme h3 {
    color: #C77DFF !important;
}

.minecraft-theme h1 {
    border-bottom: 2px solid rgba(199, 125, 255, 0.3);
    padding-bottom: 0.3em;
}

/* ---------------------------------------------------------------------------
   Tables — Obsidian / End stone styling
   --------------------------------------------------------------------------- */

.minecraft-theme .md-typeset table:not(.highlighttable) th {
    background-color: #4A148C;
    color: #E0B0FF;
    border-color: #6A1B9A;
}

.minecraft-theme .md-typeset table:not(.highlighttable) td {
    border-color: rgba(126, 86, 194, 0.3);
}

.minecraft-theme .md-typeset table:not(.highlighttable) tr:hover td {
    background-color: rgba(126, 86, 194, 0.08);
}

/* ---------------------------------------------------------------------------
   Code — Void tint
   --------------------------------------------------------------------------- */

.minecraft-theme .md-typeset code {
    background-color: rgba(126, 86, 194, 0.15);
    color: #CE93D8;
}

.minecraft-theme .md-typeset pre > code {
    background-color: rgba(30, 0, 50, 0.6);
    color: #CE93D8;
}

/* ---------------------------------------------------------------------------
   Links — Ender pearl flash on hover
   --------------------------------------------------------------------------- */

.minecraft-theme .md-typeset a:hover {
    color: #EA80FC;
}

/* ---------------------------------------------------------------------------
   Admonitions — Purpur block accent
   --------------------------------------------------------------------------- */

.minecraft-theme .md-typeset .admonition,
.minecraft-theme .md-typeset details {
    border-color: #9C27B0;
}

.minecraft-theme .md-typeset .admonition-title,
.minecraft-theme .md-typeset summary {
    background-color: rgba(156, 39, 176, 0.15);
}

/* ---------------------------------------------------------------------------
   Horizontal rules — subtle ender glow
   --------------------------------------------------------------------------- */

.minecraft-theme .md-typeset hr {
    border-color: rgba(199, 125, 255, 0.2);
}

/* ---------------------------------------------------------------------------
   Blockquotes — End dimension accent
   --------------------------------------------------------------------------- */

.minecraft-theme .md-typeset blockquote {
    border-left-color: #9C27B0;
    color: #CE93D8;
}
