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

html,
body {
  height: 100%;
  min-width: 400px;
}

body {
  background: #fff;
  display: block;
}

body,
input,
button {
  font-size: 14px;
  font-family: Roboto, Arial, sans-serif;
  color: #1f1f1f;
}

.main-wrapper {
  display: flex;
  flex-direction: column;
  height: 100%;
}

/* Navigation */
.top-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px;
  position: relative;
  height: 60px;
}

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

.nav-left a {
    cursor: pointer;
}

.nav-link {
  color: rgba(0, 0, 0, 0.87);
  text-decoration: none;
  font-size: 13px;
  padding: 5px 8px;
  transition: text-decoration 0.2s;
  cursor: pointer;
  pointer-events: auto;
  position: relative;
  z-index: 101;
}

.nav-link:hover {
  text-decoration: underline;
}

.menu-button,
.profile-button {
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  border-radius: 50%;
  transition: background-color 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 101;
  pointer-events: auto;
}

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

.menu-icon {
  width: 24px;
  height: 24px;
  fill: #5f6368;
}

.profile-circle {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #34a853;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 500;
  font-size: 16px;
}

/* Main Content */
.main-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px;
  margin-top: -100px;
}

.logo-container {
  margin-bottom: 30px;
}

.logo {
  font-size: 60px;
  font-weight: 400;
  letter-spacing: -5px;
  line-height: 1.2;
  font-family: Google Sans, Roboto, Arial, sans-serif;
}

.logo-blue {
  color: #4285f4;
}

.logo-red {
  color: #ea4335;
}

.logo-yellow {
  color: #fbbc05;
}

.logo-green {
  color: #34a853;
}

/* Search Container */
.search-container {
  width: 100%;
  max-width: 584px;
  margin-bottom: 30px;
}

.search-box {
  display: flex;
  align-items: center;
  border: 1px solid #dfe1e5;
  border-radius: 24px;
  padding: 0 16px;
  height: 44px;
  background-color: #fff;
  box-shadow: 0 2px 5px 1px rgba(64, 60, 67, 0.16);
  transition: box-shadow 0.2s;
}

.search-box:hover {
  box-shadow: 0 2px 8px 1px rgba(64, 60, 67, 0.28);
}

.search-box:focus-within {
  box-shadow: 0 2px 8px 1px rgba(64, 60, 67, 0.28);
  border-color: transparent;
}

.search-icon {
  width: 20px;
  height: 20px;
  fill: #9aa0a6;
  margin-right: 13px;
  flex-shrink: 0;
}

.search-input {
  flex: 1;
  border: none;
  outline: none;
  font-size: 16px;
  color: rgba(0, 0, 0, 0.87);
  background: transparent;
}

.search-input::placeholder {
  color: #9aa0a6;
}

.search-input-demo {
  pointer-events: none;
  user-select: none;
  caret-color: transparent;
  cursor: default;
  text-overflow: ellipsis;
}

.search-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-left: 8px;
}

.mic-icon,
.camera-icon {
  width: 24px;
  height: 24px;
  fill: #4285f4;
  cursor: pointer;
  transition: opacity 0.2s;
}

.mic-icon:hover,
.camera-icon:hover {
  opacity: 0.8;
}

.ai-mode-button {
  background-color: #1a73e8;
  color: white;
  border: none;
  border-radius: 20px;
  padding: 6px 16px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.2s;
  font-family: arial, sans-serif;
  white-space: nowrap;
}

.ai-mode-button:hover {
  background-color: #1557b0;
}

/* Button Container */
.button-container {
  display: flex;
  gap: 11px;
  margin-bottom: 30px;
}

.search-button {
  background-color: #f8f9fa;
  border: 1px solid #f8f9fa;
  border-radius: 8px;
  color: #3c4043;
  font-size: 14px;
  text-decoration: none;
  text-align: center;
  padding: 0 16px;
  cursor: pointer;
  transition: all 0.2s;
  font-family: Google Sans, Roboto, Arial, sans-serif;
  margin: 11px 4px;
  font-weight: 500;
  height: 36px;
  min-width: 54px;
}

.search-button:hover {
  box-shadow: 0 1px 1px rgba(0, 0, 0, 0.1);
  background-color: #f8f9fa;
  border: 1px solid #dadce0;
  color: #202124;
}

.search-button:focus {
  border: 1px solid #4285f4;
  outline: none;
}

/* Language Links */
.language-links {
  font-size: 13px;
  color: #202124;
}

.language-links a {
  color: #1a0dab;
  text-decoration: none;
  margin: 0 3px;
}

.language-links a:hover {
  text-decoration: underline;
}

/* Footer */
.footer {
  background-color: #f2f2f2;
  border-top: 1px solid #dadce0;
  margin-top: auto;
}

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

.footer-top p {
  color: #1f1f1f;
  font-size: 15px;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 30px;
  flex-wrap: wrap;
  gap: 20px;
}

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

.footer-center {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
  justify-content: center;
}

.leaf-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.footer-center-text {
  color: #1f1f1f;
  font-size: 14px;
  white-space: nowrap;
}

.footer-bottom a {
  color: #1f1f1f;
  text-decoration: none;
  font-size: 14px;
  white-space: nowrap;
  cursor: pointer;
}

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

/* Responsive Design */
@media (max-width: 768px) {
  .logo {
    font-size: 60px;
  }

  .search-container {
    max-width: 90%;
  }

  .button-container {
    width: 100%;
  }

  .search-button {
    width: 100%;
  }

  .footer-top p {
    text-align: center;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: center;
    gap: 15px;
  }

  .footer-left,
  .footer-right {
    justify-content: center;
  }

  .footer-center {
    order: -1;
    width: 100%;
    justify-content: center;
  }

  .footer-center-text {
    font-size: 14px;
  }

  .language-links {
    text-align: center;
    padding: 0 20px;
  }

  .nav-link {
    font-size: 12px;
  }
}

@media (max-width: 480px) {
  .logo {
    font-size: 40px;
  }

  .top-nav {
    padding: 6px 10px;
  }

  .nav-left {
    gap: 10px;
  }

  .nav-right {
    gap: 8px;
  }

  .footer-top p {
    text-align: center;
  }

  .footer-bottom {
    padding: 15px 10px;
    gap: 12px;
  }

  .footer-left,
  .footer-right {
    gap: 15px;
  }

  .footer-center {
    order: -1;
    width: 100%;
    justify-content: center;
    flex-wrap: wrap;
  }

  .footer-center-text {
    font-size: 14px;
    text-align: center;
  }

  .ai-mode-button {
    padding: 5px 12px;
    font-size: 12px;
  }
}
