/**
 * Google-clone styles for anti-google
 * Recreates the Google.com aesthetic using the brand color palette
 */

:root {
  /* Google brand colors */
  --blue: #4285f4;
  --red: #ea4335;
  --yellow: #fbbc05;
  --green: #34a853;

  /* Text colors */
  --text-primary: #202124;
  --text-secondary: #5f6368;
  --text-link: #1a0dab;

  /* Background & UI */
  --bg-primary: #ffffff;
  --bg-secondary: #f8f9fa;
  --border-color: #dfe1e5;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  height: 100%;
  font-family: Roboto, Arial, sans-serif;
  color: var(--text-primary);
  background-color: var(--bg-primary);
}

body {
  display: flex;
  flex-direction: column;
}

/* Page layout */
.page-container {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* Top navigation */
.top-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  font-size: 13px;
}

.nav-links {
  display: flex;
  gap: 16px;
  flex: 1;
}

.nav-link {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 13px;
  padding: 8px 0;
  transition: color 0.2s;
}

.nav-link:hover {
  color: var(--text-primary);
}

.nav-icons {
  display: flex;
  align-items: center;
  gap: 8px;
}

.icon-btn {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-secondary);
  padding: 8px;
  border-radius: 50%;
  transition: background-color 0.2s;
}

.icon-btn:hover {
  background-color: var(--bg-secondary);
  color: var(--text-primary);
}

.avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
  transition: transform 0.2s;
}

.avatar:hover {
  transform: scale(1.05);
}

/* Main content */
.main-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 0 20px;
}

/* Logo */
.logo-container {
  text-align: center;
  margin-bottom: 24px;
}

.logo {
  font-size: 96px;
  font-weight: 400;
  letter-spacing: -3px;
  margin: 0;
}

.logo-a {
  color: var(--blue);
}
.logo-n {
  color: var(--red);
}
.logo-t {
  color: var(--blue);
}
.logo-i {
  color: var(--yellow);
}
.logo-dash {
  color: var(--text-primary);
}
.logo-g {
  color: var(--blue);
}
.logo-o {
  color: var(--red);
}
.logo-o2 {
  color: var(--yellow);
}
.logo-g2 {
  color: var(--green);
}
.logo-l {
  color: var(--blue);
}
.logo-e {
  color: var(--red);
}

@media (max-width: 768px) {
  .logo {
    font-size: 48px;
  }
}

/* Search container */
.search-container {
  width: 100%;
  display: flex;
  justify-content: center;
  margin-bottom: 24px;
}

.search-box {
  width: 100%;
  max-width: 584px;
  height: 44px;
  border: 1px solid var(--border-color);
  border-radius: 24px;
  display: flex;
  align-items: center;
  padding: 0 16px;
  gap: 12px;
  background-color: var(--bg-primary);
  box-shadow: 0 1px 6px rgba(32, 33, 36, 0.28);
  transition: box-shadow 0.2s;
}

.search-box:hover {
  box-shadow: 0 1px 6px rgba(32, 33, 36, 0.4);
}

.search-icon {
  color: var(--text-secondary);
  flex-shrink: 0;
}

.question-display {
  flex: 1;
  font-size: 16px;
  color: var(--text-secondary);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-height: 20px;
}

/* Button container */
.button-container {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.search-btn,
.lucky-btn {
  background-color: var(--bg-secondary);
  color: var(--text-primary);
  border: 1px solid var(--border-color);
  border-radius: 4px;
  padding: 10px 24px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  min-height: 36px;
  transition: all 0.2s;
  font-family: Roboto, Arial, sans-serif;
}

.search-btn:hover,
.lucky-btn:hover {
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  background-color: #f3f3f3;
}

.search-btn:active,
.lucky-btn:active {
  border-color: var(--text-secondary);
}

.search-btn:disabled,
.lucky-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* Footer */
.footer {
  padding: 24px 20px;
  text-align: center;
  border-top: 1px solid var(--border-color);
  background-color: var(--bg-secondary);
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
}

.footer-link {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 13px;
  transition: color 0.2s;
}

.footer-link:hover {
  color: var(--text-link);
}

/* Responsive design */
@media (max-width: 480px) {
  .top-nav {
    flex-direction: column;
    gap: 12px;
    align-items: flex-start;
  }

  .nav-icons {
    align-self: flex-end;
  }

  .logo {
    font-size: 36px;
  }

  .search-box {
    max-width: 100%;
  }

  .button-container {
    gap: 8px;
  }

  .search-btn,
  .lucky-btn {
    padding: 8px 16px;
    font-size: 13px;
  }

  .footer-links {
    gap: 16px;
  }
}
