/* Admonte Gaming brand for the Fircik Forum (the same as the Control Panel's) (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; }

/* 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; }

/* Code: quiet, not Bootstrap's pink. */
code { color: var(--bs-secondary-color); font-size: .8em; }

/* The home page's hero: Night Navy in both themes, with the gradient bar under the headline. */
.ag-hero {
  background: radial-gradient(120% 140% at 50% 0%, #16243D 0%, #0B1220 55%, #060A13 100%);
  color: #E6EAF0;
  border-radius: 18px;
  padding: 3rem 1.5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.ag-hero::after { content: ""; position: absolute; inset: auto 0 0 0; height: 3px; background: var(--ag-gradient); }
.ag-hero h1 { font-size: clamp(2rem, 6vw, 3.25rem); letter-spacing: .08em; margin-bottom: .5rem; color: #FFFFFF; }
.ag-hero .ag-bar { width: 96px; height: 4px; border-radius: 2px; background: var(--ag-gradient); margin: 0 auto 1.25rem; }
.ag-hero p { color: #9AA4B5; max-width: 34rem; margin: 0 auto; }
.ag-hero .ag-eyebrow { color: var(--ag-mint); }
[data-bs-theme=dark] .ag-hero { border: 1px solid #1F2A3D; }   /* so the navy hero stands apart from the navy page */

/* Sign-in page: the stacked logo for the theme, then a narrow card. */
.ag-login { max-width: 440px; margin: 2rem 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; }

/* "Sign in with Google", drawn as Google's branding guidelines ask: the full-color G on white (light) or
   #131314 (dark), a thin border, Roboto-like medium text. Not restyled in the brand colors on purpose. */
.ag-google {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  width: 100%; max-width: 320px; height: 44px; padding: 0 16px;
  background: #FFFFFF; color: #1F1F1F; border: 1px solid #747775; border-radius: 22px;
  font-family: 'Roboto', 'Segoe UI', Arial, sans-serif; font-size: 15px; font-weight: 500; letter-spacing: .25px;
  cursor: pointer; transition: background-color .15s, box-shadow .15s;
}
.ag-google:hover { background: #F2F2F2; box-shadow: 0 1px 3px rgba(60, 64, 67, .3); }
.ag-google:focus-visible { outline: none; box-shadow: 0 0 0 .2rem var(--ag-focus); }
.ag-google-logo { width: 20px; height: 20px; flex: none; }
[data-bs-theme=dark] .ag-google { background: #131314; color: #E3E3E3; border-color: #8E918F; }
[data-bs-theme=dark] .ag-google:hover { background: #1F1F20; }

/* The signed-in player in the header. */
.ag-avatar { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; border: 2px solid var(--ag-mint); flex: none; }
.ag-avatar-letter { display: inline-flex; align-items: center; justify-content: center; background: var(--ag-gradient); color: var(--ag-navy); font-weight: 700; font-size: .9rem; border: 0; }

/* The home page's tiles (as in the Control Panel). */
.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; }

/* Experiences. */
@media (min-width: 992px) { .ag-share { position: sticky; top: 1rem; } }
.ag-experience-title { font-family: var(--ag-text); font-weight: 700; font-size: 1.05rem; letter-spacing: 0; }
.ag-experience-text { white-space: pre-line; overflow-wrap: anywhere; }
.ag-rating { white-space: nowrap; font-size: 1.05rem; line-height: 1; }
.ag-rating span { color: var(--bs-border-color); }
.ag-rating span.on { color: #F5B83D; }

/* Star picker: the radios are hidden; labels light up from the left, on hover and when chosen (row-reverse order). */
.ag-stars { display: inline-flex; flex-direction: row-reverse; gap: .15rem; }
.ag-star-input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.ag-stars label { font-size: 2rem; line-height: 1; cursor: pointer; color: var(--bs-border-color); transition: color .1s, transform .1s; }
.ag-stars label:hover, .ag-stars label:hover ~ label,
.ag-star-input:checked ~ label { color: #F5B83D; }
.ag-stars label:hover { transform: scale(1.1); }
.ag-star-input:focus-visible + label { outline: 2px solid var(--ag-accent); outline-offset: 2px; border-radius: 4px; }
