/*
Theme Name: Northpoint Recreation
Theme URI: https://northpointweb.com/
Description: A recreation and youth sports child theme for Twenty Twenty-Five, designed for municipal recreation departments using Northpoint Core and Northpoint Recreation.
Author: Northpoint Web Solutions
Author URI: https://northpointweb.com/
Template: twentytwentyfive
Version: 1.2.0
Requires at least: 6.7
Requires PHP: 7.4
Text Domain: northpoint-recreation
*/

:root {
  --np-rec-radius: 18px;
  --np-rec-radius-sm: 12px;
  --np-rec-shadow: 0 12px 36px rgba(15, 23, 42, .10);
  --np-rec-shadow-soft: 0 5px 18px rgba(15, 23, 42, .08);
}

html { scroll-behavior: smooth; }
body { overflow-x: hidden; }

.wp-site-blocks { min-height: 100vh; }

.np-site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 rgba(255,255,255,.10);
}

.admin-bar .np-site-header { top: 32px; }

.np-brand-kicker,
.np-eyebrow {
  letter-spacing: .12em;
  text-transform: uppercase;
  font-size: .76rem;
  font-weight: 800;
}

.np-hero {
  position: relative;
  overflow: hidden;
  border-radius: 0 0 32px 32px;
}

.np-hero::after {
  content: "";
  position: absolute;
  width: 460px;
  height: 460px;
  border-radius: 50%;
  right: -180px;
  top: -180px;
  background: rgba(255,255,255,.07);
  pointer-events: none;
}

.np-hero .wp-block-heading { text-wrap: balance; }

.np-quick-actions {
  position: relative;
  z-index: 3;
  margin-top: -34px !important;
}

.np-card,
.np-program-card,
.np-event-card,
.np-facility-card {
  border-radius: var(--np-rec-radius);
  box-shadow: var(--np-rec-shadow-soft);
  transition: transform .18s ease, box-shadow .18s ease;
}

.np-card:hover,
.np-program-card:hover,
.np-facility-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--np-rec-shadow);
}

.np-action-card {
  min-height: 100%;
  border-radius: var(--np-rec-radius);
  box-shadow: var(--np-rec-shadow);
}

.np-action-card .wp-block-button__link,
.np-hero .wp-block-button__link {
  font-weight: 800;
}

.np-program-card { overflow: hidden; }
.np-program-card .wp-block-group { height: 100%; }

.np-status {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  border-radius: 999px;
  padding: .35rem .7rem;
  font-size: .78rem;
  line-height: 1;
  font-weight: 800;
}

