/* macOS-style Navigation Bar and Spotlight Search Styles */

/* macOS Menubar */
.menubar {
  height: 28px;
  background: rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  padding: 0 16px;
  color: white;
  font-size: 13px;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
}

.menubar-left {
  display: flex;
  align-items: center;
  gap: 20px;
}

.menubar-right {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 16px;
}

.menubar-item {
  cursor: pointer;
  padding: 2px 8px;
  border-radius: 4px;
  transition: background 0.2s;
}

.menubar-item:hover {
  background: rgba(255, 255, 255, 0.1);
}

.apple-logo {
  font-size: 18px;
  font-weight: bold;
}

/* Spotlight Search */
.spotlight-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  display: none;
  align-items: flex-start;
  justify-content: center;
  padding-top: 15vh;
  z-index: 2000;
}

.spotlight-overlay.active {
  display: flex;
}

.spotlight-container {
  width: 600px;
  max-width: 90vw;
  background: rgba(30, 30, 30, 0.95);
  backdrop-filter: blur(40px);
  -webkit-backdrop-filter: blur(40px);
  border-radius: 12px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  overflow: hidden;
  animation: spotlightAppear 0.2s ease-out;
}

@keyframes spotlightAppear {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.spotlight-search {
  padding: 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.spotlight-search input {
  width: 100%;
  background: transparent;
  border: none;
  outline: none;
  color: white;
  font-size: 32px;
  font-weight: 300;
}

.spotlight-search input::placeholder {
  color: rgba(255, 255, 255, 0.3);
}

.spotlight-results {
  max-height: 400px;
  overflow-y: auto;
  padding: 8px;
}

.spotlight-result {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.15s;
  text-decoration: none;
  color: white;
}

.spotlight-result:hover,
.spotlight-result.selected {
  background: rgba(255, 255, 255, 0.1);
}

.spotlight-result-icon {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.spotlight-result-info {
  flex: 1;
  min-width: 0;
}

.spotlight-result-title {
  font-size: 15px;
  font-weight: 500;
  margin-bottom: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.spotlight-result-description {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.6);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.spotlight-no-results {
  padding: 40px 20px;
  text-align: center;
  color: rgba(255, 255, 255, 0.5);
  font-size: 14px;
}

/* Scrollbar Styling */
.spotlight-results::-webkit-scrollbar {
  width: 8px;
}

.spotlight-results::-webkit-scrollbar-track {
  background: transparent;
}

.spotlight-results::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 4px;
}

.spotlight-results::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.3);
}

/* Add top padding to body to account for fixed navbar */
body.has-navbar {
  padding-top: 28px;
}
