/* =============================================
   MatchUp Sports – Global Stylesheet
   Design: Clean athletic, confident, modern
   Primary: #1368D8 | Accent: #0EA5E9
   ============================================= */

@import url('https://fonts.googleapis.com/css2?family=Barlow:wght@400;500;600;700;800&family=Barlow+Condensed:wght@600;700;800&family=Inter:wght@400;500&display=swap');

/* ── Reset & Base ─────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --blue:        #1368D8;
  --blue-dark:   #0D4FA8;
  --blue-light:  #E8F1FD;
  --blue-mid:    #3B82F6;
  --accent:      #0EA5E9;
  --danger:      #EF4444;
  --danger-bg:   #FEF2F2;
  --success:     #16A34A;
  --success-bg:  #F0FDF4;
  --warn:        #F59E0B;
  --warn-bg:     #FFFBEB;
  --text:        #0F172A;
  --text-muted:  #64748B;
  --text-light:  #94A3B8;
  --border:      #E2E8F0;
  --surface:     #F8FAFC;
  --white:       #FFFFFF;
  --shadow-sm:   0 1px 3px rgba(0,0,0,.08);
  --shadow-md:   0 4px 16px rgba(19,104,216,.12);
  --shadow-lg:   0 8px 32px rgba(19,104,216,.18);
  --radius:      12px;
  --radius-sm:   8px;
  --radius-lg:   20px;
  --font-head:   'Barlow Condensed', sans-serif;
  --font-body:   'Barlow', sans-serif;
  --font-ui:     'Inter', sans-serif;
  --transition:  .2s cubic-bezier(.4,0,.2,1);
}

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--white);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

/* ── Layout ───────────────────────────────── */
.container {
  width: 100%;
  max-width: 860px;
  margin-inline: auto;
  padding-inline: 24px;
}

.container--narrow { max-width: 600px; }
.container--wide   { max-width: 1100px; }

/* ── Header / Nav ─────────────────────────── */
.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow-sm);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 14px;
  max-width: 1100px;
}

.site-logo { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.site-logo img, .site-logo svg {
  height: 44px;
  width: auto;
  border-radius: 10px;
  background: #0F172A;       /* dark pill matches logo background */
  padding: 2px 6px;
  display: block;
  object-fit: contain;
}

.site-nav { display: flex; align-items: center; gap: 8px; }

.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-ui);
  font-size: .8rem;
  font-weight: 500;
  color: var(--blue);
  text-decoration: none;
  border: 1.5px solid var(--blue);
  border-radius: 100px;
  padding: 5px 14px;
  transition: var(--transition);
  letter-spacing: .03em;
}
.lang-switch:hover {
  background: var(--blue);
  color: var(--white);
}
.lang-switch svg { width: 14px; height: 14px; flex-shrink: 0; }

/* ── Hero Band ────────────────────────────── */
.page-hero {
  background: linear-gradient(135deg, var(--blue) 0%, var(--blue-dark) 60%, #0B3D82 100%);
  color: var(--white);
  padding: 56px 0 48px;
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.page-hero .container { position: relative; }

.page-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255,255,255,.15);
  border: 1px solid rgba(255,255,255,.25);
  color: rgba(255,255,255,.9);
  font-family: var(--font-ui);
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 100px;
  margin-bottom: 16px;
}

.page-hero h1 {
  font-family: var(--font-head);
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 800;
  letter-spacing: -.01em;
  line-height: 1.1;
  margin-bottom: 12px;
}

.page-hero p {
  font-size: 1.05rem;
  opacity: .85;
  max-width: 540px;
}

/* ── Content Area ─────────────────────────── */
.page-content {
  padding: 56px 0 80px;
}

/* ── Card / Section ───────────────────────── */
.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  margin-bottom: 24px;
  transition: var(--transition);
}

.card:hover { box-shadow: var(--shadow-md); }

/* ── Typography ───────────────────────────── */
.prose h2 {
  font-family: var(--font-head);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text);
  margin: 36px 0 12px;
  padding-left: 14px;
  border-left: 4px solid var(--blue);
  line-height: 1.2;
  letter-spacing: .01em;
}

.prose h2:first-child { margin-top: 0; }

.prose h3 {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  margin: 20px 0 8px;
}

