/* My Info & Registrations page */
:root {
  --primary-gold: #ffd700;
  --olympic-blue: #0081c8;
  --text-dark: #333333;
  --text-light: #666666;
  --border-light: #e5e5e5;
  --card-bg: #ffffff;
  --shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

* {
  box-sizing: border-box;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
  min-height: 100vh;
  color: var(--text-dark);
  margin: 0;
  padding: 120px 1rem 3rem;
}

.page-wrap {
  max-width: 960px;
  margin: 0 auto;
}

.page-header {
  margin-bottom: 1.5rem;
}

.page-header h1 {
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  color: #112250;
  margin: 0 0 0.35rem;
  font-weight: 800;
}

.page-header p {
  color: var(--text-light);
  margin: 0;
  font-size: 1.05rem;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--olympic-blue);
  text-decoration: none;
  font-weight: 600;
  margin-bottom: 1rem;
}

.back-link:hover {
  text-decoration: underline;
}

.section-card {
  background: var(--card-bg);
  border-radius: 16px;
  box-shadow: var(--shadow);
  padding: 1.5rem;
  margin-bottom: 1.25rem;
}

.section-card-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid #f1f5f9;
}

.section-card-header h2 {
  margin: 0;
  font-size: 1.35rem;
  color: #112250;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.section-card-header h2 i {
  color: #e4b55d;
}

.section-count {
  font-size: 0.9rem;
  color: var(--text-light);
}

.btn-primary,
.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.55rem 1rem;
  border-radius: 999px;
  font-weight: 600;
  text-decoration: none;
  border: none;
  cursor: pointer;
  font-size: 0.95rem;
}

.btn-primary {
  background: linear-gradient(135deg, var(--olympic-blue), #0066a1);
  color: #fff;
}

.btn-secondary {
  background: #f1f5f9;
  color: #112250;
}

.info-field-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1rem 1.5rem;
  margin: 0;
}

.info-field-grid-compact {
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
}

.info-field dt {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-light);
  margin-bottom: 0.2rem;
  font-weight: 600;
}

.info-field dd {
  margin: 0;
  font-size: 1rem;
  color: var(--text-dark);
  line-height: 1.45;
  word-break: break-word;
}

.info-missing {
  color: #94a3b8;
  font-style: italic;
}

.info-muted {
  color: var(--text-light);
  font-size: 0.9rem;
}

.info-notice {
  background: #fff8e6;
  border: 1px solid #fde68a;
  border-radius: 8px;
  padding: 0.75rem 1rem;
  font-size: 0.92rem;
  color: #92400e;
  margin-bottom: 1rem;
}

.info-notice a {
  color: #92400e;
  font-weight: 600;
}

.page-loading {
  text-align: center;
  padding: 2rem;
  color: var(--text-light);
}

.registration-card {
  border: 1px solid var(--border-light);
  border-radius: 12px;
  padding: 1.25rem;
  margin-bottom: 1rem;
  background: #fafbfc;
}

.registration-card:last-child {
  margin-bottom: 0;
}

.registration-card-header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem;
  align-items: flex-start;
  margin-bottom: 0.75rem;
}

.registration-camp-title {
  margin: 0 0 0.25rem;
  font-size: 1.1rem;
  color: #112250;
}

.registration-id {
  margin: 0;
  font-size: 0.85rem;
  color: var(--text-light);
}

.registration-id code {
  font-family: ui-monospace, monospace;
  font-size: 0.82rem;
  background: #eef2f7;
  padding: 0.1rem 0.35rem;
  border-radius: 4px;
}

.status-badge {
  display: inline-block;
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.status-paid {
  background: #dcfce7;
  color: #166534;
}

.status-pending {
  background: #fef3c7;
  color: #92400e;
}

.status-default {
  background: #e2e8f0;
  color: #475569;
}

.link-source-tag {
  font-size: 0.85rem;
  color: var(--olympic-blue);
  margin: 0 0 1rem;
}

.registration-section {
  margin-top: 1rem;
}

.registration-section h4 {
  margin: 0 0 0.5rem;
  font-size: 0.95rem;
  color: #112250;
}

.camp-list {
  margin: 0;
  padding-left: 1.2rem;
}

.camp-list li {
  margin-bottom: 0.35rem;
}

.registration-meta-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 0.75rem;
  margin-top: 1rem;
  padding: 0.75rem;
  background: #fff;
  border-radius: 8px;
  border: 1px solid var(--border-light);
}

