/* Glow Curated - Single Post Styles */

/* Reading Progress Bar */
.reading-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--color-bg-alt);
  z-index: 1000;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.reading-progress__bar {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--color-primary), #c9954d);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.1s linear;
}

/* Blog Post Hero */
.blog-hero {
  position: relative !important;
  min-height: clamp(400px, 50vw, 650px) !important;
  overflow: hidden !important;
  border-bottom: 1px solid rgba(0, 0, 0, .06);
  background: #fff;
  display: block !important;
  margin: 0 !important;
}

@media (max-width: 980px) {
  .blog-hero {
    min-height: clamp(350px, 48vw, 550px) !important;
  }
}

@media (max-width: 640px) {
  .blog-hero {
    min-height: clamp(480px, 90vh, 750px) !important;
  }
}

.blog-hero .hero-image-wrapper {
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  width: 100% !important;
  height: 100% !important;
  margin: 0 !important;
  overflow: hidden !important;
  z-index: 0 !important;
}

.blog-hero .hero-image-wrapper img,
.blog-hero .hero-image,
.blog-hero img.wp-post-image {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  min-width: 100% !important;
  min-height: 100% !important;
  object-fit: cover !important;
  object-position: center center !important;
  border-radius: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  float: none !important;
  display: block !important;
  transform: scale(1.02);
  transition: transform .35s ease;
}

.blog-hero .hero-image-wrapper:hover img,
.blog-hero .hero-image-wrapper:hover .hero-image {
  transform: scale(1.04);
}

@media (max-width: 767px) {
  .blog-hero .hero-image-wrapper:hover img,
  .blog-hero .hero-image-wrapper:hover .hero-image {
    transform: scale(1.02);
  }
}

.blog-hero .hero-overlay {
  position: absolute !important;
  inset: 0 !important;
  z-index: 1 !important;
  background: linear-gradient(180deg, rgba(0, 0, 0, .1) 0%, rgba(0, 0, 0, .34) 48%, rgba(0, 0, 0, .62) 100%) !important;
  pointer-events: none !important;
}

.blog-hero .hero-content {
  position: relative !important;
  z-index: 2 !important;
  width: 100% !important;
  margin: 0 !important;
}

.blog-hero .hero-content.with-image {
  position: absolute !important;
  bottom: 0 !important;
  left: 0 !important;
  right: 0 !important;
  width: 100% !important;
  padding: 0 !important;
  margin: 0 !important;
  min-height: auto !important;
}

.blog-hero .hero-content.with-image .container {
  padding: clamp(16px, 3vw, 32px) clamp(16px, 3vw, 28px) clamp(24px, 4vw, 40px) !important;
}

@media (max-width: 640px) {
  .blog-hero .hero-content.with-image .container {
    padding: clamp(12px, 2.5vw, 24px) clamp(12px, 2.5vw, 20px) clamp(60px, 8vw, 80px) !important;
  }

  .blog-hero .hero-content.with-image h1 {
    font-size: clamp(1.6rem, 5vw, 2.4rem) !important;
  }

  .blog-hero .hero-content.with-image .lede {
    margin-bottom: clamp(20px, 4vw, 32px) !important;
    font-size: clamp(0.9rem, 3vw, 1rem) !important;
    line-height: 1.5 !important;
  }

  .blog-hero .hero-content.with-image .meta {
    margin-bottom: clamp(16px, 3vw, 24px) !important;
  }

  .blog-hero .hero-content.with-image .share {
    margin-bottom: clamp(12px, 2vw, 20px) !important;
  }
}

/* Tablet adjustments */
@media (max-width: 980px) and (min-width: 641px) {
  .blog-hero .hero-content.with-image .container {
    padding: clamp(16px, 3vw, 28px) clamp(16px, 3vw, 24px) clamp(32px, 5vw, 48px) !important;
  }
}

