/* ============================================================
   SAUNA REVIEWER — POST-SPECIFIC STYLES
   Article layout, sidebar, TOC, product cards, FAQ, author box
   ============================================================ */

/* ============================================================
   PAGE LAYOUT
   ============================================================ */
.page-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 32px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 24px 0;
}

/* ============================================================
   ARTICLE SECTION
   ============================================================ */
/* ---------- ARTICLE HERO: GLASS PILL WITH ORANGE TINT ---------- */
.article-hero {
  background: transparent;
  color: var(--charcoal);
  padding: 0 0 28px;
  text-align: center;
  border-radius: 0;
  margin-top: 40px;
  margin-bottom: 28px;
  position: relative;
}
.article-hero .article-hero-content {
  background: rgba(245, 166, 35, .08);
  padding: 40px 36px 36px;
  border-radius: 50px;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(245, 166, 35, .18);
  box-shadow:
    0 4px 24px rgba(245,166,35,.10),
    0 1px 3px rgba(0,0,0,.04),
    inset 0 1px 0 rgba(255,255,255,.7),
    inset 0 -1px 2px rgba(245,166,35,.06);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
/* Glass shine highlight */
.article-hero .article-hero-content::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 50%;
  background: linear-gradient(180deg, rgba(255,255,255,.45) 0%, rgba(255,255,255,.0) 100%);
  border-radius: 50px 50px 0 0;
  pointer-events: none;
}
/* Top edge shimmer */
.article-hero .article-hero-content::after {
  content: '';
  position: absolute;
  top: 8px;
  left: 20%;
  right: 20%;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.8), transparent);
  border-radius: 2px;
  pointer-events: none;
}

.article-hero .article-category {
  display: inline-block;
  background: rgba(245, 166, 35, .14);
  color: var(--orange);
  padding: 5px 16px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 14px;
  border: 1px solid rgba(245, 166, 35, .2);
  position: relative;
  z-index: 1;
}
.article-hero .article-category a {
  color: var(--orange);
}
.article-hero .breadcrumb {
  font-size: 13px;
  color: var(--gray-500);
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  position: relative;
  z-index: 1;
}
.article-hero .breadcrumb a {
  color: var(--orange);
  transition: color var(--transition);
}
.article-hero .breadcrumb a:hover {
  color: var(--orange-dark);
}
.article-hero h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(24px, 3.2vw, 36px);
  margin-bottom: 16px;
  line-height: 1.3;
  color: var(--charcoal);
  position: relative;
  z-index: 1;
}
.article-hero .article-meta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  font-size: 14px;
  color: var(--gray-600);
  position: relative;
  z-index: 1;
}
.article-hero .article-meta img {
  border: 2px solid rgba(245, 166, 35, .25);
}
.article-hero .article-meta strong {
  color: var(--charcoal);
}
.article-hero .meta-item {
  display: flex;
  align-items: center;
  gap: 6px;
}

.article-body {
  padding: 48px;
}
.article-body h2 {
  font-family: 'Playfair Display', serif;
  font-size: 26px;
  color: var(--charcoal);
  margin: 40px 0 16px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--orange-light);
}
.article-body h2:first-child { margin-top: 0; }
.article-body h3 {
  font-size: 20px;
  font-weight: 700;
  color: var(--charcoal);
  margin: 32px 0 12px;
}
.article-body p {
  font-size: 16px;
  color: var(--gray-700);
  line-height: 1.8;
  margin-bottom: 18px;
}
.article-body ul, .article-body ol {
  margin: 0 0 18px 24px;
}
.article-body li {
  font-size: 16px;
  color: var(--gray-700);
  line-height: 1.8;
  margin-bottom: 6px;
}
.article-body a {
  color: var(--orange);
  font-weight: 500;
}
.article-body a:hover {
  text-decoration: underline;
}

/* ============================================================
   TABLE OF CONTENTS
   ============================================================ */
.toc {
  background: var(--gray-100);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 24px 28px;
  margin-bottom: 32px;
}
.toc-title {
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--gray-500);
  margin-bottom: 12px;
}
.toc ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.toc li {
  margin-bottom: 8px;
}
.toc a {
  font-size: 15px;
  color: var(--gray-700);
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: color var(--transition);
}
.toc a::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--orange);
  flex-shrink: 0;
}
.toc a:hover {
  color: var(--orange);
  text-decoration: none;
}

/* ============================================================
   PRODUCT CARDS
   ============================================================ */
