/*
Theme Name: GamesDesert - Single Post
Description: Premium dark gaming single-post layout for GamesDesert.
*/

/* =========================================================
   GAMESDESERT SINGLE POST
   Requires the variables from style.css
========================================================= */

/* ---------- PAGE SHELL ---------- */

.page-shell {
  position: relative;
  width: min(100% - 32px, 1400px);
  margin: 0 auto;
  padding: 7rem 0 5rem;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 3rem;
}

@media (min-width: 768px) {
  .page-shell {
    width: min(100% - 64px, 1400px);
  }
}

@media (min-width: 1100px) {
  .page-shell {
    grid-template-columns: minmax(0, 1fr) 330px;
    gap: 4rem;
    align-items: start;
  }
}

@media (min-width: 1280px) {
  .page-shell {
    grid-template-columns: minmax(0, 880px) 340px;
    justify-content: center;
    gap: 5rem;
  }
}

/* ---------- ARTICLE ---------- */

.article-col {
  min-width: 0;
  position: relative;
}

.article-col::before {
  content: "";
  position: absolute;
  width: 500px;
  height: 500px;
  top: 80px;
  left: -220px;
  background: var(--color-primary-glow);
  filter: blur(140px);
  opacity: .18;
  pointer-events: none;
  z-index: -1;
}

/* ---------- BREADCRUMB ---------- */

.breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: .45rem;
  margin: 0 0 1.5rem;
  font-family: var(--font-headline);
  font-size: .72rem;
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--color-on-surface-muted);
}

.breadcrumb a {
  color: var(--color-on-surface-variant);
  transition: color .2s ease;
}

.breadcrumb a:hover {
  color: var(--color-primary);
}

.breadcrumb .breadcrumb_last {
  color: var(--color-primary);
}

.breadcrumb .separator {
  color: var(--color-outline);
}

/* ---------- CATEGORIES ---------- */

.post-categories {
  display: flex;
  flex-wrap: wrap;
  gap: .55rem;
  margin-bottom: 1.1rem;
}

.category-item {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  min-height: 30px;
  padding: .35rem .75rem;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: var(--radius-full);
  font-family: var(--font-headline);
  font-size: .68rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: .06em;
  text-transform: uppercase;
  box-shadow: 0 5px 18px rgba(0,0,0,.18);
  transition: transform .2s ease, box-shadow .2s ease;
}

.category-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,.3);
}

.category-item a {
  color: inherit !important;
}

.category-icon {
  width: 20px;
  height: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  overflow: hidden;
}

.category-icon img {
  width: 13px;
  height: 13px;
  object-fit: contain;
}

/* ---------- TITLE ---------- */

.article-title {
  max-width: 920px;
  margin: 0 0 1.5rem;
  color: var(--color-on-surface);
  font-family: var(--font-headline);
  font-size: clamp(2.25rem, 5vw, 4.25rem);
  font-weight: 800;
  line-height: 1.03;
  letter-spacing: -.055em;
  text-wrap: balance;
}

@media (max-width: 600px) {
  .article-title {
    font-size: clamp(2rem, 10vw, 3rem);
    letter-spacing: -.045em;
  }
}

/* ---------- META ---------- */

.post-meta-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: .75rem 1rem;
  margin-bottom: 2rem;
  color: var(--color-on-surface-variant);
  font-size: .78rem;
}

.author-card {
  display: inline-flex;
  align-items: center;
  gap: .75rem;
  min-height: 48px;
  padding: .3rem .9rem .3rem .3rem;
  background: var(--color-surface-container);
  border: 1px solid rgba(255,255,255,.06);
  border-radius: var(--radius-full);
}

.author-avatar {
  width: 38px;
  height: 38px;
  overflow: hidden;
  flex: 0 0 38px;
  border: 2px solid rgba(240,165,21,.35);
  border-radius: 50%;
  background: var(--color-surface-bright);
}

.author-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.author-name {
  margin: 0 0 .1rem;
  font-family: var(--font-headline);
  font-size: .82rem;
  font-weight: 800;
  line-height: 1.2;
}

.author-name a {
  color: var(--color-on-surface);
  transition: color .2s ease;
}

.author-name a:hover {
  color: var(--color-primary);
}