/* Hero content styling */
.blog-hero .hero-content.with-image h1,
.blog-hero .hero-content.with-image .eyebrow,
.blog-hero .hero-content.with-image .lede,
.blog-hero .hero-content.with-image .meta,
.blog-hero .hero-content.with-image .breadcrumb {
  color: #fff !important;
  text-shadow: 0 2px 12px rgba(0, 0, 0, .55), 0 1px 4px rgba(0, 0, 0, .45) !important;
}

.blog-hero .hero-content.with-image .breadcrumb a {
  color: #fff !important;
  border-bottom-color: rgba(255, 255, 255, .45) !important;
}

.blog-hero .hero-content.with-image .breadcrumb a:hover {
  border-bottom-color: rgba(255, 255, 255, .85) !important;
}

.blog-hero .hero-content.with-image .share .share-btn {
  background: rgba(255, 255, 255, .92) !important;
  border-color: rgba(255, 255, 255, .85) !important;
  color: #2c2c2c !important;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.blog-hero .hero-content.with-image .share .share-btn:hover {
  background: rgba(255, 255, 255, 1) !important;
  border-color: rgba(255, 255, 255, 1) !important;
}

.blog-hero .hero-content.text-only {
  position: relative !important;
  padding: clamp(28px, 5vw, 56px) 0 clamp(16px, 3vw, 28px) !important;
  margin: 0 !important;
}

@media (max-width: 767px) {
  .blog-hero .hero-content.text-only {
    padding: clamp(20px, 4vw, 40px) 0 clamp(12px, 2.5vw, 20px) !important;
  }
}

/* Hero text elements */
.hero-content .breadcrumb {
  margin: 0 0 8px;
}

.hero-content .eyebrow {
  text-transform: uppercase;
  letter-spacing: .14em;
  font-weight: 600;
  color: #9a9a9a;
  font-size: clamp(0.75rem, 1.5vw, 0.85rem);
}

.hero-content h1 {
  margin: .25rem 0 .5rem;
  font-size: clamp(2rem, 3.2vw, 3rem);
  line-height: 1.12;
  font-family: var(--font-heading);
  letter-spacing: -.02em;
}

.hero-content .lede {
  color: #636363;
  max-width: 70ch;
  font-size: clamp(0.9375rem, 2vw, 1rem);
  line-height: 1.6;
}

.hero-content .meta {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
  color: #6e6e6e;
  font-size: clamp(0.8125rem, 1.5vw, 0.9rem);
}

.hero-content .meta .byline {
  display: inline-flex;
  gap: 8px;
  align-items: center;
}

.hero-content .meta .separator {
  opacity: 0.5;
}

/* Share Buttons */
.share {
  display: flex;
  gap: 8px;
  margin-top: 10px;
  flex-wrap: wrap;
}

.share .share-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid var(--color-border);
  border-radius: 50%;
  background: #fff;
  text-decoration: none;
  color: var(--color-text);
  cursor: pointer;
  transition: transform .2s, border-color .2s, background .2s, box-shadow .2s;
  min-height: 44px;
}

.share .share-btn:hover {
  transform: translateY(-2px);
  border-color: rgba(0, 0, 0, .14);
  background: var(--color-primary);
  color: white;
  box-shadow: var(--shadow-md);
}

.share .share-btn svg {
  display: block;
  width: 18px;
  height: 18px;
}

@media (max-width: 767px) {
  .share .share-btn {
    width: 36px;
    height: 36px;
  }

  .share .share-btn:hover {
    transform: translateY(-1px);
  }
}

/* Affiliate Disclaimer */
.affiliate-disclaimer {
  margin-top: clamp(32px, 4vw, 48px);
  margin-bottom: clamp(18px, 2.5vw, 28px);
  margin-left: auto;
  margin-right: auto;
  padding: clamp(16px, 2.5vw, 24px);
  max-width: 900px;
  background: linear-gradient(135deg, rgba(232, 155, 126, 0.04), rgba(232, 155, 126, 0.08));
  border: 1px solid rgba(232, 155, 126, 0.2);
  border-left: 4px solid var(--color-primary);
  border-radius: 12px;
  position: relative;
  font-size: clamp(0.875rem, 1.5vw, 0.95rem);
}

