/* ONION Gaming Club - Blog & Guides Styles */
.blog-hero {
  padding: 130px 5vw 60px;
  text-align: center;
  background: radial-gradient(circle at 50% 0%, rgba(199, 90, 246, 0.22) 0%, rgba(16, 8, 26, 0) 70%);
}

.blog-container {
  max-width: 1240px;
  margin: 0 auto;
}

.blog-eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: #c75af6;
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.blog-hero h1 {
  font-size: clamp(2rem, 4.5vw, 3.4rem);
  font-weight: 800;
  margin: 0 0 18px;
  background: linear-gradient(135deg, #ffffff 0%, #d896ff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.2;
}

.blog-hero-desc {
  max-width: 720px;
  margin: 0 auto 28px;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.7;
}

.blog-filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 24px;
}

.blog-filter-btn {
  background: rgba(26, 14, 42, 0.75);
  border: 1px solid rgba(199, 90, 246, 0.3);
  color: #e9dff5;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 9px 18px;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.25s ease;
}

.blog-filter-btn:hover,
.blog-filter-btn.active {
  background: linear-gradient(135deg, #7a509a 0%, #c75af6 100%);
  border-color: #d896ff;
  color: #ffffff;
  box-shadow: 0 4px 16px rgba(199, 90, 246, 0.35);
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
}

@media (max-width: 1024px) {
  .blog-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.blog-card {
  background: rgba(26, 14, 42, 0.78);
  border: 1px solid rgba(199, 90, 246, 0.22);
  border-radius: 20px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
  text-decoration: none;
  color: inherit;
}

.blog-card:hover {
  transform: translateY(-6px);
  border-color: rgba(199, 90, 246, 0.65);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.55), 0 0 25px rgba(122, 80, 154, 0.3);
}

.blog-card-thumb {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #12081e;
}

.blog-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.blog-card:hover .blog-card-thumb img {
  transform: scale(1.05);
}

.blog-tag {
  position: absolute;
  top: 16px;
  left: 16px;
  background: rgba(20, 10, 34, 0.88);
  border: 1px solid rgba(199, 90, 246, 0.45);
  color: #e3b8ff;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 6px 12px;
  border-radius: 999px;
  backdrop-filter: blur(8px);
}

.blog-card-body {
  padding: 26px 28px 30px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.blog-meta {
  font-size: 0.82rem;
  color: var(--muted);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.blog-card-body h2 {
  font-size: 1.35rem;
  font-weight: 700;
  color: #ffffff;
  margin: 0 0 12px;
  line-height: 1.4;
}

.blog-card-body p {
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.65;
  margin: 0 0 20px;
  flex: 1;
}

.blog-read-more {
  color: #d896ff;
  font-weight: 700;
  font-size: 0.92rem;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: auto;
}

/* Article Detail Page */
.article-wrapper {
  max-width: 860px;
  margin: 0 auto;
  padding: 120px 5vw 44px;
}

.article-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 24px;
}

.article-breadcrumb a {
  color: #d896ff;
  text-decoration: none;
}

.article-breadcrumb a:hover {
  text-decoration: underline;
}

.article-header h1 {
  font-size: clamp(1.75rem, 3.8vw, 2.65rem);
  font-weight: 800;
  color: #ffffff;
  line-height: 1.28;
  margin: 0 0 16px;
}

.article-meta {
  color: var(--muted);
  font-size: 0.88rem;
  margin-bottom: 28px;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.article-cover {
  border-radius: 18px;
  overflow: hidden;
  margin-bottom: 36px;
  border: 1px solid rgba(199, 90, 246, 0.25);
  aspect-ratio: 16 / 9;
}

.article-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Auto Table of Contents */
.article-toc {
  margin: 0 0 32px;
  padding: 20px 24px;
  border-radius: 16px;
  background: rgba(26, 14, 42, 0.78);
  border: 1px solid rgba(199, 90, 246, 0.28);
}

.article-toc-title {
  font-size: 0.88rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #e3b8ff;
  margin: 0 0 12px;
}

.article-toc ol {
  margin: 0;
  padding-left: 20px;
  display: grid;
  gap: 8px;
}

.article-toc li {
  color: #c2b3d6;
  font-size: 0.94rem;
  line-height: 1.5;
}

.article-toc a {
  color: #f5eefc;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s ease;
}

.article-toc a:hover {
  color: #c75af6;
  text-decoration: underline;
}

/* Mid-Article Topical Cluster Internal Links */
.article-cluster-box {
  margin: 30px 0;
  padding: 20px 24px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(122, 80, 154, 0.2) 0%, rgba(20, 10, 34, 0.88) 100%);
  border: 1px solid rgba(199, 90, 246, 0.35);
}

.article-cluster-title {
  font-size: 0.84rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #d896ff;
  margin: 0 0 12px;
}

.article-cluster-box ul {
  margin: 0;
  padding-left: 18px;
}

.article-cluster-box li {
  margin-bottom: 8px;
  line-height: 1.55;
}

.article-cluster-box li:last-child {
  margin-bottom: 0;
}

.article-cluster-box a {
  color: #ffffff;
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px dashed rgba(216, 150, 255, 0.55);
  transition: color 0.2s ease, border-color 0.2s ease;
}

.article-cluster-box a:hover {
  color: #d896ff;
  border-bottom-color: #d896ff;
}

.article-content h2[id] {
  scroll-margin-top: 96px;
}

.article-content {
  color: #e9dff5;
  font-size: 1.04rem;
  line-height: 1.8;
}

.article-content h2 {
  font-size: 1.55rem;
  font-weight: 700;
  color: #ffffff;
  margin: 40px 0 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(199, 90, 246, 0.2);
}

.article-content h3 {
  font-size: 1.22rem;
  font-weight: 700;
  color: #e3b8ff;
  margin: 28px 0 12px;
}

.article-content p {
  margin: 0 0 18px;
}

.article-content ul,
.article-content ol {
  margin: 0 0 22px;
  padding-left: 24px;
}

.article-content li {
  margin-bottom: 10px;
}

.article-content a {
  color: #d896ff;
  font-weight: 600;
  text-decoration: underline;
}

.article-content blockquote {
  margin: 24px 0;
  padding: 18px 22px;
  border-left: 4px solid #c75af6;
  background: rgba(122, 80, 154, 0.16);
  border-radius: 0 14px 14px 0;
  color: #f3e8ff;
  font-size: 0.96rem;
}

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

.article-content code {
  background: rgba(199, 90, 246, 0.18);
  padding: 2px 7px;
  border-radius: 5px;
  font-size: 0.9em;
  color: #f0abfc;
}

.article-compare-table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0 32px;
  background: rgba(26, 14, 42, 0.7);
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(199, 90, 246, 0.25);
}

.article-compare-table th,
.article-compare-table td {
  padding: 14px 16px;
  text-align: left;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.94rem;
}

.article-compare-table th {
  background: rgba(122, 80, 154, 0.3);
  color: #ffffff;
  font-weight: 700;
}

.article-cta-box {
  margin: 44px 0 36px;
  padding: 32px;
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(122, 80, 154, 0.28) 0%, rgba(36, 19, 47, 0.92) 100%);
  border: 1px solid rgba(199, 90, 246, 0.45);
  text-align: center;
}