.np-status-open { background: #e8f7ee; color: #166534; }
.np-status-soon { background: #fff7dc; color: #8a5a00; }
.np-status-closed { background: #f1f5f9; color: #475569; }

.np-section-heading { margin-bottom: .4rem; }
.np-section-intro { max-width: 720px; }

.np-dark-panel {
  border-radius: 24px;
  box-shadow: var(--np-rec-shadow);
}

.np-event-row {
  border-bottom: 1px solid rgba(15,23,42,.10);
  padding: 1rem 0;
}
.np-event-row:last-child { border-bottom: 0; }

.np-date-badge {
  min-width: 66px;
  border-radius: 14px;
  text-align: center;
  padding: .55rem .45rem;
  font-weight: 800;
}

.np-footer a { text-decoration: none; }
.np-footer a:hover { text-decoration: underline; }

/* Friendly defaults for Northpoint Recreation plugin output */
.np-rec-dashboard,
.np-rec-public,
.northpoint-recreation {
  --np-surface: #ffffff;
  --np-border: #e2e8f0;
  --np-muted: #64748b;
}

.np-rec-dashboard table,
.np-rec-public table,
.northpoint-recreation table {
  border-collapse: separate;
  border-spacing: 0;
  overflow: hidden;
  border: 1px solid var(--np-border);
  border-radius: 14px;
  background: var(--np-surface);
}

.np-rec-dashboard th,
.np-rec-public th,
.northpoint-recreation th {
  background: #f8fafc;
  font-weight: 800;
}

.np-rec-dashboard th,
.np-rec-dashboard td,
.np-rec-public th,
.np-rec-public td,
.northpoint-recreation th,
.northpoint-recreation td {
  padding: .85rem 1rem;
  border-bottom: 1px solid var(--np-border);
}

@media (max-width: 782px) {
  .admin-bar .np-site-header { top: 46px; }
  .np-site-header { position: relative; top: auto; }
  .np-quick-actions { margin-top: -18px !important; }
  .np-hero { border-radius: 0 0 24px 24px; }
}


/* Header portal CTA */
.np-header-inner {
  gap: 22px;
}

.np-header-actions {
  gap: 14px;
}

.np-my-team-button .wp-block-button__link {
  background: #d4a72c !important;
  color: #10243f !important;
  border: 2px solid #d4a72c;
  border-radius: 999px;
  padding: .72rem 1.15rem;
  font-weight: 900;
  letter-spacing: .02em;
  white-space: nowrap;
  box-shadow: 0 5px 16px rgba(0,0,0,.18);
}

.np-my-team-button .wp-block-button__link:hover,
.np-my-team-button .wp-block-button__link:focus {
  background: #f0c443 !important;
  border-color: #f0c443;
  color: #10243f !important;
  transform: translateY(-1px);
}

/* My Team sign-in landing page */
.np-my-team-shell {
  max-width: 1120px;
  margin: 0 auto;
}

.np-my-team-login-card {
  max-width: 520px;
  margin: 0 auto;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 22px;
  padding: clamp(24px, 5vw, 44px);
  box-shadow: var(--np-rec-shadow);
}

.np-my-team-login-card .login-username,
.np-my-team-login-card .login-password {
  margin-bottom: 1rem;
}

.np-my-team-login-card label {
  display: block;
  font-weight: 800;
  margin-bottom: .35rem;
}

.np-my-team-login-card input[type="text"],
.np-my-team-login-card input[type="password"] {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  padding: .8rem .9rem;
  font: inherit;
}

.np-my-team-login-card input[type="submit"] {
  border: 0;
  border-radius: 999px;
  background: #d4a72c;
  color: #10243f;
  padding: .8rem 1.25rem;
  font-weight: 900;
  cursor: pointer;
}

.np-my-team-login-card input[type="submit"]:hover {
  background: #f0c443;
}

.np-my-team-login-card .login-remember label {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  font-weight: 600;
}

.np-my-team-login-help {
  margin-top: 1rem;
  color: #64748b;
  font-size: .92rem;
}

@media (max-width: 900px) {
  .np-header-inner,
  .np-header-actions {
    width: 100%;
  }
  .np-header-actions {
    justify-content: space-between !important;
  }
}

@media (max-width: 600px) {
  .np-my-team-button .wp-block-button__link {
    padding: .62rem .9rem;
    font-size: .88rem;
  }
}


/* Install App CTA */
.np-install-app-button .wp-block-button__link {
  background: transparent !important;
  color: #ffffff !important;
  border: 2px solid rgba(255,255,255,.72);
  border-radius: 999px;
  padding: .68rem 1rem;
  font-weight: 800;
  white-space: nowrap;
}

.np-install-app-button .wp-block-button__link:hover,
.np-install-app-button .wp-block-button__link:focus-visible {
  background: rgba(255,255,255,.12) !important;
  border-color: #ffffff;
  color: #ffffff !important;
}

.np-install-modal[hidden] { display: none !important; }
.np-install-modal {
  position: fixed;
  inset: 0;
  z-index: 999999;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(10, 20, 35, .68);
}
.np-install-modal__card {
  position: relative;
  width: min(520px, 100%);
  max-height: calc(100vh - 40px);
  overflow: auto;
  box-sizing: border-box;
  background: #fff;
  color: #172033;
  border-radius: 20px;
  padding: 28px;
  box-shadow: 0 24px 70px rgba(0,0,0,.28);
}
.np-install-modal__close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 999px;
  background: #f0f4f8;
  color: #10233f;
  font-size: 25px;
  line-height: 1;
  cursor: pointer;
}
.np-install-modal__eyebrow {
  margin: 0 46px 8px 0;
  color: #9a7210;
  font-size: .75rem;
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.np-install-modal__card h2 { margin: 0 46px 12px 0; }
.np-install-steps {
  margin: 18px 0 0;
  padding-left: 1.35rem;
}
.np-install-steps li { margin: 0 0 12px; }
.np-install-hint {
  margin-top: 18px;
  padding: 14px 16px;
  background: #f4f7fa;
  border-radius: 12px;
  color: #475569;
}
.np-install-primary {
  display: inline-block;
  margin-top: 10px;
  border: 0;
  border-radius: 999px;
  background: #d4a72c;
  color: #10233f;
  padding: .8rem 1.15rem;
  font: inherit;
  font-weight: 900;
  cursor: pointer;
}

@media (max-width: 760px) {
  .np-header-actions { flex-wrap: wrap !important; }
  .np-install-app-button .wp-block-button__link { padding: .62rem .85rem; font-size: .86rem; }
  .np-install-modal__card { padding: 24px 20px; }
}
