/* assets/css/style.css — Netball Kids brand palette */

:root {
  --c-bg:        #fbfaff;
  --c-surface:   #ffffff;
  --c-ink:       #1f1530;
  --c-ink-soft:  #534760;
  --c-muted:     #8a8090;
  --c-line:      #ece6f2;
  --c-line-2:    #d8cfe1;

  /* Brand — sampled from the Netball Kids logo */
  --c-purple:    #5c2d91;
  --c-purple-d:  #43216c;
  --c-purple-l:  #f3ebf9;
  --c-orange:    #f47920;
  --c-orange-d:  #d6651a;
  --c-orange-l:  #fff0e0;
  --c-green:     #37b44a;
  --c-green-d:   #2a8c39;
  --c-green-l:   #e3f6e6;

  /* Primary CTA = orange (high contrast against purple, draws the eye) */
  --c-accent:      var(--c-orange);
  --c-accent-d:    var(--c-orange-d);
  --c-accent-soft: var(--c-orange-l);

  --c-ok:        var(--c-green-d);
  --c-ok-soft:   var(--c-green-l);
  --c-warn:      #92400e;
  --c-warn-soft: #fef3c7;
  --c-err:       #991b1b;
  --c-err-soft:  #fee2e2;
  --c-info:      #1e3a8a;
  --c-info-soft: #dbeafe;

  --radius:      12px;
  --radius-sm:   8px;
  --shadow-sm:   0 1px 2px rgba(31, 21, 48, 0.06);
  --shadow:      0 4px 20px rgba(92, 45, 145, 0.10);
  --font-body:   -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-display: "Georgia", "Times New Roman", serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  color: var(--c-ink);
  background: var(--c-bg);
  -webkit-font-smoothing: antialiased;
}

a { color: var(--c-purple-d); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 600; line-height: 1.2; margin: 0 0 .5em; color: var(--c-ink); }
h1 { font-size: 2rem; }
h2 { font-size: 1.5rem; }
h3 { font-size: 1.2rem; }

/* Layout */
.container { width: 100%; max-width: 1100px; margin: 0 auto; padding: 0 1.25rem; }

/* Header */
header.site {
  background: var(--c-surface);
  border-bottom: 1px solid var(--c-line);
}
header.site .inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: .85rem 1.25rem;
  max-width: 1100px; margin: 0 auto;
}
header.site .brand {
  display: flex; align-items: center; gap: .75rem;
  text-decoration: none;
}
header.site .brand img {
  height: 48px; width: 48px; display: block;
  border-radius: 10px;
  box-shadow: 0 1px 3px rgba(31, 21, 48, 0.15);
}
header.site .brand .wordmark {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--c-ink);
  letter-spacing: -0.01em;
}
header.site nav a {
  color: var(--c-ink-soft); margin-left: 1.25rem; font-size: .95rem;
  text-decoration: none;
}
header.site nav a:hover { color: var(--c-purple-d); }
header.site nav .btn { margin-left: 1rem; }

footer.site {
  margin-top: 4rem; padding: 2rem 1.25rem;
  border-top: 1px solid var(--c-line);
  color: var(--c-muted); font-size: .9rem; text-align: center;
}

