/*
Theme Name: Hex Realms
Theme URI: https://hexrealms.example
Author: Event.Cruises
Description: Minimal fullscreen shell for the Hex Realms campaign platform. No sidebars, no widget areas, no footer clutter — pages are edge-to-edge and a small floating chip in the corner handles login/logout. Not built for WooCommerce or general-purpose content; this theme exists to get out of the app's way.
Version: 1.4.0
Requires at least: 6.0
Requires PHP: 7.4
License: GPLv2 or later
Text Domain: hexr-theme
*/

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  background: #03100a;
  color: #7ef0aa;
  font-family: 'Share Tech Mono', 'Courier New', monospace;
}

body { overflow: hidden; } /* the app manages its own internal scroll regions */

a { color: inherit; }

img { max-width: 100%; display: block; }

/* ---------------------------------------------------------- page shell */
.hexr-theme-page {
  height: 100dvh;
  height: 100vh;
  width: 100%;
  overflow: auto;
}

/* ---------------------------------------------------------- account chip
 * Namespaced hexrt- (theme), deliberately distinct from the plugin's own
 * hexr-chip badge class used throughout its console UI. The two used to
 * share the literal class name "hexr-chip", so this fixed/global rule was
 * silently hijacking every plugin badge (chiprow labels, GM tags, etc.) -
 * position:fixed;top;right applied to all of them, stacking them on top
 * of each other and the map header in the corner of the screen. */
