/*
  Postiz in Hidden Gem's colours (brand-kit/HIDDEN_GEM_BRAND.md): dark navy and near-black,
  crystal violet for anything you press, champagne gold for "now" and what's in focus.
  Added to every page with compact.css (see install.sh). Dark theme only: that's what's used.
*/

/* ─── Type: Inter for everything, Montserrat for headings (as hiddengemcollectables.com) ─── */
@font-face { font-family: "HG Inter"; font-style: normal; font-weight: 100 900; font-display: swap; src: url(/hgc/fonts/Inter-variable.woff2) format("woff2"); }
@font-face { font-family: "HG Montserrat"; font-style: normal; font-weight: 100 900; font-display: swap; src: url(/hgc/fonts/Montserrat-variable.woff2) format("woff2"); }
@font-face { font-family: "HG Montserrat"; font-style: italic; font-weight: 900; font-display: swap; src: url(/hgc/fonts/Montserrat-900-italic.woff2) format("woff2"); }
body {
  font-family: "HG Inter", ui-sans-serif, system-ui, sans-serif !important;
  -webkit-font-smoothing: antialiased;
}
h1, h2 {
  font-family: "HG Montserrat", "HG Inter", sans-serif !important;
  font-weight: 800 !important;
  text-transform: uppercase;
  letter-spacing: -0.01em;
}

/* ─── Buttons: the main action is gold with ink text, as on the shop ───
   Not on anything that sets its own colour inline (a tag's coloured bar on a calendar card). */