/* Hero — bold purple block, white text, orange CTA */
.hero {
  padding: 4.5rem 0 3.5rem;
  text-align: center;
  background: linear-gradient(140deg, #5c2d91 0%, #46226e 70%, #341851 100%);
  color: #fff;
  position: relative;
  overflow: hidden;
}
.hero::after {
  /* subtle bouncing decorative spots — uses radial gradients, no image needed */
  content: "";
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(circle 8px at 12% 28%, rgba(244,121,32,0.55) 100%, transparent 100%),
    radial-gradient(circle 6px at 88% 22%, rgba(55,180,74,0.55) 100%, transparent 100%),
    radial-gradient(circle 5px at 18% 78%, rgba(255,255,255,0.35) 100%, transparent 100%),
    radial-gradient(circle 9px at 84% 76%, rgba(244,121,32,0.45) 100%, transparent 100%);
}
.hero h1 { font-size: 2.85rem; margin-bottom: .5rem; color: #fff; }
.hero p {
  font-size: 1.15rem;
  color: rgba(255,255,255,0.85);
  max-width: 38rem;
  margin: 0 auto 1.75rem;
}
.hero .btn { box-shadow: 0 4px 14px rgba(214, 101, 26, 0.4); }

/* Buttons */
.btn {
  display: inline-block; padding: .7rem 1.4rem; border-radius: var(--radius-sm);
  background: var(--c-accent); color: #fff; border: none;
  font: inherit; font-weight: 600; cursor: pointer;
  text-decoration: none;
  transition: background .15s ease, transform .05s ease, box-shadow .15s ease;
}
.btn:hover { background: var(--c-accent-d); text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn.secondary {
  background: transparent; color: var(--c-purple-d);
  border: 1px solid var(--c-line-2);
}
.btn.secondary:hover { background: #fff; border-color: var(--c-purple); color: var(--c-purple-d); }
.btn.purple { background: var(--c-purple); }
.btn.purple:hover { background: var(--c-purple-d); }
.btn.danger { background: var(--c-err); }
.btn.danger:hover { background: #7f1d1d; }
.btn.small { padding: .35rem .8rem; font-size: .85rem; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }

/* Cards / sections */
.section { padding: 3rem 0; }
.section h2 { margin-bottom: 1.5rem; }

.grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }

.card {
  background: var(--c-surface); border: 1px solid var(--c-line);
  border-radius: var(--radius); padding: 1.25rem;
  box-shadow: var(--shadow-sm);
  display: flex; flex-direction: column;
}
.card h3 { margin-top: 0; color: var(--c-purple-d); }
.card .meta { color: var(--c-ink-soft); font-size: .9rem; margin-bottom: .5rem; }
.card .price { font-weight: 700; color: var(--c-orange-d); margin: .5rem 0 1rem; font-size: 1.05rem; }
.card .actions { margin-top: auto; display: flex; gap: .5rem; }

/* Filters */
.filters {
  background: var(--c-surface); border: 1px solid var(--c-line);
  border-radius: var(--radius); padding: 1rem; margin-bottom: 1.5rem;
  display: flex; flex-wrap: wrap; gap: .75rem; align-items: end;
}
.filters .field { flex: 1 1 180px; }

/* Forms */
form .field { margin-bottom: 1rem; }
form label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: .25rem; color: var(--c-ink-soft); }
form input[type="text"], form input[type="email"], form input[type="password"],
form input[type="date"], form input[type="time"], form input[type="number"],
form input[type="tel"], form select, form textarea {
  width: 100%; padding: .55rem .7rem; font: inherit;
  background: var(--c-surface); color: var(--c-ink);
  border: 1px solid var(--c-line-2); border-radius: var(--radius-sm);
}
form input:focus, form select:focus, form textarea:focus {
  outline: none;
  border-color: var(--c-purple);
  box-shadow: 0 0 0 3px var(--c-purple-l);
}
form .row { display: flex; gap: 1rem; flex-wrap: wrap; }
form .row .field { flex: 1 1 200px; }
form .actions { display: flex; gap: .5rem; margin-top: 1rem; }
form .help { font-size: .85rem; color: var(--c-muted); margin-top: .25rem; }

/* Tables */
.table-wrap { overflow-x: auto; border: 1px solid var(--c-line); border-radius: var(--radius); background: var(--c-surface); }
table.data { width: 100%; border-collapse: collapse; font-size: .95rem; }
table.data th, table.data td { padding: .75rem 1rem; text-align: left; border-bottom: 1px solid var(--c-line); }
table.data th { background: var(--c-purple-l); font-size: .8rem; text-transform: uppercase; letter-spacing: .03em; color: var(--c-purple-d); }
table.data tr:last-child td { border-bottom: none; }
table.data tr:hover td { background: #fafaff; }

/* Flash messages */
.flashes { margin-bottom: 1.5rem; }
.flash {
  padding: .75rem 1rem; border-radius: var(--radius-sm);
  margin-bottom: .5rem; font-size: .95rem;
  display: flex; gap: .5rem; align-items: center;
}
.flash.success { background: var(--c-green-l); color: var(--c-green-d); }
.flash.error   { background: var(--c-err-soft); color: var(--c-err); }
.flash.warning { background: var(--c-warn-soft); color: var(--c-warn); }
.flash.info    { background: var(--c-info-soft); color: var(--c-info); }

/* Badges */
.badge { display: inline-block; padding: .15rem .55rem; border-radius: 999px; font-size: .75rem; font-weight: 600; background: #eef0f4; color: var(--c-ink-soft); }
.badge.ok     { background: var(--c-green-l);  color: var(--c-green-d); }
.badge.warn   { background: var(--c-warn-soft); color: var(--c-warn); }
.badge.accent { background: var(--c-orange-l); color: var(--c-orange-d); }
.badge.purple { background: var(--c-purple-l); color: var(--c-purple-d); }

/* Admin layout */
.admin-shell { display: flex; min-height: calc(100vh - 64px); }
.admin-sidebar {
  width: 240px; flex-shrink: 0;
  background: var(--c-surface); border-right: 1px solid var(--c-line);
  padding: 1.5rem 0;
}
.admin-sidebar h4 {
  font-size: .75rem; text-transform: uppercase; letter-spacing: .05em;
  color: var(--c-muted); padding: 0 1.25rem; margin: 1rem 0 .5rem;
}
.admin-sidebar nav a {
  display: block; padding: .55rem 1.25rem; color: var(--c-ink-soft);
  text-decoration: none; border-left: 3px solid transparent;
  font-size: .95rem;
}
.admin-sidebar nav a:hover { background: var(--c-purple-l); color: var(--c-purple-d); }
.admin-sidebar nav a.active {
  background: var(--c-purple-l);
  color: var(--c-purple-d);
  border-left-color: var(--c-purple);
  font-weight: 600;
}
.admin-main { flex: 1; padding: 2rem; min-width: 0; }
.admin-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1.5rem; }
.admin-header h1 { margin: 0; }

@media (max-width: 720px) {
  .admin-shell { flex-direction: column; }
  .admin-sidebar { width: 100%; border-right: none; border-bottom: 1px solid var(--c-line); padding: 1rem 0; }
  .admin-sidebar nav a { border-left: none; border-bottom: 2px solid transparent; display: inline-block; padding: .5rem 1rem; }
  .admin-main { padding: 1.25rem; }
  .hero { padding: 3rem 0 2.5rem; }
  .hero h1 { font-size: 2.1rem; }
  header.site .brand .wordmark { display: none; }
  header.site .brand img { height: 40px; width: 40px; }
  header.site nav a { margin-left: .75rem; font-size: .9rem; }
}
