/* 随机封面样式 - 统一管理 */

/* category页面随机封面样式 */
.panda-random-cover {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  border-radius: 0.5rem 0.5rem 0 0;
}

.panda-random-cover-content {
  text-align: center;
  z-index: 2;
  position: relative;
  padding: 1rem;
}

.panda-random-cover-icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 0.75rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(10px);
}

.panda-random-cover-icon::before {
  content: var(--icon-content, '📄');
  font-size: 24px;
  filter: grayscale(1) brightness(2);
}

.panda-random-cover-title {
  color: white;
  font-size: 0.9rem;
  font-weight: 600;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
  line-height: 1.3;
  max-width: 100%;
  word-wrap: break-word;
  word-break: break-word;
}

/* post-card页面随机封面样式 */
.panda-random-cover-card {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  border-radius: 0.5rem;
}

.panda-random-cover-content-card {
  text-align: center;
  z-index: 2;
  position: relative;
  padding: 0.5rem;
}

.panda-random-cover-icon-card {
  width: 32px;
  height: 32px;
  margin: 0 auto 0.5rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(10px);
}

.panda-random-cover-icon-card::before {
  content: var(--icon-content, '📄');
  font-size: 16px;
  filter: grayscale(1) brightness(2);
}

.panda-random-cover-title-card {
  color: white;
  font-size: 0.75rem;
  font-weight: 600;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
  line-height: 1.2;
  max-width: 100%;
  word-wrap: break-word;
  word-break: break-word;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}