/* ==========================================================================
   HAMCO Sports News - Single Article Page
   Self-contained styles with fallback values for all CSS variables
   ========================================================================== */

/* ---- Reading Progress ---- */
.hn-reading-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: #e5e5e5;
  z-index: 9999;
}

.hn-reading-progress-bar {
  width: 0%;
  height: 100%;
  background: #FE0000;
  transition: width 100ms linear;
}

/* ---- Breadcrumbs ---- */
.hn-single-breadcrumbs {
  background: #f7f7f7;
  border-bottom: 1px solid #e0e0e0;
  padding: 12px 0;
  font-family: 'Inter', sans-serif;
  font-size: 13px;
}

.hn-single-breadcrumbs ol {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.hn-single-breadcrumbs li {
  display: inline-flex;
  align-items: center;
  color: #9e9e9e;
}

.hn-single-breadcrumbs li:not(:last-child)::after {
  content: "/";
  margin-left: 6px;
  color: #bdbdbd;
}

.hn-single-breadcrumbs a {
  color: #757575;
  text-decoration: none;
}

.hn-single-breadcrumbs a:hover {
  color: #FE0000;
}

.hn-single-breadcrumbs .is-current {
  color: #111;
  font-weight: 600;
}

/* ---- Article Header ---- */
.hn-single-header {
  max-width: 800px;
  margin: 0 auto;
  padding: 40px 0 32px;
  text-align: center;
}

.hn-single-cat-badge {
  display: inline-block;
  background: #FE0000;
  color: #fff;
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 5px 16px;
  border-radius: 100px;
  text-decoration: none;
  margin-bottom: 16px;
}

.hn-single-cat-badge:hover {
  background: #d50000;
}

.hn-single-title {
  font-family: 'Oswald', 'Arial Narrow', sans-serif;
  font-size: 3rem;
  line-height: 1.05;
  color: #111;
  margin: 0 0 20px;
}

.hn-single-meta {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 16px;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  color: #757575;
}

.hn-single-meta__author {
  display: flex;
  align-items: center;
  gap: 8px;
}

.hn-single-meta__author img {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
}

.hn-single-meta__author a {
  color: #111;
  font-weight: 600;
  text-decoration: none;
}

.hn-single-meta__author a:hover {
  color: #FE0000;
}

.hn-single-meta__sep {
  color: #bdbdbd;
}

/* ---- Featured Image ---- */
.hn-single-featured {
  margin-bottom: 32px;
  border-radius: 12px;
  overflow: hidden;
}

.hn-single-featured img {
  width: 100%;
  height: auto;
  display: block;
}

.hn-single-featured figcaption {
  font-family: var(--hn-font-body, 'Inter', sans-serif);
  font-size: 12px;
  color: #9e9e9e;
  padding: 10px 16px;
  background: #f7f7f7;
}

/* ---- Content + Sidebar Grid ---- */
.hn-single-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 48px;
  align-items: start;
  padding-bottom: 48px;
}

/* ---- Share Bar (left side sticky) ---- */
.hn-single-share {
  position: sticky;
  top: 80px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
}

.hn-single-share-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #f7f7f7;
  color: #757575;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
}

.hn-single-share-btn:hover {
  background: #FE0000;
  color: #fff;
}

/* ---- Article Body ---- */
.hn-single-article {
  min-width: 0;
}

.hn-single-content {
  font-family: 'Inter', sans-serif;
  font-size: 18px;
  line-height: 1.8;
  color: #111;
}

.hn-single-content p {
  margin: 0 0 24px;
}

.hn-single-content h2 {
  font-family: 'Oswald', 'Arial Narrow', sans-serif;
  font-size: 1.75rem;
  line-height: 1.15;
  color: #111;
  margin: 40px 0 16px;
}

.hn-single-content h3 {
  font-family: 'Source Sans 3', sans-serif;
  font-size: 1.5rem;
  font-weight: 600;
  color: #111;
  margin: 32px 0 12px;
}

.hn-single-content ul,
.hn-single-content ol {
  margin: 0 0 24px;
  padding-left: 24px;
  list-style: disc;
}

.hn-single-content li {
  margin-bottom: 8px;
}

.hn-single-content img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin: 24px 0;
}

.hn-single-content a {
  color: #FE0000;
  text-decoration: underline;
}

.hn-single-content a:hover {
  color: #d50000;
}

.hn-single-content blockquote {
  margin: 32px 0;
  padding: 24px 32px;
  border-left: 4px solid #FE0000;
  background: #f7f7f7;
  border-radius: 0 8px 8px 0;
  font-size: 1.125rem;
  font-style: italic;
  color: #424242;
  line-height: 1.6;
}

