/* ============================================
   TAGS SYSTEM STYLES
   Tag cloud, tag pages, and tag navigation
   ============================================ */

/* Tags Page */
.tags-page {
  max-width: 100%;
}

.page-header {
  margin-bottom: 40px;
  padding-bottom: 20px;
  border-bottom: 2px solid #3a3836;
}

.page-title {
  font-size: clamp(28px, 4vw, 48px);
  margin-bottom: 10px;
  color: #e8e6e3;
}

.tag-icon {
  margin-right: 10px;
  color: #c5641c;
}

.page-description {
  color: #a8a6a3;
  font-size: 16px;
  margin: 0;
}

/* Tag Cloud */
.tag-cloud {
  margin: 40px 0;
  padding: 30px;
  background: #2a2826;
  border-radius: 8px;
  line-height: 2.5;
  text-align: center;
}

.tag-cloud-item {
  display: inline-block;
  margin: 5px 8px;
  padding: 6px 14px;
  background: #1a1816;
  border: 1px solid #3a3836;
  border-radius: 20px;
  text-decoration: none;
  color: #e8e6e3;
  transition: all 0.2s ease;
  font-weight: 500;
}

.tag-cloud-item:hover {
  background: #c5641c;
  color: white;
  border-color: #c5641c;
  transform: translateY(-2px);
  box-shadow: 0 2px 8px rgba(197, 100, 28, 0.3);
}

/* Tag sizes based on post count */
.tag-small {
  font-size: 13px;
  padding: 4px 10px;
}

.tag-medium {
  font-size: 15px;
  padding: 6px 14px;
}

.tag-large {
  font-size: 17px;
  padding: 8px 16px;
  font-weight: 600;
}

.tag-cloud-item .count {
  font-size: 0.85em;
  opacity: 0.7;
  margin-left: 4px;
}

/* Tag Sections */
.tag-section {
  margin-bottom: 50px;
}

.tag-section h2 {
  border-bottom: 2px solid #3a3836;
  padding-bottom: 10px;
  margin-bottom: 20px;
  font-size: 24px;
}

.tag-section h2 a {
  color: #e8e6e3;
  text-decoration: none;
}

.tag-section h2 a:hover {
  color: #c5641c;
}

.tag-section h2 .count {
  color: #a8a6a3;
  font-size: 18px;
  font-weight: normal;
  margin-left: 8px;
}

/* Tag Page */
.tag-page .page-header {
  margin-bottom: 30px;
}

.tag-description {
  color: #a8a6a3;
  font-size: 16px;
}

.all-tags-link {
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid #3a3836;
  text-align: center;
}

.all-tags-link a {
  color: #c5641c;
  text-decoration: none;
  font-weight: 500;
  padding: 10px 20px;
  border-radius: 4px;
  display: inline-block;
  transition: background 0.2s;
}

.all-tags-link a:hover {
  background: #2a2826;
}

/* Tag badges in post listings */
.post-tags {
  margin-top: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.post-tag {
  display: inline-block;
  padding: 2px 8px;
  background: #2a2826;
  border-radius: 3px;
  font-size: 12px;
  text-decoration: none;
  color: #e8e6e3;
  transition: all 0.2s;
}

.post-tag:hover {
  background: #c5641c;
  color: white;
}

/* Post Meta Footer (Categories + Tags) */
.post-meta-footer {
  margin-top: 40px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-size: 14px;
}

.post-tags-footer {
  padding: 20px;
  background: transparent;
  border-left: 4px solid #a0501a;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.post-tags-footer strong {
  color: #a8a6a3;
  font-weight: 600;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.post-tags-footer strong::before {
  content: '\f02b';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  margin-right: 6px;
  color: #a0501a;
}

.post-tags-footer .post-tag {
  background: #2a2826;
  padding: 5px 12px;
  border-radius: 4px;
  border: 1px solid #3a3836;
  font-size: 13px;
  text-decoration: none;
  color: #e8e6e3;
  transition: all 0.2s ease;
  font-weight: 500;
}

.post-tags-footer .post-tag:hover {
  background: #a0501a;
  color: white;
  border-color: #a0501a;
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .tag-cloud {
    padding: 20px;
  }

  .tag-cloud-item {
    margin: 4px;
    font-size: 13px !important;
    padding: 5px 12px !important;
  }

  .page-title {
    font-size: 24px;
  }
}
