/* HKPL-NOVICE-V1 (2026-05-22)
 *
 * Studio-ui-style novice-friendly layout primitives, but in HKPL's existing
 * green/light theme. Designed to LAYER on top of admin.html and super.html
 * without overriding their existing Tailwind classes — every selector here
 * is prefixed `.hkpl-`. Pure additive CSS. Remove the <link> tag and the
 * old visuals come back unchanged.
 *
 * Tokens
 * ─────────────────────────────────────────────────────────────────────── */
:root {
  --hkpl-green: #00913a;
  --hkpl-green-dark: #006c2c;
  --hkpl-green-50: #e6f4ec;
  --hkpl-green-100: #c0e3cd;
  --hkpl-amber: #f59e0b;
  --hkpl-amber-50: #fffbeb;
  --hkpl-red: #ef4444;
  --hkpl-red-50: #fef2f2;
  --hkpl-ink: var(--ink);
  --hkpl-gray-50: var(--bg);
  --hkpl-gray-100: color-mix(in srgb, var(--surface), var(--ink) 5%);
  --hkpl-gray-200: var(--line);
  --hkpl-gray-400: var(--muted-3, #9ca3af);
  --hkpl-gray-500: var(--muted, #6b7280);
  --hkpl-gray-700: var(--muted-strong, #374151);
  --hkpl-shadow-sm: 0 1px 2px rgba(0,0,0,0.04);
  --hkpl-shadow-card: 0 1px 3px rgba(0,0,0,0.06), 0 4px 12px rgba(0,0,0,0.04);
  --hkpl-shadow-hover: 0 4px 14px rgba(0,145,58,0.10);
  --hkpl-radius: 12px;
}

/* WOW-POLISH-V1 (2026-07-01): purely-visual depth/refinement pass over the
 * novice tokens. No selector renamed, no property removed, no layout metric
 * (padding / grid / gap / font-size) changed — only shadows, subtle gradients,
 * and transition easing added so the admin landing reads a notch more premium.
 * Safe on every page that links this file; remove this block and V1 returns. */

/* Hero ──────────────────────────────────────────────────────────────────
 * Greeting + 1-line context + 1 primary CTA. Anchors every landing page.
 * Mirrors studio-ui's home hero pattern. */
.hkpl-hero {
  /* HERO-PHOTO-BG-V1 (2026-07-30, committee [5] "too boring, add colour"): show a real pickleball photo
     through a lighter green overlay (was near-opaque .94/.96 → the image was invisible). The photo is a
     random sg-bg image set per-render via the --hero-photo variable; the left stays dark for text contrast. */
  background:
    radial-gradient(135% 135% at 90% -25%, rgba(163,255,102,.30) 0%, rgba(163,255,102,0) 52%),
    linear-gradient(118deg, rgba(5,42,24,.90) 0%, rgba(0,120,52,.50) 48%, rgba(4,54,30,.82) 100%),
    var(--hero-photo, url('/cdn/gcs/images/home_banner.jpg'));
  background-size: cover; background-position: center;
  border: 1px solid rgba(163,255,102,.22);
  border-radius: 18px;
  padding: 30px 30px 30px 32px;
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
  position: relative;
  overflow: hidden;
  box-shadow: 0 20px 44px -20px rgba(0,54,24,.60), inset 0 1px 0 rgba(255,255,255,.10);
}
/* Static lime ring accent, upper-right. */
.hkpl-hero::before {
  content: '';
  position: absolute;
  right: -72px; top: -96px;
  width: 268px; height: 268px; border-radius: 50%;
  background: radial-gradient(circle, rgba(163,255,102,.20) 0%, rgba(163,255,102,0) 70%);
  border: 1.5px solid rgba(163,255,102,.22);
  pointer-events: none;
}
/* Soft diagonal light sheen for depth. */
.hkpl-hero::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(105deg, rgba(255,255,255,.07) 0%, rgba(255,255,255,0) 32%);
  pointer-events: none;
}
.hkpl-hero-text { flex: 1; min-width: 260px; position: relative; z-index: 1; }
.hkpl-hero-pill {
  display: inline-flex; align-items: center; gap: 6px;
  background: linear-gradient(135deg, #a3ff66 0%, #6fe23a 100%);
  color: #06331b;
  font-size: 11px; font-weight: 800;
  text-transform: uppercase; letter-spacing: 0.08em;
  padding: 5px 12px; border-radius: 999px;
  margin-bottom: 12px;
  box-shadow: 0 2px 10px rgba(163,255,102,0.35);
}
.hkpl-hero-title {
  font-family: 'Akshar', -apple-system, sans-serif;
  font-size: clamp(25px, 3vw, 31px); font-weight: 800;
  color: #fff; line-height: 1.08; letter-spacing: -.01em; text-shadow: 0 1px 12px rgba(0,0,0,.25);
  margin: 0 0 6px;
}
.hkpl-hero-sub { color: rgba(255,255,255,.9); font-size: 14px; line-height: 1.55; margin: 0; }
.hkpl-hero-cta {
  display: inline-flex; align-items: center; gap: 8px;
  background: linear-gradient(135deg, var(--hkpl-green) 0%, var(--hkpl-green-dark) 100%);
  color: white;
  padding: 10px 18px; border-radius: 8px;
  font-weight: 700; font-size: 14px;
  text-decoration: none; border: none; cursor: pointer;
  box-shadow: 0 1px 2px rgba(0,145,58,0.20);
  transition: transform .15s cubic-bezier(.16,1,.3,1), box-shadow .15s ease;
  position: relative; z-index: 1;
}
.hkpl-hero-cta:hover { transform: translateY(-1px); box-shadow: var(--hkpl-shadow-hover); }

/* "What needs you" cards ────────────────────────────────────────────────
 * One row of clickable cards showing the user's open tasks. Each card:
 * icon + count + label + tiny "go" hint. Amber tint = needs attention. */
.hkpl-attn-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 12px;
  margin-bottom: 24px;
}
.hkpl-attn-card {
  background: var(--surface);
  border: 1px solid var(--hkpl-gray-200);
  border-left: 4px solid var(--hkpl-amber);
  border-radius: var(--hkpl-radius);
  padding: 16px 18px;
  cursor: pointer;
  text-decoration: none;
  color: var(--hkpl-ink);
  display: flex; flex-direction: column; gap: 4px;
  box-shadow: var(--hkpl-shadow-sm);
  transition: transform .15s cubic-bezier(.16,1,.3,1), box-shadow .15s ease, border-color .15s ease;
}
.hkpl-attn-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--hkpl-shadow-card);
  border-color: var(--hkpl-amber);
}
.hkpl-attn-card.is-clear { border-left-color: var(--hkpl-green); }
.hkpl-attn-card.is-clear .hkpl-attn-count { color: var(--hkpl-green); }
.hkpl-attn-count {
  font-family: 'Akshar', sans-serif;
  font-size: 28px; font-weight: 800;
  color: var(--hkpl-amber);
  line-height: 1;
}
.hkpl-attn-label { font-size: 13px; font-weight: 600; color: var(--hkpl-gray-700); }
.hkpl-attn-hint {
  font-size: 11px; color: var(--hkpl-gray-500);
  display: flex; align-items: center; gap: 4px;
  margin-top: 2px;
}