.hn-single-content blockquote cite {
  display: block;
  font-style: normal;
  font-size: 14px;
  font-weight: 600;
  color: #FE0000;
  margin-top: 12px;
}

/* ---- Tags ---- */
.hn-single-tags {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  padding-top: 32px;
  margin-top: 32px;
  border-top: 1px solid #e0e0e0;
}

.hn-single-tags__label {
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 700;
  color: #111;
}

.hn-single-tags a {
  display: inline-block;
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  font-weight: 600;
  color: #757575;
  background: #f7f7f7;
  padding: 5px 14px;
  border-radius: 100px;
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
}

.hn-single-tags a:hover {
  background: #FE0000;
  color: #fff;
}

/* ---- Sidebar ---- */
.hn-single-sidebar {
  position: sticky;
  top: 80px;
  min-width: 0;
}

/* ---- Author Bio ---- */
.hn-single-author {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 24px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
  margin-top: 48px;
}

.hn-single-author__header {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

.hn-single-author__avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
}

.hn-single-author__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hn-single-author__info {
  flex: 1;
}

.hn-single-author__name {
  font-family: 'Oswald', 'Arial Narrow', sans-serif;
  font-size: 1.5rem;
  color: #111;
  margin: 0 0 4px;
}

.hn-single-author__name a {
  color: inherit;
  text-decoration: none;
}

.hn-single-author__name a:hover {
  color: #FE0000;
}

