/* Shared visual polish for MunchiesSNHU public pages and workspaces. */
:root {
  --refresh-navy: #082241;
  --refresh-blue: #124d83;
  --refresh-gold: #f3d014;
  --refresh-ink: #15243a;
  --refresh-muted: #63738a;
  --refresh-line: rgba(25, 54, 88, 0.12);
  --refresh-shadow: 0 18px 50px rgba(8, 34, 65, 0.11);
  --refresh-shadow-hover: 0 26px 65px rgba(8, 34, 65, 0.17);
}

html { scroll-behavior: smooth; }
body { -webkit-font-smoothing: antialiased; }
button, a, input, select, textarea { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid #e7be00; outline-offset: 3px; }

/* Marketing pages */
body:not(.dashboard-shell):not(.auth-shell) {
  color: var(--refresh-ink);
  background-color: #f7f9fc;
  isolation: isolate;
}
body:not(.dashboard-shell):not(.auth-shell)::before {
  content: "";
  position: fixed;
  z-index: -1;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse at 8% 30%, rgba(18, 77, 131, .055), transparent 34rem),
    radial-gradient(ellipse at 92% 72%, rgba(243, 208, 20, .075), transparent 30rem),
    radial-gradient(rgba(8, 34, 65, .035) .7px, transparent .7px);
  background-size: auto, auto, 18px 18px;
  mask-image: linear-gradient(to bottom, #000 0%, #000 72%, transparent 100%);
}
body:not(.dashboard-shell):not(.auth-shell) .topbar {
  border-bottom: 1px solid rgba(243, 208, 20, 0.3);
  box-shadow: 0 8px 28px rgba(4, 18, 37, 0.2);
}
body:not(.dashboard-shell):not(.auth-shell) .topnav a:not(.btn-cta):not(.cta) {
  transition: color .18s ease, background .18s ease, transform .18s ease;
}
body:not(.dashboard-shell):not(.auth-shell) .topnav a:not(.btn-cta):not(.cta):hover {
  transform: translateY(-1px);
}
body:not(.dashboard-shell):not(.auth-shell) .topnav .active {
  color: #fff;
  background: rgba(255, 255, 255, .1);
}
body:not(.dashboard-shell):not(.auth-shell) .hero {
  isolation: isolate;
  box-shadow: inset 0 -1px rgba(243, 208, 20, .18);
}
body:not(.dashboard-shell):not(.auth-shell) .hero::after {
  content: "";
  position: absolute;
  z-index: 1;
  right: -10rem;
  bottom: -18rem;
  width: 38rem;
  height: 38rem;
  border: 1px solid rgba(243, 208, 20, .2);
  border-radius: 50%;
  box-shadow: 0 0 0 3rem rgba(243, 208, 20, .035), 0 0 0 7rem rgba(243, 208, 20, .025);
  pointer-events: none;
}
body:not(.dashboard-shell):not(.auth-shell) .hero-content,
body:not(.dashboard-shell):not(.auth-shell) .hero-inner {
  text-shadow: 0 2px 20px rgba(0, 0, 0, .14);
}
body:not(.dashboard-shell):not(.auth-shell) .hero h1 {
  letter-spacing: -.045em;
  text-wrap: balance;
}
body:not(.dashboard-shell):not(.auth-shell) .hero-eyebrow,
body:not(.dashboard-shell):not(.auth-shell) .eyebrow {
  box-shadow: inset 0 1px rgba(255,255,255,.14), 0 8px 24px rgba(0,0,0,.1);
}
body:not(.dashboard-shell):not(.auth-shell) .btn-primary,
body:not(.dashboard-shell):not(.auth-shell) .btn-gold,
body:not(.dashboard-shell):not(.auth-shell) .btn-cta,
body:not(.dashboard-shell):not(.auth-shell) .btn-submit,
body:not(.dashboard-shell):not(.auth-shell) .role-btn {
  box-shadow: 0 8px 22px rgba(243, 208, 20, .2);
  transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
}
body:not(.dashboard-shell):not(.auth-shell) .btn-primary:hover,
body:not(.dashboard-shell):not(.auth-shell) .btn-gold:hover,
body:not(.dashboard-shell):not(.auth-shell) .btn-cta:hover,
body:not(.dashboard-shell):not(.auth-shell) .btn-submit:hover,
body:not(.dashboard-shell):not(.auth-shell) .role-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 13px 30px rgba(243, 208, 20, .28);
}
body:not(.dashboard-shell):not(.auth-shell) .stats-strip {
  position: relative;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
body:not(.dashboard-shell):not(.auth-shell) .stat-item,
body:not(.dashboard-shell):not(.auth-shell) .stat-cell {
  position: relative;
}
body:not(.dashboard-shell):not(.auth-shell) .stat-num,
body:not(.dashboard-shell):not(.auth-shell) .stat-cell .stat-num {
  letter-spacing: -.045em;
}
body:not(.dashboard-shell):not(.auth-shell) .section {
  position: relative;
}
body:not(.dashboard-shell):not(.auth-shell) .section-title,
body:not(.dashboard-shell):not(.auth-shell) .sec-title {
  letter-spacing: -.04em;
  text-wrap: balance;
}
body:not(.dashboard-shell):not(.auth-shell) .feature-card,
body:not(.dashboard-shell):not(.auth-shell) .feat-card,
body:not(.dashboard-shell):not(.auth-shell) .svc-card,
body:not(.dashboard-shell):not(.auth-shell) .fact-card,
body:not(.dashboard-shell):not(.auth-shell) .faq-item,
body:not(.dashboard-shell):not(.auth-shell) .info-card,
body:not(.dashboard-shell):not(.auth-shell) .form-card,
body:not(.dashboard-shell):not(.auth-shell) .impact-stat,
body:not(.dashboard-shell):not(.auth-shell) .role-card.student {
  border-color: var(--refresh-line);
  box-shadow: 0 10px 30px rgba(8,34,65,.055);
}
body:not(.dashboard-shell):not(.auth-shell) .feature-card:hover,
body:not(.dashboard-shell):not(.auth-shell) .feat-card:hover,
body:not(.dashboard-shell):not(.auth-shell) .svc-card:hover,
body:not(.dashboard-shell):not(.auth-shell) .fact-card:hover,
body:not(.dashboard-shell):not(.auth-shell) .info-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--refresh-shadow-hover);
}
body:not(.dashboard-shell):not(.auth-shell) .svc-card.featured,
body:not(.dashboard-shell):not(.auth-shell) .role-card.staff {
  box-shadow: 0 18px 42px rgba(8,34,65,.16);
}
body:not(.dashboard-shell):not(.auth-shell) .contact-wrap { gap: 2rem; }
body:not(.dashboard-shell):not(.auth-shell) .form-card { box-shadow: var(--refresh-shadow); }
body:not(.dashboard-shell):not(.auth-shell) input,
body:not(.dashboard-shell):not(.auth-shell) select,
body:not(.dashboard-shell):not(.auth-shell) textarea {
  transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}
