/* Navigation Link Components - Dark themed buttons with arrows */

.next-link,
.prev-link {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  background: #2d3748 !important;
  color: #ffffff !important;
  text-decoration: none !important;
  padding: 12px 20px !important;
  border-radius: 8px !important;
  font-weight: 500 !important;
  font-size: 1rem !important;
  transition: all 0.2s ease-in-out !important;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1) !important;
  margin: 2rem 0 !important;
  min-width: 120px !important;
  position: relative !important;
  overflow: hidden !important;
}

.next-link:hover,
.prev-link:hover {
  background: #4a5568 !important;
  color: #ffffff !important;
  text-decoration: none !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15) !important;
}

.next-link:active,
.prev-link:active {
  transform: translateY(0) !important;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1) !important;
}

.next-link .next-text,
.prev-link .prev-text {
  flex: 1;
  margin-right: 8px;
}

.next-link .next-arrow,
.prev-link .prev-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  transition: transform 0.2s ease-in-out;
}

.next-link:hover .next-arrow {
  transform: translateX(2px);
}

.prev-link:hover .prev-arrow {
  transform: translateX(-2px);
}

/* Arrow icons using CSS */
.next-link .next-arrow::after {
  content: "→";
  font-size: 18px;
  font-weight: bold;
  line-height: 1;
}

.prev-link .prev-arrow::after {
  content: "←";
  font-size: 18px;
  font-weight: bold;
  line-height: 1;
}

/* Alternative arrows using Unicode */
.next-link .next-arrow-unicode::after {
  content: "→";
  font-size: 16px;
  line-height: 1;
}

.prev-link .prev-arrow-unicode::after {
  content: "←";
  font-size: 16px;
  line-height: 1;
}

/* Dark mode adjustments */
@media (prefers-color-scheme: dark) {
  .next-link,
  .prev-link {
    background: #1a202c !important;
    color: #e2e8f0 !important;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3) !important;
  }
  
  .next-link:hover,
  .prev-link:hover {
    background: #2d3748 !important;
    color: #e2e8f0 !important;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.4) !important;
  }
  
  .next-link:active,
  .prev-link:active {
    background: #1a202c !important;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3) !important;
  }
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .next-link,
  .prev-link {
    padding: 10px 16px;
    font-size: 0.9rem;
    min-width: 100px;
  }
  
  .next-link .next-arrow,
  .prev-link .prev-arrow {
    width: 18px;
    height: 18px;
  }
  
  .next-link .next-arrow::after,
  .prev-link .prev-arrow::after {
    font-size: 16px;
  }
}

/* Right-aligned variant */
.next-link-right {
  margin-left: auto;
  margin-right: 0;
}

/* Left-aligned variant (for previous links) */
.prev-link-left {
  margin-right: auto;
  margin-left: 0;
}

/* Default alignment - Next button right-aligned when used alone */
.next-link:not(.next-link-center):not(.next-link-full) {
  margin-left: auto;
  margin-right: 0;
}

/* Default alignment - Previous button left-aligned when used alone */
.prev-link:not(.prev-link-center):not(.prev-link-full) {
  margin-right: auto;
  margin-left: 0;
}

/* Center-aligned variant */
.next-link-center,
.prev-link-center {
  margin-left: auto;
  margin-right: auto;
  display: flex;
}

/* Full width variant */
.next-link-full,
.prev-link-full {
  width: 100%;
  justify-content: space-between;
}

/* Navigation container for both buttons */
.nav-links-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin: 2rem 0;
}

.nav-links-container .prev-link {
  margin: 0;
}

.nav-links-container .next-link {
  margin: 0;
}

/* Responsive navigation container */
@media (max-width: 768px) {
  .nav-links-container {
    flex-direction: column;
    gap: 0.5rem;
  }
  
  .nav-links-container .prev-link,
  .nav-links-container .next-link {
    width: 100%;
  }
} 