.meta-label {
  display: block;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-light);
  font-weight: 600;
}

.meta-value {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-dark);
}

.athlete-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.athlete-details {
  border: 1px solid var(--border-light);
  border-radius: 8px;
  background: #fff;
  overflow: hidden;
}

.athlete-summary {
  cursor: pointer;
  padding: 0.75rem 1rem;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.35rem;
  font-weight: 600;
}

.athlete-summary::-webkit-details-marker {
  display: none;
}

.athlete-name {
  color: #112250;
}

.athlete-role {
  font-size: 0.82rem;
  color: var(--text-light);
  font-weight: 500;
}

.athlete-details[open] .athlete-summary {
  border-bottom: 1px solid var(--border-light);
  background: #f8fafc;
}

.athlete-details .info-field-grid {
  padding: 0.75rem 1rem 1rem;
}

.waiver-signed {
  color: #166534;
  font-weight: 600;
}

.waiver-unsigned {
  color: #b45309;
  font-weight: 600;
}

.empty-state {
  text-align: center;
  padding: 2rem 1rem;
  color: var(--text-light);
}

.empty-state i {
  font-size: 2.5rem;
  opacity: 0.45;
  margin-bottom: 0.75rem;
}

.empty-state h3 {
  color: #112250;
  margin: 0 0 0.5rem;
}

.empty-state p {
  max-width: 36rem;
  margin: 0 auto 1rem;
  line-height: 1.5;
}

.support-card p {
  margin: 0 0 1rem;
  color: var(--text-light);
  line-height: 1.55;
}

.sign-in-gate {
  text-align: center;
  background: var(--card-bg);
  border-radius: 16px;
  padding: 3rem 1.5rem;
  box-shadow: var(--shadow);
}

.sign-in-gate i {
  font-size: 2.5rem;
  color: var(--olympic-blue);
  margin-bottom: 1rem;
}

.sign-in-gate h2 {
  margin: 0 0 0.5rem;
  color: #112250;
}

.sign-in-gate p {
  color: var(--text-light);
  margin-bottom: 1.25rem;
}

/* Camp access code (shared with dashboard) */
.camp-access-link-section {
  margin-top: 1rem;
  border: 1px solid var(--border-light);
  border-radius: 10px;
  background: #fff;
  overflow: hidden;
}

.camp-access-link-summary {
  cursor: pointer;
  padding: 0.85rem 1rem;
  font-weight: 600;
  color: #112250;
  list-style: none;
}

.camp-access-link-summary::-webkit-details-marker {
  display: none;
}

.camp-access-link-inner {
  padding: 0 1rem 1rem;
}

.camp-access-link-inner p {
  margin: 0 0 0.75rem;
  color: var(--text-light);
  font-size: 0.92rem;
  line-height: 1.45;
}

.camp-access-link-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.camp-access-code-input {
  flex: 1 1 200px;
  min-width: 0;
  padding: 0.6rem 0.85rem;
  border: 1px solid var(--border-light);
  border-radius: 8px;
  font-size: 1rem;
}

.camp-access-link-btn,
.quick-action-btn {
  padding: 0.6rem 1rem;
  border: none;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--primary-gold), #ffa500);
  color: #112250;
  font-weight: 700;
  cursor: pointer;
}

.camp-access-link-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.camp-access-link-helper {
  font-size: 0.82rem !important;
  margin-top: 0.5rem !important;
}

.camp-access-link-status {
  margin: 0.75rem 0 0;
  font-size: 0.9rem;
  min-height: 1.25rem;
}

.camp-access-link-status.is-success {
  color: #166534;
  font-weight: 600;
}

.camp-access-link-status.is-error {
  color: #b91c1c;
  font-weight: 600;
}

@media (max-width: 600px) {
  body {
    padding-top: 100px;
  }

  .section-card {
    padding: 1.1rem;
  }

  .info-field-grid {
    grid-template-columns: 1fr;
  }
}
