:root {
  --google-blue: #4285f4;
  --google-red: #ea4335;
  --google-yellow: #fbbc05;
  --google-green: #34a853;
  --border-color: #dadce0;
  --url-color: #006621;
  --text-secondary: #5f6368;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: arial, sans-serif;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Header */
header {
  padding: 6px;
  height: 60px;
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 16px;
}

.left-nav, .right-nav {
  display: flex;
  align-items: center;
  gap: 15px;
}

nav a {
  text-decoration: none;
  color: inherit;
  font-size: 13px;
  padding: 5px 6.7px;
}

nav a:hover {
  text-decoration: underline;
}

.icon-button {
  background: none;
  border: none;
  padding: 8px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.icon-button:hover {
  background-color: rgba(60,64,67,0.08);
}

.profile-button {
  background: none;
  border: none;
  padding: 4px;
  cursor: pointer;
}

.profile-pic {
  width: 32px;
  height: 32px;
  border-radius: 50%;
}

/* Main Content */
main {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: calc(25vh - 120px);
}

#logo {
  font-size: 92px;
  font-weight: 400;
  margin-bottom: 28px;
  letter-spacing: -8px;
  line-height: 1;
}

.blue { color: var(--google-blue); }
.red { color: var(--google-red); }
.yellow { color: var(--google-yellow); }
.green { color: var(--google-green); }

/* Search Container */
#search-container {
  width: 100%;
  max-width: 584px;
  padding: 0 20px;
}

#search-bar {
  display: flex;
  align-items: center;
  border: 1px solid #dfe1e5;
  border-radius: 24px;
  padding: 0 8px 0 16px;
  height: 46px;
  margin-bottom: 18px;
}

#search-bar:hover,
#search-bar:focus-within {
  background-color: white;
  box-shadow: 0 1px 6px rgba(32,33,36,.28);
  border-color: rgba(223,225,229,0);
}

.search-icon {
  color: #9aa0a6;
  font-size: 20px;
}

#search-input {
  flex-grow: 1;
  border: none;
  outline: none;
  font-size: 16px;
  margin: 0 13px;
  background: transparent;
}

.search-icons {
  display: flex;
  align-items: center;
  gap: 8px;
}

.search-icons .material-icons {
  color: #9aa0a6;
}

/* Search Buttons */
#search-buttons {
  display: flex;
  justify-content: center;
  gap: 12px;
}

#search-buttons button {
  background-color: #f8f9fa;
  border: 1px solid #f8f9fa;
  border-radius: 4px;
  color: #3c4043;
  font-size: 14px;
  padding: 0 16px;
  height: 36px;
  cursor: pointer;
  min-width: 54px;
}

#search-buttons button:hover {
  border-color: #dadce0;
  box-shadow: 0 1px 1px rgba(0,0,0,.1);
}

/* Footer */
footer {
  margin-top: auto;
  background-color: #f2f2f2;
  color: #70757a;
  font-size: 14px;
}

.footer-section {
  padding: 15px 30px;
  border-bottom: 1px solid #dadce0;
}

.footer-links {
  display: flex;
  justify-content: space-between;
  padding: 0 20px;
}

.footer-section a {
  color: #70757a;
  text-decoration: none;
  padding: 15px;
  display: inline-block;
}

.footer-section a:hover {
  text-decoration: underline;
}

/* Container Styles */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

@media (max-width: 1200px) {
    .container {
        max-width: 90%;
    }
}

/* Result Item Styles */
.result-item {
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
}

.result-item:last-child {
    border-bottom: none;
}

.result-item h3 {
    font-size: 18px;
    margin-bottom: 5px;
}

.result-item .result-url {
    color: var(--url-color);
    font-size: 14px;
    margin-bottom: 5px;
}

.result-item p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.4;
}

