/* Single Plugin Template Styles */
.pnpm-single-plugin {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

.pnpm-single-plugin-banner {
  width: 100%;
  height: auto;
  aspect-ratio: 1544 / 500;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
}

.pnpm-single-plugin-header {
  margin-bottom: 30px;
}

.pnpm-single-plugin-header h1 {
  font-size: 2em;
  margin-bottom: 10px;
}

/* Info Bar */
.pnpm-info-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  padding: 15px 20px;
  background: #f0f0f1;
  border-radius: 8px;
  margin-bottom: 30px;
  align-items: center;
}

.pnpm-info-bar-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  min-width: 100px;
}

.pnpm-info-bar-item .pnpm-info-label {
  font-size: 0.75em;
  text-transform: uppercase;
  color: #646970;
  margin-bottom: 4px;
  font-weight: 600;
}

.pnpm-info-bar-item .pnpm-info-value {
  font-size: 1em;
  font-weight: 700;
  color: #1d2327;
}

/* Star Rating */
.pnpm-star-rating {
  display: inline-flex;
  gap: 2px;
  color: #ffb900;
  font-size: 1.2em;
}

.pnpm-star-rating .pnpm-star-empty {
  color: #dcdcde;
}

/* Two-column layout */
.pnpm-content-wrapper {
  display: flex;
  gap: 30px;
  margin-bottom: 30px;
}

.pnpm-content-main {
  flex: 1;
  min-width: 0;
}

.pnpm-content-sidebar {
  width: 300px;
  flex-shrink: 0;
}

/* Plugin Description */
.pnpm-plugin-description {
  line-height: 1.7;
}

.pnpm-plugin-description h2,
.pnpm-plugin-description h3,
.pnpm-plugin-description h4 {
  margin-top: 1.5em;
  margin-bottom: 0.5em;
}

.pnpm-plugin-description p {
  margin-bottom: 1em;
}

.pnpm-plugin-description ul,
.pnpm-plugin-description ol {
  margin-left: 20px;
  margin-bottom: 1em;
}

/* Sidebar */
.pnpm-sidebar-card {
  background: #fff;
  border: 1px solid #dcdcde;
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 20px;
}

.pnpm-sidebar-card h3 {
  font-size: 1em;
  margin-bottom: 15px;
  padding-bottom: 10px;
  border-bottom: 1px solid #f0f0f1;
}

.pnpm-sidebar-icon {
  width: 128px;
  height: 128px;
  border-radius: 12px;
  display: block;
  margin: 0 auto 15px;
}

.pnpm-sidebar-meta {
  list-style: none;
  padding: 0;
  margin: 0;
}

.pnpm-sidebar-meta li {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px solid #f0f0f1;
  font-size: 0.9em;
}

.pnpm-sidebar-meta li:last-child {
  border-bottom: none;
}

.pnpm-sidebar-meta .pnpm-meta-label {
  color: #646970;
  font-weight: 500;
}

.pnpm-sidebar-meta .pnpm-meta-value {
  font-weight: 600;
  color: #1d2327;
  text-align: right;
  max-width: 60%;
  word-break: break-word;
}

.pnpm-sidebar-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}

.pnpm-sidebar-tag {
  display: inline-block;
  padding: 3px 10px;
  background: #f0f0f1;
  border-radius: 12px;
  font-size: 0.8em;
  color: #50575e;
  text-decoration: none;
}

.pnpm-download-btn {
  display: block;
  text-align: center;
  padding: 12px 20px;
  background: #2271b1;
  color: #fff;
  text-decoration: none;
  border-radius: 6px;
  font-weight: 600;
  font-size: 1em;
  margin-top: 15px;
  transition: background 0.2s;
}

.pnpm-download-btn:hover {
  background: #135e96;
  color: #fff;
}

/* Stats Summary */
.pnpm-stats-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  padding: 20px;
  background: #f9f9f9;
  border-radius: 8px;
  margin-top: 30px;
  justify-content: center;
}

.pnpm-stats-summary-item {
  text-align: center;
  min-width: 120px;
}

.pnpm-stats-summary-item .pnpm-stats-number {
  font-size: 1.5em;
  font-weight: 700;
  color: #1d2327;
  display: block;
}

.pnpm-stats-summary-item .pnpm-stats-label {
  font-size: 0.8em;
  color: #646970;
  text-transform: uppercase;
}

/* Admin Edit Link */
.pnpm-admin-edit {
  margin-top: 20px;
  text-align: right;
}

.pnpm-admin-edit a {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #2271b1;
  text-decoration: none;
  font-size: 0.9em;
}

.pnpm-admin-edit a:hover {
  color: #135e96;
}

/* Navigation */
.pnpm-nav-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.pnpm-nav-bar a {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  text-decoration: none;
  color: #2271b1;
}

.pnpm-nav-bar a:hover {
  color: #135e96;
}

/* Responsive */
@media (max-width: 782px) {
  .pnpm-content-wrapper {
    flex-direction: column;
  }

  .pnpm-content-sidebar {
    width: 100%;
  }

  .pnpm-info-bar {
    gap: 10px;
  }

  .pnpm-info-bar-item {
    min-width: 80px;
  }
}
