/* Blog post tags styling */
.post-tags {
  display: flex;
  flex-wrap: nowrap;
  gap: 0.5rem;
  margin: 1rem 0;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  -webkit-mask-image: linear-gradient(to right, black 90%, transparent 100%);
  mask-image: linear-gradient(to right, black 90%, transparent 100%);
  padding-right: 2rem;
  position: relative;
}

.post-tags::after {
  content: '...';
  position: absolute;
  right: 0.5rem;
  background: white;
  padding-left: 0.5rem;
}

.post-tags a {
  display: inline-block;
  background-color: #f5f5f5;
  color: #363636;
  border-radius: 4px;
  padding: 0.25rem 0.75rem;
  font-size: 0.75rem;
  line-height: 1.5;
  white-space: nowrap;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.post-tags a:hover {
  background-color: #e8e8e8;
  color: #363636;
  text-decoration: none;
}

/* Assessment Visualization Styles */
.score-container {
  position: relative;
  width: 200px;
  height: 200px;
  margin: 0 auto 1.5rem;
}

#scoreValue {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 2.5rem;
  font-weight: bold;
  color: #363636;
}

.metric-box {
  background: #f9f9f9;
  border-radius: 8px;
  padding: 1rem;
  height: 100%;
  text-align: center;
  box-shadow: 0 2px 3px rgba(10, 10, 10, 0.1);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.metric-box:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 6px rgba(10, 10, 10, 0.1);
}

.metric-value {
  font-size: 1.5rem;
  font-weight: bold;
  color: #363636;
  margin-bottom: 0.25rem;
}

.metric-label {
  font-size: 0.875rem;
  color: #7a7a7a;
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.progress {
  height: 0.5rem !important;
  border-radius: 4px;
  overflow: hidden;
}

.progress::-webkit-progress-bar {
  background-color: #f5f5f5;
  border-radius: 4px;
}

.progress::-webkit-progress-value {
  border-radius: 4px;
  transition: width 1s ease-in-out;
}

/* Color variants for different score ranges */
.progress.is-danger::-webkit-progress-value {
  background-color: #ff3860; /* Red */
}

.progress.is-warning::-webkit-progress-value {
  background-color: #ffdd57; /* Yellow */
}

.progress.is-success::-webkit-progress-value {
  background-color: #23d160; /* Green */
}

.progress.is-primary::-webkit-progress-value {
  background-color: #00d1b2; /* Teal */
}

/* Responsive adjustments */
@media screen and (max-width: 768px) {
  .post-tags {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    -webkit-mask-image: none;
    mask-image: none;
    padding-right: 0;
  }
  
  .post-tags::after {
    display: none;
  }
  
  .post-tags a {
    font-size: 0.7rem;
    padding: 0.2rem 0.6rem;
  }
  
  /* Hide scrollbar for Chrome, Safari and Opera */
  .post-tags::-webkit-scrollbar {
    display: none;
  }
  
  /* Hide scrollbar for IE, Edge and Firefox */
  .post-tags {
    -ms-overflow-style: none;  /* IE and Edge */
    scrollbar-width: none;  /* Firefox */
  }
}

/* Ensure the meta container doesn't cause layout shifts */
.post-meta {
  margin-bottom: 1rem;
  line-height: 1.6;
  overflow: hidden;
}
