/* Focus styles for all interactive elements */
a:focus,
button:focus,
input:focus,
textarea:focus {
  outline: 3px solid var(--wp--preset--color--soft-blue);
  outline-offset: 2px;
}

/* Focus for back button */
.backbutton:focus {
  outline: 3px solid var(--wp--preset--color--soft-blue);
  outline-offset: 2px;
}

/* Focus for project buttons */
.wp-element-button-github:focus,
.wp-element-button-live:focus {
  outline: 3px solid var(--wp--preset--color--soft-blue);
  outline-offset: 2px;
  background-color: var(--wp--preset--color--soft-blue);
  color: white;
}

/* Add pointer cursor for button-like links */
.wp-element-button-github,
.wp-element-button-live,
.backbutton {
  cursor: pointer;
}

.skill-cards {
  margin: 0 1.25rem;
}

/* Project Title Row */

.backbutton {
  text-decoration: none;
  vertical-align: middle;
  padding-left: 1.5rem;
}

/* Category Badges in Title Row */

.taxonomy-project_category .nl-term-badge {
  border: 1px solid var(--wp--preset--color--soft-blue);
  border-radius: 0.4375rem;
  padding: 0.25em 0.75em;
  background-color: var(--wp--preset--color--soft-blue);
  color: white;
  text-transform: uppercase;
  font-size: medium;
  margin: 0 0.25em 0.25em 0;
  display: inline-block;
  white-space: nowrap;
}
.wp-block-post-terms__separator {
  display: none;
}

@media (max-width: 51.875rem) {
  .backbutton {
    padding-left: 0.5rem;
    margin-left: 0;
  }

  .has-h-1-font-size {
    font-size: 2rem !important;
  }

  .taxonomy-project_category .nl-term-badge {
    font-size: 0.8rem;
  }

  .single-project-categories {
    width: 100%;
  }
}

@media (max-width: 39.375rem) {
  .has-h-1-font-size {
    font-size: 2rem !important;
  }

  .project-details {
    padding: 1rem 0.75rem;
    margin: 0;
  }
}

/* Project Details Bar (Under Featured Image) */
.project-details {
  margin: 0.5rem 0.5rem;
}

.project-buttons {
  display: inline-block;
  white-space: nowrap;
  margin: 0.05rem;
}

a.wp-element-button-github {
  background-color: transparent;
  color: var(--wp--preset--color--deep-indigo);
  border: 3px solid var(--wp--preset--color--deep-indigo);
  border-radius: 20px;
  padding: 0.75rem 2rem;
  transition: all 0.3s ease;
}

.wp-element-button-github:hover {
  background-color: var(--wp--preset--color--deep-indigo);
  color: white;
}

a.wp-element-button-live {
  background-color: var(--wp--preset--color--dusty-mauve);
  color: white;
  border: 2px solid var(--wp--preset--color--dusty-mauve);
  border-radius: 20px;
  padding: 0.75rem 2rem;
  transition: all 0.3s ease;
}

a.wp-element-button-live:hover {
  background-color: var(--wp--preset--color--deep-indigo);
  color: white;
  border: 2px solid var(--wp--preset--color--deep-indigo);
}

@media (max-width: 94rem) {
  div.wp-block-group .project-buttons {
    gap: 2rem;
    padding-top: 1.3rem;
    padding-bottom: 0.5rem;
  }
}

/* Tool Badges */

.taxonomy-badges .nl-term-badge {
  display: inline-block;
  padding: 0.25em 0.75em;
  margin: 0 0.5em 0.5em 0;
  border: 1px solid var(--wp--preset--color--deep-indigo);
  background-color: var(--wp--preset--color--deep-indigo);
  color: white;
  border-radius: 15px;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Mobile Navigation */
/* hide on all viewports by default */
#mobile-nav {
  display: none;
}

.mobile-nav-icon {
  display: none;
}

/* show on mobile only */
@media (max-width: 28.125rem) {
  #mobile-nav {
    display: flex;
    flex-direction: row;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 96%;
    z-index: 1000;
    margin-left: 0.5rem;
    margin-bottom: 0.75rem;
  }
  /* if you wrapped a desktop header, hide it on mobile */
  .sticky-nav-bar,
  .custom-nav {
    display: none;
  }

  .mobile-nav-icon {
    display: block;
  }
}

@media (min-width: 28.1875rem) {
  #mobile-nav {
    display: none;
  }
  .sticky-nav-bar,
  .custom-nav {
    display: block;
  }
}

/* More Projects Section */
.more-projects {
  margin: 0 1rem;
}
