/*
Theme Name: Xoo Theme
Theme URI: https://xoo.gr/
Author: Xoo.GR
Author URI: https://xoo.gr/
Description: Minimal fullscreen theme for Xoo.GR (GUI-first). Blank shell that lets WPCode UI layers drive the app.
Version: 0.1.2
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 7.4
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: xoo-theme
*/

/* Brand palette as CSS variables (low-specificity, safe to override by Global CSS snippet). */
:root {
  --xoo-primary: #ccff00;
  --xoo-accent: #00fefc;
  --xoo-header: #17586b;
  --xoo-window: #0a4b5f;
  --xoo-bg: #083a4a;
  --xoo-bg-deep: #083a4a;
  --xoo-radius: 5px;
  --xoo-text: #e6f1f5;
  --xoo-muted: rgba(230,241,245,0.72);
}

html, body {
  height: 100%;
}

body {
  margin: 0;
  padding: 0;
  background: var(--xoo-bg);
  color: var(--xoo-text);
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  line-height: 1.35;
}

a {
  color: var(--xoo-accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

img {
  max-width: 100%;
  height: auto;
}

.xoo-skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: #000;
  color: #fff;
  padding: 8px 12px;
  border-radius: var(--xoo-radius);
  z-index: 99999;
}

.xoo-skip-link:focus {
  left: 10px;
  top: 10px;
}

.xoo-shell {
  min-height: 100vh;
  min-height: calc(var(--xoo-vh, 1vh) * 100);
  display: flex;
  flex-direction: column;
}

.xoo-main {
  flex: 1 1 auto;
  min-height: 0;
}

.xoo-page {
  max-width: 1120px;
  margin: 0 auto;
  padding: 24px 18px;
}

.xoo-fullscreen {
  width: 100%;
  height: 100%;
  min-height: 100%;
}

/* Admin bar safe layout. */
body.admin-bar .xoo-shell {
  min-height: calc(100vh - 32px);
  min-height: calc((var(--xoo-vh, 1vh) * 100) - 32px);
}

/* Basic typography for non-GUI pages. */
.xoo-page h1, .xoo-page h2, .xoo-page h3 {
  margin: 0 0 12px 0;
  line-height: 1.15;
}

.xoo-page p {
  margin: 0 0 12px 0;
  color: var(--xoo-text);
}

.xoo-page .xoo-card {
  background: var(--xoo-window);
  border-radius: var(--xoo-radius);
  padding: 16px;
}


/* XOO:ANCHOR THEME_PRELOAD_OVERLAY */
.xoo-preload {
  position: fixed;
  inset: 0;
  z-index: 2147483000;
  background: var(--xoo-bg-deep);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.xoo-preload.is-on {
  display: flex;
}

.xoo-preload__card {
  width: min(560px, 100%);
  background: var(--xoo-window);
  border-radius: var(--xoo-radius);
  padding: 16px;
  box-shadow: 0 8px 26px rgba(0,0,0,0.35);
  display: flex;
  gap: 12px;
  align-items: center;
}

.xoo-preload__spinner {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid rgba(0, 254, 252, 0.25);
  border-top-color: var(--xoo-accent);
  animation: xooSpin 0.9s linear infinite;
  flex: 0 0 auto;
}

@keyframes xooSpin {
  to { transform: rotate(360deg); }
}

.xoo-preload__text {
  color: var(--xoo-text);
  font-size: 14px;
  line-height: 1.25;
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.xoo-preload__title {
  font-weight: 700;
  color: var(--xoo-accent);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.xoo-preload__sub {
  color: var(--xoo-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* XOO:ANCHOR THEME_ADMIN_BOOT_BADGE */
.xoo-boot-badge {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 2147483001;
  background: rgba(10, 75, 95, 0.92);
  border: 1px solid rgba(0, 254, 252, 0.25);
  border-radius: var(--xoo-radius);
  padding: 8px 10px;
  font-size: 12px;
  line-height: 1.25;
  color: var(--xoo-text);
  display: none;
  user-select: none;
  pointer-events: none;
  max-width: calc(100vw - 20px);
}

.xoo-boot-badge.is-on {
  display: block;
}

.xoo-boot-badge__row {
  display: flex;
  gap: 8px;
  align-items: baseline;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.xoo-boot-badge__k {
  color: var(--xoo-accent);
  font-weight: 700;
  flex: 0 0 auto;
}

.xoo-boot-badge__v {
  color: var(--xoo-primary);
  font-weight: 700;
  overflow: hidden;
  text-overflow: ellipsis;
}
