/* ============================================
   Tags Page Styles
   ============================================ */

/* --- Layout --- */
.zs-tags-layout {
  display: flex;
  gap: 40px;
  align-items: flex-start;
}

.zs-tags-main {
  flex: 1;
  min-width: 0;
}

.zs-tags-sidebar {
  width: 320px;
  flex-shrink: 0;
  position: sticky;
  top: 100px;
}

/* --- Tags Header --- */
.zs-tags-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 28px;
  padding-bottom: 16px;
  border-bottom: 2px solid var(--zs-color-primary);
}

.zs-tags-header h3 {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: var(--zs-font-size-xl);
  font-weight: 700;
  color: var(--zs-color-text-dark);
}

.zs-tags-header h3 svg {
  color: var(--zs-color-primary);
}

.zs-tags-count {
  font-size: var(--zs-font-size-sm);
  color: var(--zs-color-text-light);
}

/* --- Tags List --- */
.zs-tags-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.zs-tags-item {
  display: flex;
  gap: 20px;
  padding: 20px;
  background: var(--zs-color-white);
  border: 1px solid var(--zs-color-border);
  border-radius: 8px;
  transition: var(--zs-transition);
}

.zs-tags-item:hover {
  box-shadow: 0 4px 16px rgba(0,0,0,0.08);
  border-color: var(--zs-color-primary);
}

.zs-tags-item-img {
  width: 200px;
  height: 140px;
  flex-shrink: 0;
  border-radius: 6px;
  overflow: hidden;
}

.zs-tags-item-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.zs-tags-item:hover .zs-tags-item-img img {
  transform: scale(1.05);
}

.zs-tags-item-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.zs-tags-item-body h4 {
  font-size: var(--zs-font-size-base);
  font-weight: 600;
  color: var(--zs-color-text-dark);
  margin-bottom: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color 0.3s ease;
}

.zs-tags-item:hover h4 {
  color: var(--zs-color-primary);
}

.zs-tags-item-body p {
  font-size: var(--zs-font-size-sm);
  color: var(--zs-color-text-light);
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 10px;
}

.zs-tags-item-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: var(--zs-font-size-xs);
  color: var(--zs-color-text-light);
}

.zs-tags-item-date {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.zs-tags-item-cat {
  padding: 2px 8px;
  background: var(--zs-color-bg-light);
  border-radius: 3px;
}

/* --- Empty State --- */
.zs-tags-empty {
  text-align: center;
  padding: 60px 20px;
  color: var(--zs-color-text-light);
}

.zs-tags-empty svg {
  margin-bottom: 16px;
}

.zs-tags-empty p {
  font-size: var(--zs-font-size-sm);
}

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 1024px) {
  .zs-tags-layout {
    flex-direction: column;
  }
  .zs-tags-sidebar {
    width: 100%;
    position: static;
  }
}

@media (max-width: 768px) {
  .zs-tags-item {
    flex-direction: column;
    gap: 12px;
    padding: 14px;
  }
  .zs-tags-item-img {
    width: 100%;
    height: 180px;
  }
  .zs-tags-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
}

/* ============================================
   Search Page — Search Bar
   ============================================ */
.zs-search-bar {
  display: flex;
  justify-content: center;
  margin-bottom: 32px;
}

.zs-search-form {
  display: flex;
  width: 100%;
  max-width: 600px;
  border: 2px solid var(--zs-color-border);
  border-radius: 8px;
  overflow: hidden;
  transition: border-color 0.3s ease;
}

.zs-search-form:focus-within {
  border-color: var(--zs-color-primary);
}

.zs-search-input {
  flex: 1;
  padding: 12px 16px;
  border: none;
  outline: none;
  font-size: var(--zs-font-size-base);
  color: var(--zs-color-text-dark);
  background: var(--zs-color-white);
}

.zs-search-input::placeholder {
  color: var(--zs-color-text-light);
}

.zs-search-submit {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 12px 24px;
  border: none;
  background: var(--zs-color-primary);
  color: #fff;
  font-size: var(--zs-font-size-sm);
  font-weight: 600;
  cursor: pointer;
  transition: background 0.3s ease;
  white-space: nowrap;
}

.zs-search-submit:hover {
  opacity: 0.9;
}

/* --- Responsive --- */
@media (max-width: 768px) {
  .zs-search-form {
    max-width: 100%;
  }
  .zs-search-submit span {
    display: none;
  }
  .zs-search-submit {
    padding: 12px 16px;
  }
}
