:root {
  --blue: #1a73e8;
  --light-gray: #f2f2f2;
  --text: #202124;
}

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

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  margin: 0;
  background: #ffffff;
  color: var(--text);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.top-bar {
  display: flex;
  align-items: center;
  padding: 0.75rem 1.5rem;
}

.page {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem 1rem 4rem;
}

.logo {
  font-size: 4rem;
  font-weight: 600;
  margin-bottom: 2rem;
  letter-spacing: 0.02em;
  color: var(--blue);
}

.top-logo {
  font-size: 1.6rem;
  font-weight: 600;
  color: #1a73e8;
  margin-right: 1.5rem;
  text-decoration: none;
}

.top-logo:hover {
  text-decoration: underline;
}

.top-search {
  flex: 1;
  max-width: 640px;
  display: flex;
  align-items: center;
  border: 1px solid #dfe1e5;
  border-radius: 24px;
  padding: 0.35rem 0.9rem;
  background: #ffffff;
}

.top-search input[type="text"] {
  flex: 1;
  border: none;
  font-size: 0.95rem;
  outline: none;
}

.top-search button {
  border: none;
  background: none;
  cursor: pointer;
  color: #5f6368;
  font-size: 0.9rem;
}

.search-box {
  width: 100%;
  max-width: 560px;
  display: flex;
  align-items: center;
  border: 1px solid #dfe1e5;
  border-radius: 24px;
  padding: 0.5rem 1rem;
  box-shadow: 0 1px 6px rgba(32, 33, 36, 0.28);
  background: #ffffff;
}

.search-box input[type="text"] {
  flex: 1;
  border: none;
  font-size: 1rem;
  outline: none;
}

.search-box button {
  border: none;
  background: none;
  cursor: pointer;
  color: #5f6368;
  font-size: 0.9rem;
  padding-left: 0.5rem;
}

.actions {
  margin-top: 1.5rem;
  display: flex;
  gap: 0.75rem;
  justify-content: center;
}

.actions button {
  border: 1px solid #f8f9fa;
  background: #f8f9fa;
  border-radius: 4px;
  padding: 0.55rem 1.1rem;
  font-size: 0.9rem;
  cursor: pointer;
  color: #3c4043;
}

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

.results-info {
  padding: 0.75rem 1.5rem;
  font-size: 0.85rem;
  color: #70757a;
}

.results {
  max-width: 720px;
  padding: 0 1.5rem 2rem;
}

.result {
  margin-bottom: 1.5rem;
}

.result-title {
  font-size: 1.05rem;
  color: #1a0dab;
  text-decoration: none;
}

.result-title:hover {
  text-decoration: underline;
}

.result-url {
  font-size: 0.85rem;
  color: #006621;
  margin-top: 0.15rem;
}

.result-snippet {
  font-size: 0.9rem;
  color: #4d5156;
  margin-top: 0.35rem;
}

footer {
  border-top: 1px solid #e4e4e4;
  background: var(--light-gray);
  padding: 0.75rem 1.5rem;
  font-size: 0.8rem;
  color: #5f6368;
  display: flex;
  justify-content: flex-end;
}

/* ── User menu (shared across all pages) ────────────────────────── */

.top-bar-right {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 12px;
}

.gomail-link {
  font-size: 14px;
  color: var(--blue);
  text-decoration: none;
}

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

.user-menu {
  position: relative;
}

.user-avatar-btn {
  border: none;
  background: transparent;
  cursor: pointer;
  padding: 0;
  display: flex;
  align-items: center;
}

.user-avatar-circle {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #e0e0e0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.user-menu-dropdown {
  position: absolute;
  right: 0;
  top: 40px;
  min-width: 120px;
  background: #ffffff;
  border: 1px solid #dadce0;
  border-radius: 4px;
  box-shadow: 0 2px 8px rgba(60, 64, 67, 0.3);
  padding: 4px 0;
  display: none;
  z-index: 10;
}

.user-menu-item {
  width: 100%;
  border: none;
  background: transparent;
  padding: 8px 16px;
  display: block;
  cursor: pointer;
  font-size: 13px;
  color: #202124;
  text-align: left;
  text-decoration: none;
  font-family: inherit;
}

.user-menu-item:hover {
  background: #f5f5f5;
}

.user-menu-item-danger {
  color: #d93025;
}

/* ── End user menu ──────────────────────────────────────────────── */

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