@media (max-width: 767px) {
  .affiliate-disclaimer {
    margin-top: clamp(24px, 3vw, 32px);
    margin-bottom: clamp(14px, 2vw, 20px);
    padding: clamp(12px, 2vw, 18px);
    border-radius: 10px;
  }
}

/* Article Body Layout */
.article-body.container {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: clamp(18px, 2.2vw, 28px);
  padding-block: clamp(26px, 3.2vw, 38px);
  max-width: var(--max-width);
}

@media (max-width: 980px) {
  .article-body.container {
    grid-template-columns: 1fr;
    padding-block: clamp(20px, 2.5vw, 28px);
  }
}

/* Sidebar */
.article-aside {
  position: sticky;
  top: 88px;
  align-self: start;
}

@media (max-width: 980px) {
  .article-aside {
    position: static;
    order: -1;
  }
}

/* Table of Contents */
.toc {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: 16px;
  padding: 14px;
  max-height: calc(100vh - 120px);
  overflow-y: auto;
}

@media (max-width: 767px) {
  .toc {
    padding: 12px;
  }
}

.toc strong {
  display: block;
  margin-bottom: 10px;
  font-size: clamp(0.9rem, 1.5vw, 0.96rem);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-text);
}

.toc ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.toc li {
  margin-bottom: 0;
}

.toc li a {
  color: var(--color-text);
  text-decoration: none;
  border-bottom: 1px dashed transparent;
  font-size: clamp(0.875rem, 1.5vw, 0.95rem);
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  padding: 4px 0;
  transition: var(--transition);
  line-height: 1.4;
}

.toc li a:hover {
  border-bottom-color: #bbb;
  color: var(--color-primary);
  padding-left: var(--spacing-xs);
}

.toc li.toc-sub {
  margin-left: 12px;
  font-size: .95em;
}

.toc li.toc-sub a {
  color: #666;
  font-size: 0.875rem;
}

/* Content Wrapper */
.content-wrapper {
  max-width: var(--content-width);
  margin: 0 auto;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: 16px;
  padding: clamp(18px, 2.2vw, 28px);
  box-shadow: 0 14px 30px rgba(0, 0, 0, .04);
}

@media (max-width: 767px) {
  .content-wrapper {
    padding: clamp(14px, 2vw, 20px);
    border-radius: 12px;
  }
}

/* Content Typography */
.content-wrapper > * {
  margin-bottom: var(--spacing-md);
}

.content-wrapper h2,
.content-wrapper h3,
.content-wrapper h4,
.content-wrapper h5,
.content-wrapper h6 {
  font-family: var(--font-heading);
  color: var(--color-text);
  line-height: 1.3;
  margin-top: var(--spacing-lg);
  margin-bottom: var(--spacing-md);
  font-weight: 700;
  scroll-margin-top: 80px;
}

.content-wrapper h2 {
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  letter-spacing: -.02em;
}

.content-wrapper h3 {
  font-size: clamp(1.5rem, 2.5vw, 1.875rem);
}

.content-wrapper h4 {
  font-size: clamp(1.25rem, 2vw, 1.5rem);
}

.content-wrapper p {
  font-size: 1.063rem;
  line-height: 1.75;
  color: var(--color-text);
  margin-bottom: var(--spacing-md);
  font-weight: 400;
}

.content-wrapper a {
  color: var(--color-primary);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
  transition: var(--transition);
}

.content-wrapper a:hover {
  color: #c9954d;
  text-decoration-thickness: 2px;
}

.content-wrapper ul,
.content-wrapper ol {
  padding-left: 1.5rem;
  margin-bottom: var(--spacing-md);
}

.content-wrapper li {
  font-size: 1.063rem;
  line-height: 1.75;
  margin-bottom: var(--spacing-xs);
  color: var(--color-text);
}