.author-meta {
  display: flex;
  align-items: center;
  gap: .3rem;
  margin: 0;
  color: var(--color-on-surface-muted);
  font-size: .66rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.author-meta img,
.post-date img {
  opacity: .7;
}

.post-date {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  min-height: 40px;
  padding: .55rem .8rem;
  background: var(--color-surface-container);
  border: 1px solid rgba(255,255,255,.05);
  border-radius: var(--radius-full);
  color: var(--color-on-surface-muted);
}

.post-date strong {
  color: var(--color-on-surface-variant);
  font-weight: 700;
}

/* ---------- HERO IMAGE ---------- */

.hero-image-wrap {
  position: relative;
  margin: .5rem 0 2.5rem;
  isolation: isolate;
}

.hero-image-wrap::before {
  content: "";
  position: absolute;
  inset: -1px;
  z-index: -1;
  border-radius: calc(var(--radius-xl) + 2px);
  background: linear-gradient(
    135deg,
    rgba(240,165,21,.65),
    rgba(240,165,21,.05) 38%,
    rgba(255,255,255,.04) 70%,
    rgba(240,165,21,.2)
  );
}

.hero-image-glow {
  position: absolute;
  inset: 7%;
  z-index: -2;
  border-radius: 30%;
  background: var(--color-primary-glow-strong);
  filter: blur(70px);
  opacity: .55;
  transition: opacity .35s ease, transform .35s ease;
}

.hero-image-wrap:hover .hero-image-glow {
  opacity: .85;
  transform: scale(1.03);
}

.hero-image {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: var(--radius-xl);
  background: var(--color-surface);
  box-shadow:
    0 30px 80px rgba(0,0,0,.5),
    0 0 0 1px rgba(255,255,255,.025);
}

@media (max-width: 600px) {
  .hero-image {
    border-radius: var(--radius-lg);
  }
}

/* ---------- SOCIAL SHARES ---------- */

.top-social-shares {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: .65rem;
  margin: 0 0 2.25rem;
  padding: .8rem 0;
  border-top: 1px solid rgba(255,255,255,.055);
  border-bottom: 1px solid rgba(255,255,255,.055);
}

.top-social-shares .share-label {
  margin-right: .25rem;
  color: var(--color-on-surface-muted);
  font-family: var(--font-headline);
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.social-share-icons {
  display: flex;
  align-items: center;
  gap: .45rem;
}

.social-share-icons a,
.top-social-shares a {
  transition: transform .2s ease, opacity .2s ease, filter .2s ease;
}

.social-share-icons a:hover,
.top-social-shares a:hover {
  transform: translateY(-2px);
  filter: brightness(1.15);
}

/* ---------- ARTICLE CONTENT ---------- */

.article-body {
  max-width: 820px;
  color: var(--color-on-surface-variant);
  font-size: 1.08rem;
  line-height: 1.9;
}

.article-body > * {
  margin-top: 0;
  margin-bottom: 1.45rem;
}

.article-body p {
  margin-bottom: 1.5rem;
}

.article-body p:first-child::first-letter {
  float: left;
  margin: .12rem .75rem 0 0;
  color: var(--color-primary);
  font-family: var(--font-headline);
  font-size: 4.2rem;
  font-weight: 800;
  line-height: .78;
}

.article-body a {
  color: var(--color-primary);
  font-weight: 700;
  text-decoration: underline;
  text-decoration-color: rgba(240,165,21,.35);
  text-underline-offset: 3px;
  transition: color .2s ease, text-decoration-color .2s ease;
}

.article-body a:hover {
  color: var(--color-primary-bright);
  text-decoration-color: var(--color-primary);
}

/* Headings generated by WordPress */

.article-body h2,
.article-body h3,
.article-body h4,
.article-body h5,
.article-body h6 {
  color: var(--color-on-surface);
  font-family: var(--font-headline);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -.035em;
  text-wrap: balance;
}

.article-body h2 {
  position: relative;
  margin-top: 3.5rem;
  margin-bottom: 1.15rem;
  padding-left: 1rem;
  font-size: clamp(1.65rem, 3vw, 2.25rem);
}

.article-body h2::before {
  content: "";
  position: absolute;
  top: .15em;
  bottom: .15em;
  left: 0;
  width: 3px;
  border-radius: 10px;
  background: var(--color-primary);
  box-shadow: 0 0 16px var(--color-primary-glow);
}

.article-body h3 {
  margin-top: 2.5rem;
  margin-bottom: .9rem;
  font-size: clamp(1.3rem, 2.5vw, 1.65rem);
}

.article-body h4 {
  margin-top: 2rem;
  margin-bottom: .75rem;
  font-size: 1.2rem;
}

/* Lists */

.article-body ul,
.article-body ol {
  margin: 1.25rem 0 1.75rem;
  padding-left: 1.5rem;
}

.article-body li {
  margin-bottom: .65rem;
  padding-left: .25rem;
}

.article-body li::marker {
  color: var(--color-primary);
  font-weight: 800;
}

.article-body ul ul,
.article-body ol ol,
.article-body ul ol,
.article-body ol ul {
  margin-top: .65rem;
  margin-bottom: .65rem;
}

/* Blockquotes */

.article-body blockquote,
.article-blockquote {
  position: relative;
  margin: 2rem 0;
  padding: 1.4rem 1.5rem 1.4rem 1.65rem;
  background:
    linear-gradient(135deg, rgba(240,165,21,.08), rgba(255,255,255,.015)),
    var(--color-surface-container);
  border: 1px solid rgba(240,165,21,.12);
  border-left: 3px solid var(--color-primary);
  border-radius: var(--radius-md);
  color: var(--color-on-surface);
  font-size: 1.05rem;
  font-style: italic;
}

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

/* Images */

.article-body img {
  width: auto;
  max-width: 100%;
  height: auto;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
}

.article-body figure {
  margin: 2.25rem 0;
}

.article-body figure img {
  width: 100%;
}

.article-body figcaption {
  margin-top: .6rem;
  color: var(--color-on-surface-muted);
  font-size: .75rem;
  line-height: 1.5;
  text-align: center;
}

/* Tables */

.article-body table {
  width: 100%;
  margin: 2rem 0;
  border-collapse: separate;
  border-spacing: 0;
  overflow: hidden;
  background: var(--color-surface-container);
  border: 1px solid rgba(255,255,255,.07);
  border-radius: var(--radius-md);
  font-size: .9rem;
}

.article-body th,
.article-body td {
  padding: .8rem 1rem;
  border-bottom: 1px solid rgba(255,255,255,.06);
  text-align: left;
}

.article-body th {
  background: var(--color-surface-container-high);
  color: var(--color-on-surface);
  font-family: var(--font-headline);
  font-weight: 800;
}

.article-body td {
  color: var(--color-on-surface-variant);
}

.article-body tr:last-child td {
  border-bottom: 0;
}

/* Code */

.article-body code {
  padding: .15rem .4rem;
  background: var(--color-surface-bright);
  border: 1px solid rgba(255,255,255,.07);
  border-radius: .35rem;
  color: var(--color-primary-bright);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: .88em;
}

.article-body pre {
  overflow-x: auto;
  margin: 2rem 0;
  padding: 1.2rem 1.35rem;
  background: #060708;
  border: 1px solid rgba(255,255,255,.07);
  border-radius: var(--radius-md);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.025);
}

.article-body pre code {
  padding: 0;
  background: transparent;
  border: 0;
  color: #e8edf0;
  font-size: .86rem;
  line-height: 1.7;
}

/* Horizontal rule */

.article-body hr {
  margin: 3rem 0;
  border: 0;
  border-top: 1px solid rgba(255,255,255,.07);
}

/* Embedded media */

.article-body iframe,
.article-body video {
  max-width: 100%;
  border: 0;
  border-radius: var(--radius-md);
}

.article-body .wp-block-embed {
  margin: 2rem 0;
}

/* ---------- ARTICLE IMAGE GRID ---------- */

.article-image-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin: 2.5rem 0;
}