.product-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin: 24px 0;
}
.product-card {
  display: flex;
  align-items: center;
  gap: 20px;
  background: var(--gray-100);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 20px;
  transition: box-shadow var(--transition), transform var(--transition);
}
.product-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.product-card-img {
  width: 100px;
  height: 100px;
  flex-shrink: 0;
  background: var(--white);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 48px;
}
.product-card-body {
  flex: 1;
}
.product-card-body h4 {
  font-size: 16px;
  font-weight: 700;
  color: var(--charcoal);
  margin-bottom: 4px;
}
.product-card-body p {
  font-size: 13px;
  color: var(--gray-500);
  margin-bottom: 10px;
  line-height: 1.5;
}
.product-card-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--orange);
  color: var(--white);
  border: none;
  padding: 8px 18px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 700;
  transition: background var(--transition);
}
.product-card-cta:hover {
  background: var(--orange-dark);
}

/* CHECK PRICE BUTTON */
.check-price-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--orange);
  color: var(--white);
  border: none;
  padding: 14px 32px;
  border-radius: 10px;
  font-size: 16px;
  font-weight: 700;
  transition: all var(--transition);
  margin: 24px 0;
}
.check-price-btn:hover {
  background: var(--orange-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(217,123,43,.3);
}

/* PRODUCT HERO IMAGE */
.product-hero-img {
  text-align: center;
  margin: 24px 0;
  padding: 32px;
  background: var(--gray-100);
  border-radius: var(--radius);
}
.product-hero-img img {
  max-height: 350px;
  margin: 0 auto;
  object-fit: contain;
}

/* ============================================================
   FAQ ACCORDION
   ============================================================ */
.faq-section {
  margin-top: 40px;
}
.faq-item {
  border: 1px solid var(--gray-200);
  border-radius: 10px;
  margin-bottom: 10px;
  overflow: hidden;
  transition: box-shadow var(--transition);
}
.faq-item:hover {
  box-shadow: var(--shadow-sm);
}
.faq-question {
  width: 100%;
  background: var(--white);
  border: none;
  padding: 18px 20px;
  font-size: 15px;
  font-weight: 600;
  text-align: left;
  color: var(--charcoal);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  transition: background var(--transition);
  cursor: pointer;
}
.faq-question:hover {
  background: var(--gray-100);
}
.faq-chevron {
  font-size: 12px;
  color: var(--gray-500);
  transition: transform var(--transition);
  flex-shrink: 0;
}
.faq-item.active .faq-chevron {
  transform: rotate(180deg);
}
.faq-answer {
  display: none;
  padding: 0 20px 18px;
  font-size: 15px;
  color: var(--gray-700);
  line-height: 1.7;
}
.faq-item.active .faq-answer {
  display: block;
}

/* ============================================================
   AUTHOR BOX
   ============================================================ */
.author-box {
  display: flex;
  gap: 20px;
  background: var(--gray-100);
  border-radius: var(--radius);
  padding: 28px;
  margin-top: 40px;
}
.author-box img {
  width: 72px;
  height: 72px;
  border-radius: 14px;
  object-fit: cover;
  flex-shrink: 0;
}
.author-box h4 {
  font-size: 16px;
  font-weight: 700;
  color: var(--charcoal);
  margin-bottom: 4px;
}
.author-box h4 a {
  color: var(--orange);
}
.author-box p {
  font-size: 14px;
  color: var(--gray-500);
  line-height: 1.7;
  margin-bottom: 0;
}

/* ============================================================
   RELATED POSTS
   ============================================================ */
.related-posts {
  margin-top: 40px;
}
.related-posts h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--charcoal);
  margin-bottom: 20px;
}
.related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.related-card {
  background: var(--gray-100);
  border-radius: 10px;
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition);
}
.related-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}
.related-card-img {
  height: 120px;
  background: linear-gradient(135deg, #3d2a10, #1a1207);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 40px;
}
.related-card-body {
  padding: 14px;
}
.related-card-tag {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--orange);
  letter-spacing: .5px;
  margin-bottom: 4px;
}
.related-card-body h4 {
  font-size: 14px;
  font-weight: 700;
  color: var(--charcoal);
  line-height: 1.4;
}

/* ============================================================
   SIDEBAR
   ============================================================ */
/* Ensure grid parent doesn't break sticky */
.page-layout {
  overflow: visible !important;
}

.sidebar {
  position: -webkit-sticky !important;
  position: sticky !important;
  top: 120px !important;
  align-self: start !important;
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 40px;
  max-height: calc(100vh - 140px);
  overflow-y: auto;
  overflow-x: visible;
  scrollbar-width: thin;
  scrollbar-color: var(--gray-300) transparent;
  min-width: 0;
}
.sidebar::-webkit-scrollbar { width: 4px; }
.sidebar::-webkit-scrollbar-thumb { background: var(--gray-300); border-radius: 4px; }
.sidebar::-webkit-scrollbar-track { background: transparent; }

