/* Animation & Transition Styles */

/* Links */
a {
  transition: color 0.3s, opacity 0.3s;
}

.site-title a {
  transition: color 0.3s;
}

.site-nav {
  transition: align-items 0.3s;
}

/* Nav item slide-in effect */
.nav-item {
  transition: all 0.5s ease;
}

.nav-item::before {
  transform: translateX(-100%);
  transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.nav-item:hover::before {
  transform: translateX(0);
}

/* Post title slide-in effect */
.post-title a {
  transition: color 0.5s, padding 0.5s;
}

.post-title a::before {
  
  transform: translateX(-100%);
  transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.post-title:hover a::before,
.post-title a:focus::before {
  transform: translateX(0);
}

/* Post nav cards */
.post-nav-item {
  transition: background-color 0.3s ease;
}

/* Pagination */
.pagination-prev,
.pagination-next,
.page-number {
  transition: all 0.3s ease;
}

/* Social links */
.social-link {
  transition: background-color 0.3s ease;
}

/* Category cards */
.category-item {
  transition: all 0.3s ease;
}

/* Nav item hover state */
.nav-item:hover {
  /* font-size: x-large; */
  color: #f9f9f9;
  border-bottom: transparent;
  padding: 0em 30%;
  text-decoration: none;
}

/* Post title hover state */
.post-title:hover a,
.post-title a:focus {
  color: #f9f9f9 !important;
  padding-left: 5%;
  text-decoration: none;
}

@media (max-width: 768px) {
  .post-title:hover a,
  .post-title a:focus {
    font-size: 1.3rem;
    padding-left: 0.65em;
  }
}
/* Rotating logo */
@keyframes spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

.sidebar-logo {
  --spin-duration: 8s;
  animation: spin var(--spin-duration) linear infinite;
  transition: --spin-duration 0.6s ease;
  transition: margin-top 0.6s ease;
}

.sidebar-logo:hover {
  --spin-duration: 0.2s;
  margin-top: 5vh;
  transition: all 0.6s ease;
}