.article-cta-box h3 {
  margin: 0 0 10px;
  color: #ffffff;
  font-size: 1.4rem;
}

.article-cta-box p {
  color: var(--muted);
  margin: 0 auto 22px;
  max-width: 600px;
}

.article-cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
}

.article-cta-actions a {
  text-decoration: none;
}

/* Related Articles 4x2 Section */
.related-articles-section {
  padding: 0 5vw 90px;
}

.related-articles-section .blog-container {
  max-width: 1280px;
  padding-top: 42px;
  border-top: 1px solid rgba(199, 90, 246, 0.2);
}

.related-articles-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 24px;
}

.related-articles-header h3 {
  font-size: 1.45rem;
  font-weight: 800;
  margin: 0;
  color: #ffffff;
}

.related-view-all {
  color: #d896ff;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.2s ease;
}

.related-view-all:hover {
  color: #ffffff;
  text-decoration: underline;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}

.related-card {
  border-radius: 16px;
}

.related-card .blog-tag {
  top: 10px;
  left: 10px;
  padding: 4px 10px;
  font-size: 0.68rem;
  letter-spacing: 0.05em;
  max-width: calc(100% - 20px);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.related-card .blog-card-body {
  padding: 16px 18px 20px;
}

.related-card .blog-meta {
  font-size: 0.78rem;
  gap: 6px;
  margin-bottom: 8px;
  white-space: nowrap;
}

.related-card .blog-card-body h4 {
  font-size: 1rem;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.45;
  margin: 0 0 14px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.related-card .blog-read-more {
  font-size: 0.85rem;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

@media (max-width: 1100px) {
  .related-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
  }
}

@media (max-width: 768px) {
  .blog-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .blog-hero {
    padding: 105px 4vw 40px;
  }

  .article-wrapper {
    padding: 100px 4vw 32px;
  }

  .related-articles-section {
    padding: 0 4vw 64px;
  }

  .article-cta-box {
    padding: 24px 18px;
  }
}

@media (max-width: 560px) {
  .related-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}
