/* ============================================================
   PlayMoris Design System
   ============================================================ */

/* ---------- Variables ---------- */
:root {
  --navy:        #0F1F5C;
  --red:         #E8192C;
  --yellow:      #F5C400;
  --green:       #00A651;
  --white:       #FFFFFF;
  --gray-bg:     #F7F7F7;
  --gray-border: #EBEBEB;
  --gray-text:   #6B7280;
  --black:       #111111;

  --radius-sm:    6px;
  --radius-md:    8px;
  --radius-lg:    10px;
  --radius-card:  14px;
  --radius-modal: 20px;
}

/* ---------- Reset / Base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  color: var(--gray-text);
  background: var(--gray-bg);
  -webkit-font-smoothing: antialiased;
  margin: 0;
}

/* ---------- Typography ---------- */
h1 {
  font-size: clamp(28px, 5vw, 40px);
  font-weight: 900;
  letter-spacing: -1.5px;
  color: var(--navy);
  line-height: 1.1;
}
h2 {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.5px;
  color: var(--navy);
}
h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--navy);
}
p { line-height: 1.6; }

.label-xs {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
}

/* ---------- Flag stripe ---------- */
.pm-flag-stripe {
  display: flex;
  width: 100%;
  height: 3px;
}
.pm-flag-stripe span { flex: 1; }
.pm-flag-stripe .f-red   { background: var(--red); }
.pm-flag-stripe .f-navy  { background: var(--navy); }
.pm-flag-stripe .f-yellow { background: var(--yellow); }
.pm-flag-stripe .f-green  { background: var(--green); }

/* Mini flag (inline) */
.pm-mini-flag {
  display: inline-flex;
  height: 14px;
  width: 22px;
  border-radius: 3px;
  overflow: hidden;
  flex-shrink: 0;
}
.pm-mini-flag span { flex: 1; }

/* ---------- Navbar ---------- */
.pm-navbar {
  background: var(--navy);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 1px 0 rgba(255,255,255,0.06);
}
.pm-navbar__inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  gap: 1rem;
}
.pm-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  flex-shrink: 0;
}
.pm-logo__play  { color: var(--white); font-size: 20px; font-weight: 900; }
.pm-logo__moris { color: var(--yellow); font-size: 20px; font-weight: 900; }

.pm-nav-links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}
.pm-nav-link {
  color: rgba(255,255,255,0.7);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.15s;
}
.pm-nav-link:hover,
.pm-nav-link.active { color: var(--white); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  font-size: 14px;
  font-weight: 700;
  border-radius: var(--radius-lg);
  border: 2px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: opacity 0.15s, transform 0.1s;
  white-space: nowrap;
  line-height: 1;
}
.btn:active { transform: scale(0.97); }

.btn-primary {
  background: var(--navy);
  color: var(--white);
}
.btn-primary:hover { opacity: 0.88; color: var(--white); }

.btn-accent {
  background: var(--red);
  color: var(--white);
}
.btn-accent:hover { opacity: 0.88; color: var(--white); }

.btn-yellow {
  background: var(--yellow);
  color: var(--navy);
}
.btn-yellow:hover { opacity: 0.9; color: var(--navy); }

.btn-outline {
  background: transparent;
  border-color: var(--navy);
  color: var(--navy);
}
.btn-outline:hover { background: rgba(15,31,92,0.05); color: var(--navy); }

.btn-outline-white {
  background: transparent;
  border-color: rgba(255,255,255,0.35);
  color: var(--white);
}
.btn-outline-white:hover { background: rgba(255,255,255,0.1); color: var(--white); }