.article-image-grid img {
  width: 100%;
  height: 18rem;
  object-fit: cover;
  border-radius: var(--radius-md);
  transition: transform .3s ease, filter .3s ease;
}

.article-image-grid img:hover {
  transform: scale(1.015);
  filter: brightness(1.08);
}

@media (max-width: 600px) {
  .article-image-grid {
    grid-template-columns: 1fr;
  }

  .article-image-grid img {
    height: auto;
  }
}

/* ---------- TAGS ---------- */

.article-tags {
  display: flex;
  flex-wrap: wrap;
  gap: .55rem;
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,.06);
}

.tag-pill {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: .35rem .8rem;
  background: var(--color-surface-container);
  border: 1px solid rgba(255,255,255,.07);
  border-radius: var(--radius-full);
  color: var(--color-on-surface-variant);
  font-family: var(--font-headline);
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
  transition: color .2s ease, border-color .2s ease, background .2s ease;
}

.tag-pill::before {
  content: "#";
  margin-right: .15rem;
  color: var(--color-primary);
}

.tag-pill:hover {
  background: var(--color-primary-container);
  border-color: var(--color-outline-glow);
  color: var(--color-primary-bright);
}

/* ---------- SIDEBAR ---------- */

.sidebar-col {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}

@media (min-width: 1100px) {
  .sidebar-col {
    position: sticky;
    top: 6rem;
  }
}