html .bg-btnPrimary:not([style*="background"]), html .bg-forth:not([style*="background"]),
[class*="bg-[#612bd3]" i]:not([style*="background"]):not([class*="blur-"]):not([class*="rounded-[12px]"]), [class*="bg-[#7236f1]" i]:not([style*="background"]) {
  background: linear-gradient(180deg, #e6cf97, #c5a35e) !important;
  color: #04060d !important;
  box-shadow: 0 6px 20px -8px rgba(214, 185, 122, 0.6);
}
html .bg-btnPrimary:not([style*="background"]) *, html .bg-forth:not([style*="background"]) *, [class*="bg-[#612bd3]" i]:not([style*="background"]) * { color: #04060d !important; }
.bg-btnPrimary:not([style*="background"]) svg path[fill="white" i], .bg-btnPrimary:not([style*="background"]) svg path[fill="#fff" i] { fill: #04060d !important; }
html .bg-btnPrimary:not([style*="background"]):hover, html .bg-forth:not([style*="background"]):hover, [class*="bg-[#612bd3]" i]:not([style*="background"]):hover { background: linear-gradient(180deg, #f1e3bf, #d6b97a) !important; }
.text-btnPrimary { color: #d6b97a !important; }
.border-btnPrimary, .border-s-btnPrimary { border-color: #d6b97a !important; }
:focus-visible { outline: 2px solid #d6b97a; outline-offset: 2px; }

/* ─── The palette, through Postiz's own theme variables ───
   (html-prefixed: Postiz's stylesheet loads after this one and would win a tie.) */
html:root .dark, html:root body.dark {
  --new-bgColor: #04060d;          /* ink 950: the page */
  --new-bgColorInner: #070b18;     /* ink 900: panels */
  --new-bgLineColor: #0f1836;
  --new-big-strips: #0a1128;
  --new-small-strips: #0a1128;
  --new-blockSeparator: #172248;
  --new-border: #172248;
  --new-box-hover: #0f1836;
  --new-boxFocused: #172248;        /* selected tab or menu item: navy… */
  --new-textItemFocused: #e6cf97;   /* …with gold text */
  --new-btn-primary: #7c3aed;      /* crystal violet */
  --new-btn-simple: #172248;
  --new-col-color: #0f1836;
  --new-menu-dots: #8f9bbf;
  --new-sep: #22305e;
  --new-settings: #0f1836;
  --new-table-border: #172248;
  --new-table-header: #0a1128;
  --new-table-text: #8f9bbf;
  --new-table-text-focused: #d6b97a; /* gold: today and the time marker */
  --new-textItemBlur: #8f9bbf;
  --new-back-drop: #04060d;
  --new-ai-btn: #7c3aed;
}
html:root body {
  --color-forth: #7c3aed;
  --color-custom4: #8b5cf6;
  --color-custom7: #8b5cf6;
}

/* Postiz's purples and pinks written straight into its classes. */
[class*="bg-[#8155dd]" i] { background-color: #7c3aed !important; }
[class*="text-[#612bd3]" i], [class*="text-[#8155dd]" i] { color: #a78bfa !important; }
[class*="border-[#612bd3]" i] { border-color: #7c3aed !important; }
[class*="text-[#fc69ff]" i] { color: #d6b97a !important; }
[class*="bg-[#fc69ff]" i] { background-color: #d6b97a !important; }
[class*="bg-[#0e0e0e]" i] { background-color: #04060d !important; }
[class*="bg-[#1a1919]" i] { background-color: #070b18 !important; }

/* ─── The logo ─── */
/* The sidebar mark: Postiz's 60×60 logo becomes the Hidden Gem crystal. */
svg[viewBox="0 0 60 60"][class*="min-w-[60px]"] {
  background: url(/hgc/crystal.svg) center / 70% no-repeat;
}
svg[viewBox="0 0 60 60"][class*="min-w-[60px]"] > * { display: none; }
/* The wordmark on the sign-in pages. */
svg[viewBox="0 0 101 33"] {
  width: 230px !important;
  height: 61px !important;
  background: url(/hgc/logo-collectables.png) left center / contain no-repeat;
}
svg[viewBox="0 0 101 33"] > * { display: none; }

/* ─── The sign-in page's right half: Postiz's advert becomes a Hidden Gem panel ─── */
div[class*="pt-[88px]"][class*="text-[36px]"] {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  background:
    radial-gradient(60% 50% at 80% 15%, rgba(124, 58, 237, 0.45), transparent 70%),
    radial-gradient(55% 45% at 15% 90%, rgba(59, 130, 246, 0.35), transparent 70%),
    #070b18;
}
div[class*="pt-[88px]"][class*="text-[36px]"] > * { display: none !important; }
div[class*="pt-[88px]"][class*="text-[36px]"]::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url(/hgc/crystal.svg) center 38% / 26% no-repeat;
  filter: drop-shadow(0 0 40px rgba(124, 58, 237, 0.6));
}
div[class*="pt-[88px]"][class*="text-[36px]"]::after {
  content: "Social posts for Hidden Gem and BCG";
  position: absolute;
  left: 0;
  right: 0;
  top: 68%;
  text-align: center;
  font-size: 22px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: #c4b5fd;
}

/* ─── Editor details ─── */
/* The channel's settings bar in the post editor: a navy panel with a gold edge, not a button. */
[class*="bg-[#612bd3]" i][class*="rounded-[12px]"][class*="p-[12px]"] {
  background: #0f1836 !important;
  border: 1px solid rgba(214, 185, 122, 0.45);
  color: #e6cf97 !important;
}
/* Postiz's glows behind some screens: crystal violet, as on the shop. */
[class*="bg-[#612bd3]" i][class*="blur-"] { background-color: #7c3aed !important; }
/* Second-level actions (Add comment, Post now, Add tag…): outline buttons, gold on hover. */
[class*="bg-[#d82d7e]" i] {
  background: transparent !important;
  border: 1px solid rgba(255, 255, 255, 0.22) !important;
  color: #fff !important;
}
[class*="bg-[#d82d7e]" i]:hover { border-color: #d6b97a !important; color: #e6cf97 !important; }

/* The page behind the app. */
html:root, html:root body { background: #04060d !important; }
