/* Results Page Layout */
.results-header {
  position: sticky;
  top: 0;
  background: var(--background);
  z-index: 100;
  border-bottom: 1px solid var(--border-color);
  width: 100%;
}

.header-content {
  display: flex;
  align-items: center;
  padding: 8px 26px;
  gap: 16px;
  height: 64px;
  max-width: 1860px;
  margin: 0 auto;
}

.logo-section {
  display: flex;
  align-items: center;
  gap: 36px;
  flex: 1;
  min-width: 0;
}

#logo-small {
  font-size: 22px;
  font-weight: 400;
  letter-spacing: -2px;
  display: flex;
  min-width: 100px;
  flex-shrink: 0;
}

.search-container-small {
  flex: 1;
  max-width: 632px;
  min-width: 0;
}

.search-bar-small {
  display: flex;
  align-items: center;
  height: 46px;
  background: var(--search-bg);
  border: 1px solid transparent;
  border-radius: 24px;
  padding: 0 8px 0 16px;
  width: 100%;
}

.search-bar-small:hover,
.search-bar-small:focus-within {
  background: var(--search-hover-bg);
  box-shadow: 0 1px 6px rgba(32,33,36,0.28);
  border-color: rgba(223,225,229,0);
}

#search-input-small {
  flex: 1;
  border: none;
  outline: none;
  font-size: 16px;
  background: transparent;
  color: var(--text-primary);
  margin: 0 8px;
}

.nav-tabs {
  display: flex;
  align-items: center;
  gap: 32px;
  padding: 0 16px;
  height: 48px;
  border-bottom: 1px solid var(--border-color);
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  white-space: nowrap;
  background: var(--background);
  max-width: 1600px;
  margin: 0 auto;
  justify-content: flex-start;
}

.nav-tabs::-webkit-scrollbar {
  display: none;
}

.nav-tab {
  padding: 0 4px;
  height: 100%;
  display: inline-flex;
  align-items: center;
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 14px;
  border-bottom: 3px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}

.nav-tab.active {
  color: var(--google-blue);
  border-bottom-color: var(--google-blue);
}

/* Main Content */
.results-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 400px;
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
  min-height: calc(100vh - 300px); /* Ensure minimum height for content */
}

/* Search Results */
.result-item {
  display: flex;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--border-color);
}

.result-icon {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: var(--surface);
  color: var(--google-blue);
}

.result-content h3 {
  margin: 0 0 4px 0;
  font-weight: 400;
}

.result-content h3 a {
  color: var(--google-blue);
  text-decoration: none;
  font-size: 20px;
}

.result-content h3 a:hover {
  text-decoration: underline;
}

.result-url {
  color: var(--url-color);
  font-size: 14px;
  margin-bottom: 4px;
}

.result-description {
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.58;
}

/* Profile Card */
.profile-card {
  background: var(--surface);
  border-radius: 8px;
  border: 1px solid var(--border-color);
  overflow: hidden;
}

.profile-header {
  padding: 24px;
  text-align: center;
  border-bottom: 1px solid var(--border-color);
}

.profile-photo {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  margin-bottom: 16px;
}

.profile-name {
  font-size: 24px;
  color: var(--text-primary);
  margin: 0;
}

.profile-title {
  color: var(--text-secondary);
  font-size: 14px;
  margin: 4px 0;
}

.profile-bio {
  padding: 16px 24px;
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.58;
}

.profile-section {
  padding: 16px 24px;
  border-top: 1px solid var(--border-color);
}

.profile-section h3 {
  font-size: 16px;
  color: var(--text-primary);
  margin: 0 0 12px 0;
}

.tech-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(40px, 1fr));
  gap: 12px;
}

.tech-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: var(--surface);
  border: 1px solid var(--border-color);
}

.tech-icon img {
  width: 24px;
  height: 24px;
}

/* Updated Pagination */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin: 40px 0;
  padding: 0 20px;
}

.pagination-item {
  min-width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  cursor: pointer;
  font-size: 16px;
  color: var(--text-primary);
  transition: all 0.2s ease;
  padding: 0 12px;
  user-select: none;
  background: transparent;
  border: 1px solid var(--border-color);
}

.pagination-item:hover {
  background: var(--hover-overlay);
}

.pagination-item.active {
  background: var(--google-blue);
  color: white;
  border-color: var(--google-blue);
}

.pagination-item.disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .results-layout {
      grid-template-columns: 1fr;
  }
  
  .profile-card {
      order: -1;
  }
}

@media (max-width: 768px) {
  .header-content {
      flex-direction: column;
      gap: 16px;
      padding: 16px;
  }
  
  .nav-tabs {
      padding: 0 16px;
      gap: 24px;
  }
  
  .profile-photo {
      width: 120px;
      height: 120px;
  }

  .pagination-item {
      min-width: 36px;
      height: 36px;
      font-size: 14px;
  }
}

@media (max-width: 480px) {
  .result-item {
      flex-direction: column;
      gap: 8px;
  }
  
  .tech-grid {
      grid-template-columns: repeat(auto-fit, minmax(32px, 1fr));
  }

  .pagination {
      gap: 4px;
  }

  .pagination-item {
      min-width: 32px;
      height: 32px;
      font-size: 14px;
      padding: 0 8px;
  }
}

/* Animation for results and pagination */
.fade-in {
  opacity: 0;
  animation: fadeIn 0.5s ease forwards;
}

@keyframes fadeIn {
  from {
      opacity: 0;
      transform: translateY(10px);
  }
  to {
      opacity: 1;
      transform: translateY(0);
  }
}

