/*
 * dsa-theme.css — shared Digital Skills Australia brand styling for the
 * playground's own pages (landing page, editor chrome). The kids' saved
 * programs and the example lessons are left plain on purpose, since
 * they're the kids' own work, not the company's.
 *
 * Colors pulled from the main Digital Skills Australia site stylesheet.
 */

:root {
  --dsa-orange: #F5A302;
  --dsa-orange-light: #FFBA41;
  --dsa-navy: #033C59;
  --dsa-text: #1a1a1a;
  --dsa-muted: #666666;
  --dsa-bg: #fafafa;
  --dsa-border: #e5e7eb;
  --dsa-green: #22c55e;
  --dsa-font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

body.dsa {
  font-family: var(--dsa-font);
  color: var(--dsa-text);
  margin: 0;
  background: #fff;
}

/* --- Header / nav bar, logo top-left --- */
.dsa-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem 1.5rem;
  background: #fff;
  border-bottom: 1px solid var(--dsa-border);
  flex-wrap: wrap;
}
.dsa-header__brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  min-width: 0;
}
.dsa-home-link {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  min-width: 0;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}
.dsa-home-link:hover { opacity: 0.8; }

/* Lucide icons inherit the surrounding text size, so they line up with
   whatever label they sit next to without per-instance sizing. */
.icon, svg.lucide {
  width: 1em;
  height: 1em;
  vertical-align: -0.15em;
  flex-shrink: 0;
}
.dsa-header__name {
  font-weight: 800;
  color: var(--dsa-navy);
  font-size: 1.1rem;
  letter-spacing: -0.01em;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.dsa-logo {
  height: 40px;
  width: auto;
  display: block;
}
.dsa-logo-fallback {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 800;
  color: var(--dsa-navy);
  font-size: 1.05rem;
  letter-spacing: -0.01em;
  white-space: nowrap;
}
.dsa-logo-fallback .dsa-mark {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--dsa-navy), var(--dsa-orange));
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 800;
  font-size: 1.1rem;
  flex-shrink: 0;
}

/* --- Small "trusted by" style badge --- */
.dsa-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(34, 197, 94, 0.1);
  color: var(--dsa-green);
  border: 1px solid var(--dsa-green);
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
}

/* --- Gradient accent text, matching the site's hero heading style --- */
.dsa-accent-text {
  background: linear-gradient(135deg, var(--dsa-orange), #6366f1);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* --- Buttons, matching the site's rounded/bold CTA style --- */
.dsa-btn, .dsa-btn-outline, .dsa-btn-navy {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border-radius: 8px;
  padding: 0 1.25rem;
  height: 44px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s ease;
  border: 2px solid transparent;
  font-family: var(--dsa-font);
}
.dsa-btn {
  background: var(--dsa-orange);
  color: #fff !important;
  border-color: var(--dsa-orange);
}
.dsa-btn:hover {
  background: var(--dsa-orange-light);
  border-color: var(--dsa-orange-light);
  transform: translateY(-1px);
}
.dsa-btn-outline {
  background: transparent;
  color: var(--dsa-navy) !important;
  border-color: var(--dsa-navy);
}
.dsa-btn-outline:hover {
  background: var(--dsa-navy);
  color: #fff !important;
}
.dsa-btn-navy {
  background: var(--dsa-navy);
  color: #fff !important;
  border-color: var(--dsa-navy);
}
.dsa-btn-navy:hover {
  background: #0a5678;
  border-color: #0a5678;
  transform: translateY(-1px);
}

a.dsa-link { color: var(--dsa-orange); text-decoration: none; }
a.dsa-link:hover { color: var(--dsa-orange-light); }

.dsa-h1 { color: var(--dsa-navy); font-size: 2.2rem; font-weight: 800; line-height: 1.15; margin: 0 0 1rem; }
.dsa-h2 { color: var(--dsa-navy); font-size: 1.3rem; font-weight: 700; margin: 2rem 0 1rem; }
.dsa-muted { color: var(--dsa-muted); }
