:root {
  --background: #ffffff;
  --search-bg: #ffffff;
  --text: #202124;
  --secondary-text: #5f6368;
  --border-color: #dadce0;
  --footer-bg: #f2f2f2;
  --footer-text: #70757a;
  --footer-border: #dadce0;
  --search-shadow: 0 1px 6px rgba(32, 33, 36, 0.28);
  --suggestion-hover: #f8f9fa;
  --trending-item-border: #eee;
}

body {
  margin: 0;
  padding: 0;
  height: 100%;
  font-family: Roboto, Arial, sans-serif;
  background-color: var(--background);
  color: var(--text);
}

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

.top-bar-left {
  display: flex;
  align-items: center;
}

.top-bar-tabs {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-left: 16px;
}

.top-bar-tabs a {
  color: var(--secondary-text);
  text-decoration: none;
  font-size: 12px;
  font-weight: bold;
  position: relative;
  padding-bottom: 8px;
}

.top-bar-tabs a.active {
  color: #1a73e8;
}

.top-bar-tabs a.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: -8px;
  right: -8px;
  height: 2px;
  background-color: #1a73e8;
  border-radius: 2px;
}

.top-bar-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

.login-button {
  background: #1a73e8;
  color: white;
  border: none;
  padding: 8px 24px;
  border-radius: 100px;
  font-size: 14px;
  cursor: pointer;
}

.menu-button {
  padding: 8px;
  background: none;
  border: none;
  color: var(--secondary-text);
  cursor: pointer;
}

.menu-button svg path {
  fill: var(--secondary-text);
}

.grid-button {
  padding: 8px;
  background: none;
  border: none;
  color: var(--secondary-text);
  cursor: pointer;
  border-radius: 4px;
}

.grid-button:hover {
  background-color: var(--suggestion-hover);
}

.grid-button svg circle {
  fill: var(--secondary-text);
}

#main {
  text-align: center;
  padding-top: 20px;
}

.logo-container {
  position: relative;
  display: inline-block;
  margin: 8px 0;
}

.logo-container svg {
  height: 56px;
  cursor: pointer;
}

.search-box {
  max-width: 736px;
  margin: 0 auto;
  padding: 0 8px;
}

.search-wrapper {
  display: flex;
  border: 1px solid var(--border-color);
  border-radius: 24px;
  height: 44px;
  margin: 0 auto;
  background: var(--search-bg);
}

.search-input {
  flex: 1;
  border: none;
  outline: none;
  padding: 0 15px;
  font-size: 16px;
  background: transparent;
  color: var(--text);
}

.search-icon {
  padding: 0 15px;
  display: flex;
  align-items: center;
  color: var(--secondary-text);
  cursor: pointer;
}

.search-icon svg {
  fill: var(--secondary-text);
}

.camera-icon {
  width: 24px;
  height: 24px;
  margin: 0 12px 0 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  align-self: center;
  cursor: pointer;
}

.microphone-icon {
  width: 24px;
  height: 24px;
  margin: 0 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  align-self: center;
  cursor: pointer;
}

.camera-icon svg,
.microphone-icon svg {
  width: 24px;
  height: 24px;
  fill: var(--secondary-text);
}

.camera-icon svg path,
.microphone-icon svg path {
  fill: var(--secondary-text) !important;
}

#footer {
  position: fixed;
  bottom: 0;
  width: 100%;
  background: var(--footer-bg);
  font-size: 14px;
  color: var(--footer-text);
  border-top: 1px solid var(--footer-border);
}

.footer-content {
  padding: 10px 20px;
  text-align: center;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.footer-links a {
  color: var(--footer-text);
  text-decoration: none;
  font-size: 14px !important;
}

.trending-searches {
  max-width: 736px;
  margin: 20px auto;
  text-align: left;
  padding: 0 20px;
}

.trending-title {
  font-size: 18px;
  color: var(--text);
  margin: 0 0 15px 10px;
  text-align: left;
}

.trending-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  color: var(--text);
  font-size: 16px;
  border-bottom: 1px solid var(--trending-item-border);
  margin: 10px;
  cursor: pointer;
}

.trending-item:hover {
  background-color: var(--suggestion-hover);
}

.trending-text {
  color: var(--text);
  text-decoration: none;
  flex: 1;
  margin-left: 8px;
}

.trending-arrow {
  margin-right: 8px;
  fill: var(--secondary-text);
}

.autofill-container {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* Mobile Fullscreen Search */
.fullscreen-search {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--background);
  z-index: 9999;
  display: none;
  flex-direction: column;
}

.fullscreen-search.active {
  display: flex;
}

.fullscreen-header {
  display: flex;
  align-items: center;
  padding: 8px 16px;
  border-bottom: 1px solid var(--border-color);
  min-height: 56px;
}

.back-button {
  background: none;
  border: none;
  color: var(--secondary-text);
  cursor: pointer;
  padding: 8px;
  margin-right: 16px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.back-button:hover {
  background-color: var(--suggestion-hover);
}

.back-button svg {
  width: 24px;
  height: 24px;
  fill: var(--secondary-text);
}

.fullscreen-search-wrapper {
  flex: 1;
  display: flex;
  align-items: center;
  background: transparent;
  border: none;
  height: 48px;
}

.fullscreen-search-input {
  flex: 1;
  border: none;
  outline: none;
  font-size: 16px;
  background: transparent;
  color: var(--text);
  padding: 0 8px 0 0;
}

.fullscreen-microphone-icon {
  width: 24px;
  height: 24px;
  margin: 0 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.fullscreen-camera-icon {
  width: 24px;
  height: 24px;
  margin-left: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.fullscreen-camera-icon svg,
.fullscreen-microphone-icon svg {
  width: 24px;
  height: 24px;
  fill: var(--secondary-text);
}

.fullscreen-content {
  flex: 1;
  overflow-y: auto;
  padding: 0;
}

.fullscreen-trending {
  background: var(--background);
  display: block;
}

.fullscreen-trending.hidden {
  display: none;
}

.fullscreen-trending-title {
  font-size: 16px;
  color: var(--text);
  margin: 16px;
  font-weight: 500;
}

.fullscreen-trending-item {
  display: flex;
  align-items: center;
  padding: 12px 16px;
  cursor: pointer;
  color: var(--text);
  border-bottom: 1px solid var(--trending-item-border);
}

.fullscreen-trending-item:hover {
  background-color: var(--suggestion-hover);
}

.fullscreen-trending-item svg {
  width: 20px;
  height: 20px;
  margin-right: 16px;
  fill: var(--secondary-text);
}

/* Mobile */
@media (max-width: 768px) {
  .search-input {
    cursor: pointer;
  }
}

/* Desktop */
@media (min-width: 769px) {
  .fullscreen-search {
    display: none !important;
  }
}
