
:root{
  --radius:8px;
  --max-width:900px;
  --font-serif: "New Century Schoolbook", serif;
  --font-sans: Inter, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
  color-scheme: light dark;
  /* fallback tokens (will be overridden by theme classes) */
  --bg: linear-gradient(180deg,#fbf5ff 0%, #f6fbff 100%);
  --panel: #fff;
  --accent: #7b6bff;
  --accent-2: #7cc6ff;
  --muted: #55606a;
  --card: #fbfbfd;
  --card-surface: #efe7db; /* neutral taupe/beige fallback */
  --glass: rgba(15,40,60,0.04);
  --text: #0b1724;
  --shadow: rgba(11,20,32,0.06);
}
/* Theme toggle button */
.theme-toggle{ /* Update to match your HTML */
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:8px 10px;
  border-radius:8px;
  background:transparent;
  border:1px solid color-mix(in srgb, var(--text) 8%, transparent);
  cursor:pointer;
  color:var(--muted);
  font-weight:600;
}
.theme-toggle:hover { 
  background: var(--glass); 
  color: var(--text); 
}

/* LIGHT THEME: violet + soft teal (complements sky blue + yellow) */
html.theme-light {
  --bg: linear-gradient(180deg,#fbf5ff 0%, #f6fbff 100%);
  --panel: #ffffff;
  --accent: #7b6bff;
  --accent-2: #7cc6ff;
  --muted: #55606a;
  --card: #fbfbfd;
  --card-surface: #efe7db; /* soft taupe / sandstone for cards in light mode */
  --glass: rgba(15,40,60,0.04);
  --text: #0b1724;
  --shadow: rgba(11,20,32,0.06);
}

/* DARK THEME: deep eggplant + warm teal (complements deep navy + warm orange) */
html.theme-dark {
  --bg: linear-gradient(180deg,#081019 0%, #0b0712 100%);
  --panel: #091025;
  --accent: #b77bff;
  --accent-2: #7cc6ff;
  --muted: #9aa6b0;
  --card: #071122;
  --card-surface: color-mix(in srgb, #efe7db 42%, #071122 58%); /* desaturated taupe adapted for dark */
  --glass: rgba(255,255,255,0.03);
  --text: #e6eef8;
  --shadow: rgba(2,6,23,0.6);
}

/* fallback to system pref if no explicit class */
@media (prefers-color-scheme: dark){
  :root:not(.theme-light):not(.theme-dark){
    --bg: linear-gradient(180deg,#081019 0%, #0b0712 100%);
    --panel: #091025;
    --accent: #b77bff;
    --accent-2: #7cc6ff;
    --muted: #9aa6b0;
    --card: #071122;
    --card-surface: color-mix(in srgb, #efe7db 42%, #071122 58%);
    --glass: rgba(255,255,255,0.03);
    --text: #e6eef8;
    --shadow: rgba(2,6,23,0.6);
  }
}
@media (prefers-color-scheme: light){
  :root:not(.theme-light):not(.theme-dark){
    --bg: linear-gradient(180deg,#fbf5ff 0%, #f6fbff 100%);
    --panel: #fff;
    --accent: #7b6bff;
    --accent-2: #7cc6ff;
    --muted: #55606a;
    --card: #fbfbfd;
    --card-surface: #efe7db;
    --glass: rgba(15,40,60,0.04);
    --text: #0b1724;
    --shadow: rgba(11,20,32,0.06);
  }
}

/* Base layout & typography */
body {
  font-family: var(--font-serif);
  margin: 0;
  padding: 0;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg);
  color: var(--text);
}

/* Container mirrors the panel/card tokens */
.container {
  max-width: 800px;
  width: 92%;
  margin: auto;
  padding: 22px;
  background: linear-gradient(180deg, color-mix(in srgb, var(--panel) 96%, transparent), var(--panel));
  border-radius: calc(var(--radius) - 2px);
  text-align: center;
  box-shadow: 0 10px 30px var(--shadow);
  border: 1px solid rgba(0,0,0,0.04);
}

header { margin-bottom: 18px; }

h1 {
  font-size: 2.25rem;
  color: var(--accent);
  margin: 0;
}

.user-name { font-weight: bold; color: var(--accent-2); }

.cards{
  display:flex;
  justify-content:center;
  gap:12px;
  margin: 24px 0;
  flex-wrap:wrap;
}

/* Individual card surface uses the new --card-surface token */
.card{
  background: var(--card-surface);
  border: 1px solid color-mix(in srgb, var(--card-surface) 75%, transparent 25%);
  border-radius: calc(var(--radius) - 2px);
  padding: 16px;
  width: 260px;
  box-shadow: 0 6px 20px var(--shadow);
  text-align:center;
  font-family: var(--font-serif);
  margin: 6px;
  transition: transform 0.28s ease, box-shadow 0.28s ease;
}

.card:hover{
  transform: translateY(-6px) scale(1.02);
  box-shadow: 0 18px 40px var(--shadow);
}

.card h2{
  font-size: 1.25rem;
  color: var(--text);
  background: linear-gradient(90deg, color-mix(in srgb, var(--accent) 22%, transparent), transparent);
  display:inline-block;
  padding:6px 8px;
  border-radius:6px;
  border:1px solid rgba(0,0,0,0.06);
}

/* Interpretation uses card token (slightly different from card-surface) */
.interpretation{
  margin-top: 18px;
  padding: 16px;
  background: var(--card);
  border: 1px solid rgba(0,0,0,0.06);
  border-radius: calc(var(--radius) - 2px);
  box-shadow: 0 6px 20px var(--shadow);
  color: var(--text);
}

/* Footer */
.site-footer{
  width:100%;
  max-width:var(--max-width);
  margin-top:28px;
  display:flex;
  justify-content:space-between;
  align-items:center;
  padding:12px 16px;
  color:var(--muted);
  font-size:14px;
  border-radius:8px;
  background:transparent;
}

.footer-links a{
  color:var(--muted);
  text-decoration:none;
  margin-right:14px;
}
.footer-links a:hover{color:var(--text)}

/* Theme toggle button (visual only; toggling requires adding/removing class on <html>) */
.theme-toggle-button{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:8px 10px;
  border-radius:8px;
  background:transparent;
  border:1px solid color-mix(in srgb, var(--text) 8%, transparent);
  cursor:pointer;
  color:var(--muted);
  font-weight:600;
}
.theme-toggle-button:hover{ background: var(--glass); color: var(--text); }

/* Buttons: gradient using the project's accents */
button{
  margin: 10px;
  padding: 8px 12px;
  font-size: 13px;
  cursor: pointer;
  border: none;
  border-radius: 8px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  color: var(--panel);
  font-weight:700;
  transition: filter .18s ease, transform .12s ease;
  box-shadow: 0 6px 18px rgba(0,0,0,0.08);
}
button:hover{
  filter:brightness(.95);
  transform: translateY(-2px);
}

.single-card{
  display:flex;
  justify-content:center;
  margin:22px auto;
  flex-direction:column;
  align-items:center;
}

b{ font-weight:700; color: var(--accent-2); }
i{ font-style:italic; color: color-mix(in srgb, var(--accent) 60%, var(--text)); }

.light{
  color: var(--panel);
  font-weight: 400;
  font-size:1rem;
}

@media (max-width:720px){
  .cards{ flex-direction:column; align-items:center; }
  .card{ width: 92%; }
  h1{ font-size:1.75rem; }
}

html.theme-light a[href="../../home.html"] {
  color: var(--accent-2);
}

html.theme-dark a[href="../../home.html"] {
  color: var(--accent);
}