/* Make sure no ancestor has overflow:hidden which breaks sticky */
#page, #wrapper, .wrapper, .site, #site, .site-content, #content, .content-area, main, #main,
.space-box, .space-page, .space-content, .space-page-content,
[class*="space-page"], [class*="space-content"], [class*="space-box"] {
  overflow: visible !important;
}

/* SIDEBAR WIDGET */
.sidebar-widget {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  min-width: 0;
  width: 100%;
  flex-shrink: 0;
}

/* COLLAPSIBLE SIDEBAR SECTION */
.sidebar-section-toggle {
  width: 100%;
  background: none;
  border: none;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: var(--charcoal);
  cursor: pointer;
  border-bottom: 1px solid var(--gray-200);
  transition: background var(--transition);
}
.sidebar-section-toggle:hover {
  background: var(--gray-100);
}
.sidebar-section-toggle .chevron {
  font-size: 10px;
  color: var(--gray-500);
  transition: transform var(--transition);
}
.sidebar-section-toggle.open .chevron {
  transform: rotate(180deg);
}

.sidebar-links {
  list-style: none;
  margin: 0;
  padding: 0;
  max-height: 0;
  overflow: hidden;
  transition: max-height .35s ease;
}
.sidebar-links.open {
  max-height: 800px;
}
.sidebar-links li {
  border-bottom: 1px solid var(--gray-100);
}
.sidebar-links li:last-child {
  border-bottom: none;
}
.sidebar-links a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  font-size: 13.5px;
  color: var(--gray-700);
  font-weight: 500;
  transition: all var(--transition);
  word-break: break-word;
  min-width: 0;
  line-height: 1.4;
}
.sidebar-links a:hover {
  background: var(--orange-light);
  color: var(--orange);
  padding-left: 24px;
}
.sidebar-links a::before {
  content: '→';
  font-size: 11px;
  color: var(--gray-300);
  transition: color var(--transition);
}
.sidebar-links a:hover::before {
  color: var(--orange);
}

/* HOT SELLING - SPECIAL STYLE */
.hot-selling .sidebar-links a {
  font-weight: 600;
}
.hot-selling .sidebar-links a::before {
  content: '🔥';
  font-size: 12px;
}

/* CATEGORY DROPDOWN */
.sidebar-select {
  padding: 16px 20px;
}
.sidebar-select label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--gray-500);
  margin-bottom: 8px;
}
.sidebar-select select {
  width: 100%;
  padding: 10px 14px;
  border: 2px solid var(--gray-200);
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  color: var(--dark);
  background: var(--white);
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23777' stroke-width='2' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  cursor: pointer;
  transition: border-color var(--transition);
}
.sidebar-select select:focus {
  outline: none;
  border-color: var(--orange);
}

/* SIDEBAR CTA */
.sidebar-cta {
  background: linear-gradient(135deg, #1a1207, #3d2a10);
  color: var(--white);
  padding: 28px 24px;
  text-align: center;
  border-radius: var(--radius);
  flex-shrink: 0;
}
.sidebar-cta h3 {
  font-family: 'Playfair Display', serif;
  font-size: 20px;
  margin-bottom: 8px;
}
.sidebar-cta p {
  font-size: 14px;
  color: rgba(255,255,255,.65);
  margin-bottom: 16px;
  line-height: 1.6;
}
.sidebar-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--orange);
  color: var(--white);
  border: none;
  padding: 12px 24px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 700;
  transition: background var(--transition);
}
.sidebar-cta-btn:hover {
  background: var(--orange-dark);
}

/* ============================================================
   FINDER MODAL
   ============================================================ */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.55);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 9999;
  align-items: center;
  justify-content: center;
  padding: 24px;
  animation: fadeIn .25s ease;
}
.modal-overlay.active {
  display: flex;
}

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes slideUp { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: translateY(0); } }

.modal {
  background: var(--white);
  border-radius: 16px;
  box-shadow: 0 24px 80px rgba(0,0,0,.25);
  width: 100%;
  max-width: 640px;
  max-height: 90vh;
  overflow-y: auto;
  animation: slideUp .3s ease;
}
.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 28px 20px;
  border-bottom: 1px solid var(--gray-200);
}
.modal-header h2 {
  font-family: 'Playfair Display', serif;
  font-size: 24px;
  color: var(--charcoal);
  margin: 0;
}
.modal-close {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--gray-100);
  border: none;
  font-size: 20px;
  color: var(--gray-500);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
  flex-shrink: 0;
  cursor: pointer;
}
.modal-close:hover {
  background: #e8e8e8;
  color: var(--charcoal);
}

