/* arabest.eu — the crypt skin for Forgejo
   Built on theme-forgejo-dark.css: we only swap the steel ramp for warm bone
   and blood, then sprinkle house flourishes (gradients, glow, Grenze Gotisch). */

@import url("/assets/css/theme-forgejo-dark.css");

gitea-theme-meta-info,
forgejo-theme-meta-info {
  --theme-display-name: "arabest gothic";
}

:root {
  --is-dark-theme: true;
  --gothic: "Grenze Gotisch", Georgia, "Times New Roman", serif;
  --night: #0a0305;
  --surface: #130408;
  --raised: #1c060b;
  --blood: #b80d22;
  --glow: #ff2540;
  --deep: #6b0316;
  --bone: #f1e7e2;
  --text: #ecd9dc;
  --text-dim: #ab878c;
  --text-faint: #7e575e;

  /* the bones of the crypt — warm ramps replace the cold steel */
  --steel-100: #f1e7e2;
  --steel-150: #ecd9dc;
  --steel-200: #dcc3c7;
  --steel-250: #c6a5aa;
  --steel-300: #ab878c;
  --steel-350: #946e74;
  --steel-400: #7e575e;
  --steel-450: #6a474e;
  --steel-500: #573840;
  --steel-550: #472933;
  --steel-600: #3a202a;
  --steel-650: #2c151f;
  --steel-700: #1f0b15;
  --steel-750: #170710;
  --steel-800: #130408;
  --steel-850: #0d0306;
  --steel-900: #0a0305;

  /* pulse of the house — blood and its glow */
  --color-primary: #ff2540;
  --color-primary-contrast: #ffffff;
  --color-primary-dark-1: #ff5569;
  --color-primary-dark-2: #ff7284;
  --color-primary-dark-3: #ff8fa0;
  --color-primary-dark-4: #ff8fa0;
  --color-primary-light-1: #f0102f;
  --color-primary-light-2: #d10c29;
  --color-primary-light-3: #b80d22;
  --color-primary-light-4: #98091c;
  --color-primary-light-5: #7c0618;
  --color-primary-light-6: #6b0316;
  --color-primary-light-7: #6b0316;
  --color-primary-alpha-10: #ff254019;
  --color-primary-alpha-20: #ff254033;
  --color-primary-alpha-30: #ff25404b;
  --color-primary-alpha-40: #ff254066;
  --color-primary-alpha-50: #ff254080;
  --color-primary-alpha-60: #ff254099;
  --color-primary-alpha-70: #ff2540b3;
  --color-primary-alpha-80: #ff2540cc;
  --color-primary-alpha-90: #ff2540e1;

  /* every red token wearing our red */
  --color-red: #b80d22;
  --color-red-light: #d8152f;
  --color-red-dark-1: #8f091b;
  --color-red-dark-2: #6b0316;
  --color-red-badge: #c1123f;
  --color-red-badge-bg: #b80d2222;
  --color-red-badge-hover-bg: #b80d2244;
  --color-pink: #c1123f;
  --color-pink-light: #d8446a;

  /* semantic panels, bled warm */
  --color-error-bg: #3f1016;
  --color-error-bg-active: #5f1620;
  --color-error-bg-hover: #571319;
  --color-error-border: #6b0316;
  --color-error-text: #f7d9dc;
  --color-success-bg: #16301e;
  --color-success-border: #245c35;
  --color-success-text: #b8e6c4;
  --color-warning-bg: #402c10;
  --color-warning-border: #8a641c;
  --color-warning-text: #f0d98a;
  --color-info-bg: #2a1218;
  --color-info-border: #57222c;
  --color-info-text: #ecd9dc;

  /* diffs — what was torn out, what was stitched in */
  --color-diff-added-row-bg: #16301e;
  --color-diff-added-row-border: #245c35;
  --color-diff-added-word-bg: #2a6b3c;
  --color-diff-removed-row-bg: #3a141a;
  --color-diff-removed-row-border: #6b1d26;
  --color-diff-removed-word-bg: #78202a;
  --color-diff-moved-row-bg: #3f2a12;
  --color-diff-moved-row-border: #6b4a1d;

  /* consoles & little rooms */
  --color-console-bg: #170710;
  --color-console-border: #3a202a;
  --color-console-fg: #ecd9dc;
  --color-console-fg-subtle: #ab878c;
  --color-console-menu-bg: #2c151f;
  --color-console-menu-border: #472933;
  --color-console-hover-bg: #ffffff12;
  --color-console-active-bg: #3a202a;

  --color-tooltip-bg: #0a0305f2;
  --color-tooltip-text: #f1e7e2;
  --color-shadow: #00000080;
  --color-markup-table-row: #b80d220a;
  --color-highlight-bg: #ff254033;
  --color-input-border-hover: #b80d22;
}

