/* Brutalist Navbar Tools & Search Styles */

/* Search Wrapper */
.navbar-search-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  gap: 4px;
  margin-right: 8px;
}

/* Brutalist Search Input */
.brutalist-search-input {
  width: 280px;
  height: 32px;
  padding: 0 12px;
  border: 1px solid #000000;
  background: #ffffff;
  color: #000000;
  font-family: 'Google Sans Code', monospace;
  font-size: 12px;
  font-weight: 400;
  outline: none;
  box-sizing: border-box;
  transition: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
}

.brutalist-search-input::placeholder {
  color: #666666;
  opacity: 0.7;
}

.brutalist-search-input:focus {
  border-color: #000000;
  border-width: 2px;
  padding: 0 11px;
}

/* Search Button */
.brutalist-btn-search {
  width: 32px;
  height: 32px;
  border: 1px solid #000000;
  background: #ffffff;
  color: #000000;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  outline: none;
  user-select: none;
  position: relative;
  z-index: 1;
  box-sizing: border-box;
  transform-origin: center center;
  overflow: visible;
  transition: transform 0.15s cubic-bezier(0.4, 0, 0.2, 1);
}

.brutalist-btn-search::before {
  content: '';
  position: absolute;
  height: 3px;
  background: #000000;
  bottom: 100%;
  left: 0px;
  right: 0px;
  transform: skew(-45deg, 0) translateX(-1px);
  margin: 0;
  transition: height 0.15s cubic-bezier(0.4, 0, 0.2, 1),
              opacity 0.15s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: -1;
  transform-origin: bottom center;
  pointer-events: none;
}

.brutalist-btn-search::after {
  content: '';
  position: absolute;
  background: #000000;
  top: 0px;
  z-index: -1;
  bottom: 0px;
  width: 3px;
  left: 100%;
  transform: skew(0, -45deg) translateY(-1px);
  transition: width 0.15s cubic-bezier(0.4, 0, 0.2, 1),
              opacity 0.15s cubic-bezier(0.4, 0, 0.2, 1);
  transform-origin: left center;
  pointer-events: none;
}

.brutalist-btn-search:hover {
  transform: translateY(2.5px) scale(0.98);
}

.brutalist-btn-search:hover::before {
  height: 2px;
  opacity: 0.8;
}

.brutalist-btn-search:hover::after {
  width: 2px;
  opacity: 0.8;
}

.brutalist-btn-search:active {
  transform: translateY(4px) scale(0.96);
  transition: transform 0.08s cubic-bezier(0.4, 0, 0.6, 1);
}

.brutalist-btn-search:active::before {
  height: 1.5px;
  opacity: 0.6;
  transition: height 0.08s cubic-bezier(0.4, 0, 0.6, 1),
              opacity 0.08s cubic-bezier(0.4, 0, 0.6, 1);
}

.brutalist-btn-search:active::after {
  width: 1.5px;
  opacity: 0.6;
  transition: width 0.08s cubic-bezier(0.4, 0, 0.6, 1),
              opacity 0.08s cubic-bezier(0.4, 0, 0.6, 1);
}

.brutalist-btn-search svg {
  width: 14px;
  height: 14px;
  position: relative;
  z-index: 10;
  transition: transform 0.15s cubic-bezier(0.4, 0, 0.2, 1);
  transform: translateZ(0);
}

/* Search Results Dropdown */
.brutalist-search-results {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  max-height: 300px;
  overflow-y: auto;
  background: #ffffff;
  border: 2px solid #000000;
  display: none;
  z-index: 3000;
  font-family: 'Google Sans Code', monospace;
}

.brutalist-search-results.show {
  display: block;
}

.brutalist-search-result-item {
  padding: 8px 12px;
  border-bottom: 1px solid #000000;
  cursor: pointer;
  color: #000000;
  font-size: 12px;
  transition: background 0.15s cubic-bezier(0.4, 0, 0.2, 1);
}

.brutalist-search-result-item:last-child {
  border-bottom: none;
}

.brutalist-search-result-item:hover {
  background: #f0f0f0;
}

.brutalist-search-result-item .result-label {
  font-weight: 600;
  margin-bottom: 2px;
}

.brutalist-search-result-item .result-type {
  font-size: 10px;
  color: #666666;
  text-transform: uppercase;
}

/* Tools Dropdown */
.navbar-tools-dropdown {
  position: relative;
}

.brutalist-dropdown-menu {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  min-width: 160px;
  background: #ffffff;
  border: 2px solid #000000;
  display: none;
  z-index: 3000;
  font-family: 'Google Sans Code', monospace;
  box-shadow: 4px 4px 0 rgba(0, 0, 0, 0.1);
}

.brutalist-dropdown-menu.show {
  display: block;
}

.brutalist-dropdown-item {
  width: 100%;
  padding: 10px 12px;
  border: none;
  border-bottom: 1px solid #000000;
  background: #ffffff;
  color: #000000;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Google Sans Code', monospace;
  font-size: 12px;
  font-weight: 600;
  text-align: left;
  transition: background 0.15s cubic-bezier(0.4, 0, 0.2, 1);
  outline: none;
}

.brutalist-dropdown-item:last-child {
  border-bottom: none;
}

.brutalist-dropdown-item:hover {
  background: #f0f0f0;
}

.brutalist-dropdown-item:active {
  background: #e0e0e0;
}

.brutalist-dropdown-item.active {
  background: #000000;
  color: #ffffff;
}

.brutalist-dropdown-item svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

.brutalist-dropdown-item span {
  flex: 1;
}

/* Responsive */
@media (max-width: 768px) {
  .navbar-search-wrapper {
    margin-right: 4px;
  }
  
  .brutalist-search-input {
    width: 200px;
    font-size: 11px;
  }
  
  .brutalist-dropdown-menu {
    min-width: 140px;
  }
}

