/* ANCHOR: universal_button_styles */
/* REUSED: Universal button system with two variants */
/* SCALED FOR: Consistent button styling across all components */
/* UPDATED COMMENTS: Icon-only and icon+text button variants */

/* ANCHOR: base_button */
.nav-button {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 10px;
  border: none;
  cursor: pointer;
  
  /* UPDATED COMMENTS: Clean background with backdrop blur - NO SHADOWS */
  background: rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(2px);
  border-radius: 8px;
  
  /* SCALED FOR: Hardware acceleration */
  will-change: opacity, background;
}

.nav-button:hover {
  opacity: 0.9;
  background: rgba(0, 0, 0, 0.6);
}

.nav-button:active {
  opacity: 0.7;
  background: rgba(0, 0, 0, 0.7);
}

/* ANCHOR: icon_button_variant */
/* UPDATED COMMENTS: Square icon-only buttons for social media */
/* CRITICAL: Social icons (telegram, linkedin) use fill, action icons use stroke */
.nav-button--icon {
  width: 40px;
  height: 40px;
  padding: 8px;
  gap: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  /* UPDATED COMMENTS: Center icon content perfectly */
}

/* CRITICAL: Social header buttons use a fully rounded pill/circle shape and match the action-button height. */
.nav-button--social {
  width: 36px;
  height: 36px;
  padding: 8px;
  border-radius: 9999px;
}

.nav-button--social.nav-button--icon {
  width: 36px;
  height: 36px;
}

.nav-button--icon svg,
.nav-button--icon iconify-icon {
  width: 20px;
  height: 20px;
}

.nav-button--icon svg {
  fill: #FFFFFF;
  stroke: none;
  /* UPDATED COMMENTS: Remove stroke to prevent outline on social icons */
}

/* ANCHOR: text_button_variant */
/* UPDATED COMMENTS: Rectangular icon+text buttons for actions */
.nav-button--text {
  gap: 8px;
  padding: 8px;
  height: 36px;
  min-width: fit-content;
  display: flex;
  align-items: center;
  justify-content: center;
  /* UPDATED COMMENTS: Center all content in text buttons */
}

.nav-button--text .nav-button__icon {
  flex: none;
  order: 0;
  flex-grow: 0;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  /* UPDATED COMMENTS: Fixed 24x24px size to match social icons */
}

.nav-button--text .nav-button__icon svg {
  width: 100%;
  height: 100%;
  /* UPDATED COMMENTS: Let SVG define its own fill/stroke */
  color: #FFFFFF;
}

.nav-button--text .nav-button__icon iconify-icon {
  color: #FFFFFF;
  /* UPDATED COMMENTS: White color for iconamoon icons */
}

.nav-button--text .nav-button__text {
  font-family: 'Geist Mono', var(--font-family-mono);
  font-style: normal;
  font-weight: 500;
  font-size: 18px;
  line-height: 22px;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  color: #FFFFFF;
  
  flex: none;
  order: 1;
  flex-grow: 0;
  display: flex;
  align-items: center;
  /* UPDATED COMMENTS: Center text vertically */
}

/* ANCHOR: dropdown_button_variant */
/* UPDATED COMMENTS: Dropdown buttons with text and arrow icon on right */
.nav-button--dropdown {
  gap: 0;
  padding: 0;
  height: 22px;
  min-width: 0;
  background: transparent;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  overflow: hidden;
}

.nav-button--dropdown .nav-button__text {
  font-family: 'Geist Mono', var(--font-family-mono);
  font-style: normal;
  font-weight: 400;
  font-size: 18px;
  line-height: 22px;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  color: #FFFFFF;
  
  flex: none;
  order: 0;
  flex-grow: 0;
  margin-right: 8px;
  min-width: 0;
  max-width: min(24ch, 100%);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  /* UPDATED COMMENTS: Margin instead of gap for better hover area */
}

.nav-button--dropdown .nav-button__icon {
  flex: none;
  order: 1;
  flex-grow: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  /* UPDATED COMMENTS: Center arrow icon vertically */
}

.nav-button--dropdown .nav-button__icon svg {
  width: 20px;
  height: 20px;
  stroke: #FFFFFF;
  fill: none;
}

.nav-button--dropdown:hover .nav-button__text {
  opacity: 0.7;
}

/* ANCHOR: dropdown_flag_variant */
/* UPDATED COMMENTS: Dropdown button with flag icon */
.nav-button--dropdown--flag {
  gap: 0;
}

.nav-button--dropdown .nav-button__flag {
  flex: none;
  order: 0;
  flex-grow: 0;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 8px;
  /* UPDATED COMMENTS: Center flag icon vertically and horizontally */
}

.nav-button--dropdown--flag .nav-button__text {
  order: 1;
  margin-right: 8px;
  /* UPDATED COMMENTS: Margin for spacing between text and arrow */
}

.nav-button--dropdown--flag .nav-button__icon {
  order: 2;
}

/* ANCHOR: button_sizes */
/* SCALED FOR: Multiple button sizes */
.nav-button--small {
  padding: 6px;
  height: 32px;
}

.nav-button--small.nav-button--icon {
  width: 32px;
  height: 32px;
}

.nav-button--small svg {
  /* UPDATED COMMENTS: Use original SVG sizes, no forced dimensions */
}

.nav-button--small .nav-button__text {
  font-size: 14px;
  line-height: 18px;
}

.nav-button--large {
  padding: 14px;
  height: 48px;
}

.nav-button--large.nav-button--icon {
  width: 48px;
  height: 48px;
}

.nav-button--large svg {
  /* UPDATED COMMENTS: Use original SVG sizes, no forced dimensions */
}

.nav-button--large .nav-button__text {
  font-size: 20px;
  line-height: 26px;
}

/* ANCHOR: specific_button_widths */
/* UPDATED COMMENTS: Specific widths for navigation buttons */
.nav-button--cv {
  width: auto;
  min-width: fit-content;
  padding-left: 12px;
  padding-right: 12px;
  border-radius: 9999px;
}

.nav-button--share {
  width: auto;
  min-width: fit-content;
  padding-left: 12px;
  padding-right: 12px;
  border-radius: 9999px;
}

/* CRITICAL: Keep header action labels in normal case while leaving the rest of the navigation typography untouched */
.nav-button--cv .nav-button__text,
.nav-button--share .nav-button__text {
  text-transform: none;
}

/* ANCHOR: accessibility */
/* REUSED: Accessibility improvements */
.nav-button:focus {
  outline: 2px solid #FFFFFF;
  outline-offset: 2px;
}

.nav-button:focus:not(:focus-visible) {
  outline: none;
}

/* ANCHOR: disabled_state */
.nav-button:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  pointer-events: none;
}

/* ANCHOR: responsive_design */
/* SCALED FOR: Mobile-friendly button sizes */
@media (max-width: 768px) {
  .nav-button--text .nav-button__text {
    font-size: 16px;
    line-height: 20px;
  }
  
  .nav-button--cv,
  .nav-button--share {
    min-width: 100px;
    width: auto;
  }
}