.sidebar-col > section {
  padding: 1.25rem;
  background: rgba(16,18,20,.72);
  border: 1px solid rgba(255,255,255,.055);
  border-radius: var(--radius-lg);
  box-shadow: 0 16px 40px rgba(0,0,0,.22);
}

.sidebar-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.15rem;
}

.sidebar-section-title {
  color: var(--color-on-surface);
  font-family: var(--font-headline);
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: -.025em;
}

.sidebar-section-header > span {
  color: var(--color-primary) !important;
}

/* ---------- RELATED ---------- */

.related-list {
  display: flex;
  flex-direction: column;
  gap: .7rem;
}

.related-item {
  display: grid;
  grid-template-columns: 82px minmax(0,1fr);
  gap: .8rem;
  padding: .6rem;
  border: 1px solid transparent;
  border-radius: var(--radius-md);
  transition: background .2s ease, border-color .2s ease, transform .2s ease;
}

.related-item:hover {
  background: var(--color-surface-container);
  border-color: rgba(255,255,255,.06);
  transform: translateY(-1px);
}

.related-item-thumb {
  width: 82px;
  height: 68px;
  overflow: hidden;
  border-radius: var(--radius-sm);
  background: var(--color-surface-bright);
}

.related-item-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .3s ease;
}

.related-item:hover .related-item-thumb img {
  transform: scale(1.06);
}

.related-item-title {
  display: -webkit-box;
  margin: .1rem 0 .35rem;
  overflow: hidden;
  color: var(--color-on-surface);
  font-family: var(--font-headline);
  font-size: .78rem;
  font-weight: 700;
  line-height: 1.35;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.related-item:hover .related-item-title {
  color: var(--color-primary);
}

.related-item-meta {
  margin: 0;
  color: var(--color-on-surface-muted);
  font-size: .65rem;
  line-height: 1.35;
}

/* ---------- TRENDING ---------- */

.trending-card {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 100% 0, rgba(240,165,21,.13), transparent 42%),
    var(--color-surface-container) !important;
}

.trending-card > div:first-child {
  display: flex;
  align-items: center;
  gap: .55rem;
}

.trending-card .material-symbols-outlined {
  color: var(--color-primary) !important;
}

.trending-list {
  display: flex;
  flex-direction: column;
  gap: .15rem;
  margin-top: 1rem;
}

.trending-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  padding: .7rem .2rem;
  border-bottom: 1px solid rgba(255,255,255,.05);
}

.trending-item:last-child {
  border-bottom: 0;
}

.trending-item-left {
  display: flex;
  align-items: center;
  gap: .65rem;
  min-width: 0;
}

.trending-dot {
  width: 7px;
  height: 7px;
  flex: 0 0 7px;
  border-radius: 50%;
  background: var(--color-primary);
  box-shadow: 0 0 12px var(--color-primary-glow);
}

.trending-dot.secondary {
  background: var(--color-on-surface-muted);
  box-shadow: none;
}

.trending-item-name {
  overflow: hidden;
  color: var(--color-on-surface);
  font-size: .8rem;
  font-weight: 650;
  text-overflow: ellipsis;
  white-space: nowrap;
  transition: color .2s ease, transform .2s ease;
}

