/* ============================================
   MOBILE JUMP NAVIGATION
   Quick links to reduce scroll fatigue on mobile
   ============================================ */

.mobile-jump-nav {
  display: none;
  position: sticky;
  top: 72px; /* Below the main navbar */
  z-index: 1500;
  background: var(--bg-card);
  backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid var(--border-subtle);
  padding: 12px 0;
  margin: 0 calc(var(--frame-offset) * -1);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.mobile-jump-nav-inner {
  display: flex;
  gap: 8px;
  padding: 0 20px;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  scroll-behavior: smooth;
}

.mobile-jump-nav-inner::-webkit-scrollbar {
  display: none;
}

.jump-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-secondary);
  background: var(--surface-2);
  border: 1px solid var(--border-subtle);
  border-radius: 999px;
  white-space: nowrap;
  text-decoration: none;
  transition: all 0.2s var(--ease-smooth);
  flex-shrink: 0;
}

.jump-link-icon {
  width: 14px;
  height: 14px;
  opacity: 0.7;
}

@media (hover: hover) {
  .jump-link:hover,
  .jump-link:focus {
    background: var(--accent-button-bg);
    color: var(--accent-button-text);
    border-color: transparent;
    transform: translateY(-1px);
  }
}

.jump-link:active {
  transform: translateY(0);
}

/* Show only on mobile */
@media (max-width: 768px) {
  .mobile-jump-nav {
    display: block;
  }
}

/* ============================================
   SHOW MORE/LESS FUNCTIONALITY
   ============================================ */

/* Hide items beyond 3rd on mobile */
@media (max-width: 768px) {
  .side-projects-grid .side-project-card:nth-child(n+4),
  .lessons-track .lesson-card:nth-child(n+4) {
    display: none;
  }

  /* Show all when expanded */
  .side-projects-grid.expanded .side-project-card,
  .lessons-track.expanded .lesson-card {
    display: flex !important;
  }

  /* Animation for expansion */
  .side-projects-grid .side-project-card,
  .lessons-track .lesson-card {
    animation: fadeInUp 0.4s var(--ease-smooth) backwards;
  }

  .side-projects-grid .side-project-card:nth-child(4) { animation-delay: 0.05s; }
  .side-projects-grid .side-project-card:nth-child(5) { animation-delay: 0.1s; }
  .side-projects-grid .side-project-card:nth-child(6) { animation-delay: 0.15s; }

  .lessons-track .lesson-card:nth-child(4) { animation-delay: 0.05s; }
  .lessons-track .lesson-card:nth-child(5) { animation-delay: 0.1s; }
  .lessons-track .lesson-card:nth-child(6) { animation-delay: 0.15s; }
}

/* Show More Button */
.show-more-btn {
  display: none;
  margin: 32px auto 0;
  padding: 12px 32px;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--text-main);
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.25s var(--ease-smooth);
  gap: 8px;
  align-items: center;
}

@media (hover: hover) {
  .show-more-btn:hover {
    background: var(--surface-2);
    border-color: var(--accent-primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
  }
}

.show-more-btn:active {
  transform: translateY(0);
}

.show-more-btn-icon {
  width: 16px;
  height: 16px;
  transition: transform 0.3s var(--ease-smooth);
}

.show-more-btn.expanded .show-more-btn-icon {
  transform: rotate(180deg);
}

.show-more-btn-text {
  display: inline;
}

.show-more-btn .show-less-text {
  display: none;
}

.show-more-btn.expanded .show-more-text {
  display: none;
}

.show-more-btn.expanded .show-less-text {
  display: inline;
}

@media (max-width: 768px) {
  .show-more-btn {
    display: inline-flex;
  }
}

/* Smooth scroll behavior */
html {
  scroll-padding-top: 140px; /* Account for both navbars */
}

@media (max-width: 768px) {
  html {
    scroll-padding-top: 140px;
  }
}

/* Focus state for accessibility */
.jump-link:focus-visible {
  outline: 2px solid var(--accent-primary);
  outline-offset: 2px;
}

.show-more-btn:focus-visible {
  outline: 2px solid var(--accent-primary);
  outline-offset: 2px;
}
