/* static/css/accounts.css */
/* ── Profile ── */
.profile-page { max-width: 600px; margin: 0 auto; padding: 32px 16px; }

.profile-header {
  display: flex; align-items: center; gap: 20px; margin-bottom: 32px;
}
.profile-avatar {
  width: 72px; height: 72px; border-radius: 50%;
  background: var(--accent); color: #000;
  font-family: 'Bebas Neue', sans-serif; font-size: 36px; letter-spacing: 1px;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.profile-name { font-family: 'Bebas Neue', sans-serif; font-size: 32px; letter-spacing: 1px; }
.profile-sub { color: var(--muted); font-size: 14px; margin-top: 4px; }

/* ── Profile sections ── */
.profile-section {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 24px; margin-bottom: 20px;
}
.profile-section-title {
  font-family: 'Bebas Neue', sans-serif; font-size: 20px; letter-spacing: 1px;
  margin-bottom: 16px; display: flex; align-items: center; gap: 8px;
}
.section-count {
  font-family: 'DM Sans', sans-serif; font-size: 13px; font-weight: 600;
  background: var(--surface2); border: 1px solid var(--border);
  border-radius: 100px; padding: 2px 10px; color: var(--muted);
}

/* ── Info rows ── */
.info-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 10px 0; border-bottom: 1px solid var(--border); font-size: 14px;
}
.info-row:last-child { border-bottom: none; padding-bottom: 0; }
.info-label { color: var(--muted); }
.info-value { font-weight: 600; }

/* ── Game rows ── */
.game-row {
  display: flex; align-items: center; gap: 14px;
  background: var(--surface2); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 14px; margin-bottom: 10px;
  text-decoration: none; color: inherit; transition: border-color 0.15s;
}
.game-row:last-child { margin-bottom: 0; }
.game-row:hover { border-color: var(--accent); }
.game-row-icon {
  width: 40px; height: 40px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; flex-shrink: 0;
}
.icon-basketball { background: rgba(255,107,53,0.15); }
.icon-soccer     { background: rgba(76,175,80,0.15); }
.icon-tennis     { background: rgba(240,255,68,0.12); }
.game-row-info { flex: 1; min-width: 0; }
.game-row-title { font-size: 15px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.game-row-meta  { font-size: 13px; color: var(--muted); margin-top: 3px; }
.game-row-badge { font-size: 11px; font-weight: 700; padding: 3px 8px; border-radius: 100px; flex-shrink: 0; }
.badge-upcoming { background: rgba(240,255,68,0.12); color: var(--accent); }
.badge-past     { background: var(--surface2); color: var(--muted); }
.badge-open     { background: rgba(76,175,80,0.12); color: #4caf50; }
.badge-full     { background: rgba(255,50,50,0.12); color: #ff5555; }
.empty-state    { color: var(--muted); font-size: 14px; text-align: center; padding: 16px 0; }

/* ── Password form ── */
.password-field { margin-bottom: 14px; }
.password-field label {
  font-size: 13px; font-weight: 600; color: var(--muted);
  text-transform: uppercase; letter-spacing: 0.5px; display: block; margin-bottom: 6px;
}
.password-field input {
  width: 100%; padding: 11px 14px;
  background: var(--surface2); border: 1px solid var(--border);
  border-radius: var(--radius); color: var(--text);
  font-family: 'DM Sans', sans-serif; font-size: 15px;
  outline: none; transition: border-color 0.2s; box-sizing: border-box;
}
.password-field input:focus { border-color: var(--accent); }
.password-error { color: #ff6666; font-size: 13px; margin-top: 4px; }
.password-success {
  background: rgba(76,175,80,0.12); border: 1px solid rgba(76,175,80,0.3);
  border-radius: var(--radius); padding: 10px 14px;
  color: #4caf50; font-size: 14px; margin-bottom: 16px;
}

/* ── Contact Page ── */
.contact-page {
  min-height: 100dvh;
  padding: 2rem 1.25rem 4rem;
  max-width: 480px;
  margin: 0 auto;
}

.contact-header {
  margin-bottom: 2rem;
}

.contact-eyebrow {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent2);
  margin-bottom: 0.4rem;
}

.contact-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 2.8rem;
  line-height: 1;
  letter-spacing: 0.02em;
  color: var(--text);
  margin: 0 0 0.75rem;
}

.contact-subtitle {
  font-size: 0.95rem;
  color: var(--muted);
  line-height: 1.5;
  margin: 0;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  animation: fadeUp 0.35s ease both;
}

/* Category chips */
.category-chips {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.category-chip {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.78rem;
  font-weight: 500;
  padding: 0.3rem 0.7rem;
  border-radius: 100px;
  border: 1.5px solid var(--border);
  background: transparent;
  cursor: pointer;
  color: var(--muted);
  transition: all 0.15s ease;
  -webkit-tap-highlight-color: transparent;
}

.category-chip.active {
  border-color: var(--accent2);
  background: var(--accent2);
  color: #fff;
}

/* Form controls — uses your existing field-input/field-label from base.css */
.contact-form .field-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-bottom: 0;
}

.char-count {
  font-size: 0.75rem;
  color: var(--muted);
  text-align: right;
}

/* Submit button — extends .btn .btn-primary from base.css */
.btn-contact-submit {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.15rem;
  letter-spacing: 0.08em;
  padding: 0.85rem 1.5rem;
  background: var(--accent2);
  color: #fff;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  width: 100%;
  transition: opacity 0.15s ease, transform 0.1s ease;
}

.btn-contact-submit:active {
  opacity: 0.85;
  transform: scale(0.98);
}

/* Success state */
.contact-success {
  text-align: center;
  padding: 2.5rem 1rem;
  animation: fadeUp 0.4s ease both;
}

.success-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
  display: block;
}

.success-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 2.2rem;
  color: var(--text);
  margin: 0 0 0.5rem;
}

.success-sub {
  font-size: 0.95rem;
  color: var(--muted);
  line-height: 1.5;
  margin: 0 0 2rem;
}

.btn-back {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--accent2);
  text-decoration: none;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}