/* Admonte Gaming brand for the Control Panel (see brand-kit/brand-sheet.html).
   Colors: Hex Green #22C55E → Hex Cyan #06B6D4 (the brand gradient, top left to bottom right), Deep Green #0E9F6E,
   Mint #34D399, Night Navy #0B1220, White. Type: Orbitron for headlines, Inter (or Segoe UI) for text.
   Light and dark themes: Bootstrap's data-bs-theme on <html>, chosen in the header (light, dark, or the system's). */

:root {
  --ag-green: #22C55E;
  --ag-cyan: #06B6D4;
  --ag-deep-green: #0E9F6E;
  --ag-mint: #34D399;
  --ag-navy: #0B1220;
  --ag-gradient: linear-gradient(135deg, var(--ag-green), var(--ag-cyan));
  --ag-headline: 'Orbitron', 'Segoe UI', system-ui, sans-serif;
  --ag-text: 'Inter', 'Segoe UI', system-ui, sans-serif;
}

/* Light: the brand sheet's page colors. */
[data-bs-theme=light] {
  --bs-body-font-family: var(--ag-text);
  --bs-body-bg: #F4F6F8;
  --bs-body-color: #0B1220;
  --bs-secondary-color: #5B6474;
  --bs-border-color: #E2E6EC;
  --bs-tertiary-bg: #EEF2F6;
  --bs-link-color: #0B7A55;          /* Deep Green, darkened enough to read as small text on white */
  --bs-link-color-rgb: 11, 122, 85;
  --bs-link-hover-color: #0E9F6E;
  --bs-link-hover-color-rgb: 14, 159, 110;
  --bs-emphasis-color: #0B1220;
  --ag-card: #FFFFFF;
  --ag-accent: #0E9F6E;
  --ag-focus: rgba(14, 159, 110, .35);
}

/* Dark: Night Navy, with Mint for accents. */
[data-bs-theme=dark] {
  --bs-body-font-family: var(--ag-text);
  --bs-body-bg: #0B1220;
  --bs-body-color: #E6EAF0;
  --bs-secondary-color: #9AA4B5;
  --bs-border-color: #1F2A3D;
  --bs-tertiary-bg: #131C2E;
  --bs-link-color: #34D399;
  --bs-link-color-rgb: 52, 211, 153;
  --bs-link-hover-color: #6EE7B7;
  --bs-link-hover-color-rgb: 110, 231, 183;
  --bs-emphasis-color: #FFFFFF;
  --ag-card: #111A2B;
  --ag-accent: #34D399;
  --ag-focus: rgba(52, 211, 153, .4);
}

html { font-size: 14px; position: relative; min-height: 100%; }
@media (min-width: 768px) { html { font-size: 16px; } }