.hexrt-chip {
  position: fixed;
  top: 10px;
  right: 10px;
  z-index: 9999;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  background: rgba(4, 16, 10, .82);
  border: 1px solid rgba(70, 232, 138, .4);
  box-shadow: 0 0 14px rgba(20, 90, 48, .25);
  font-size: 11px;
  letter-spacing: .06em;
  backdrop-filter: blur(3px);
  transition: opacity .15s ease, padding .15s ease;
}
.hexrt-chip a {
  text-decoration: none;
  color: #7ef0aa;
  padding: 2px 4px;
}
.hexrt-chip a:hover { color: #ffd23a; }
.hexrt-chip .hexrt-chip-name { color: #9dffc4; text-shadow: 0 0 6px rgba(70, 232, 138, .5); }
.hexrt-chip .hexrt-chip-sep { color: rgba(70, 232, 138, .3); }
.hexrt-chip .hexrt-chip-admin { color: #ffd23a; }

/* On a page running a Hex Realms app (hub or map), the app already shows
 * who's logged in in its own header, so the floating chip shrinks to a
 * compact icon-only control (still reachable, no longer duplicating or
 * crowding the app's own top-right elements). */
/* On an app page the chip renders as bare icon glyphs (see hexr_is_app_page
 * in functions.php) - a proper small square, not a shrunken text pill, so it
 * genuinely fits inside the console header's reserved corner instead of just
 * looking smaller while still being wider than that reservation. */
body.hexr-app-page .hexrt-chip.hexrt-chip-compact {
  padding: 0;
  gap: 0;
  display: flex;
}
body.hexr-app-page .hexrt-chip.hexrt-chip-compact a {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  padding: 0;
}
body.hexr-app-page .hexrt-chip.hexrt-chip-compact .hexrt-chip-sep { display: none; }

@media (max-width: 520px) {
  .hexrt-chip { top: 6px; right: 6px; padding: 5px 9px; font-size: 10px; gap: 6px; }
  .hexrt-chip .hexrt-chip-name { max-width: 90px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
}

/* ---------------------------------------------------------- landing splash (empty front page only) */
.hexr-splash {
  min-height: 100dvh;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px 20px;
  background: radial-gradient(130% 100% at 50% -10%, #0a2418 0%, #051710 45%, #020a07 100%);
}
.hexr-splash-sigil { font-size: 36px; border: 1px solid rgba(70, 232, 138, .45); padding: 8px 14px; text-shadow: 0 0 10px rgba(70, 232, 138, .7); margin-bottom: 18px; }
.hexr-splash h1 { font-size: 22px; letter-spacing: .2em; color: #9dffc4; text-shadow: 0 0 9px rgba(70, 232, 138, .55); text-transform: uppercase; font-weight: 400; margin: 0 0 8px; }
.hexr-splash p { font-size: 12px; letter-spacing: .1em; color: #3f8f63; margin: 0 0 34px; text-transform: uppercase; }
.hexr-splash-actions { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; }
.hexr-splash-btn {
  display: inline-block;
  padding: 14px 26px;
  border: 1px solid rgba(70, 232, 138, .45);
  background: rgba(14, 46, 29, .7);
  color: #7ef0aa;
  text-decoration: none;
  font-size: 12px;
  letter-spacing: .12em;
  text-transform: uppercase;
  min-width: 180px;
}
.hexr-splash-btn:hover { background: rgba(24, 66, 42, .9); }
.hexr-splash-btn-gold { border-color: rgba(255, 210, 58, .6); color: #ffe6a0; background: rgba(40, 30, 6, .55); box-shadow: 0 0 14px rgba(255, 200, 40, .15); }
.hexr-splash-note { margin-top: 30px; font-size: 10px; color: #2c5942; letter-spacing: .06em; text-transform: none; }

/* [hexr_home mode="stats"] variant - meant to be stacked above [hexr_register]
 * on the same homepage Page, so it drops the full-viewport centering (which
 * would otherwise push the registration form stacked below it off-screen)
 * in favor of a compact top-of-page block that hands off to whatever
 * content follows. */
.hexr-splash.hexr-splash-compact {
  min-height: 0;
  padding: 50px 20px 30px;
}
.hexr-splash.hexr-splash-compact .hexr-splash-stats { margin-bottom: 8px; }

/* ---------------------------------------------------------- landing stat wall */
.hexr-splash-stats {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: center;
  margin: 0 0 34px;
}
.hexr-splash-stat {
  min-width: 128px;
  padding: 16px 22px;
  border: 1px solid rgba(70, 232, 138, .3);
  background: rgba(14, 46, 29, .35);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}
.hexr-splash-stat-num {
  font-family: 'VT323', monospace;
  font-size: 40px;
  line-height: 1;
  color: #ffd23a;
  text-shadow: 0 0 12px rgba(255, 210, 58, .45);
}
.hexr-splash-stat-label {
  font-size: 10px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: #3f8f63;
}
@media (max-width: 520px) {
  .hexr-splash-stats { gap: 10px; }
  .hexr-splash-stat { min-width: 96px; padding: 12px 14px; }
  .hexr-splash-stat-num { font-size: 30px; }
}

/* ---------------------------------------------------------- landing login form
 * Scoped under .hexr-splash-login throughout so these rules always outrank
 * the generic ".hexr-splash p" tagline rule (uppercase, 34px bottom margin)
 * that would otherwise cascade onto every <p> wp_login_form() outputs. */
.hexr-splash-login {
  width: 100%;
  max-width: 300px;
  padding: 22px 24px 26px;
  border: 1px solid rgba(70, 232, 138, .3);
  background: rgba(4, 16, 10, .5);
}
.hexr-splash-login-head {
  font-size: 11px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: #9dffc4;
  text-shadow: 0 0 8px rgba(70, 232, 138, .4);
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 1px dashed rgba(70, 232, 138, .25);
}
.hexr-splash-login form p { margin: 0 0 14px; text-align: left; text-transform: none; }
.hexr-splash-login form label {
  display: block;
  font-size: 10px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #3f8f63;
  margin-bottom: 5px;
}
.hexr-splash-login form input.input {
  width: 100%;
  padding: 9px 10px;
  background: rgba(3, 16, 10, .7);
  border: 1px solid rgba(70, 232, 138, .35);
  color: #9dffc4;
  font-family: 'Share Tech Mono', 'Courier New', monospace;
  font-size: 13px;
}
.hexr-splash-login form input.input:focus {
  outline: none;
  border-color: rgba(255, 210, 58, .6);
}
.hexr-splash-login form p.login-remember {
  display: flex;
  align-items: center;
}
.hexr-splash-login form p.login-remember label {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  text-transform: none;
  font-size: 11px;
  color: #7ef0aa;
}
.hexr-splash-login form p.login-submit { margin-top: 18px; margin-bottom: 0; }
.hexr-splash-login form input[type="submit"] {
  width: 100%;
  padding: 12px;
  border: 1px solid rgba(255, 210, 58, .6);
  background: rgba(40, 30, 6, .55);
  color: #ffe6a0;
  font-family: inherit;
  font-size: 12px;
  letter-spacing: .12em;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: 0 0 14px rgba(255, 200, 40, .15);
}
.hexr-splash-login form input[type="submit"]:hover { background: rgba(56, 42, 8, .75); }
.hexr-splash-login .hexr-splash-login-note {
  margin: 16px 0 0;
  font-size: 11px;
  letter-spacing: .04em;
  text-transform: none;
  color: #3f8f63;
  text-align: center;
}
.hexr-splash-login-note a { color: #ffd23a; text-decoration: none; }
.hexr-splash-login-note a:hover { text-decoration: underline; }

/* ---------------------------------------------------------- 404 */
.hexr-404 { min-height: 100dvh; min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 40px 20px; }
.hexr-404 .hexr-404-code { font-family: 'VT323', monospace; font-size: 64px; color: #ff5a47; text-shadow: 0 0 14px rgba(255, 90, 71, .5); line-height: 1; }
.hexr-404 p { font-size: 12px; color: #3f8f63; letter-spacing: .08em; margin: 12px 0 26px; }
.hexr-404 a { border: 1px solid rgba(70, 232, 138, .4); padding: 10px 20px; text-decoration: none; font-size: 11px; letter-spacing: .1em; }