.trending-item:hover .trending-item-name {
  color: var(--color-primary);
  transform: translateX(3px);
}

.trending-score {
  flex-shrink: 0;
  padding: .25rem .45rem;
  background: var(--color-primary-container);
  border: 1px solid rgba(240,165,21,.15);
  border-radius: .4rem;
  color: var(--color-primary-bright);
  font-family: var(--font-headline);
  font-size: .62rem;
  font-weight: 800;
}

.btn-explore {
  width: 100%;
  margin-top: 1.25rem;
  padding: .75rem 1rem;
  border: 1px solid rgba(240,165,21,.35);
  border-radius: var(--radius-full);
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dim));
  color: #171108;
  font-family: var(--font-headline);
  font-size: .78rem;
  font-weight: 800;
  cursor: pointer;
  box-shadow: var(--shadow-btn);
  transition: transform .2s ease, box-shadow .2s ease, filter .2s ease;
}

.btn-explore:hover {
  filter: brightness(1.06);
  transform: translateY(-2px);
  box-shadow: var(--shadow-primary-strong);
}

.btn-explore:active {
  transform: translateY(0);
}

/* ---------- NEWSLETTER ---------- */

.newsletter-card {
  position: relative;
  overflow: hidden;
  padding: 1.5rem !important;
  background:
    radial-gradient(circle at 100% 0, rgba(240,165,21,.2), transparent 45%),
    linear-gradient(145deg, #18140c, #0f1113) !important;
  border-color: rgba(240,165,21,.14) !important;
}

.newsletter-card-inner {
  position: relative;
  z-index: 2;
}

.newsletter-card h4 {
  margin-bottom: .5rem;
  color: var(--color-on-surface);
  font-family: var(--font-headline);
  font-size: 1.15rem;
  font-weight: 800;
}

.newsletter-card p {
  margin-bottom: 1.15rem;
  color: var(--color-on-surface-variant);
  font-size: .78rem;
  line-height: 1.6;
}

.newsletter-inputs {
  display: flex;
  flex-direction: column;
  gap: .6rem;
}

.newsletter-input {
  width: 100%;
  padding: .72rem .9rem;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: var(--radius-md);
  outline: none;
  background: rgba(0,0,0,.3);
  color: var(--color-on-surface);
  font-family: var(--font-body);
  font-size: .8rem;
  transition: border-color .2s ease, box-shadow .2s ease;
}

.newsletter-input::placeholder {
  color: var(--color-on-surface-muted);
}

.newsletter-input:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px var(--color-primary-glow);
}

.btn-subscribe {
  width: 100%;
  padding: .72rem 1rem;
  border: 0;
  border-radius: var(--radius-md);
  background: var(--color-primary);
  color: #171108;
  font-family: var(--font-headline);
  font-size: .78rem;
  font-weight: 800;
  cursor: pointer;
  transition: transform .2s ease, filter .2s ease, box-shadow .2s ease;
  box-shadow: var(--shadow-btn);
}

.btn-subscribe:hover {
  filter: brightness(1.06);
  transform: translateY(-1px);
}

.newsletter-glow {
  position: absolute;
  right: -50px;
  bottom: -70px;
  width: 170px;
  height: 170px;
  border-radius: 50%;
  background: var(--color-primary-glow-strong);
  filter: blur(45px);
  pointer-events: none;
}

/* ---------- AUTHOR BOX ---------- */

.author-section {
  margin-top: 3.5rem;
  padding: 1.5rem;
  background:
    linear-gradient(135deg, rgba(240,165,21,.045), transparent 50%),
    var(--color-surface-container);
  border: 1px solid rgba(255,255,255,.065);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
}