/* Stat strip ────────────────────────────────────────────────────────────
 * Compact "league-at-a-glance" numbers row, demoted from prominent tiles
 * to a single line under the hero. */
.hkpl-stat-strip {
  display: flex; flex-wrap: wrap; gap: 22px 32px;
  padding: 14px 20px;
  background: var(--surface);
  border: 1px solid var(--hkpl-gray-200);
  border-radius: var(--hkpl-radius);
  margin-bottom: 24px;
  box-shadow: var(--hkpl-shadow-sm);
}
.hkpl-stat { display: flex; align-items: baseline; gap: 8px; }
.hkpl-stat-num {
  font-family: 'Akshar', sans-serif;
  font-size: 22px; font-weight: 800;
  color: var(--hkpl-ink);
  /* Subtle brand tint on the numerals — premium without shouting. */
  background: linear-gradient(180deg, var(--hkpl-ink) 0%, #253028 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hkpl-stat-label {
  font-size: 11px; color: var(--hkpl-gray-500);
  text-transform: uppercase; letter-spacing: 0.06em; font-weight: 600;
}

/* Card grid ─────────────────────────────────────────────────────────────
 * Used by Quick Actions and listings. Responsive 2/3/4 cols. */
.hkpl-card {
  background: var(--surface);
  border: 1px solid var(--hkpl-gray-200);
  border-radius: var(--hkpl-radius);
  padding: 20px;
  box-shadow: var(--hkpl-shadow-sm);
}
.hkpl-card-title {
  font-family: 'Akshar', sans-serif;
  font-weight: 700; font-size: 16px;
  color: var(--hkpl-ink);
  margin: 0 0 12px;
  display: flex; align-items: center; justify-content: space-between;
}
.hkpl-action-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 10px;
}
.hkpl-action-btn {
  background: var(--hkpl-gray-50);
  border: 1px solid var(--hkpl-gray-200);
  border-radius: 8px;
  padding: 12px 14px;
  text-align: left;
  font-size: 13px; font-weight: 600;
  color: var(--hkpl-gray-700);
  cursor: pointer;
  transition: transform .15s cubic-bezier(.16,1,.3,1), box-shadow .15s ease, border-color .15s ease, background-color .15s ease, color .15s ease;
  display: flex; align-items: center; gap: 10px;
  text-decoration: none;
}
.hkpl-action-btn:hover {
  border-color: var(--hkpl-green);
  background: var(--hkpl-green-50);
  color: var(--hkpl-green-dark);
  transform: translateY(-1px);
  box-shadow: var(--hkpl-shadow-hover);
}
.hkpl-action-btn svg { width: 18px; height: 18px; stroke: currentColor; flex-shrink: 0; transition: transform .15s cubic-bezier(.16,1,.3,1); }
.hkpl-action-btn:hover svg { transform: scale(1.08); }

