/* Navigation and Carousel Styles */

/* Navigation */
.nav-title {
  position: relative;
  background: linear-gradient(180deg, #000000 0%, #181818 98%);
  box-shadow: inset -4px -3px 4px rgba(0, 0, 0, 0.14), inset 0 0 2px;
  padding: 10px 10px 10px 3px;
  border-radius: 4px 0px 0px 4px;
  overflow: hidden;
  font-size: 12pt;
  font-weight: 600;
  flex-shrink: 0;
}

.nav-title::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 3px;
  right: 3px;
  height: 12px;
  background: linear-gradient(white, transparent);
  border-radius: 2px 0 10px 10px;
  opacity: 0.87;
  pointer-events: none;
}

.link-box {
  padding: 3px;
  text-decoration: none;
  color: #e3e3e3;
  transition: background-color 0.2s ease;
  text-align: left;
  font-size: 11pt;
  background: linear-gradient(180deg, #535353, #2b2b2b);
  border-bottom: solid 1px #000000;
  border-right: solid 1px #000000;
  border-left: 1px solid #000000;
  border-radius: 3px 0px 0px 3px;
  flex-shrink: 0;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.link-box:visited {
  color: #e3e3e3;
}

.link-box:hover {
  background: linear-gradient(180deg, #6a6a6a, #3a3a3a);
  color: #f5f5f5;
}

/* Mobile-friendly hover states */
@media (hover: hover) {
  .link-box:hover {
    background: linear-gradient(180deg, #6a6a6a, #3a3a3a);
    color: #f5f5f5;
  }
}

@media (hover: none) {
  .link-box:active {
    background: linear-gradient(180deg, #6a6a6a, #3a3a3a);
    color: #f5f5f5;
    transform: scale(0.98);
    transition: all 0.1s ease;
  }
}

/* Active navigation link highlighting */
.link-box.active {
  background-color: rgba(39, 245, 187, 0.1);
  border-left: 3px solid #27F5BB;
  color: #27F5BB;
}

/* Carousel */
.carousel-about-container {
  display: flex;
  gap: 10px;
  width: 100%;
  margin-top: 10px;
  flex-shrink: 0;
  height: fit-content;
}

.carousel-container {
  flex: 1 1 auto;
  min-width: 0;
  background: linear-gradient(to bottom, #414141, #212121);
  border: 1px solid #212121;
  box-shadow: inset 0 0 5px #000000;
  border-radius: 6px;
  position: relative;
  margin-top: 0;
}

.carousel-title {
  border-bottom: 1px solid #000000;
  font-size: 12pt;
  font-weight: bold;
  padding: 4px 6px;
  background: linear-gradient(0deg, #181818 0%, #4d4d4d 98%);
  border-radius: 3px 3px 0px 0px;
  border-top: solid 1px #000000;
}

.carousel {
  display: flex;
  align-items: center;
  padding: 6px;
}

.arrow {
  width: 25px;
  height: 45px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  user-select: none;
  font-size: 20px;
  font-weight: bold;
  background: linear-gradient(to bottom, #414141, #212121);
  border: 1px solid #212121;
  box-shadow: inset 0 0 5px #000000;
  border-radius: 6px;
  text-shadow: 1px 1px #000000;
}

.carousel-track {
  display: flex;
  overflow: hidden;
  flex: 1;
  gap: 10px;
  scroll-behavior: smooth;
  padding: 0 5px;
  margin-right: 10px;
  margin-left: 10px;
}

/* Repository Cards */
.repo-card {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 12px;
  margin-right: 16px;
  min-width: 250px;
  max-width: 280px;
  flex-shrink: 0;
  transition: all 0.3s ease;
  border: 1px solid #212121;
  backdrop-filter: blur(10px);
}

.repo-card:hover {
  background: rgba(255, 255, 255, 0.15);
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.3);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.repo-card-title {
  font-family: 'VCR OSD Mono', 'Terminus (TTF)', 'Courier Regular', monospace;
  font-size: 1.1em;
  margin: 0 0 4px 0;
  color: #ffffff;
  display: -webkit-box;
  line-clamp: 1;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.repo-card-description {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.85em;
  margin: 0 0 8px 0;
  line-height: 1.3;
  display: -webkit-box;
  line-clamp: 2;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.6em;
}

.repo-card-footer {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 0.8em;
}

.repo-language {
  color: #4CAF50;
  font-weight: bold;
}

.repo-updated {
  color: rgba(255, 255, 255, 0.6);
}

.repo-card-footer a {
  color: #27F5BB;
  text-decoration: none;
  margin-top: 4px;
  transition: color 0.3s ease;
}

.repo-card-footer a:visited {
  color: #D9BCF7;
}

.repo-card-footer a:hover {
  color: #27F5BB;
  text-decoration: underline;
  opacity: 0.8;
}

/* Loading and error states */
.loading-message, .error-message {
  color: rgba(255, 255, 255, 0.8);
  text-align: center;
  padding: 20px;
  font-family: 'VCR OSD Mono', monospace;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.error-message {
  color: #ff6b6b;
}

.loading-message {
  color: #ccc;
  font-style: italic;
  padding: 20px;
  text-align: center;
}

/* Icon lists */
.icon-list {
  list-style: none;
  margin: 0;
  padding: 0px 0px 6px 8px;
}

.icon-list li {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 2px 0;
}
