/**
 * Copyright (c) 2025 Eclipse Foundation and others.
 *
 * This program and the accompanying materials are made
 * available under the terms of the Eclipse Public License 2.0
 * which is available at https://www.eclipse.org/legal/epl-2.0/
 *
 * Contributors:
 *    Eric Poirier (Eclipse Foundation)- initial API and implementation
 *
 * SPDX-License-Identifier: EPL-2.0
 */

.why-choose-grid {
  display: grid;
  gap: 1rem;
}

@media (min-width: 400px) {
  .why-choose-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 4rem;
  }
}

@media (min-width: 992px) {
  .why-choose-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 4rem;
  }
}

.project-activity-grid {
  display: flex;
  flex-direction: column;
  gap: 4rem;
}

@media (min-width: 768px) {
  .project-activity-grid {
    flex-direction: row;
    gap: 4rem;
  }

  .project-activity-grid > * {
    flex: 1;
  }

  .project-activity-grid .featured-committer {
    max-width: 52rem;
  }
}

.project-activity-grid .featured-committer {
  border-radius: var(--efsc-border-radius-md);
  overflow: hidden;
}

.project-activity-grid .featured-committer img {
  width: 100%;
  object-fit: cover;
  max-height: 20.5rem;
}
.project-activity-grid .featured-committer-content {
  position: relative;
  padding: 3rem;
  background-color: var(--efsc-color-secondary-500);
  height: 100%;
}

.featured-committer-content:before {
  background: linear-gradient(rgba(44,28,216,.3),rgba(44,28,216,.3) 50%,rgba(44,28,216,.7) 0,rgba(44,28,216,.7));
  content: "";
  display: block;
  display: absolute;
  height: 2.5rem;
  left: 0;
  position: absolute;
  top: -2.5rem;
  width: 100%;
}

.featured-committer-content-body {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.project-activity-grid .latest-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-bottom: 4rem;
  padding: 3rem;
  border: 1px solid var(--efsc-color-secondary-100);
  border-radius: var(--efsc-border-radius-md);
}

.project-activity-grid .latest-item p {
  margin: 0;
}

.resource-grid {
  display: grid;
  gap: 1rem;
}

@media (min-width: 768px) {
  .resource-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 4rem;
  }
}

@media (min-width: 1200px) {
  .resource-grid {
    grid-template-columns: repeat(5, 1fr);
    gap: 4rem;
  }
}

.resource-grid .tile {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.search-fields {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.search-fields > * {
  width: 100%;
}

@media (min-width: 768px) {
  .search-fields {
    flex-direction: row;
    gap: 1rem;
  }
  .search-fields > .select-wrapper {
    max-width: 24rem;
  }
  .search-fields > * {
    flex: 1;
  }
}

.search-fields button {
  flex-shrink: 0;
  flex-grow: 0;
}

.input-field,
.select-wrapper {
  padding: 0.8rem 1.5rem;
  border-radius: 9999px;
  background-color: white;
  color: black;
  border: 1px solid #797979;
  height: unset;
}

.input-field::placeholder,
.select-field:has(option[value=""]:checked) {
  color: #797979;
}

.select-field option:not([value=""]) {
  color: black;
}

.select-wrapper {
  position: relative;
  display: inline-block;
}

.select-wrapper:focus-within {
  outline: 1px solid black;
}

.select-field {
  appearance: none;
  width: 100%;
  border: 0;
  height: 100%;
  background: transparent;
}

.select-field:focus {
  outline: none;
}

.select-wrapper::after {
  color: #797979;
  content: "\f078";
  font-family: 'Font Awesome 6 Free';
  font-style: normal;
  font-weight: 600;
  line-height: 1;
  margin-top: -0.5em;
  padding-right: 0.5em;
  pointer-events: none;
  position: absolute;
  right: 0px;
  top: 50%;
  z-index: 10;
}

@media (min-width: 1170px) {
  efsc-dotted-pagination {
    display: none;
  }
}

.section-card-secondary-gradient {
  padding: 5rem;
  border-radius: 2.4rem;
  background: linear-gradient(302deg, #2C1CD8, #000966);
}