body:not(.dashboard-shell):not(.auth-shell) input:focus,
body:not(.dashboard-shell):not(.auth-shell) select:focus,
body:not(.dashboard-shell):not(.auth-shell) textarea:focus {
  border-color: #2f72aa;
  box-shadow: 0 0 0 4px rgba(47, 114, 170, .12);
}
body:not(.dashboard-shell):not(.auth-shell) footer { border-top: 3px solid rgba(243,208,20,.78); }

/* Dashboard, settings, and data entry pages */
body.dashboard-shell {
  background-color: #edf2f8;
  background-image:
    linear-gradient(90deg, rgba(248,250,255,.97) 0%, rgba(248,250,255,.93) 50%, rgba(248,250,255,.84) 100%),
    url('../assets/images/campus-building.png'),
    radial-gradient(ellipse at 88% 8%, rgba(243,208,20,.19), transparent 25rem),
    radial-gradient(ellipse at 0 45%, rgba(39,104,163,.12), transparent 32rem),
    linear-gradient(145deg, #f8faff 0%, #edf2f8 55%, #e8eef6 100%);
  background-repeat: no-repeat;
  background-position: center, right -8rem top 5rem, center, center, center;
  background-size: cover, min(76vw, 920px) auto, auto, auto, auto;
  background-attachment: fixed;
}
body.dashboard-dark {
  background-image:
    radial-gradient(ellipse at 85% 0, rgba(36,74,119,.3), transparent 28rem),
    radial-gradient(ellipse at 8% 80%, rgba(243,208,20,.045), transparent 30rem),
    linear-gradient(145deg, #0e1521 0%, #111d2c 100%);
  background-size: auto, auto, auto;
  background-position: center, center, center;
  background-repeat: no-repeat;
  background-attachment: fixed;
}
body.dashboard-shell .topbar {
  border-bottom: 1px solid rgba(243,208,20,.42);
  box-shadow: 0 10px 30px rgba(8,34,65,.2);
}
body.dashboard-shell .page-wrap {
  width: min(100% - 2rem, 1500px);
  padding-top: 1.35rem;
}
body.dashboard-shell .hero-panel {
  border: 1px solid rgba(255,255,255,.14);
  box-shadow: 0 22px 55px rgba(8,34,65,.2);
}
body.dashboard-shell .metric-card,
body.dashboard-shell .section-card,
body.dashboard-shell .status-card,
body.dashboard-shell .action-card {
  border-color: rgba(25,54,88,.11);
  box-shadow: 0 10px 28px rgba(8,34,65,.07);
}
body.dashboard-shell .metric-card:hover,
body.dashboard-shell .section-card:hover,
body.dashboard-shell .status-card:hover,
body.dashboard-shell .action-card:hover {
  box-shadow: 0 20px 42px rgba(8,34,65,.14);
}
body.dashboard-shell :is(button, .btn, input[type="submit"]) {
  transition: transform .16s ease, box-shadow .16s ease, filter .16s ease;
}
body.dashboard-shell :is(button, .btn, input[type="submit"]):not(.password-toggle):hover {
  filter: brightness(1.04);
}

/* Login and registration */
body.auth-shell .auth-card {
  border: 1px solid rgba(255,255,255,.72);
  box-shadow: 0 28px 80px rgba(2,17,36,.22);
}
body.auth-shell .auth-card h2 { letter-spacing: -.04em; }
body.auth-shell .auth-field input:focus {
  border-color: #2f72aa;
  box-shadow: 0 0 0 4px rgba(47,114,170,.12);
}

/* Dark theme finish for marketing pages */
[data-theme="dark"] body:not(.dashboard-shell):not(.auth-shell) { background-color: #0e1521; }
[data-theme="dark"] body:not(.dashboard-shell):not(.auth-shell) .section:not(.dark):not(.green-dark) { background-color: #0e1521; }
[data-theme="dark"] body:not(.dashboard-shell):not(.auth-shell) .section.alt { background-color: #131f2e; }
[data-theme="dark"] body:not(.dashboard-shell):not(.auth-shell) .feature-card,
[data-theme="dark"] body:not(.dashboard-shell):not(.auth-shell) .feat-card,
[data-theme="dark"] body:not(.dashboard-shell):not(.auth-shell) .svc-card,
[data-theme="dark"] body:not(.dashboard-shell):not(.auth-shell) .fact-card,
[data-theme="dark"] body:not(.dashboard-shell):not(.auth-shell) .faq-item,
[data-theme="dark"] body:not(.dashboard-shell):not(.auth-shell) .info-card,
[data-theme="dark"] body:not(.dashboard-shell):not(.auth-shell) .form-card,
[data-theme="dark"] body:not(.dashboard-shell):not(.auth-shell) .role-card.student {
  border-color: #283b55;
  box-shadow: 0 14px 38px rgba(0,0,0,.2);
}
[data-theme="dark"] body:not(.dashboard-shell):not(.auth-shell) .impact-stat { box-shadow: none; }

@media (max-width: 720px) {
  body.dashboard-shell:not(.dashboard-dark) {
    background-attachment: scroll;
    background-position: center, right -13rem top 6rem, center, center, center;
    background-size: cover, 56rem auto, auto, auto, auto;
  }
  body.dashboard-dark { background-attachment: scroll; }
  body.dashboard-shell .page-wrap { width: calc(100% - 1rem); padding: .85rem .25rem 1rem; }
  body:not(.dashboard-shell):not(.auth-shell) .contact-wrap { padding-left: 1.1rem; padding-right: 1.1rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
