/* ==========================================================================
   HAMCO Sports News - Typography System
   Headings, body text, labels, badges, and text utilities
   ========================================================================== */

/* ---- Headings ---- */
h1, .hn-h1 {
  font-family: var(--hn-font-headline);
  font-size: var(--hn-text-5xl);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--hn-text);
}

h2, .hn-h2 {
  font-family: var(--hn-font-subheading);
  font-size: var(--hn-text-3xl);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--hn-text);
}

h3, .hn-h3 {
  font-family: var(--hn-font-subheading);
  font-size: var(--hn-text-2xl);
  font-weight: 600;
  line-height: 1.25;
  color: var(--hn-text);
}

h4, .hn-h4 {
  font-family: var(--hn-font-subheading);
  font-size: var(--hn-text-xl);
  font-weight: 600;
  line-height: 1.3;
  color: var(--hn-text);
}

h5, .hn-h5 {
  font-family: var(--hn-font-ui);
  font-size: var(--hn-text-lg);
  font-weight: 600;
  line-height: 1.35;
  color: var(--hn-text);
}

h6, .hn-h6 {
  font-family: var(--hn-font-ui);
  font-size: var(--hn-text-base);
  font-weight: 600;
  line-height: 1.4;
  color: var(--hn-text-muted);
}

/* ---- Responsive Headings ---- */
@media (max-width: 1024px) {
  h1, .hn-h1 {
    font-size: 2.75rem;
  }
  h2, .hn-h2 {
    font-size: 2rem;
  }
  h3, .hn-h3 {
    font-size: 1.75rem;
  }
}

@media (max-width: 768px) {
  h1, .hn-h1 {
    font-size: 2.25rem;
  }
  h2, .hn-h2 {
    font-size: 1.75rem;
  }
  h3, .hn-h3 {
    font-size: 1.5rem;
  }
  h4, .hn-h4 {
    font-size: 1.25rem;
  }
}

/* ---- Body Text ---- */
body {
  font-family: var(--hn-font-body);
  font-size: var(--hn-text-base);
  line-height: 1.6;
  color: var(--hn-text);
}

p {
  margin-bottom: var(--hn-space-4);
}

p:last-child {
  margin-bottom: 0;
}

.hn-lead {
  font-size: var(--hn-text-lg);
  line-height: 1.5;
  color: var(--hn-text);
  font-weight: 400;
}

.hn-body-lg {
  font-size: var(--hn-text-md);
  line-height: 1.65;
}

.hn-body-sm {
  font-size: var(--hn-text-sm);
  line-height: 1.55;
}

/* ---- Links in Content ---- */
.hn-content a {
  color: var(--hn-red);
  text-decoration: underline;
  text-decoration-color: rgba(254, 0, 0, 0.3);
  text-underline-offset: 2px;
  transition: text-decoration-color var(--hn-transition-fast);
}

.hn-content a:hover {
  text-decoration-color: var(--hn-red);
}

/* ---- Labels ---- */
.hn-label {
  font-family: var(--hn-font-ui);
  font-size: var(--hn-text-xs);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 1;
}

.hn-label--lg {
  font-size: var(--hn-text-sm);
}

.hn-label--red {
  color: var(--hn-red);
}

.hn-label--muted {
  color: var(--hn-text-muted);
}

/* ---- Meta Text ---- */
.hn-meta {
  font-family: var(--hn-font-ui);
  font-size: var(--hn-text-sm);
  font-weight: 500;
  color: var(--hn-text-muted);
  line-height: 1.4;
}

.hn-meta a {
  color: var(--hn-text-muted);
  transition: color var(--hn-transition-fast);
}

.hn-meta a:hover {
  color: var(--hn-red);
}

.hn-meta__separator {
  display: inline-block;
  margin: 0 var(--hn-space-2);
  opacity: 0.4;
}

.hn-meta__author {
  font-weight: 600;
  color: var(--hn-text);
}

.hn-meta__date,
.hn-meta__read-time {
  display: inline-flex;
  align-items: center;
  gap: var(--hn-space-1);
}

/* ---- Badges ---- */
.hn-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--hn-font-ui);
  font-size: var(--hn-text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  line-height: 1;
  padding: var(--hn-space-1) var(--hn-space-3);
  border-radius: var(--hn-radius-sm);
  white-space: nowrap;
}

.hn-badge--category {
  background-color: var(--hn-red);
  color: var(--hn-white);
  padding: 5px 12px;
  border-radius: var(--hn-radius-sm);
}

.hn-badge--category:hover {
  background-color: var(--hn-red-hover);
}

.hn-badge--outline {
  background-color: transparent;
  border: 1px solid var(--hn-border);
  color: var(--hn-text-muted);
}

.hn-badge--live {
  background-color: var(--hn-green);
  color: var(--hn-white);
  padding: 4px 10px;
  gap: var(--hn-space-1);
}

.hn-badge--live::before {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--hn-white);
  animation: hn-pulse 1.5s ease-in-out infinite;
}

.hn-badge--dark {
  background-color: var(--hn-black);
  color: var(--hn-white);
}

.hn-badge--sm {
  font-size: 10px;
  padding: 3px 8px;
}

.hn-badge--lg {
  font-size: var(--hn-text-sm);
  padding: 6px 16px;
}

/* ---- Blockquote ---- */
blockquote,
.hn-blockquote {
  border-left: 4px solid var(--hn-red);
  padding: var(--hn-space-4) var(--hn-space-6);
  margin: var(--hn-space-8) 0;
  font-family: var(--hn-font-body);
  font-size: var(--hn-text-lg);
  font-style: italic;
  color: var(--hn-gray-700);
  background-color: var(--hn-gray-100);
  border-radius: 0 var(--hn-radius-md) var(--hn-radius-md) 0;
}

blockquote p:last-child {
  margin-bottom: 0;
}

blockquote cite {
  display: block;
  margin-top: var(--hn-space-3);
  font-size: var(--hn-text-sm);
  font-style: normal;
  font-weight: 600;
  color: var(--hn-text);
}

/* ---- Lists in Content ---- */
.hn-content ul,
.hn-content ol {
  margin: var(--hn-space-4) 0;
  padding-left: var(--hn-space-6);
}

.hn-content ul {
  list-style: disc;
}

.hn-content ol {
  list-style: decimal;
}

.hn-content li {
  margin-bottom: var(--hn-space-2);
  line-height: 1.6;
}

/* ---- Text Utilities ---- */
.hn-text-center { text-align: center; }
.hn-text-left { text-align: left; }
.hn-text-right { text-align: right; }

.hn-text-uppercase { text-transform: uppercase; }
.hn-text-capitalize { text-transform: capitalize; }

.hn-text-truncate {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hn-text-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.hn-text-clamp-3 {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.hn-text-clamp-4 {
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.hn-text-red { color: var(--hn-red); }
.hn-text-muted { color: var(--hn-text-muted); }
.hn-text-white { color: var(--hn-white); }
.hn-text-light { color: var(--hn-text-light); }

.hn-font-headline { font-family: var(--hn-font-headline); }
.hn-font-subheading { font-family: var(--hn-font-subheading); }
.hn-font-ui { font-family: var(--hn-font-ui); }
.hn-font-body { font-family: var(--hn-font-body); }
