:root {
  --bg-color: #ffffff;
  --text-color: #202124;
  --input-bg: #ffffff;
  --input-border: #dfe1e5;
  --btn-bg: #f8f9fa;
  --btn-text: #3c4043;
  --link-color: #1a0dab;
  --footer-bg: #f2f2f2;
  --footer-border: #dadce0;
  --search-box-bg: #ffffff;
}

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

body {
  font-family: 'Roboto', arial, sans-serif;
  background-color: var(--bg-color);
  color: var(--text-color);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* Header */
header {
  padding: 8px 16px;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 15px;
  height: 48px;
}

.header-links {
  display: flex;
  align-items: center;
  gap: 15px;
}

.header-links a {
  color: var(--btn-text);
  text-decoration: none;
  font-size: 13px;
}

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

.header-icons {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-icon {
  fill: #bdc1c6;
  width: 24px;
  height: 24px;
  padding: 8px;
  border-radius: 50%;
  cursor: pointer;
  box-sizing: content-box;
}

.nav-icon:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

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

/* Main Search Container */
main {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding-bottom: 120px;
}

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

.google-text {
  font-family: 'Outfit', 'Roboto', sans-serif;
  font-size: 92px;
  font-weight: 500;
  letter-spacing: -2.5px;
  user-select: none;
}

.g-blue { color: #4285f4; }
.o-red { color: #ea4335; }
.o-yellow { color: #fbbc05; }
.l-green { color: #34a853; }
.e-red { color: #ea4335; }

/* Search Bar Wrapper */
.search-wrapper {
  width: 100%;
  max-width: 584px;
  margin: 0 auto;
  padding: 0 20px;
}

.search-box {
  display: flex;
  align-items: center;
  background-color: var(--search-box-bg);
  border: 1px solid #dfe1e5;
  border-radius: 24px;
  padding: 0 14px 0 18px;
  height: 48px;
  transition: box-shadow 0.2s, border-color 0.2s;
}

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

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

.search-input {
  flex-grow: 1;
  background-color: transparent;
  border: none;
  outline: none;
  color: #4d5156; /* Professional gray text */
  font-size: 16px;
  padding: 10px;
}

.search-icon-left {
  color: #9aa0a6;
  margin-right: 0px;
  display: flex;
  align-items: center;
}

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

.search-icons-right svg, .search-icons-right img {
  cursor: pointer;
}

.ai-mode-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  border: 1px solid #dfe1e5;
  border-radius: 20px;
  padding: 6px 16px;
  color: #3c4043;
  font-size: 13px;
  cursor: pointer;
  white-space: nowrap;
}

.ai-mode-btn:hover {
  background-color: rgba(255, 255, 255, 0.05);
}

/* Search Buttons */
.buttons-container {
  margin-top: 25px;
  display: flex;
  gap: 12px;
}

.btn {
  background-color: #f8f9fa;
  border: 1px solid #f8f9fa;
  border-radius: 4px;
  color: #3c4043;
  font-family: inherit;
  font-size: 14px;
  padding: 0 16px;
  height: 36px;
  cursor: pointer;
  user-select: none;
  transition: all 0.1s;
}

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

/* Language Link */
.language-info {
  margin-top: 25px;
  font-size: 13px;
}

.language-info a {
  color: var(--link-color);
  text-decoration: none;
}

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

/* Footer Section */
footer {
  background-color: var(--footer-bg);
  width: 100%;
}

.footer-top {
  padding: 15px 30px;
  border-bottom: 1px solid var(--footer-border);
  color: #70757a;
  font-size: 15px;
}

.footer-bottom {
  padding: 15px 30px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
}

.footer-links {
  display: flex;
  gap: 25px;
}

.footer-links a {
  color: #70757a;
  text-decoration: none;
  font-size: 14px;
}

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

/* Desktop/Mobile element handling */
.mobile-only, .mobile-icon {
  display: none;
}

@media (max-width: 600px) {
  :root {
    --bg-color: #202124;
    --text-color: #bdc1c6;
    --input-bg: #303134;
    --input-border: #5f6368;
    --btn-bg: #303134;
    --btn-text: #e8eaed;
    --link-color: #8ab4f8;
    --footer-bg: #171717;
    --footer-border: #3c4043;
    --search-box-bg: #3c4043; /* Darker gray for mobile */
  }

  .google-text {
    font-size: 72px;
    letter-spacing: -1.5px;
  }

  .google-text span {
    color: #ffffff !important; /* All white for mobile dark theme */
  }

  .desktop-only {
    display: none !important;
  }
  .mobile-only, .mobile-icon {
    display: block;
  }
  
  header {
    justify-content: space-between;
    padding: 0 16px;
    height: 56px;
    border-bottom: 1px solid #3c4043;
  }

  .header-left-mobile {
    display: flex;
    align-items: center;
    gap: 15px;
  }

  .header-tabs {
    display: flex;
    gap: 20px;
  }

  .header-tabs a {
    color: #999;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    padding: 18px 0;
    border-bottom: 3px solid transparent;
  }

  .header-tabs a.active {
    color: #8ab4f8;
    border-bottom-color: #8ab4f8;
  }

  main {
    padding-top: 60px;
    justify-content: flex-start;
  }

  .google-text {
    font-size: 80px;
  }
  
  .search-wrapper {
    max-width: 92%;
  }

  .search-box {
    height: 44px;
    background-color: #303134;
    border: 1px solid #5f6368;
  }
  
  .buttons-container {
    display: none; /* Google hides search buttons on mobile homepage */
  }

  .language-info {
    margin-top: 40px;
  }
  
  /* Footer Mobile */
  .footer-bottom {
    padding: 10px 0;
  }

  .mobile-footer {
    display: flex;
    width: 100%;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
    color: #999;
  }

  .mobile-footer a {
    font-size: 13px;
  }

  .search-box:focus-within, .search-box:hover {
    background-color: #3c4043 !important;
    border-color: #5f6368 !important;
    box-shadow: 0 1px 6px rgba(0,0,0,0.4) !important;
  }

  .search-input {
    color: #ffffff; /* Explicitly keep text white */
  }
}
.buttons-container {
  display: flex;
  justify-content: center;   /* centers horizontally */
  align-items: center;
  gap: 10px;                 /* space between buttons */
  margin-top: 20px;
}