.prose p {
  font-family: var(--font-ui);
  font-size: .95rem;
  color: #334155;
  margin-bottom: 12px;
  line-height: 1.75;
}

.prose ul, .prose ol {
  font-family: var(--font-ui);
  font-size: .93rem;
  color: #334155;
  margin: 10px 0 14px 20px;
  line-height: 1.7;
}

.prose li { margin-bottom: 4px; }

.prose a { color: var(--blue); text-decoration: underline; }
.prose a:hover { color: var(--blue-dark); }

.prose strong { color: var(--text); font-weight: 600; }

/* Table of Contents */
.toc {
  background: var(--blue-light);
  border: 1px solid rgba(19,104,216,.18);
  border-radius: var(--radius-sm);
  padding: 20px 24px;
  margin-bottom: 32px;
}

.toc-title {
  font-family: var(--font-body);
  font-size: .8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--blue-dark);
  margin-bottom: 10px;
}

.toc ol {
  margin: 0;
  padding-left: 18px;
}

.toc li {
  font-family: var(--font-ui);
  font-size: .88rem;
  margin-bottom: 4px;
}

.toc a {
  color: var(--blue);
  text-decoration: none;
  font-weight: 500;
}
.toc a:hover { text-decoration: underline; }

/* Last Updated */
.last-updated {
  font-family: var(--font-ui);
  font-size: .82rem;
  color: var(--text-muted);
  margin-bottom: 28px;
  display: flex;
  align-items: center;
  gap: 6px;
}

/* ── Delete Account Form ───────────────────── */
.delete-page-content {
  padding: 56px 0 80px;
}

.warning-banner {
  display: flex;
  gap: 16px;
  background: var(--danger-bg);
  border: 1.5px solid #FECACA;
  border-radius: var(--radius);
  padding: 20px 24px;
  margin-bottom: 28px;
}

.warning-banner svg {
  color: var(--danger);
  flex-shrink: 0;
  margin-top: 2px;
  width: 22px;
  height: 22px;
}

.warning-banner-body h3 {
  font-family: var(--font-body);
  font-weight: 700;
  color: #991B1B;
  font-size: 1rem;
  margin-bottom: 6px;
}

.warning-banner-body p {
  font-family: var(--font-ui);
  font-size: .88rem;
  color: #7F1D1D;
  line-height: 1.6;
  margin-bottom: 6px;
}
.warning-banner-body p:last-child { margin-bottom: 0; }

.consequences-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.consequences-list li {
  font-family: var(--font-ui);
  font-size: .87rem;
  color: #7F1D1D;
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 5px;
}

.consequences-list li::before {
  content: '×';
  font-weight: 700;
  color: var(--danger);
  flex-shrink: 0;
  margin-top: 1px;
}

/* In-app tip */
.inapp-tip {
  display: flex;
  gap: 14px;
  background: var(--blue-light);
  border: 1px solid rgba(19,104,216,.2);
  border-radius: var(--radius);
  padding: 18px 22px;
  margin-bottom: 28px;
}

.inapp-tip svg { color: var(--blue); flex-shrink: 0; width: 20px; height: 20px; margin-top: 2px; }
.inapp-tip p {
  font-family: var(--font-ui);
  font-size: .88rem;
  color: var(--blue-dark);
  line-height: 1.6;
  margin: 0;
}
.inapp-tip strong { font-weight: 600; }

/* Form */
.delete-form-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow-sm);
}

.form-title {
  font-family: var(--font-head);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}

.form-group { margin-bottom: 20px; }

.form-label {
  display: block;
  font-family: var(--font-ui);
  font-size: .83rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 6px;
  letter-spacing: .01em;
}

.form-input {
  width: 100%;
  padding: 10px 14px;
  font-family: var(--font-ui);
  font-size: .95rem;
  color: var(--text);
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  outline: none;
  transition: var(--transition);
  -webkit-appearance: none;
}

.form-input:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(19,104,216,.12);
}

.form-input::placeholder { color: var(--text-light); }

/* Checkbox */
.checkbox-group {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  background: var(--danger-bg);
  border: 1.5px solid #FECACA;
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  cursor: pointer;
}

.checkbox-group input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  flex-shrink: 0;
  accent-color: var(--danger);
  cursor: pointer;
}

