/* ============================================
   Plugins Page Styling
   ============================================ */

/* Plugin-specific note: Badge styles (.badge, .badge.version, .badge.default)
   are now in style.css as reusable components */

/* Plugins styling */
.plugins-box h4 {
  font-size: 1.4rem;
  margin: 0 0 0.25rem 0 !important;
  color: #ffffff;
}

.plugins-box h4 a {
  color: var(--accent);
}

.plugin-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  position: relative;
}

.plugin-header h4 {
  flex: 0 1 auto;
  text-align: center;
  margin: 0 0 0.25rem 0 !important;
}

.plugin-header .badge.version {
  position: absolute;
  right: 0;
  top: 0;
}

.tooltip {
  display: flex;
  flex-direction: column;
  position: relative;
}

.tooltip .tooltiptext {
  visibility: hidden;
  background-color: #333;
  color: #fff;
  text-align: center;
  border-radius: 6px;
  padding: 0.5rem;
  position: absolute;
  z-index: 1000;
  width: 200px;
  font-size: 0.75rem;
  opacity: 0;
  transition: opacity 0.3s ease;
  white-space: normal;
  left: 50%;
  top: calc(100% + 0.5rem);
  transform: translateX(-50%);
  margin: 0 !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.tooltip:hover .tooltiptext {
  visibility: visible;
  opacity: 1;
}

.plugin-badges {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-top: auto;
  margin-bottom: 0.75rem;
}

.author {
  font-size: 0.75rem;
  color: #666;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 85%;
  margin: 0 auto 0.5rem auto;
  text-align: center;
  line-height: 1.2;
}

.plugins-box {
  background-color: var(--card-bg);
  border: 2px solid #333;
  border-radius: 16px;
  padding: 12px;
  margin: 0;
  text-align: center;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  min-width: 150px;
  flex: 1 1 calc(33.333% - 16px);
  height: 100%;
}

.plugins-box > div:first-child {
  flex: 0 0 auto;
}

.plugins-box > div:last-child {
  margin-top: auto;
}

.plugins-box:hover {
  box-shadow: 0 10px 30px rgba(0,0,0,0.4);
  border-color: var(--accent);
  transform: translateY(-5px) scale(1.02);
}

#container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0;
}
