/* Blog-specific styles (blog.php detail page) */

/* Table of Contents */
#toc-box {
  border-left: 3px solid var(--accent);
}
#toc-box h6 {
  color: #FFFFFF;
}
#toc-box ol {
  list-style-type: decimal;
}
#toc-box li {
  border-bottom: 1px solid rgba(255,255,255,0.05);
  padding-bottom: 0.25rem;
}
#toc-box a {
  color: var(--accent-light) !important;
  transition: color 0.2s;
}
#toc-box a:hover {
  color: #FFFFFF !important;
}
#toc-toggle {
  transition: transform 0.2s;
  font-size: 0.75rem;
  color: var(--accent-light);
}

/* Blog Content Typography */
.blog-content h2 {
  color: #FFFFFF;
  font-size: 1.5rem;
  font-weight: 700;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid rgba(255,255,255,0.1);
}
.blog-content h3 {
  color: var(--accent-light);
  font-size: 1.2rem;
  font-weight: 600;
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
}
.blog-content p {
  color: #FFFFFF;
  line-height: 1.8;
  margin-bottom: 1rem;
}
.blog-content ul, .blog-content ol {
  color: #FFFFFF;
  padding-left: 1.5rem;
  margin-bottom: 1rem;
}
.blog-content li {
  color: #FFFFFF;
  margin-bottom: 0.3rem;
  line-height: 1.7;
}
.blog-content blockquote {
  border-left: 4px solid var(--accent);
  background: rgba(255,255,255,0.03);
  padding: 1rem 1.25rem;
  margin: 1.5rem 0;
  border-radius: 0 8px 8px 0;
  font-style: italic;
  color: #FFFFFF;
}
.blog-content code {
  background: rgba(255,255,255,0.08);
  padding: 0.15rem 0.4rem;
  border-radius: 4px;
  font-size: 0.85em;
  color: var(--accent-light);
}
.blog-content pre {
  background: #0d1117;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 8px;
  padding: 1rem;
  overflow-x: auto;
  margin: 1.5rem 0;
}
.blog-content pre code {
  background: none;
  padding: 0;
  color: #e6edf3;
}
.blog-content img {
  border-radius: 8px;
  margin: 1rem 0;
}
.blog-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
}
.blog-content th, .blog-content td {
  border: 1px solid rgba(255,255,255,0.1);
  padding: 0.6rem 0.8rem;
  text-align: left;
  color: #FFFFFF;
}
.blog-content th {
  background: rgba(255,255,255,0.05);
  font-weight: 600;
}

/* Breadcrumb Nav */
.breadcrumb-nav {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.6);
  margin-bottom: 0.5rem;
}
.breadcrumb-nav a {
  color: var(--accent-light) !important;
  text-decoration: none;
}
.breadcrumb-nav a:hover {
  color: #FFFFFF !important;
}

/* Related Posts Card */
.blog-card .glass-card {
  border: 1px solid rgba(255,255,255,0.05);
  transition: transform 0.2s, box-shadow 0.2s;
}
.blog-card .glass-card:hover {
  box-shadow: 0 8px 25px rgba(0,0,0,0.3);
}

/* FAQ Accordion (used on blog pages too) */
.faq-item {
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.faq-question {
  width: 100%;
  background: none;
  border: none;
  color: #FFFFFF;
  font-size: 1rem;
  font-weight: 600;
  padding: 1rem 0;
  text-align: left;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.faq-question i {
  transition: transform 0.3s;
  color: var(--accent-light);
}
.faq-question.active i {
  transform: rotate(180deg);
}
.faq-answer {
  display: none;
  padding: 0 0 1rem 0;
  color: rgba(255,255,255,0.8);
  line-height: 1.7;
}
.faq-answer.show {
  display: block;
}

/* Blog Category Badge */
.blog-category {
  display: inline-block;
  background: rgba(184,24,40,0.2);
  color: #B81828;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.2rem 0.6rem;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.software-tag {
  background: rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.7);
}