.hn-single-author__role {
  display: block;
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  color: #FE0000;
  font-weight: 600;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.hn-single-author__desc {
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  color: #757575;
  line-height: 1.6;
  margin: 0;
}

.hn-single-author__posts {
  border-top: 1px solid #e0e0e0;
  padding-top: 16px;
}

.hn-single-author__posts-title {
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #111;
  margin: 0 0 12px;
}

.hn-single-author__posts-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* ---- Related Articles ---- */
.hn-single-related {
  margin-top: 48px;
  padding-top: 48px;
  border-top: 1px solid #e0e0e0;
}

.hn-single-related__title {
  font-family: 'Oswald', 'Arial Narrow', sans-serif;
  font-size: 1.75rem;
  color: #111;
  margin: 0 0 24px;
  padding-bottom: 12px;
  border-bottom: 3px solid #FE0000;
  display: inline-block;
}

.hn-single-related__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

/* ---- Post Navigation ---- */
.hn-single-postnav {
  margin-top: 40px;
  padding-top: 32px;
  border-top: 1px solid #e0e0e0;
}

.hn-single-postnav__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.hn-single-postnav__prev a,
.hn-single-postnav__next a {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 16px;
  background: #fff;
  border-radius: 8px;
  text-decoration: none;
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
  transition: box-shadow 0.2s;
}

.hn-single-postnav__prev a:hover,
.hn-single-postnav__next a:hover {
  box-shadow: 0 4px 12px rgba(0,0,0,0.12);
}

.hn-single-postnav__next {
  text-align: right;
}

.hn-single-postnav__label {
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #9e9e9e;
}

.hn-single-postnav__title {
  font-family: 'Source Sans 3', sans-serif;
  font-size: 1.125rem;
  font-weight: 600;
  color: #111;
  line-height: 1.2;
}

/* ---- Comments ---- */
.hn-single-comments {
  margin-top: 40px;
  padding-top: 32px;
  border-top: 1px solid #e0e0e0;
}

.hn-single-comments .comment-respond {
  background: #fff;
  border-radius: 12px;
  padding: 32px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

.hn-single-comments .comment-reply-title {
  font-family: 'Oswald', 'Arial Narrow', sans-serif;
  font-size: 1.75rem;
  color: #111;
  margin: 0 0 24px;
}

.hn-single-comments .comment-form label {
  display: block;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: #111;
  margin-bottom: 6px;
}

.hn-single-comments .comment-form input[type="text"],
.hn-single-comments .comment-form input[type="email"],
.hn-single-comments .comment-form input[type="url"],
.hn-single-comments .comment-form textarea {
  width: 100%;
  padding: 12px 16px;
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  background: #f7f7f7;
  color: #111;
  margin-bottom: 16px;
  transition: border-color 0.2s;
}

.hn-single-comments .comment-form input:focus,
.hn-single-comments .comment-form textarea:focus {
  outline: none;
  border-color: #FE0000;
  background: #fff;
}

.hn-single-comments .comment-form textarea {
  min-height: 150px;
  resize: vertical;
}

.hn-single-comments .comment-form .form-submit input[type="submit"] {
  display: inline-block;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #fff;
  background: #FE0000;
  border: none;
  padding: 14px 32px;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.2s;
}

.hn-single-comments .comment-form .form-submit input[type="submit"]:hover {
  background: #d50000;
}

.hn-single-comments .comment-form .comment-form-cookies-consent {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  color: #757575;
  margin-bottom: 16px;
}

.hn-single-comments .comment-form .comment-form-cookies-consent input[type="checkbox"] {
  width: auto;
  margin: 0;
}

.hn-single-comments .comment-form p {
  margin: 0 0 16px;
}

/* ---- Dark Mode ---- */
[data-theme="dark"] .hn-single-breadcrumbs {
  background: #1a1a1a;
  border-color: rgba(255,255,255,0.08);
}

[data-theme="dark"] .hn-single-breadcrumbs a { color: rgba(255,255,255,0.5); }
[data-theme="dark"] .hn-single-breadcrumbs .is-current { color: #fff; }
[data-theme="dark"] .hn-single-title { color: #fff; }
[data-theme="dark"] .hn-single-meta__author a { color: #fff; }
[data-theme="dark"] .hn-single-content { color: rgba(255,255,255,0.9); }
[data-theme="dark"] .hn-single-content h2,
[data-theme="dark"] .hn-single-content h3 { color: #fff; }
[data-theme="dark"] .hn-single-content blockquote { background: #1a1a1a; color: rgba(255,255,255,0.7); }
[data-theme="dark"] .hn-single-tags { border-color: rgba(255,255,255,0.08); }
[data-theme="dark"] .hn-single-tags__label { color: #fff; }
[data-theme="dark"] .hn-single-tags a { background: #1a1a1a; color: rgba(255,255,255,0.6); }
[data-theme="dark"] .hn-single-author { background: #1a1a1a; box-shadow: none; }
[data-theme="dark"] .hn-single-author__name { color: #fff; }
[data-theme="dark"] .hn-single-author__posts { border-color: rgba(255,255,255,0.08); }
[data-theme="dark"] .hn-single-author__posts-title { color: #fff; }
[data-theme="dark"] .hn-single-postnav__prev a,
[data-theme="dark"] .hn-single-postnav__next a { background: #1a1a1a; box-shadow: none; }
[data-theme="dark"] .hn-single-postnav__title { color: #fff; }
[data-theme="dark"] .hn-single-comments .comment-respond { background: #1a1a1a; box-shadow: none; }
[data-theme="dark"] .hn-single-comments .comment-reply-title { color: #fff; }
[data-theme="dark"] .hn-single-comments .comment-form label { color: #fff; }
[data-theme="dark"] .hn-single-comments .comment-form input[type="text"],
[data-theme="dark"] .hn-single-comments .comment-form input[type="email"],
[data-theme="dark"] .hn-single-comments .comment-form input[type="url"],
[data-theme="dark"] .hn-single-comments .comment-form textarea {
  background: #111; border-color: rgba(255,255,255,0.1); color: #fff;
}
[data-theme="dark"] .hn-single-featured figcaption { background: #1a1a1a; color: rgba(255,255,255,0.5); }
[data-theme="dark"] .hn-single-share-btn { background: #1a1a1a; color: rgba(255,255,255,0.5); }
[data-theme="dark"] .hn-single-related { border-color: rgba(255,255,255,0.08); }
[data-theme="dark"] .hn-single-related__title { color: #fff; }
[data-theme="dark"] .hn-single-postnav { border-color: rgba(255,255,255,0.08); }
[data-theme="dark"] .hn-single-comments { border-color: rgba(255,255,255,0.08); }

/* ---- Responsive ---- */
@media (max-width: 1024px) {
  .hn-single-layout {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .hn-single-sidebar {
    position: static;
  }

  .hn-single-related__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .hn-single-title {
    font-size: 2rem;
  }

  .hn-single-meta {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px 12px;
    font-size: 13px;
  }

  .hn-single-meta__sep {
    display: none;
  }

  .hn-single-content {
    font-size: 16px;
  }

  .hn-single-content h2 {
    font-size: 1.5rem;
  }

  .hn-single-content blockquote {
    padding: 16px 20px;
    font-size: 1rem;
  }

  .hn-single-author__header {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .hn-single-related__grid {
    grid-template-columns: 1fr;
  }

  .hn-single-postnav__grid {
    grid-template-columns: 1fr;
  }

  .hn-single-postnav__next {
    text-align: left;
  }

  .hn-single-featured {
    margin-left: -16px;
    margin-right: -16px;
    border-radius: 0;
  }

  .hn-single-header {
    padding: 24px 0 20px;
  }

  .hn-single-comments .comment-respond {
    padding: 20px;
  }
}