/* Empty state ───────────────────────────────────────────────────────────
 * For pages/sections with nothing yet. Friendly, never punitive. */
.hkpl-empty {
  text-align: center;
  padding: 48px 24px;
  border: 2px dashed var(--hkpl-gray-200);
  border-radius: var(--hkpl-radius);
  background: var(--surface);
}
.hkpl-empty-icon {
  width: 48px; height: 48px;
  margin: 0 auto 12px;
  color: var(--hkpl-gray-400);
}
.hkpl-empty-title {
  font-family: 'Akshar', sans-serif;
  font-size: 18px; font-weight: 700; color: var(--hkpl-ink);
  margin: 0 0 6px;
}
.hkpl-empty-body { font-size: 13px; color: var(--hkpl-gray-500); max-width: 380px; margin: 0 auto 16px; line-height: 1.5; }
.hkpl-empty .hkpl-hero-cta { padding: 8px 16px; font-size: 13px; }

/* Diagnostics (collapsed by default) ───────────────────────────────────
 * Where "System Health" etc. go. Pro-mode-by-disclosure. */
.hkpl-diag {
  margin-top: 24px;
  background: var(--hkpl-gray-50);
  border: 1px solid var(--hkpl-gray-200);
  border-radius: var(--hkpl-radius);
}
.hkpl-diag > summary {
  padding: 12px 18px;
  cursor: pointer;
  font-size: 12px; font-weight: 600;
  color: var(--hkpl-gray-500);
  text-transform: uppercase; letter-spacing: 0.05em;
  list-style: none;
  display: flex; align-items: center; justify-content: space-between;
}
.hkpl-diag > summary::after { content: '▾'; font-size: 10px; }
.hkpl-diag[open] > summary::after { content: '▴'; }
.hkpl-diag-body { padding: 0 18px 16px; font-size: 13px; }
.hkpl-diag-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 6px 0;
  border-top: 1px solid var(--hkpl-gray-200);
}
.hkpl-diag-row:first-child { border-top: 0; }
.hkpl-diag-dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; margin-right: 6px; }
.hkpl-diag-dot.ok { background: var(--hkpl-green); }
.hkpl-diag-dot.pending { background: var(--hkpl-amber); }
.hkpl-diag-dot.err { background: var(--hkpl-red); }

/* Skeleton loader ──────────────────────────────────────────────────────
 * Replaces "Loading…" plain text with a shape-suggesting placeholder. */
@keyframes hkpl-skeleton-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.55; }
}
.hkpl-skeleton {
  background: var(--hkpl-gray-100);
  border-radius: 8px;
  animation: hkpl-skeleton-pulse 1.2s ease-in-out infinite;
}

/* Plain-English banner — supersedes punitive role-denied walls */
.hkpl-welcome-card {
  background: var(--surface);
  border: 1px solid var(--hkpl-gray-200);
  border-radius: var(--hkpl-radius);
  padding: 32px;
  text-align: center;
  max-width: 520px;
  margin: 40px auto;
  box-shadow: var(--hkpl-shadow-sm);
}

/* Sidebar polish ───────────────────────────────────────────────────────
 * Subtle enhancements — does not move items, just tightens visual */
.hkpl-sidebar-section-label {
  font-size: 10px;
  font-weight: 700;
  color: var(--hkpl-gray-400);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 16px 20px 6px;
}

/* HERO-FX-V1 (2026-07-16): calm ambient motion canvas behind the hub hero (drifting glow + soft sweep + faint particles). */
.hkpl-hero-fx{display:none}
.hkpl-hero > .hkpl-hero-text{position:relative;z-index:1}