/* ─── fonts ─────────────────────────────────────────────────────────── */
@font-face {
  font-family: "Grenze Gotisch";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("/assets/fonts/grenze-gotisch-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Grenze Gotisch";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("/assets/fonts/grenze-gotisch-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
    U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020,
    U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* ─── the house itself ──────────────────────────────────────────────── */
html { background-color: var(--night); }

body {
  background-image:
    radial-gradient(1100px 520px at 50% -12%, rgba(184, 13, 34, 0.16), transparent 62%),
    linear-gradient(180deg, rgba(10, 3, 5, 0) 0%, rgba(23, 5, 9, 0.55) 100%);
  background-attachment: fixed;
}

h1, h2, h3, h4, .ui.h1, .ui.h2, .ui.h3, .ui.header,
.page-header h1, .repository .header-title, .exploreways .title h2,
.ui.top.attached.header {
  font-family: var(--gothic);
  font-weight: 500;
  letter-spacing: 0.015em;
  color: var(--bone);
}

/* nav — candlelight along the lintel (it's an id here, pet: nav#navbar) */
nav#navbar, .navbar, body > .full.height > .ui.menu:first-child {
  background: linear-gradient(180deg, rgba(10, 3, 5, 0.95), rgba(13, 3, 6, 0.9));
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(184, 13, 34, 0.35);
  box-shadow: 0 1px 30px rgba(184, 13, 34, 0.18);
}
nav#navbar .item, .navbar .item { font-family: var(--gothic); font-weight: 500; }
nav#navbar .item:hover, .navbar .item:hover {
  color: var(--bone);
  text-shadow: 0 0 14px rgba(255, 37, 64, 0.45);
}

/* doors & panels */
.ui.segment, .ui.cards > .card, .card, .box, .svg.menu, .menu.transition.visible {
  border-color: rgba(184, 13, 34, 0.30);
}
.ui.segment { border-radius: 12px; }

/* the login door gets an extra glow, it being the one guests see */
.page-content.user.login .ui.form,
.page-content.user.signup .ui.form,
.page-content.user.link .ui.form,
.user.signin-card, .form .ui.segment {
  border: 1px solid rgba(184, 13, 34, 0.45);
  box-shadow: 0 8px 32px rgba(184, 13, 34, 0.18), 0 2px 10px rgba(0, 0, 0, 0.6);
  border-radius: 12px;
}

/* buttons with a pulse */
.ui.primary.button, button.primary, .ui.primary.buttons .button {
  box-shadow: 0 2px 14px rgba(184, 13, 34, 0.4);
}
.ui.primary.button:hover, button.primary:hover, .ui.primary.buttons .button:hover {
  box-shadow: 0 4px 24px rgba(255, 37, 64, 0.55);
}
.ui.basic.button:hover, .ui.buttons .basic.button:hover {
  border-color: var(--blood);
}

/* inputs */
input:focus, textarea:focus, .ui.input:focus-within,
.ui.dropdown .menu > .item:hover {
  border-color: var(--blood);
}

/* blood-moon selection & honest focus rings */
::selection { background: rgba(184, 13, 34, 0.55); color: var(--bone); }
:focus-visible { outline: 2px solid rgba(255, 37, 64, 0.75); outline-offset: 1px; }

/* links that glisten when you look away */
a:hover { text-decoration-color: rgba(255, 37, 64, 0.8); }

/* the crypt has narrow hallways */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--night); }
::-webkit-scrollbar-thumb {
  background: #3a202a;
  border-radius: 6px;
  border: 2px solid var(--night);
}
::-webkit-scrollbar-thumb:hover { background: #573840; }

/* tables & heatmaps settle into the wood grain */
.ui.table > thead { border-bottom: 1px solid rgba(184, 13, 34, 0.4); }
.calendar .active.date, .ui.statistic > .value { color: var(--glow); }

/* footer, where the candle gutters */
.footer a, .page-footer, footer { color: var(--text-faint); }
