/* BLOG CSS SETTINGS
---------------------- */
:root{
  --primary: rgb(33, 37, 41);
  --blog-primary: #5b5bd6;
  --blog-secondary: #7b61ff;
  --blog-tertiary: rgba(109, 74, 255, 0.15);
  --blog-light:#f7f8fc;
  --blog-dark:#283d50;
  --blog-text-light: #283037;
  --blog-text-dark: #2c3e50;
  --accent-color: #ff6b4a;
  --card-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  --hover-shadow: 0 8px 15px rgba(0, 0, 0, 0.15);
  --border-color: #e9ecef;
  --nav-pills-border-radius: 5px;
  --nav-pills-link-color: #283d50;
  --nav-pills-link-active-color: #000;
  --nav-pills-link-active-bg: rgba(109, 74, 255, 0.15);
}
/*
:root {
  --primary-color: #6d4aff;
  --secondary-color: #f8f9fa;
  --accent-color: #ff6b4a;
  --text-dark: #2c3e50;
  --text-light: #6c757d;
  --card-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  --hover-shadow: 0 8px 15px rgba(0, 0, 0, 0.15);
  --border-color: #e9ecef;
}*/
.blog-bg-color {
  background: var(--blog-light);
}
/* Reading Progress Bar */
.reading-progress-bar {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 4px;
    background: linear-gradient(90deg, var(--blog-primary), var(--accent-color));
    z-index: 9999;
    transition: width 0.1s ease;
}
/* article design */
.article-header, .blog-header {
  background: linear-gradient(135deg, var(--blog-primary), var(--blog-secondary));
  color: #fff;
  border-radius: 28px;
  padding:70px 50px;
  overflow: hidden;
  position: relative;
}
.article-header::after, .blog-header::after {
  content: "";
  position: absolute;
  width: 350px;
  height: 350px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 50%;
  right: -100px;
  top: -100px;
}
/*
.badge-category {
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: white;
  backdrop-filter: blur(10px);
}*/
.author-avatar {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  object-fit: cover;
} 
.author-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}
article {
  /*color:#2c2c2c;*/
  font-size:1.03rem;
  line-height:1.6;
}
article h2{
  margin-top:50px;
  margin-bottom:20px;
  font-weight:700;
}
article img {
  max-width: 100%;
  height: auto;
  border-radius:18px;
  box-shadow: 0 .5rem 1rem rgba(0,0,0,.15);
}
/*
article div:hover img {
  transform: scale(1.02);
}*/
article figure {
  margin: 35px 0;
}
figure figcaption {
  font-size:small;
  font-weight: 200
}

/* Cards */
.blog-card{
  line-height:1.5;
  border:none;
  border-radius:20px;
  overflow:hidden;
  transition:.3s;
}
.blog-card:hover{
  transform:translateY(-8px);
  box-shadow:0 20px 40px rgba(0,0,0,.08);
}
.blog-card img{
  height:220px;
  object-fit:cover;
}
.badge-category{
  background:#eef2ff;
  color:var(--blog-primary);
}
.card-footer {
  background-color:#fff;
  border-top: 0px;
  font-size: 16px;
}

/* Categories */
.category-pills {
  margin-bottom: 2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
}
.category-btn {
  font-size: larger;
  border-radius: 25px;
  padding: 0.5rem 1.5rem;
  transition: all 0.3s ease;
  border: 2px solid lightgrey;
}
.category-btn:hover:not(.active) {
  /*transform: translateY(-2px);*/
  color: var(--blog-dark);
  background-color: var(--blog-light);
  border-color: var(--blog-primary);
  animation: pulse-active 0.5s ease;
}
.category-btn.active {
  background-color: var(--blog-primary);
  color: white;
  border-color: var(--blog-primary);
}
@keyframes pulse-active {
  0% { transform: scale(1); }
  50% { transform: scale(1.05); }
  100% { transform: scale(1); }
}

/* Social buttons */
.social-btn {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 1.2rem;
}
/* Generic card design */
.card-modern {
  border: none;
  border-radius: 22px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.06);
}
/* Sticky TOC for desktop */
.sticky-toc {
  position: sticky;
  top: 100px;
}
/* Table of Contents */
.toc-list-container {
  padding: 1.5rem;
  margin-bottom: 2rem;
}
/* Tags */
.tags-section {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-color);
}
.tag {
  display: inline-block;
  padding: 0.55rem 1rem;
  /*padding: 0.4rem 0.8rem;*/
  background: rgba(109, 74, 255, 0.1);
  color: var(--blog-primary);
  border-radius: 20px;
  /*font-size: 0.875rem;*/
  margin-right: 0.5rem;
  margin-bottom: 0.5rem;
  text-decoration: none;
  transition: all 0.3s ease;
}
.tag:hover {
  background: var(--blog-primary);
  color: white;
}
/* Back to Top */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  background: var(--blog-primary);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(109, 74, 255, 0.4);
  z-index: 999;
}
.back-to-top.visible {
  opacity: 1;
  visibility: visible;
}
.back-to-top:hover {
  background: var(--accent-color);
  transform: translateY(-5px);
}