.btn-ghost {
  background: var(--gray-bg);
  border-color: var(--gray-border);
  color: var(--navy);
}
.btn-ghost:hover { background: #EFEFEF; color: var(--navy); }

.btn-nav-connexion {
  background: transparent;
  border: 1.5px solid rgba(255,255,255,0.3);
  color: var(--white);
  padding: 8px 16px;
  font-size: 13px;
  border-radius: var(--radius-md);
}
.btn-nav-connexion:hover { background: rgba(255,255,255,0.08); color: var(--white); }

.btn-nav-create {
  background: var(--yellow);
  color: var(--navy);
  padding: 8px 16px;
  font-size: 13px;
  border-radius: var(--radius-md);
  font-weight: 700;
}
.btn-nav-create:hover { opacity: 0.9; color: var(--navy); }

.btn-sm { padding: 8px 16px; font-size: 13px; }
.btn-lg { padding: 16px 32px; font-size: 16px; border-radius: var(--radius-lg); }
.btn-full { width: 100%; }

/* ---------- Forms ---------- */
.pm-label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: #374151;
  margin-bottom: 6px;
}

.pm-input {
  width: 100%;
  background: var(--white);
  border: 1.5px solid #E2E8F0;
  border-radius: var(--radius-lg);
  padding: 12px 14px;
  font-size: 14px;
  font-family: inherit;
  color: var(--black);
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.pm-input:focus {
  border-color: var(--navy);
  box-shadow: 0 0 0 3px rgba(15,31,92,0.08);
}
.pm-input::placeholder { color: #A1A1AA; }
.pm-input.error { border-color: var(--red); }

.pm-select {
  width: 100%;
  background: var(--white);
  border: 1.5px solid #E2E8F0;
  border-radius: var(--radius-lg);
  padding: 12px 14px;
  font-size: 14px;
  font-family: inherit;
  color: var(--black);
  outline: none;
  cursor: pointer;
  transition: border-color 0.15s;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%236B7280'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 16px;
  padding-right: 36px;
}
.pm-select:focus { border-color: var(--navy); }

/* ---------- Cards ---------- */
.pm-card {
  background: var(--white);
  border: 1px solid var(--gray-border);
  border-radius: var(--radius-card);
  overflow: hidden;
}
.pm-card-body { padding: 1.5rem; }

/* Sport top bar */
.pm-sport-bar {
  height: 3px;
  width: 100%;
}
.sport-bar-tennis    { background: var(--navy); }
.sport-bar-padel     { background: linear-gradient(90deg, #7C3AED, var(--navy)); }
.sport-bar-foot5     { background: linear-gradient(90deg, var(--red), var(--yellow)); }
.sport-bar-foot7     { background: linear-gradient(90deg, var(--green), var(--navy)); }
.sport-bar-foot11    { background: #7C2D12; }
.sport-bar-pickleball { background: linear-gradient(90deg, #0891B2, var(--navy)); }
.sport-bar-gym        { background: linear-gradient(90deg, var(--red), #7C3AED); }
.sport-bar-default    { background: var(--navy); }

/* ---------- Guest layout ---------- */
.pm-guest-wrap {
  min-height: 100vh;
  background: var(--gray-bg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 3rem 1rem;
}
.pm-guest-card {
  width: 100%;
  max-width: 440px;
  background: var(--white);
  border: 1px solid var(--gray-border);
  border-radius: var(--radius-modal);
  padding: 2.5rem;
  box-shadow: 0 2px 16px rgba(0,0,0,0.06);
}

/* ---------- Hero ---------- */
.pm-hero {
  background: var(--navy);
  position: relative;
  overflow: hidden;
  padding: 5rem 1.5rem 4rem;
  text-align: center;
}
.pm-hero__glow {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 15% 50%, rgba(245,196,0,0.09) 0%, transparent 55%),
    radial-gradient(circle at 85% 20%, rgba(232,25,44,0.07) 0%, transparent 45%);
}
.pm-hero h1 { color: var(--white); margin-bottom: 1.25rem; }
.pm-hero p  { color: rgba(255,255,255,0.65); font-size: 16px; }

/* ---------- Section containers ---------- */
.pm-section { padding: 5rem 1.5rem; }
.pm-section-sm { padding: 3.5rem 1.5rem; }
.pm-container { max-width: 1280px; margin: 0 auto; }
.pm-container-md { max-width: 900px; margin: 0 auto; }

/* ---------- Stats row ---------- */
.pm-stats {
  display: flex;
  justify-content: center;
  gap: 3rem;
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,0.1);
  flex-wrap: wrap;
}
.pm-stat-num { font-size: 28px; font-weight: 900; color: var(--white); }
.pm-stat-lbl { font-size: 11px; color: rgba(255,255,255,0.45); margin-top: 2px; text-transform: uppercase; letter-spacing: 0.5px; }

/* ---------- Search bar ---------- */
.pm-search-bar {
  background: var(--white);
  border-radius: var(--radius-card);
  box-shadow: 0 4px 24px rgba(0,0,0,0.09);
  padding: 1.25rem 1.5rem;
  display: flex;
  align-items: flex-end;
  gap: 1rem;
  flex-wrap: wrap;
}
.pm-search-bar .pm-field { flex: 1; min-width: 140px; }
.pm-search-bar .pm-field label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #9CA3AF;
  margin-bottom: 5px;
}

/* ---------- Step cards ---------- */
.pm-step-card {
  background: var(--white);
  border: 1px solid var(--gray-border);
  border-radius: var(--radius-card);
  padding: 2rem;
  text-align: center;
}
.pm-step-card.featured {
  border: 2px solid var(--yellow);
}

/* ---------- Sport pill ---------- */
.pm-sport-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  background: var(--white);
  border: 1px solid var(--gray-border);
  border-radius: var(--radius-card);
  font-size: 14px;
  font-weight: 600;
  color: var(--navy);
  text-decoration: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.pm-sport-pill:hover {
  border-color: rgba(15,31,92,0.25);
  box-shadow: 0 2px 8px rgba(0,0,0,0.07);
  color: var(--navy);
}

/* ---------- Footer ---------- */
.pm-footer {
  background: var(--navy);
  border-top: 1px solid rgba(255,255,255,0.07);
  padding: 2.5rem 1.5rem;
}
.pm-footer__inner {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}
@media (min-width: 640px) {
  .pm-footer__inner {
    flex-direction: row;
    justify-content: space-between;
  }
}
.pm-footer-links { display: flex; gap: 1.5rem; }
.pm-footer-link {
  font-size: 12px;
  color: rgba(255,255,255,0.4);
  text-decoration: none;
  transition: color 0.15s;
}
.pm-footer-link:hover { color: rgba(255,255,255,0.75); }
.pm-footer-copy { font-size: 12px; color: rgba(255,255,255,0.25); }

/* ---------- Badge / Tag ---------- */
.pm-badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
}
.pm-badge-green  { background: #ECFDF5; color: #059669; }
.pm-badge-blue   { background: #EFF6FF; color: #2563EB; }
.pm-badge-red    { background: #FEF2F2; color: #DC2626; }
.pm-badge-yellow { background: rgba(245,196,0,0.12); color: #B45309; }
.pm-badge-gray   { background: #F3F4F6; color: #6B7280; }

/* ---------- Utility ---------- */
.text-navy   { color: var(--navy); }
.text-yellow { color: var(--yellow); }
.text-red    { color: var(--red); }
.text-green  { color: var(--green); }
.bg-navy     { background: var(--navy); }
.bg-yellow   { background: var(--yellow); }

/* ---------- Responsive ---------- */
@media (max-width: 640px) {
  .pm-hero { padding: 3.5rem 1rem 2.5rem; }
  .pm-section { padding: 3rem 1rem; }
  .pm-search-bar { flex-direction: column; }
  .pm-search-bar .pm-field { width: 100%; }
  .pm-stats { gap: 1.5rem; }
}

/* ---------- Pagination ---------- */
.pagination { display: flex; gap: 6px; justify-content: center; flex-wrap: wrap; }
.pagination li .page-link,
.pagination li span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  padding: 0 10px;
  border: 1px solid var(--gray-border);
  border-radius: var(--radius-md);
  font-size: 13px;
  font-weight: 500;
  color: var(--navy);
  text-decoration: none;
  background: var(--white);
  transition: background 0.15s;
}
.pagination li .page-link:hover { background: var(--gray-bg); }
.pagination li.active span,
.pagination li .page-link.active {
  background: var(--navy);
  color: var(--white);
  border-color: var(--navy);
}