.modal-body {
  padding: 28px;
}
.modal-body p {
  font-size: 15px;
  color: var(--gray-500);
  margin-bottom: 24px;
  line-height: 1.6;
}

.modal-filters {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.modal-filter label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: var(--gray-500);
  margin-bottom: 6px;
}
.modal-filter select {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid var(--gray-200);
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  color: var(--dark);
  background: var(--white);
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23777' stroke-width='2' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  cursor: pointer;
  transition: border-color var(--transition);
}
.modal-filter select:focus {
  outline: none;
  border-color: var(--orange);
}

.modal-footer {
  padding: 20px 28px 28px;
  display: flex;
  gap: 12px;
}
.modal-search-btn {
  flex: 1;
  background: var(--orange);
  color: var(--white);
  border: none;
  padding: 14px 24px;
  border-radius: 10px;
  font-size: 16px;
  font-weight: 700;
  transition: all var(--transition);
  cursor: pointer;
}
.modal-search-btn:hover {
  background: var(--orange-dark);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(217,123,43,.3);
}
.modal-reset-btn {
  background: var(--gray-100);
  color: var(--gray-700);
  border: none;
  padding: 14px 20px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  transition: all var(--transition);
  cursor: pointer;
}
.modal-reset-btn:hover {
  background: var(--gray-200);
}

/* ============================================================
   BACK TO TOP
   ============================================================ */
.back-to-top {
  position: fixed;
  bottom: 32px;
  right: 32px;
  width: 48px;
  height: 48px;
  background: var(--orange);
  color: var(--white);
  border: none;
  border-radius: 12px;
  font-size: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(217,123,43,.35);
  cursor: pointer;
  z-index: 999;
  opacity: 0;
  transform: translateY(16px);
  pointer-events: none;
  transition: opacity .3s ease, transform .3s ease, background .2s ease;
}
.back-to-top.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.back-to-top:hover {
  background: var(--orange-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(217,123,43,.45);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 960px) {
  .page-layout {
    grid-template-columns: 1fr;
  }
  .sidebar {
    position: static;
  }
  .nav {
    display: none;
  }
  .related-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 600px) {
  .article-body {
    padding: 28px 20px;
  }
  .article-hero {
    padding: 0 0 20px;
    margin-top: 20px;
  }
  .article-hero .article-hero-content {
    padding: 28px 20px 24px;
    border-radius: 32px;
  }
  .related-grid {
    grid-template-columns: 1fr;
  }
  .author-box {
    flex-direction: column;
    text-align: center;
    align-items: center;
  }
  .product-card {
    flex-direction: column;
    text-align: center;
  }
  .modal-filters {
    grid-template-columns: 1fr;
  }
  .modal {
    margin: 12px;
  }
}

/* ============================================================
   CATEGORY ARCHIVE GRID
   ============================================================ */
.category-posts-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.category-post-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform .3s ease, box-shadow .3s ease;
  display: flex;
  flex-direction: column;
}
.category-post-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.category-post-img {
  height: 180px;
  overflow: hidden;
  background: linear-gradient(135deg, #2a1a0a, #1a1207);
  display: flex;
  align-items: center;
  justify-content: center;
}
.category-post-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
}
.category-post-card:hover .category-post-img img {
  transform: scale(1.05);
}
.category-post-placeholder {
  font-size: 48px;
}
.category-post-body {
  padding: 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.category-post-date {
  font-size: 12px;
  color: var(--gray-500);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .5px;
  margin-bottom: 6px;
}
.category-post-body h3 {
  font-size: 17px;
  font-weight: 700;
  color: var(--charcoal);
  line-height: 1.4;
  margin-bottom: 8px;
}
.category-post-body p {
  font-size: 14px;
  color: var(--gray-500);
  line-height: 1.6;
  margin-bottom: 12px;
  flex: 1;
}
.category-post-read {
  font-size: 14px;
  font-weight: 700;
  color: var(--orange);
  transition: color .2s;
}
.category-post-card:hover .category-post-read {
  color: var(--orange-dark);
}

/* Category Pagination */
.category-pagination {
  margin-top: 40px;
  text-align: center;
}
.category-pagination .nav-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.category-pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 12px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--gray-700);
  background: var(--white);
  box-shadow: var(--shadow-sm);
  transition: all .2s ease;
}
.category-pagination .page-numbers:hover {
  background: var(--orange-light);
  color: var(--orange);
}
.category-pagination .page-numbers.current {
  background: var(--orange);
  color: var(--white);
}

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