body {
  margin-bottom: 72px;
  font-family: var(--ag-text);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, .h1, .h2, .h3, .ag-headline {
  font-family: var(--ag-headline);
  font-weight: 700;
  letter-spacing: .02em;
}
h1, .h3 { font-size: 1.6rem; }

/* Header: always Night Navy, so the full-color logo for dark backgrounds sits right on it. */
.ag-header {
  background: var(--ag-navy);
  border-bottom: 3px solid transparent;
  border-image: var(--ag-gradient) 1;
}
.ag-header .navbar-brand { padding: 6px 0; margin-right: 2rem; }
.ag-header .navbar-brand img { height: 56px; width: auto; display: block; }   /* about 208 px wide: above the 200 px minimum */
.ag-header .nav-link { color: #C7CEDA; font-weight: 500; border-radius: 8px; padding: .45rem .8rem !important; }
.ag-header .nav-link:hover, .ag-header .nav-link:focus { color: #FFFFFF; background: rgba(255, 255, 255, .06); }
.ag-header .nav-link.active { color: var(--ag-mint); background: rgba(52, 211, 153, .10); }
.ag-header .ag-user { color: #9AA4B5; }
.ag-header .navbar-toggler { border-color: rgba(255, 255, 255, .25); }
.ag-header .navbar-toggler-icon { filter: invert(1); }
.ag-header .btn-outline-light { --bs-btn-color: #C7CEDA; --bs-btn-border-color: #2A3650; --bs-btn-hover-bg: #1A2438; --bs-btn-hover-border-color: #3A4866; --bs-btn-hover-color: #FFFFFF; }

/* The theme switch: three small buttons. */
.ag-theme .btn { --bs-btn-padding-x: .55rem; --bs-btn-padding-y: .2rem; --bs-btn-font-size: .8rem; }
.ag-theme .btn.active { background: var(--ag-gradient); color: var(--ag-navy); border-color: transparent; font-weight: 600; }

/* Buttons: primary in the brand gradient with Night Navy text (strong contrast on both ends of the gradient). */
.btn-primary {
  --bs-btn-color: #0B1220;
  --bs-btn-bg: #22C55E;
  --bs-btn-border-color: transparent;
  --bs-btn-hover-color: #0B1220;
  --bs-btn-hover-bg: #1FB457;
  --bs-btn-hover-border-color: transparent;
  --bs-btn-active-color: #0B1220;
  --bs-btn-active-bg: #1AA34E;
  --bs-btn-active-border-color: transparent;
  --bs-btn-disabled-color: #0B1220;
  background-image: var(--ag-gradient);
  font-weight: 600;
}
.btn-primary:hover { background-image: linear-gradient(135deg, #1FB457, #05A3BE); }
.btn-outline-primary {
  --bs-btn-color: var(--ag-accent);
  --bs-btn-border-color: var(--ag-accent);
  --bs-btn-hover-color: #0B1220;
  --bs-btn-hover-bg: var(--ag-mint);
  --bs-btn-hover-border-color: var(--ag-mint);
  --bs-btn-active-color: #0B1220;
  --bs-btn-active-bg: var(--ag-mint);
  --bs-btn-active-border-color: var(--ag-mint);
}
.btn-group > .btn-primary { background-image: var(--ag-gradient); }

.btn:focus-visible, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 .2rem var(--ag-focus);
  border-color: var(--ag-accent);
}

/* Cards and panels. */
.card, .ag-panel {
  background: var(--ag-card);
  border: 1px solid var(--bs-border-color);
  border-radius: 14px;
}
.ag-panel { padding: 1.25rem; }
.card.shadow-sm { box-shadow: 0 .5rem 1.5rem rgba(11, 18, 32, .06) !important; }

/* The home page's tiles. */
.ag-tile {
  display: block;
  padding: 1.1rem 1.25rem;
  background: var(--ag-card);
  border: 1px solid var(--bs-border-color);
  border-radius: 14px;
  color: inherit;
  text-decoration: none;
  position: relative;
  overflow: hidden;
  transition: border-color .15s, transform .15s;
}
.ag-tile::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 4px; background: var(--ag-gradient); }
.ag-tile:hover { border-color: var(--ag-accent); transform: translateY(-1px); color: inherit; }
.ag-tile .ag-tile-title { font-family: var(--ag-headline); font-weight: 600; font-size: 1rem; letter-spacing: .03em; }

/* Small uppercase label, like the brand sheet's section titles. */
.ag-eyebrow { font-size: .75rem; letter-spacing: .14em; text-transform: uppercase; color: var(--bs-secondary-color); font-weight: 600; }

/* Tables. */
.ag-table-wrap { background: var(--ag-card); border: 1px solid var(--bs-border-color); border-radius: 14px; padding: .25rem .75rem; }
.table { --bs-table-bg: transparent; margin-bottom: 0; }
.table thead th { font-size: .75rem; letter-spacing: .1em; text-transform: uppercase; color: var(--bs-secondary-color); font-weight: 600; border-bottom-width: 1px; }

/* Sign-in page. */
.ag-login { max-width: 440px; margin: 3rem auto 0; }
.ag-login .ag-logo { width: 180px; height: auto; display: block; margin: 0 auto 1.75rem; }   /* stacked logo: above the 160 px minimum */
.ag-logo-dark { display: none !important; }
[data-bs-theme=dark] .ag-logo-light { display: none !important; }
[data-bs-theme=dark] .ag-logo-dark { display: block !important; }

/* Footer. */
.footer { position: absolute; bottom: 0; width: 100%; white-space: nowrap; line-height: 60px; font-size: .85rem; }


/* Bootstrap's floating labels, from the template. */
.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder { color: var(--bs-secondary-color); text-align: end; }
.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder { text-align: start; }

/* Chat codes and ids: quiet monospace, not Bootstrap's pink. */
code { color: var(--bs-secondary-color); font-size: .8em; }
.table .btn { white-space: nowrap; }

/* Forum experiences: star ratings and multi-line texts. */
.ag-star-on { color: #F5B83D; }
.ag-star-off { color: var(--bs-border-color); }
.ag-pre-line { white-space: pre-line; }
