/* Reset & Base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 14px;
  color: #202124;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a {
  text-decoration: none;
  color: inherit;
}

/* Header */
.header {
  display: flex;
  justify-content: flex-end;
  padding: 6px;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 6px 8px;
}

.header-link {
  padding: 5px 8px;
  color: rgba(0, 0, 0, 0.87);
  font-size: 13px;
  border-radius: 4px;
  transition:
    background-color 0.2s,
    text-decoration 0.2s;
}

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

.apps-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  border-radius: 50%;
  color: #5f6368;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.2s;
}

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

.avatar-link {
  margin-left: 4px;
}

.avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #1a73e8;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  transition: box-shadow 0.2s;
}

.avatar:hover {
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

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

#logo {
  width: 272px;
  height: 92px;
  margin-bottom: 30px;
}

/* Search Box */
.search-container {
  width: 100%;
  max-width: 584px;
}

.search-form {
  display: flex;
  align-items: center;
  border: 1px solid #dfe1e5;
  border-radius: 24px;
  padding: 0 14px;
  height: 46px;
  transition:
    box-shadow 0.2s,
    border-color 0.2s;
  background: #fff;
}

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

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

.search-icon {
  flex-shrink: 0;
  margin-right: 8px;
}

#search-input {
  flex: 1;
  border: none;
  outline: none;
  font-size: 16px;
  color: #202124;
  background: transparent;
  height: 100%;
}

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

.icon-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background-color 0.2s;
}

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

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

.search-btn {
  background-color: #f8f9fa;
  border: 1px solid #f8f9fa;
  border-radius: 4px;
  color: #3c4043;
  font-size: 14px;
  padding: 10px 16px;
  cursor: pointer;
  transition:
    border-color 0.2s,
    box-shadow 0.2s;
}

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

/* Language Offer */
.language-offer {
  margin-top: 30px;
  font-size: 13px;
  color: #4d5156;
}

.language-offer a {
  color: #1a0dab;
  padding: 0 4px;
}

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

/* Footer */
.footer {
  background: #f2f2f2;
  border-top: 1px solid #e4e4e4;
  flex-shrink: 0;
}

.footer-country {
  padding: 15px 30px;
  border-bottom: 1px solid #e4e4e4;
  font-size: 15px;
  color: #70757a;
}

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

.footer-left,
.footer-right {
  display: flex;
  flex-wrap: wrap;
}

.footer-left a,
.footer-right a {
  padding: 15px;
  color: #70757a;
  font-size: 14px;
  white-space: nowrap;
}

.footer-left a:hover,
.footer-right a:hover {
  text-decoration: underline;
}

/* Responsive */
@media (max-width: 600px) {
  #logo {
    width: 200px;
    height: auto;
  }

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

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

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