.ecosystem {
  position: relative;
}

.ecosystem section {
  position: relative;
  z-index: 1;
  margin: 0 auto 80px auto;
}

.qwik-plus-logo {
  width: 240px;
  height: auto;
  margin: 0 auto;
}

[data-theme='light'] .qwik-plus-logo-text {
  filter: invert(1);
}

.ecosystem .purple-gradient {
  position: fixed;
  width: 1400px;
  height: 800px;
  top: 100px;
  right: -400px;
  background: radial-gradient(
    57.58% 57.58% at 48.79% 42.42%,
    rgba(24, 180, 244, 0.5) 0%,
    rgba(46, 55, 114, 0) 63.22%
  );
  transform: rotate(5deg);
  pointer-events: none;
}

.ecosystem .blue-gradient {
  position: fixed;
  width: 1400px;
  height: 1200px;
  top: 600px;
  left: -200px;
  background: radial-gradient(
    50% 50% at 50% 50%,
    rgba(172, 127, 244, 0.5) 0%,
    rgba(21, 25, 52, 0) 100%
  );
  transform: rotate(-5deg);
}

.ecosystem-menu {
  position: sticky;
  z-index: 1;
  top: 0;
  width: 240px;
  height: 700px;
  background: transparent;
  padding: 125px 20px 20px 20px;
}

.moblie-ecosystem-menu summary,
.moblie-ecosystem-menu ul {
  background:
    linear-gradient(var(--qwik-dark-purple-bg), var(--qwik-dark-purple-bg)) padding-box,
    linear-gradient(to bottom, #ac7ff4, #18b6f6) border-box;
}

.moblie-ecosystem-menu summary {
  padding: 1rem;
  display: block;
  padding-left: 2.2rem;
  position: relative;
  cursor: pointer;
}

.moblie-ecosystem-menu summary:before {
  content: '';
  border-width: 0.4rem;
  border-style: solid;
  border-color: transparent transparent transparent #ac7ff4;
  position: absolute;
  top: 1.3rem;
  left: 1rem;
  transform: rotate(0);
  transition-property: transform, border-color;
  transform-origin: 0.2rem 50%;
  transition: 0.25s transform ease;
}

.ecosystem details[open] > summary:before {
  transform: rotate(90deg);
  border-color: transparent transparent transparent #18b6f6;
}

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

.moblie-ecosystem-menu li a {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.ecosystem h2,
.ecosystem-menu h3 {
  font-size: 18px;
  font-weight: 500;
  padding-bottom: 15px;
  margin-bottom: 25px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

[data-theme='light'] .ecosystem h2,
[data-theme='light'] .ecosystem-menu h3 {
  border-color: rgba(0, 0, 0, 0.3);
}

.ecosystem h2 {
  margin-bottom: 40px;
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.ecosystem h2 span:last-child {
  text-align: right;
}

.ecosystem-menu a {
  padding: 10px 10px;
  margin: 5px 0;
  display: flex;
  align-items: center;
  border: 1px solid transparent;
  border-radius: 5px;
}

.ecosystem-menu a:hover {
  background: linear-gradient(180deg, rgba(46, 51, 90, 0.3) 0%, rgba(28, 27, 51, 0.3) 100%);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.ecosystem-menu svg {
  display: inline-block;
  opacity: 0.7;
}

.ecosystem-menu span {
  padding-left: 20px;
}

.grid-item a {
  display: block;
}

.grid-item .thumbnail {
  display: grid;
  aspect-ratio: 16/9;
  position: relative;

  background:
    linear-gradient(var(--qwik-dark-purple-bg), var(--qwik-dark-purple-bg)) padding-box,
    linear-gradient(to bottom, #ac7ff4, #18b6f6) border-box;
  border-radius: 5px;
  border: 1px solid transparent;
  overflow: hidden;
  color: currentColor;
}

.grid-item .thumbnail::before {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 5px;
  aspect-ratio: 16/9;
  content: '';

  background: linear-gradient(0deg, rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.3)),
    conic-gradient(
      from 180deg at 53.75% 37.25%,
      #7976e8 -110.28deg,
      #f449f4 6.37deg,
      #0019c0 153.67deg,
      #7976e8 249.72deg,
      #f449f4 366.37deg
    );
  border-radius: 5px;
  opacity: 0.3;
}

.grid-item a:hover .thumbnail::before {
  opacity: 0.1;
}

.grid-item img {
  position: relative;
  margin: auto;
  max-width: 90px;
  max-height: 90px;
}

.grid-item .thumbnail img {
  margin: auto;
  max-width: 160px;
  max-height: 90px;
  object-fit: contain;
}

.grid-item .cover img {
  width: 100%;
  max-width: initial;
  max-height: initial;
  height: auto;
  object-fit: cover;
  aspect-ratio: 16/9;
}

.grid-item .text {
  position: relative;
  padding: 10px;
  text-align: center;
  font-weight: bold;
}

.grid-item a:hover .text {
  text-decoration: underline;
}

.grid-item .description {
  text-align: center;
  font-size: 0.9em;
}

.add-integration .thumbnail {
  opacity: 0.4;
  border: 2px dotted currentColor;
}
.add-integration .thumbnail,
.add-integration .thumbnail::before {
  background: transparent;
}

.add-integration a:hover .thumbnail {
  opacity: 0.8;
}

.add-integration svg {
  margin: auto;
}