.content-wrapper blockquote {
  margin: var(--spacing-lg) 0;
  padding: var(--spacing-md) var(--spacing-md) var(--spacing-md) var(--spacing-lg);
  border-left: 4px solid var(--color-primary);
  background: var(--color-bg-alt);
  font-style: italic;
  color: var(--color-text-light);
  border-radius: 0 8px 8px 0;
}

@media (max-width: 767px) {
  .content-wrapper blockquote {
    padding: 0.8rem 1rem;
    margin: 1rem 0;
  }
}

.content-wrapper blockquote p {
  margin-bottom: var(--spacing-sm);
}

.content-wrapper img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: var(--shadow-md);
  margin: var(--spacing-lg) 0;
}

.content-wrapper figure {
  margin: var(--spacing-lg) 0;
}

.content-wrapper figcaption {
  font-size: 0.875rem;
  color: var(--color-text-light);
  text-align: center;
  margin-top: var(--spacing-sm);
  font-style: italic;
}

.content-wrapper pre {
  background: #282c34;
  color: #abb2bf;
  padding: var(--spacing-md);
  border-radius: 8px;
  overflow-x: auto;
  font-size: 0.875rem;
  line-height: 1.6;
  margin: var(--spacing-lg) 0;
}

.content-wrapper code {
  background: var(--color-accent);
  padding: 0.125rem 0.375rem;
  border-radius: 4px;
  font-size: 0.875em;
  font-family: 'Monaco', 'Courier New', monospace;
}

.content-wrapper pre code {
  background: transparent;
  padding: 0;
}

.content-wrapper hr {
  border: none;
  height: 1px;
  background: var(--color-border);
  margin: var(--spacing-xl) 0;
}

.content-wrapper table {
  width: 100%;
  border-collapse: collapse;
  margin: var(--spacing-lg) 0;
  font-size: 0.938rem;
}

.content-wrapper th,
.content-wrapper td {
  padding: var(--spacing-sm);
  text-align: left;
  border-bottom: 1px solid var(--color-border);
}

.content-wrapper th {
  font-weight: 700;
  background: var(--color-bg-alt);
  color: var(--color-text);
}

.content-wrapper tr:hover {
  background: var(--color-bg-alt);
}

.content-wrapper .wp-block-pullquote {
  border: 1px solid var(--color-border);
  border-radius: 14px;
  padding: 18px;
}

@media (max-width: 767px) {
  .content-wrapper .wp-block-pullquote {
    padding: 14px;
    border-radius: 10px;
  }

  .content-wrapper p,
  .content-wrapper li {
    font-size: 1rem;
  }

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

  .content-wrapper h3 {
    font-size: 1.25rem;
  }
}

/* Tags */
.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: var(--spacing-xl);
  padding-top: var(--spacing-lg);
  border-top: 1px solid var(--color-border);
}

.tag-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  background: var(--color-accent);
  color: var(--color-text);
  text-decoration: none;
  border-radius: 20px;
  font-size: clamp(0.8125rem, 1.5vw, 0.875rem);
  font-weight: 600;
  transition: var(--transition);
  border: 1px solid var(--color-border);
  min-height: 44px;
}

.tag-pill:hover {
  background: var(--color-primary);
  color: white;
  border-color: var(--color-primary);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

@media (max-width: 767px) {
  .tag-pill {
    padding: 6px 10px;
    min-height: 40px;
  }
}

/* Related Products */
.related-products {
  margin-top: 34px;
  max-width: var(--max-width);
  padding: var(--spacing-xl) var(--spacing-md);
  background: var(--color-bg-alt);
  border-radius: 12px;
  grid-column: 1 / -1;
}

.related-products h2 {
  font-family: var(--font-heading);
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  text-align: center;
  margin-bottom: var(--spacing-lg);
  color: var(--color-text);
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: clamp(14px, 2vw, 22px);
}

@media (max-width: 640px) {
  .product-grid {
    grid-template-columns: 1fr;
    gap: clamp(12px, 2vw, 18px);
  }

  .related-products {
    padding: var(--spacing-lg) var(--spacing-md);
  }
}

/* Related Posts */
.related-posts {
  margin-top: 34px;
  max-width: var(--max-width);
  padding: var(--spacing-xl) 0;
  border-top: 2px solid var(--color-border);
  grid-column: 1 / -1;
}

.related-posts h2 {
  font-family: var(--font-heading);
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  text-align: center;
  margin-bottom: var(--spacing-lg);
  color: var(--color-text);
}

.related-posts .related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: clamp(14px, 2vw, 22px);
}