/* Responsive Design */
@media (max-width: 768px) {
  #logo {
      font-size: 70px;
      letter-spacing: -4px;
  }

  #search-container {
      width: 90%;
  }

  .footer-links {
      flex-direction: column;
      align-items: center;
  }

  .footer-section a {
      padding: 10px;
  }
}

@media (max-width: 480px) {
  .right-nav {
      gap: 4px;
  }

  #search-buttons {
      flex-direction: column;
  }

  #search-buttons button {
      width: 100%;
  }
}

/* Results Page Specific Styles */
.results-header {
  position: sticky;
  top: 0;
  background: white;
  z-index: 100;
  padding: 0;
  border-bottom: 1px solid var(--border-color);
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 16px;
  height: 64px;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-grow: 1;
  max-width: 692px;
}

#logo-small {
  font-size: 22px;
  line-height: 24px;
  font-weight: 400;
  letter-spacing: -2px;
  padding-left: 4px;
}

.search-container-small {
  flex-grow: 1;
  max-width: 692px;
}

.search-bar-small {
  display: flex;
  align-items: center;
  background: var(--background-gray);
  border: 1px solid transparent;
  border-radius: 24px;
  padding: 0 8px 0 16px;
  height: 46px;
  width: 100%;
}

.search-bar-small:hover,
.search-bar-small:focus-within {
  background-color: white;
  box-shadow: 0 1px 6px rgba(32,33,36,.28);
  border-color: rgba(223,225,229,0);
}

#search-input-small {
  flex-grow: 1;
  border: none;
  outline: none;
  font-size: 16px;
  background: transparent;
  margin: 0 13px;
}

#results-nav {
  display: flex;
  padding: 0 20px;
  border-bottom: 1px solid var(--border-color);
  gap: 30px;
  overflow-x: auto;
}

#results-nav a {
  color: #5f6368;
  text-decoration: none;
  font-size: 14px;
  padding: 16px 0;
  border-bottom: 3px solid transparent;
  white-space: nowrap;
}

#results-nav a.active {
  color: var(--google-blue);
  border-bottom-color: var(--google-blue);
}

#results-nav a:hover {
  color: var(--google-blue);
}

#results-main {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 40px;
  max-width: 1140px;
  margin: 0 auto;
  padding: 20px;
}

#profile-card {
  background: white;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  overflow: hidden;
}

.profile-header {
  text-align: center;
  padding: 20px;
}

#profile-photo {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  margin-bottom: 15px;
}

.profile-header h2 {
  margin: 0;
  font-size: 24px;
  color: #202124;
}

.job-title {
  color: #5f6368;
  margin: 4px 0;
  font-size: 14px;
}

.profile-info {
  padding: 0 20px;
}

.info-section {
  margin: 15px 0;
}

.info-section h3 {
  font-size: 14px;
  color: #202124;
  margin: 0 0 4px 0;
}

.info-section p {
  margin: 0;
  font-size: 14px;
  color: #5f6368;
  line-height: 1.58;
}

.profile-social {
  padding: 20px;
  border-top: 1px solid var(--border-color);
}

.social-links {
  display: flex;
  gap: 12px;
  margin-top: 12px;
}

.social-link {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--background-gray);
}

.technologies {
  padding: 20px;
  border-top: 1px solid var(--border-color);
}

.tech-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(32px, 1fr));
  gap: 12px;
  margin-top: 12px;
}

.results-footer {
  background-color: var(--background-gray);
  padding: 15px 30px;
  color: #70757a;
  font-size: 14px;
}

.location-details {
  margin-left: 15px;
}

.location-details a {
  color: #70757a;
  text-decoration: none;
}

.location-details a:hover {
  text-decoration: underline;
}

@media (max-width: 1200px) {
  #results-main {
      grid-template-columns: 1fr;
  }

  #profile-card {
      order: -1;
  }
}

@media (max-width: 768px) {
  .header-left {
      gap: 15px;
  }

  #results-nav {
      gap: 15px;
  }

  .search-container-small {
      max-width: 100%;
  }
}

