.pluginCardContainer {
  height: 100%;
  min-width: 0;
}

.pluginCard {
  color: var(--rp-c-text-1);
  border: 1px dashed var(--rp-c-divider);
  border-radius: var(--rp-radius-small);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  height: 100%;
  padding: 20px;
  position: relative;
  text-decoration: none;
  overflow: hidden;
  transition: border-color 0.3s cubic-bezier(0.65, 0.05, 0.36, 1);
}

@media (min-width: 480px) {
  .pluginCard {
    gap: 24px;
    padding: 24px;
  }
}

@media (min-width: 768px) {
  .pluginCard {
    gap: 28px;
    padding: 28px;
  }
}

@media (min-width: 1024px) {
  .pluginCard {
    gap: 32px;
    padding: 32px;
  }
}

.pluginCard:hover {
  color: var(--rp-c-brand);
  border-color: var(--ck-accent);
}

.pluginCard:before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: 0;
  border-radius: inherit;
  background-image: url(../../../node_modules/@callstack/rspress-theme/dist/static/image/gradient-light.avif);
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  transition: opacity 0.3s cubic-bezier(0.65, 0.05, 0.36, 1);
}

:global(.dark) .pluginCard:before {
  background-image: url(../../../node_modules/@callstack/rspress-theme/dist/static/image/gradient-dark.avif);
}

.pluginCard:hover:before {
  opacity: 1;
}

:global(.dark) .pluginCard:hover:before {
  opacity: 0.5;
}

.pluginIcon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  color: var(--rp-c-brand);
}

.pluginTitle {
  font-family: var(--ck-header-font-family);
  font-size: 18px;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.6px;
  text-align: left;
  margin-bottom: 6px;
}

@media (min-width: 480px) {
  .pluginTitle {
    font-size: 19px;
    letter-spacing: -0.7px;
    margin-bottom: 7px;
  }
}

@media (min-width: 768px) {
  .pluginTitle {
    font-size: 20px;
    letter-spacing: -0.8px;
    margin-bottom: 8px;
  }
}

.pluginVersion {
  font-family: var(--rp-font-family);
  font-size: 13px;
  font-weight: 400;
  color: var(--rp-c-text-2);
}

@media (min-width: 768px) {
  .pluginVersion {
    font-size: 14px;
  }
}

.pluginDescription {
  font-family: var(--rp-font-family);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: -0.24px;
  text-align: left;
  color: var(--rp-c-text-2);
}

@media (min-width: 480px) {
  .pluginDescription {
    font-size: 15px;
    letter-spacing: -0.28px;
  }
}

@media (min-width: 768px) {
  .pluginDescription {
    font-size: 16px;
    letter-spacing: -0.32px;
  }
}

.pluginHeader {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  width: 100%;
  gap: 8px;
}

.pluginTitleContainer {
  flex: 1;
  min-width: 0;
}

.officialBadge {
  background-color: var(--rp-c-brand);
  color: #ffffff;
  font-size: 10px;
  font-weight: 600;
  padding: 3px 6px;
  border-radius: 10px;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  white-space: nowrap;
  flex-shrink: 0;
}

@media (min-width: 480px) {
  .officialBadge {
    padding: 3px 7px;
    border-radius: 11px;
    letter-spacing: 0.45px;
  }
}

@media (min-width: 768px) {
  .officialBadge {
    font-size: 11px;
    padding: 4px 8px;
    border-radius: 12px;
    letter-spacing: 0.5px;
  }
}

.pluginFooter {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  margin-top: auto;
}

.pluginStats {
  display: flex;
  align-items: center;
}

.starsContainer {
  display: flex;
  align-items: center;
  gap: 3px;
  font-family: var(--rp-font-family);
  font-size: 13px;
  font-weight: 500;
  color: var(--rp-c-text-2);
}

@media (min-width: 768px) {
  .starsContainer {
    gap: 4px;
    font-size: 14px;
  }
}

.starIcon {
  width: 14px;
  height: 14px;
  color: var(--ck-accent);
}

@media (min-width: 768px) {
  .starIcon {
    width: 16px;
    height: 16px;
  }
}

.pluginLinks {
  display: flex;
  gap: 12px;
}

@media (min-width: 768px) {
  .pluginLinks {
    gap: 16px;
  }
}

.pluginLink {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 6px 10px;
  border-radius: 6px;
  font-family: var(--rp-font-family);
  font-size: 13px;
  font-weight: 500;
  color: var(--rp-c-brand);
  text-decoration: none;
  background-color: transparent;
  transition: all 0.2s ease;
}

@media (min-width: 768px) {
  .pluginLink {
    font-size: 14px;
    gap: 6px;
    padding: 8px 12px;
  }
}

.pluginLink:hover {
  opacity: 0.8;
  background-color: var(--rp-c-divider);
  text-decoration: none;
}

.linkIcon {
  width: 14px;
  height: 14px;
}

@media (min-width: 768px) {
  .linkIcon {
    width: 16px;
    height: 16px;
  }
}
