/* styles/glass-theme.css */


/* The main navigation bar with the glass effect */
.glass-nav {
  position: relative; /* Allow z-index without breaking flow */
  left: 1rem; /* Position from the left */
  right: 1rem; /* Position from the right */
  z-index: 10; /* Ensure it's above the scrolling content */
  margin-right: 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem;
  border-radius: 9999px;
  border: 0.5px solid var(--border-color);
  background-color: var(--default-bg-color);
  backdrop-filter: blur(var(--blur-size));
  -webkit-backdrop-filter: blur(var(--blur-size));
  box-shadow: 0 0 32px 0 var(--shadow-color);
  transition: background-color 0.3s ease, border-color 0.3s ease;
}

/* A generic class for any interactive item within the nav bar */
.glass-item {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem;
  height: 2.5rem;
  min-width: 2.5rem;
  border-radius: 9999px;
  border: 1px solid transparent; /* Start with a transparent border */
  background-color: var(--default-bg-color);
  backdrop-filter: blur(var(--blur-size));
  -webkit-backdrop-filter: blur(var(--blur-size));
  transition: background-color 0.3s ease, border-color 0.3s ease;
  color: var(--text-color-primary);
  margin: 0 0.25rem;
}

.glass-item:hover {
  background-color: var(--hover-bg-color);
  border-color: var(--hover-border-color);
}

/* Dark mode adjustments */
.dark-mode .glass-nav {
  background-color: var(--default-bg-color);
  border-color: var(--border-color);
}

.dark-mode .glass-item {
  color: var(--primary-text-color);
  background-color: var(--default-bg-color);
}

.dark-mode .glass-item:hover {
  background-color: var(--hover-bg-color);
  border-color: var(--hover-border-color);
}

/* Make social icons white in dark mode */
.dark-mode .glass-item svg {
  fill: var(--primary-text-color);
}

/* Breadcrumb container - no longer a pill */
.glass-breadcrumb {
  display: flex;
  align-items: center;
  flex: 1;
  padding: 0.5rem 1rem;
  padding-left: 0.5rem;
  font-size: 0.9rem;
  overflow: hidden;
  white-space: nowrap;
  justify-content: flex-start;
}

/* Individual items inside the breadcrumb */
.breadcrumb-item {
  padding: 0.5rem 0.75rem;
  border-radius: 9999px;
  transition: background-color 0.2s ease;
  color: inherit;
  text-decoration: none;
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
}

.breadcrumb-item:hover {
  background-color: var(--hover-bg-color);
  border-color: var(--hover-border-color);
}

.dark-mode .breadcrumb-item:hover {
  background-color: var(--hover-bg-color);
  border-color: var(--hover-border-color);
}

.dark-mode .breadcrumb-item {
  color: var(--primary-text-color);
}

.glass-breadcrumb .breadcrumb-separator {
  margin: 0 0.5rem;
  opacity: 0.5;
  color: var(--primary-text-color);
}

/* Language switcher dropdown menu */
.language-switcher-menu {
  position: absolute;
  border-radius: 12px;
  border: 1px solid var(--border-color);
  background-color: var(--default-bg-color);
  backdrop-filter: blur(var(--blur-size));
  -webkit-backdrop-filter: blur(var(--blur-size));
  box-shadow: 0 0 32px 0 var(--shadow-color);
  padding: 0.5rem;
  z-index: 1001;
  min-width: 100px;

}

.dark-mode .language-switcher-menu {
  background-color: var(--default-bg-color);
  border-color: var(--border-color);
}

.language-switcher-menu a {
  display: block;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  color: var(--primary-text-color);
  text-decoration: none;

}

.language-switcher-menu a:hover {
  background-color: var(--hover-bg-color);
}

.dark-mode .language-switcher-menu a:hover {
  background-color: var(--hover-bg-color);
  border-color: var(--hover-border-color);
}

/* --- SideNav Styles --- */

.glass-sidenav {
  position: relative;
  padding: 1rem;
  border-radius: 32px;
  border: 0.5px solid var(--border-color);
  background-color: var(--default-bg-color);
  backdrop-filter: blur(var(--blur-size));
  -webkit-backdrop-filter: blur(var(--blur-size));
  box-shadow: 0 0 32px 0 var(--shadow-color);
  transition: all 0.3s ease;
  width: var(--sidenav-width); /* Fixed width for desktop */
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.sidenav-pill {
  position: absolute;
  z-index: 0;
  background-color: var(--hover-bg-color);
  border: 1px solid var(--hover-border-color);
  border-radius: 16px;
  transition: top 0.3s ease, left 0.3s ease, width 0.3s ease, height 0.3s ease, opacity 0.3s ease;
  pointer-events: none;
}

.dark-mode .glass-sidenav {
  background-color: var(--default-bg-color);
  border-color: var(--border-color);
}

.sidenav-item {
  position: relative;
  z-index: 1;
  display: block;
  padding: 0.5rem 0.5rem; /* Reduced padding */
  border-radius: 16px;
  color: var(--primary-text-color);
  text-decoration: none;
  transition: background-color 0.2s ease, border-color 0.2s ease;
  border: 1px solid transparent;
}

.dark-mode .sidenav-item {
  color: var(--primary-text-color);
}


.sidenav-item.active {
  background-color: var(--default-bg-color);
  border-color: var(--border-color);
  font-weight: 600;
}

.dark-mode .sidenav-item.active {
  background-color: var(--default-bg-color);
  border-color: var(--border-color);
}

/* Mobile Settings */

.mobile .glass-nav {
  position: fixed;
  top: 120px; /* Height of the TopNav */
  left: 1.5rem;
  right: 1.5rem;
  transform: translateX(-110%);
  opacity: 0;
  z-index: 1003;
}

.mobile .glass-sidenav {
  border-radius: 24px;
  position: fixed;
  top: 120px; /* Height of the TopNav */
  left: 1.5rem;
  right: 1.5rem;
  transform: translateX(-110%);
  opacity: 0;
  z-index: 1003;
}

.mobile.mobile-open .glass-sidenav {
  transform: translateX(0);
  opacity: 1;
}

/* Icon and text alignment for breadcrumb items */
.breadcrumb-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.breadcrumb-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.breadcrumb-icon-inline {
  margin-right: 0.25rem;
  font-size: 0.8em;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.breadcrumb-text {
  display: inline-block;
  line-height: 1;
}

.site-icon {
  width: 1.2rem;
  height: 1.2rem;
  object-fit: contain;
  display: block;
}
