/* HeadToHead Base Components v2 - Based on design_guideline.html */
@import './tokens.css';

/* Base Typography */
.headline {
  font-family: var(--font-display);
  font-weight: 900;
  font-style: italic;
  letter-spacing: 0.2px;
}

.num {
  font-variant-numeric: tabular-nums lining-nums;
}

.tap {
  -webkit-tap-highlight-color: transparent;
}

/* Card Component */
.card {
  background: var(--bg-3);
  border: 1px solid var(--line-1);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-card);
  transition: border-color 0.2s ease;
}

.card:hover {
  border-color: var(--primary);
}

/* Button Components */
.btn {
  height: 44px;
  border-radius: var(--radius-lg);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 1rem;
  transition: all 0.2s ease;
  cursor: pointer;
  border: none;
  font-size: 14px;
  font-family: var(--font-body);
}

.btn-primary {
  background: var(--primary);
  color: white;
}

.btn-primary:hover {
  opacity: 0.9;
}

.btn-outline {
  background: var(--bg-3);
  border: 1px solid var(--line-1);
  color: var(--text-1);
}

.btn-outline:hover {
  border-color: var(--primary);
  background: var(--bg-2);
}

/* Chip Component */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  height: 36px;
  padding: 0 0.75rem;
  border-radius: 9999px;
  font-size: 12px;
  white-space: nowrap;
  background: var(--bg-3);
  border: 1px solid var(--line-1);
  color: var(--text-1);
  font-family: var(--font-body);
}

/* Crest Component */
.crest {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 56px;
  height: 64px;
  background: #0E1520;
  color: var(--text-1);
  clip-path: path('M28 0 C44 0 56 8 56 22 V36 C56 44 45 56 28 64 C11 56 0 44 0 36 V22 C0 8 12 0 28 0 Z');
  font-weight: 800;
  font-family: var(--font-body);
}

.crest--sm {
  width: 44px;
  height: 50px;
}

.crest__tag {
  position: absolute;
  bottom: 2px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 10px;
  background: var(--bg-2);
  border: 1px solid #273446;
  padding: 1px 5px;
  border-radius: 9999px;
  color: var(--text-1);
}

/* Safe Area Padding */
.safe-pad {
  height: calc(env(safe-area-inset-bottom, 0) + 64px);
}

/* Motion Preferences */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
