/* Pippin Games Forgejo Global Theme */

:root {
  --pippin-bg: #050505;
  --pippin-panel: rgba(12, 10, 16, 0.84);
  --pippin-panel-strong: rgba(8, 7, 11, 0.92);
  --pippin-border: rgba(255, 255, 255, 0.12);
  --pippin-text: rgba(255, 255, 255, 0.90);
  --pippin-muted: rgba(255, 255, 255, 0.64);
  --pippin-orange: #ff6a00;
}

/* Fundo 16:9 em tela cheia */
body {
  background: #050505 !important;
  color: var(--pippin-text) !important;
}

/* Imagem de fundo fixa */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;

  background-image: url("/assets/img/BG_KDD.png");
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;

  image-rendering: auto;
}

/* Camada escura por cima da imagem para manter leitura */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;

  background:
    radial-gradient(circle at 50% 20%, rgba(255, 106, 0, 0.12), transparent 34%),
    linear-gradient(180deg, rgba(5, 5, 5, 0.58) 0%, rgba(5, 5, 5, 0.86) 100%);
  pointer-events: none;
}

/* Área principal transparente */
.page-content {
  background: transparent !important;
}

/* Header */
#navbar {
  background: rgba(8, 7, 11, 0.94) !important;
  border-bottom: 1px solid var(--pippin-border) !important;
  backdrop-filter: blur(8px);
}

/* Footer */
.page-footer {
  background: rgba(8, 7, 11, 0.94) !important;
  border-top: 1px solid var(--pippin-border) !important;
  backdrop-filter: blur(8px);
}

/* Painéis, caixas e blocos principais */
.ui.segment,
.ui.attached.segment,
.ui.attached.header,
.ui.table,
.ui.menu,
.repository .header-wrapper,
.repository.file.list,
.repository.release,
.repository.issue,
.repository.view.issue,
.issue.list,
.comment,
.timeline-item,
.repository-summary,
.dashboard .ui.segment {
  background-color: var(--pippin-panel) !important;
  border-color: var(--pippin-border) !important;
  color: var(--pippin-text) !important;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.24) !important;
  backdrop-filter: blur(6px);
}

/* Blocos mais fortes */
.ui.attached.header,
.ui.menu,
.repository .header-wrapper {
  background-color: var(--pippin-panel-strong) !important;
}

/* Textos */
body,
.page-content,
.ui.segment,
.ui.header,
.ui.form,
.ui.table {
  color: var(--pippin-text) !important;
}

.text.grey,
.muted,
.ui.text.light.grey,
.ui.sub.header {
  color: var(--pippin-muted) !important;
}

/* Links */
a,
.ui.breadcrumb a,
.repository-menu a {
  color: var(--pippin-orange) !important;
}

a:hover {
  color: #ff8a33 !important;
}

/* Botões principais */
.ui.primary.button,
.ui.green.button {
  background: var(--pippin-orange) !important;
  color: #ffffff !important;
  border-color: #ff7f24 !important;
}

.ui.primary.button:hover,
.ui.green.button:hover {
  background: #ff7a1a !important;
}

/* Inputs */
input,
textarea,
.ui.input input,
.ui.form input,
.ui.form textarea,
.ui.dropdown,
.ui.selection.dropdown {
  background: rgba(0, 0, 0, 0.46) !important;
  color: var(--pippin-text) !important;
  border-color: var(--pippin-border) !important;
}

/* Menus ativos */
.ui.menu .active.item,
.repository-menu .active.item {
  border-color: var(--pippin-orange) !important;
  color: #ffffff !important;
}

/* Código e blocos técnicos */
code,
pre,
.markup code,
.file-view,
.lines-code {
  background-color: rgba(0, 0, 0, 0.50) !important;
  color: var(--pippin-text) !important;
}

/* Tabelas */
.ui.table thead th {
  background: rgba(8, 7, 11, 0.92) !important;
  color: var(--pippin-text) !important;
}

.ui.table tbody tr {
  background: rgba(12, 10, 16, 0.72) !important;
}

.ui.table tbody tr:hover {
  background: rgba(255, 106, 0, 0.10) !important;
}