.author-section-inner {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.author-big-avatar {
  width: 68px;
  height: 68px;
  flex: 0 0 68px;
  overflow: hidden;
  border: 2px solid rgba(240,165,21,.3);
  border-radius: 50%;
  background: var(--color-surface-bright);
  box-shadow: 0 0 0 5px rgba(240,165,21,.05);
}

.author-big-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.author-info-block {
  flex: 1;
  min-width: 0;
}

.author-label {
  margin: 0 0 .2rem;
  color: var(--color-primary);
  font-family: var(--font-headline);
  font-size: .62rem;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.author-display-name {
  margin: 0 0 .5rem;
  color: var(--color-on-surface);
  font-family: var(--font-headline);
  font-size: 1.1rem;
  font-weight: 800;
}

.author-display-name a {
  transition: color .2s ease;
}

.author-display-name a:hover {
  color: var(--color-primary);
}

.author-bio {
  margin: 0 0 .9rem;
  color: var(--color-on-surface-variant);
  font-size: .84rem;
  line-height: 1.7;
}

.author-socials {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
}

.social-link {
  width: 31px;
  height: 31px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255,255,255,.06);
  border-radius: 50%;
  background: var(--color-surface-bright);
  transition: transform .2s ease, background .2s ease, border-color .2s ease;
}

.social-link:hover {
  transform: translateY(-2px);
  background: var(--color-primary-container);
  border-color: var(--color-outline-glow);
}

.social-link svg {
  width: 14px;
  height: 14px;
}

.author-footer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: .75rem;
  margin-top: 1.1rem;
  padding-top: .9rem;
  border-top: 1px solid rgba(255,255,255,.06);
  font-size: .7rem;
}

.author-posts-count {
  color: var(--color-on-surface-muted);
  font-weight: 600;
}

.view-all-link {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  color: var(--color-primary);
  font-family: var(--font-headline);
  font-weight: 800;
  transition: gap .2s ease, color .2s ease;
}

.view-all-link:hover {
  gap: .55rem;
  color: var(--color-primary-bright);
}

/* ---------- COMMENTS ---------- */

.comments-section {
  margin-top: 3.5rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,.07);
}

.comments-section #comments .comments-title,
.comments-section h2.comments-title,
.comments-section #respond h3#reply-title,
.comments-section #respond h2 {
  margin-bottom: 1.25rem;
  color: var(--color-on-surface);
  font-family: var(--font-headline);
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -.025em;
}

.comments-section .comment-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin: 0 0 2rem;
  padding: 0;
  list-style: none;
}

.comments-section .comment {
  display: flex;
  align-items: flex-start;
  gap: .75rem;
}

.comments-section .comment .comment-author img,
.comments-section .comment img.avatar {
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  border: 2px solid var(--color-surface-container);
  border-radius: 50%;
  object-fit: cover;
}

.comments-section .comment-body {
  flex: 1;
  min-width: 0;
  padding: .9rem 1rem;
  background: var(--color-surface-container);
  border: 1px solid rgba(255,255,255,.06);
  border-radius: var(--radius-md);
}

.comments-section .bypostauthor > .comment-body {
  border-left: 3px solid var(--color-primary);
}

.comments-section .comment-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: .3rem;
  margin-bottom: .45rem;
}

.comments-section .comment-author b,
.comments-section .comment-author .fn {
  color: var(--color-on-surface);
  font-family: var(--font-headline);
  font-size: .78rem;
  font-weight: 800;
}

.comments-section .bypostauthor .comment-author b::after {
  content: "Author";
  display: inline-block;
  margin-left: .4rem;
  padding: .13rem .4rem;
  border-radius: var(--radius-full);
  background: var(--color-primary-container);
  color: var(--color-on-primary-container);
  font-family: var(--font-headline);
  font-size: .55rem;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.comments-section .comment-metadata a,
.comments-section .comment-meta time {
  color: var(--color-on-surface-muted);
  font-size: .64rem;
}

.comments-section .comment-content p {
  margin-bottom: .6rem;
  color: var(--color-on-surface-variant);
  font-size: .82rem;
  line-height: 1.65;
}

.comments-section .comment-content p:last-child {
  margin-bottom: 0;
}

.comments-section .comment-reply-link {
  display: inline-block;
  margin-top: .4rem;
  color: var(--color-primary);
  font-family: var(--font-headline);
  font-size: .65rem;
  font-weight: 800;
}

.comments-section .children {
  display: flex;
  flex-direction: column;
  gap: .75rem;
  margin: .75rem 0 0 2.75rem;
  padding: 0;
  list-style: none;
}

/* Comment form */

.comments-section #respond {
  margin-top: 2.5rem;
  padding-top: 1.75rem;
  border-top: 1px solid rgba(255,255,255,.06);
}

