:root {
  --showcase-bg: var(--background-secondary);
  --showcase-text: var(--text-primary);
  --showcase-heading: var(--heading-primary);
  --card-border: var(--go-blue);
  --tag-bg: var(--yellow);
  --tag-text: var(--black);
}

.btn-primary {
  background: var(--yellow);
  color: var(--black);
}

.btn-primary:hover {
  background: var(--fuchsia);
  color: var(--text-primary);
  transform: scale(1.05);
}

/* Hero Section */
.showcase-hero {
  background: linear-gradient(135deg, var(--go-blue), var(--aqua));
  color: var(--black);
  text-align: center;
  padding: 4rem 2rem;
}

.showcase-hero h1 {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 900;
  margin-bottom: 0;
}

.showcase-hero p {
  font-size: 1.2rem;
  max-width: 700px;
  margin: 1rem auto 0;
}

/* Filters */
.filters {
  margin-top: 1rem;
}

.filters label {
  font-weight: bold;
}

/* Enhanced Select Dropdown Styling */
.filters select {
  appearance: none;
  background: var(--background-primary);
  color: var(--text-primary);
  border: 2px solid var(--go-blue);
  border-radius: 5px;
  padding: 0.6rem 2.5rem 0.6rem 0.75rem;
  font-size: 0.95rem;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2300ADD8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  background-size: 1em;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

/* Style the dropdown options */
.filters select option {
  background-color: var(--background-primary);
  color: var(--text-primary);
  padding: 10px;
}

.filters select:hover {
  border-color: var(--fuchsia);
}

.filters select:focus {
  outline: none;
  border-color: var(--fuchsia);
  box-shadow: 0 0 0 2px rgba(206, 50, 98, 0.25);
}

/* Project Section */
.project-section {
  background-color: var(--showcase-bg);
  padding: 2rem;
  text-align: center;
}

.project-section h2 {
  color: var(--showcase-heading);
}

/* Project Cards */
.project-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
}

.project-card {
  background-color: var(--background-primary);
  border: 2px solid var(--card-border);
  border-radius: 8px;
  padding: 1.5rem;
  width: 320px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 4px 10px rgba(0, 173, 216, 0.4);
}

.project-card h3 a {
  color: var(--showcase-heading);
  text-decoration: none;
}

.project-card p {
  color: var(--showcase-text);
  font-size: 1rem;
}

.project-card .author {
  font-weight: bold;
  color: var (--light-blue);
  margin-bottom: 0.5rem;
}

/* Tags */
.tag-container {
  margin-top: 1rem;
}

.tag {
  display: inline-block;
  background: var(--tag-bg);
  color: var(--tag-text);
  font-size: 0.85rem;
  padding: 5px 10px;
  border-radius: 5px;
  font-weight: bold;
  text-transform: uppercase;
  margin: 2px;
}

.skipping-gopher-image {
  width: 200px;
  height: 200px;
}

@media (max-width: 768px) {
  .project-card {
    width: 100%;
  }

  .showcase-hero {
    padding: 1rem 2rem;
  }

  .showcase-hero h1 {
    font-size: 1.8rem;
    margin-top: 0;
  }
}

/* Project Submission CTA */
.showcase-cta {
  margin: 1.5rem 0;
  font-size: 1rem;
}

/* Tag Selection in Modal */
.tag-selection {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 0.5rem;
}

/* Custom Checkbox Styling */
.tag-checkbox input[type="checkbox"] {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  width: 18px;
  height: 18px;
  border: 2px solid var(--go-blue);
  border-radius: 3px;
  background: var(--background-primary);
  cursor: pointer;
  position: relative;
  margin-right: 8px;
  vertical-align: middle;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.tag-checkbox input[type="checkbox"]:checked {
  background-color: var(--go-blue);
  border-color: var(--go-blue);
  position: relative;
}

.tag-checkbox input[type="checkbox"]:checked::after {
  content: "";
  position: absolute;
  left: 3px;
  top: -1px;
  width: 6px;
  height: 10px;
  border: solid white;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
  display: block;
}

.tag-checkbox input[type="checkbox"]:hover {
  border-color: var(--fuchsia);
}

.tag-checkbox input[type="checkbox"]:focus {
  outline: none;
  border-color: var(--fuchsia);
  box-shadow: 0 0 0 2px rgba(206, 50, 98, 0.25);
}

.tag-checkbox {
  display: inline-flex;
  align-items: center;
  background: var(--background-primary);
  padding: 0.5rem 0.75rem;
  border-radius: 4px;
  cursor: pointer;
  transition: background 0.2s ease;
  user-select: none;
}

.tag-checkbox input[type="checkbox"] {
  flex-shrink: 0;
  margin-right: 8px;
}

.tag-checkbox:hover {
  background: var(--background-tertiary);
}

.tag-checkbox input {
  margin: 0;
}

/* Project Form Styles */
.project-form {
  max-width: 100%;
  margin: 1.5rem 0 0.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.project-form label {
  text-align: left;
  font-weight: 600;
  color: var(--text-primary);
}

.project-form input[type="text"],
.project-form input[type="email"],
.project-form input[type="url"],
.project-form textarea {
  width: 100%;
  padding: 0.75rem;
  border: 2px solid var(--go-blue);
  border-radius: 5px;
  background: var(--background-primary);
  color: var(--text-primary);
  font-size: 1rem;
}

.project-form input:focus,
.project-form textarea:focus {
  outline: none;
  border-color: var(--fuchsia);
  box-shadow: 0 0 0 2px rgba(206, 50, 98, 0.25);
}

.project-form button {
  align-self: center;
  margin-top: 0.5rem;
  min-width: 120px;
}

/* Mobile Styles */
@media (max-width: 768px) {
  .tag-selection {
    flex-direction: column;
    gap: 0.5rem;
    align-items: flex-start;
  }

  .tag-checkbox {
    width: 100%;
  }

  .project-form {
    gap: 0.75rem;
  }

  .project-form input,
  .project-form textarea {
    padding: 0.6rem;
    font-size: 0.95rem;
  }

  .skipping-gopher-image {
    width: 110px;
    height: 110px;
  }

  .showcase-cta {
    margin: 0.5rem 0;
    font-size: 1rem;
  }

  .filters select {
    width: 100%;
    padding: 0.5rem 2.5rem 0.5rem 0.6rem;
    font-size: 0.9rem;
  }

  .tag-checkbox input[type="checkbox"] {
    width: 16px;
    height: 16px;
  }

  .tag-checkbox input[type="checkbox"]:checked::after {
    left: 3px;
    top: -1px;
    width: 4px;
    height: 9px;
  }
}
