/* ============================================================
   Donato Padel — Design System
   Tokens · utilities · components
   v1.0 · 2026

   Drop-in CSS file. Import once at the top of your app:
     <link rel="stylesheet" href="donatopadel.css">
   or in JS:
     import "./donatopadel-design-system/donatopadel.css";

   All tokens are exposed as CSS custom properties. Override
   them at :root for global tweaks, or at any scope for local
   variations (e.g. a dark section).
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Geist:wght@300;400;500;600;700&family=Geist+Mono:wght@400;500&display=swap');

:root {
  /* Palette ------------------------------------------------ */
  --bone:        #FAFAF7;            /* primary surface */
  --paper:       #F2F1EC;            /* lifted surface / cards */
  --ink:         #0E0E0E;            /* primary text + structure */
  --ink-2:       #2A2826;            /* secondary text */
  --mute:        #6E6A60;            /* tertiary / meta text */
  --hair:        rgba(14,14,14,.10); /* 1px hairlines */
  --line:        rgba(14,14,14,.06); /* even softer lines */
  --court:       #D6FF3D;            /* signature accent — lime de cancha */
  --court-deep:  #B6E300;            /* hover / pressed accent */
  --clay:        #C2643B;            /* warm secondary (sparingly) */

  /* Type families ----------------------------------------- */
  --f-display: 'Geist', system-ui, -apple-system, sans-serif;
  --f-body:    'Geist', system-ui, -apple-system, sans-serif;
  --f-mono:    'Geist Mono', ui-monospace, monospace;

  /* Radii ------------------------------------------------- */
  --radius-xs:   4px;
  --radius-sm:   6px;
  --radius-md:   10px;
  --radius-lg:   16px;
  --radius-pill: 999px;

  /* Elevation -------------------------------------------- */
  --elev-1: 0 1px 2px rgba(14,14,14,.05);
  --elev-2: 0 4px 16px rgba(14,14,14,.06), 0 1px 3px rgba(14,14,14,.08);
  --elev-3: 0 12px 32px rgba(14,14,14,.10);

  /* Spacing scale (4px) ---------------------------------- */
  --sp-1:  4px;
  --sp-2:  8px;
  --sp-3:  12px;
  --sp-4:  16px;
  --sp-5:  20px;
  --sp-6:  24px;
  --sp-8:  32px;
  --sp-10: 40px;
  --sp-12: 48px;
  --sp-16: 64px;
  --sp-20: 80px;
}

/* Base ----------------------------------------------------- */
body, .donatopadel {
  font-family: var(--f-body);
  color: var(--ink);
  background: var(--bone);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  letter-spacing: -0.01em;
  line-height: 1.5;
  font-size: 14px;
}

/* Typography utilities ----------------------------------- */
.dp-display    { font-family: var(--f-display); font-weight: 600; letter-spacing: -0.025em; line-height: 1.02; }
.dp-display-xl { font-size: clamp(40px, 5.5vw, 72px); }
.dp-display-lg { font-size: clamp(32px, 4vw, 48px); }
.dp-display-md { font-size: clamp(24px, 3vw, 32px); }
.dp-display-sm { font-size: 22px; }

.dp-mono    { font-family: var(--f-mono); font-weight: 500; letter-spacing: 0.02em; font-size: 11px; }
.dp-mono-sm { font-family: var(--f-mono); font-weight: 500; letter-spacing: 0.02em; font-size: 10.5px; }

.dp-text-mute  { color: var(--mute); }
.dp-text-ink-2 { color: var(--ink-2); }

/* Wordmark (matches the Donato Padel logo treatment) ----- */
.dp-wordmark {
  font-family: var(--f-display);
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  line-height: 1;
  white-space: nowrap;
}

/* Buttons -------------------------------------------------- */
.dp-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--f-body);
  font-weight: 500;
  font-size: 13px;
  letter-spacing: -0.005em;
  height: 44px;
  padding: 0 20px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--bone);
  cursor: pointer;
  transition: opacity .15s ease;
  text-decoration: none;
  white-space: nowrap;
}
.dp-btn:hover  { opacity: .85; }
.dp-btn:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.dp-btn:disabled { opacity: .4; cursor: not-allowed; }

