img {
  max-width: 100%;
  height: auto;
  display: block;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

main {
  flex: 1;
}

.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: var(--bs-primary);
  color: white;
  padding: 8px;
  text-decoration: none;
  z-index: 100;
}

.skip-link:focus {
  top: 0;
}

.site-header {
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.plugin-gallery {
  padding: 3rem 0;
}

.plugin-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  border: 1px solid var(--bs-border-color);
  border-radius: 8px;
  overflow: hidden;
  transition:
    transform 0.3s,
    box-shadow 0.3s;
  background: white;
}

.plugin-card:hover,
.plugin-card:focus-within {
  transform: translateY(-4px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

.plugin-card-img {
  width: 100%;
  height: 200px;
  object-fit: contain;
  background: var(--bs-light);
}

.plugin-card-body {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  padding: 1.5rem;
}

.plugin-card-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.plugin-card-text {
  flex-grow: 1;
  margin-bottom: 1rem;
}

.plugin-badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: 4px;
  font-size: 0.875rem;
  font-weight: 600;
  margin-right: 0.5rem;
  margin-bottom: 0.5rem;
}

.badge-free {
  background: var(--bs-success);
  color: white;
}

.badge-paid {
  background: var(--bs-primary);
  color: white;
}

.plugin-header {
  padding: 3rem 0;
  background: var(--bs-light);
}

.plugin-screenshots {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin: 2rem 0;
}

.plugin-screenshot {
  flex: 1 1 300px;
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.plugin-features {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.feature-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.feature-icon {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  color: var(--bs-primary);
}

.faq-section {
  padding: 3rem 0;
}

.faq-item {
  margin-bottom: 1.5rem;
  padding: 1.5rem;
  border: 1px solid var(--bs-border-color);
  border-radius: 8px;
  background: white;
}

.faq-question {
  font-weight: 600;
  font-size: 1.125rem;
  margin-bottom: 0.5rem;
}

.faq-answer {
  margin: 0;
}

.changelog-details {
  border: 1px solid var(--bs-border-color);
  border-radius: 8px;
  padding: 1.25rem;
  background: var(--bs-body-bg);
}

.changelog-details summary {
  cursor: pointer;
}

.changelog-details summary::-webkit-details-marker {
  display: none;
}

.changelog-entries {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.changelog-entry {
  border-top: 1px solid var(--bs-border-color);
  padding-top: 1rem;
}

.changelog-entry:first-of-type {
  border-top: 0;
  padding-top: 0;
}

.changelog-group {
  margin-bottom: 0.75rem;
}

.changelog-label {
  font-weight: 600;
  color: var(--bs-primary);
  margin-bottom: 0.25rem;
}

.changelog-list {
  margin: 0;
  padding-left: 1.25rem;
}

.changelog-list p {
  margin: 0;
}

.changelog-link {
  text-decoration: underline;
}

.cta-section {
  background: var(--bs-primary);
  color: white;
  padding: 3rem 0;
  text-align: center;
  margin: 3rem 0;
  border-radius: 8px;
}

.cta-section h2 {
  margin-bottom: 1rem;
}

.btn-cta {
  background: white;
  color: var(--bs-primary);
  padding: 0.75rem 2rem;
  font-size: 1.125rem;
  font-weight: 600;
  border: none;
  border-radius: 4px;
  transition:
    transform 0.3s,
    box-shadow 0.3s;
}

.btn-cta:hover,
.btn-cta:focus {
  transform: scale(1.05);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  color: var(--bs-primary);
}

.contact-form {
  max-width: 600px;
  margin: 0 auto;
}

.contact-form .form-label {
  font-weight: 600;
}

.contact-form .form-control,
.contact-form .form-select {
  border-radius: 4px;
}

/* Documentation Text Content */
.doc-text-content {
  white-space: pre-wrap;
  font-family: monospace;
  font-size: 0.875rem;
  line-height: 1.6;
}

@media (min-width: 768px) {
  .plugin-features {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .feature-item {
    flex: 1 1 45%;
  }
}

@media print {
  .site-header,
  .cta-section,
  .btn {
    display: none;
  }
}