.checkbox-group label {
  font-family: var(--font-ui);
  font-size: .87rem;
  color: #7F1D1D;
  line-height: 1.55;
  cursor: pointer;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-body);
  font-size: .95rem;
  font-weight: 700;
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  padding: 12px 24px;
  transition: var(--transition);
  letter-spacing: .01em;
  text-decoration: none;
  -webkit-appearance: none;
}

.btn-danger {
  background: var(--danger);
  color: var(--white);
  width: 100%;
  font-size: 1rem;
  padding: 14px 24px;
}

.btn-danger:hover:not(:disabled) {
  background: #DC2626;
  box-shadow: 0 4px 14px rgba(239,68,68,.35);
  transform: translateY(-1px);
}

.btn-danger:disabled {
  opacity: .55;
  cursor: not-allowed;
  transform: none;
}

/* Spinner */
.spinner {
  display: inline-block;
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255,255,255,.4);
  border-top-color: white;
  border-radius: 50%;
  animation: spin .6s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

/* Alert messages */
.alert {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  font-family: var(--font-ui);
  font-size: .9rem;
  line-height: 1.55;
  margin-top: 16px;
  opacity: 0;
  transform: translateY(-6px);
  transition: opacity .25s ease, transform .25s ease;
}

.alert.visible {
  opacity: 1;
  transform: translateY(0);
}

.alert-success { background: var(--success-bg); color: #14532D; border: 1px solid #BBF7D0; }
.alert-error   { background: var(--danger-bg);  color: #7F1D1D; border: 1px solid #FECACA; }
.alert-warn    { background: var(--warn-bg);    color: #78350F; border: 1px solid #FDE68A; }

.alert svg { flex-shrink: 0; width: 18px; height: 18px; margin-top: 1px; }

/* ── Footer ───────────────────────────────── */
.site-footer {
  background: #0F172A;
  color: rgba(255,255,255,.6);
  padding: 36px 0;
  margin-top: auto;
}

.site-footer .container {
  max-width: 1100px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-brand {
  font-family: var(--font-head);
  font-size: 1.1rem;
  font-weight: 700;
  color: white;
  letter-spacing: .02em;
}

.footer-links {
  display: flex;
  gap: 20px;
  list-style: none;
  flex-wrap: wrap;
}

.footer-links a {
  font-family: var(--font-ui);
  font-size: .82rem;
  color: rgba(255,255,255,.55);
  text-decoration: none;
  transition: var(--transition);
}
.footer-links a:hover { color: white; }

.footer-copy {
  font-family: var(--font-ui);
  font-size: .78rem;
  width: 100%;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,.1);
  margin-top: 8px;
}

/* ── Home page ────────────────────────────── */
.home-hero {
  min-height: 70vh;
  display: flex;
  align-items: center;
  background: linear-gradient(145deg, var(--blue) 0%, #0B3D82 100%);
  color: white;
  position: relative;
  overflow: hidden;
  padding: 80px 0;
}

.home-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.home-hero .container { position: relative; }

.home-hero h1 {
  font-family: var(--font-head);
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 800;
  line-height: 1.05;
  margin-bottom: 16px;
  letter-spacing: -.01em;
}

.home-hero p {
  font-size: 1.1rem;
  opacity: .85;
  max-width: 480px;
  margin-bottom: 32px;
  font-family: var(--font-ui);
}

.home-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.home-link-card {
  display: block;
  background: rgba(255,255,255,.12);
  border: 1.5px solid rgba(255,255,255,.25);
  border-radius: var(--radius);
  padding: 18px 22px;
  text-decoration: none;
  color: white;
  transition: var(--transition);
  min-width: 200px;
}

.home-link-card:hover {
  background: rgba(255,255,255,.2);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,.2);
}

.home-link-card .link-label {
  font-family: var(--font-ui);
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  opacity: .7;
  margin-bottom: 4px;
}

.home-link-card .link-title {
  font-family: var(--font-head);
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: .01em;
}

/* ── Responsive ───────────────────────────── */
@media (max-width: 640px) {
  .container { padding-inline: 16px; }

  .site-header .container { padding-block: 12px; }

  .page-hero { padding: 40px 0 32px; }

  .card { padding: 20px; }
  .delete-form-card { padding: 20px; }

  .site-footer .container { flex-direction: column; align-items: flex-start; }

  .home-link-card { min-width: 100%; }
}