.dp-btn--court   { background: var(--court);  color: var(--ink); border-color: var(--ink); }
.dp-btn--ghost   { background: transparent;   color: var(--ink); border-color: var(--hair); }
.dp-btn--outline { background: transparent;   color: var(--ink); }
.dp-btn--sm      { height: 36px; font-size: 12px; padding: 0 14px; }
.dp-btn--lg      { height: 52px; font-size: 14px; padding: 0 24px; }
.dp-btn--block   { width: 100%; }

/* Chips / pills ------------------------------------------ */
.dp-chip {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--f-body);
  font-size: 12px; font-weight: 500; letter-spacing: -0.005em;
  padding: 7px 12px;
  border: 1px solid var(--hair);
  border-radius: var(--radius-pill);
  background: var(--bone);
  color: var(--ink);
  white-space: nowrap;
  cursor: pointer;
}
.dp-chip--solid { background: var(--ink);   color: var(--bone); border-color: var(--ink); }
.dp-chip--court { background: var(--court); border-color: var(--ink); }
.dp-chip--ghost { border-color: var(--hair); color: var(--mute); background: transparent; }

/* Tags / badges ------------------------------------------ */
.dp-tag {
  font-family: var(--f-body);
  font-size: 10.5px; font-weight: 500;
  padding: 4px 8px;
  border-radius: var(--radius-xs);
  display: inline-flex; align-items: center;
}
.dp-tag--new  { background: var(--court); color: var(--ink); }
.dp-tag--sale { background: var(--ink);   color: var(--court); }
.dp-tag--top  { background: var(--bone);  color: var(--ink); border: 1px solid var(--hair); }

/* Cards ---------------------------------------------------- */
.dp-card {
  background: var(--bone);
  border-radius: var(--radius-md);
  border: 1px solid var(--hair);
  overflow: hidden;
}
.dp-card--paper { background: var(--paper); border-color: transparent; }
.dp-card--ink   { background: var(--ink);   color: var(--bone); border-color: var(--ink); }

/* Input ---------------------------------------------------- */
.dp-input {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--paper);
  border: 1px solid transparent;
  padding: 10px 14px;
  border-radius: var(--radius-pill);
  font-size: 13px; color: var(--ink);
  width: 100%;
  transition: border-color .15s ease;
}
.dp-input:focus-within { border-color: var(--ink); background: var(--bone); }
.dp-input input {
  flex: 1; border: 0; outline: 0; background: transparent;
  font: inherit; color: inherit;
}
.dp-input input::placeholder { color: var(--mute); }

/* Dividers ------------------------------------------------- */
.dp-divider { height: 1px; background: var(--hair); width: 100%; }
.dp-rule    { border-top: 1px solid var(--ink); width: 100%; }

/* Horizontal scroll rail (hides scrollbar) ---------------- */
.dp-scroll-x {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.dp-scroll-x::-webkit-scrollbar { display: none; }

/* Image placeholder — use until you have real photography - */
.dp-imgslot {
  position: relative;
  background: var(--paper);
  border-radius: var(--radius-md);
  overflow: hidden;
}
.dp-imgslot--dark { background: #15140F; }

/* Crop-mark corners — purely decorative, indicate intent */
.dp-imgslot::before,
.dp-imgslot::after,
.dp-imgslot > .dp-imgslot__bl,
.dp-imgslot > .dp-imgslot__br {
  content: "";
  position: absolute;
  width: 14px; height: 14px;
  pointer-events: none;
}
.dp-imgslot::before { top: 10px; left:  10px; border-left:  1px solid rgba(14,14,14,.14); border-top:    1px solid rgba(14,14,14,.14); }
.dp-imgslot::after  { top: 10px; right: 10px; border-right: 1px solid rgba(14,14,14,.14); border-top:    1px solid rgba(14,14,14,.14); }
.dp-imgslot > .dp-imgslot__bl { bottom: 10px; left:  10px; border-left:  1px solid rgba(14,14,14,.14); border-bottom: 1px solid rgba(14,14,14,.14); }
.dp-imgslot > .dp-imgslot__br { bottom: 10px; right: 10px; border-right: 1px solid rgba(14,14,14,.14); border-bottom: 1px solid rgba(14,14,14,.14); }

.dp-imgslot--dark::before,
.dp-imgslot--dark::after,
.dp-imgslot--dark > .dp-imgslot__bl,
.dp-imgslot--dark > .dp-imgslot__br {
  border-color: rgba(255,255,255,.18);
}

/* Focus ring (apply to any element via .dp-focus) -------- */
.dp-focus:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 2px;
  border-radius: 4px;
}
