/* Category Archive Specific Styles */
.category-archive-info {
  position: relative;
  left: 50%;
  right: 0 !important;
  width: 100vw;
  margin-left: -50vw;
  top:0;
  z-index: auto;
  margin-bottom: 24px;
  background-image: url('../assets/WEEKLY.jpg');
  background-size: auto;
  background-position: center;
  border-bottom-right-radius: 120px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 15px;
  color: #fff;
  min-height: 180px;
  padding: 20px 0;
}

.category-archive-title {
  text-align: center;
  margin-bottom: 20px;
}

/* Category Filter Styles */
.category-filter-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 20px 0;
}

.category-filter-left {
  display: flex;
  gap: 10px;
  align-items: center;
}

.category-filter-button {
  background-color: #3174cc;
  color: white;
  border: 2px solid #3174cc;
  padding: 10px;
  border-radius: 5px;
  font-size: 12px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: background-color 0.3s ease, color 0.3s ease, transform 0.2s ease;
}

.category-filter-button:hover {
  background-color: white;
  color: #3174cc;
  transform: scale(1.05);
}

/* Category Post Grid */
.category-post-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
  min-height: 400px;
  width: 100%;
  box-sizing: border-box;
}

.category-post-card {
  flex: 0 1 calc(33.333% - 20px);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  background-color: #ffffff;
  border-radius: 5px;
  max-width: calc(33.333% - 20px);
  padding-bottom: 15px;
}

.category-post-meta {
  padding: 15px;
}

.category-post-category {
  display: inline-block;
  background-color: #3174cc;
  color: #ffffff !important;
  padding: 5px 10px;
  border-radius: 20px;
  font-size: 0.9em;
  margin-bottom: 10px;
}

.category-post-category a {
  color: #ffffff !important;
  text-decoration: none;
}

.category-post-title {
  margin: 10px 0;
  font-size: 1.2em;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  max-height: 2.6em;
}

.category-post-title a {
  color: #333;
  text-decoration: none;
}

.category-post-excerpt {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-top: 8px;
  margin-bottom: 8px;
  font-size: 0.9em;
  color: #666;
  line-height: 1.4;
}

.category-post-author-date {
  display: flex;
  align-items: center;
  font-size: 0.9em;
  color: #777;
  margin-top: 10px;
}

.category-post-author-avatar {
  margin-right: 8px;
}

.category-post-author {
  margin-right: 8px;
}

.category-post-date {
  margin-left: 8px;
}

/* Category Filter Popup */
.category-filter-popup {
  margin-top: 100px;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 200px;
  background: white;
  border-top-left-radius: 20px;
  border-top-right-radius: 20px;
  box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.2);
  padding: 40px 30px;
  height: 80%;
  overflow-y: auto;
  justify-content: center;
  align-items: center;
  text-align: center;
  animation: slideUp 0.4s ease-out;
  display: none;
}

.category-filter-close {
  position: absolute;
  top: 10px;
  right: 20px;
  font-size: 24px;
  cursor: pointer;
  color: #3174cc;
  background-color: white;
  border: 2px solid #3174cc;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.category-filter-close:hover {
  background-color: #3174cc;
  color: white;
}

/* Category Tags */
.category-tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.category-tag {
  background-color: white;
  color: #3174cc;
  padding: 6px 12px;
  border-radius: 5px;
  border: #3174cc solid 1px;
  font-size: 14px;
  white-space: nowrap;
  cursor: pointer;
  justify-content: center;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.category-tag.active {
  background-color: #3174cc;
  color: white;
  width: max-content;
}

.category-tag:hover {
  background-color: #3174cc;
  color: white;
  border: 1px solid #3174cc;
}

/* Responsive Styles */
@media (max-width: 768px) {
  .category-post-card {
    flex: 0 1 calc(50% - 20px);
    max-width: calc(50% - 20px);
    margin-left: 15px;
    margin-right: 15px;
  }
}

@media (max-width: 480px) {
  .category-post-card {
    flex: 0 1 100% !important;
    max-width: 100% !important;
    margin-left: 15px;
    margin-right: 15px;
  }
}

@keyframes slideUp {
  from {
    transform: translateY(100%);
  }
  to {
    transform: translateY(0);
  }
} 