.comments-section .comment-form {
  display: flex;
  flex-direction: column;
  gap: .75rem;
}

.comments-section .comment-form input[type="text"],
.comments-section .comment-form input[type="email"],
.comments-section .comment-form input[type="url"],
.comments-section .comment-form textarea {
  width: 100%;
  padding: .8rem .95rem;
  border: 1px solid rgba(255,255,255,.07);
  border-radius: var(--radius-md);
  outline: none;
  background: var(--color-surface-container);
  color: var(--color-on-surface);
  font-family: var(--font-body);
  font-size: .85rem;
  transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}

.comments-section .comment-form textarea {
  min-height: 140px;
  resize: vertical;
}

.comments-section .comment-form input:focus,
.comments-section .comment-form textarea:focus {
  background: var(--color-surface-container-high);
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px var(--color-primary-glow);
}

.comments-section .comment-form input::placeholder,
.comments-section .comment-form textarea::placeholder {
  color: var(--color-on-surface-muted);
}

.comments-section .comment-form #submit {
  padding: .75rem 1.4rem;
  border: 0;
  border-radius: var(--radius-full);
  background: var(--color-primary);
  color: #171108;
  font-family: var(--font-headline);
  font-size: .78rem;
  font-weight: 800;
  cursor: pointer;
  box-shadow: var(--shadow-btn);
  transition: transform .2s ease, filter .2s ease;
}

.comments-section .comment-form #submit:hover {
  filter: brightness(1.06);
  transform: translateY(-1px);
}

.comments-section .must-log-in,
.comments-section .logged-in-as {
  color: var(--color-on-surface-variant);
  font-size: .78rem;
}

.comments-section .must-log-in a,
.comments-section .logged-in-as a {
  color: var(--color-primary);
  font-weight: 700;
}

/* ---------- ACCESSIBILITY ---------- */

.article-body a:focus-visible,
.category-item a:focus-visible,
.tag-pill:focus-visible,
.related-item:focus-visible,
.view-all-link:focus-visible,
.btn-explore:focus-visible,
.btn-subscribe:focus-visible,
.social-link:focus-visible,
.comments-section a:focus-visible,
.comments-section input:focus-visible,
.comments-section textarea:focus-visible,
.comments-section button:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 3px;
}

/* ---------- MOBILE ---------- */

@media (max-width: 767px) {
  .page-shell {
    width: min(100% - 24px, 1400px);
    padding-top: 5.5rem;
    padding-bottom: 3rem;
    gap: 2.5rem;
  }

  .post-meta-row {
    align-items: stretch;
    flex-direction: column;
  }

  .author-card {
    width: fit-content;
    max-width: 100%;
  }

  .post-date {
    width: fit-content;
  }

  .article-body {
    font-size: 1rem;
    line-height: 1.8;
  }

  .article-body p:first-child::first-letter {
    font-size: 3.5rem;
  }

  .author-section-inner {
    flex-direction: column;
  }

  .author-big-avatar {
    width: 60px;
    height: 60px;
    flex-basis: 60px;
  }

  .comments-section .children {
    margin-left: 1rem;
  }
}

/* ---------- REDUCE MOTION ---------- */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ---------- AUTHOR CARDS: role label + SEO color ----------
   Add right after the existing ".author-avatar img { ... }" rule
   in the single post CSS. Colors match the game page:
   amber = publisher, violet = SEO manager. */

.author-card {
    --seo-color: #a78bfa;
}

.author-role {
    margin: 0 0 0.1rem;
    color: var(--color-on-surface-muted);
    font-size: 0.64rem;
    font-weight: 500;
    line-height: 1.2;
}

/* SEO manager (a different person than the publisher) */
.author-card--seo .author-avatar {
    border-color: color-mix(in srgb, var(--seo-color) 60%, transparent);
}

/* Same person is publisher + SEO manager: amber ring inside, violet outside */
.author-card--merged .author-avatar {
    box-shadow:
        0 0 0 2px var(--color-surface-container),
        0 0 0 4px var(--seo-color);
}