@media (max-width: 640px) {
  .related-posts {
    margin-top: 24px;
  }

  .related-posts .related-grid {
    grid-template-columns: 1fr;
    gap: clamp(12px, 2vw, 18px);
  }
}

.related-card {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: 16px;
  overflow: hidden;
  transition: transform .2s, box-shadow .2s, border-color .2s;
  box-shadow: var(--shadow-sm);
}

.related-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(0, 0, 0, .1);
}

@media (max-width: 767px) {
  .related-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, .06);
  }
}

.related-card__media {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #f6f6f6;
}

.related-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.related-card:hover .related-card__media img {
  transform: scale(1.05);
}

.related-card__title {
  padding: 12px 14px;
  margin: 0;
}

.related-card__title a {
  color: var(--color-text);
  text-decoration: none;
  font-size: clamp(0.9375rem, 1.5vw, 1rem);
  font-weight: 600;
  line-height: 1.4;
  display: block;
  transition: var(--transition);
}

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

/* Post Navigation */
.post-navigation {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--spacing-md);
  max-width: var(--max-width);
  margin: var(--spacing-xl) auto;
  padding: var(--spacing-xl) var(--spacing-md) 0;
  border-top: 2px solid var(--color-border);
}

@media (min-width: 768px) {
  .post-navigation {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 767px) {
  .post-navigation {
    margin: 24px auto 8px;
  }
}

.nav-previous,
.nav-next {
  display: block;
  padding: var(--spacing-md);
  background: var(--color-bg-alt);
  border-radius: 8px;
  text-decoration: none;
  transition: var(--transition);
  border: 1px solid var(--color-border);
  min-height: 84px;
}

.nav-previous:hover,
.nav-next:hover {
  background: var(--color-bg);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
  border-color: rgba(0, 0, 0, .14);
}

@media (max-width: 767px) {
  .nav-previous,
  .nav-next {
    min-height: 72px;
  }

  .nav-previous:hover,
  .nav-next:hover {
    transform: translateY(-1px);
  }
}

.nav-next {
  text-align: right;
}

.nav-label {
  display: block;
  font-size: clamp(0.7rem, 1.5vw, 0.78rem);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-text-light);
  margin-bottom: var(--spacing-xs);
  font-weight: 600;
}

.nav-title {
  display: block;
  font-size: clamp(0.9375rem, 1.5vw, 1rem);
  color: var(--color-text);
  font-weight: 700;
  line-height: 1.4;
}

.nav-previous:hover .nav-title,
.nav-next:hover .nav-title {
  color: var(--color-primary);
}

/* Sticky header & page offset */
.single-post .site-main,
.page .site-main {
  padding-top: var(--gc-header-h);
}

@media (max-width: 767px) {
  .single-post .blog-hero .hero-content.with-image {
    top: var(--gc-header-h) !important;
  }
}

/* Alignment & wide blocks */
@media (max-width: 782px) {
  .alignfull, .alignwide {
    margin-left: 0;
    margin-right: 0;
    max-width: 100%;
  }
}

/* Animation hooks */
[data-animate] {
  opacity: 1;
  transform: none;
  transition: opacity .5s var(--transition), transform .6s var(--transition);
}

[data-animate].is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  [data-animate] {
    transition: none;
  }
}