/* Main layout elements */
.landing-body {
  background-color: var(--color-background);
  display: grid;
  grid-template-rows: auto 1fr 40px;
  height: 100vh;
  margin: 0;
  padding: 0;
}

.landing-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 900px;
  padding: 0 var(--space-lg);
  margin: 0 auto;
  grid-row: 2;
}

/* Footer placeholder - matches app page */
#app-footer-placeholder {
  grid-row: 3;
  height: 40px;
}

/* App branding */
.landing-logo {
  text-align: center;
  margin-bottom: 40px;
}

.landing-logo h1 {
  color: var(--color-primary);
  font-family: 'Outfit', sans-serif;
  font-size: 6rem;
  font-weight: 600;
  margin: 0;
  line-height: 1;
}

.landing-logo h2 {
  color: #bdbdbd;
  font-family: 'Outfit', sans-serif;
  font-size: 2.1rem;
  font-weight: 500;
  margin: 0;
  letter-spacing: 0.03em;
}

/* Search component */
.landing-search {
  width: 100%;
  max-width: 800px;
  height: 60px;
  margin-bottom: 15px;
}

.landing-search #promptInput {
  height: 60px;
  font-size: 18px;
  background-color: transparent;
}

.landing-search .search-button {
  height: 60px;
  width: 60px;
}

/* Search bar */
.search-bar {
  background: white;
  border-radius: var(--border-radius);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  display: flex;
}

#promptInput::placeholder {
  color: rgba(128, 128, 128, 0.6);
  opacity: 0.7;
  font-weight: 300;
}

/* Fix autofill styling */
#promptInput:-webkit-autofill,
#promptInput:-webkit-autofill:hover,
#promptInput:-webkit-autofill:focus {
  -webkit-box-shadow: 0 0 0 1000px white inset;
  transition: background-color 5000s ease-in-out 0s;
}

/* Location preference control */
.location-control-landing {
  display: flex;
  justify-content: flex-end;
  width: 100%;
  max-width: 800px;
  margin-bottom: 15px;
}

.location-control {
  display: flex;
  align-items: center;
  color: var(--color-text-secondary, #555);
  cursor: pointer;
  font-family: 'Noto Sans', sans-serif;
  font-size: 14px;
  gap: 8px;
  padding: 8px 0;
}

.location-control input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  background-color: white;
  border: none;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  border-radius: 3px;
  cursor: pointer;
  height: 16px;
  width: 16px;
  position: relative;
  margin: 0;
}

.location-control input[type="checkbox"]:checked {
  background-color: var(--color-primary, #414577);
}

.location-control input[type="checkbox"]:checked::after {
  content: "";
  position: absolute;
  left: 5px;
  top: 2px;
  width: 4px;
  height: 8px;
  border: solid white;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.location-control input[type="checkbox"]:focus {
  outline: none;
  box-shadow: 0 0 0 1px rgba(65, 69, 119, 0.2);
}

/* Action buttons */
.landing-buttons {
  display: flex;
  gap: 20px;
  margin-top: 10px;
}

.landing-btn {
  background-color: var(--color-primary);
  border: none;
  border-radius: 25px;
  color: white;
  cursor: pointer;
  font-family: 'Noto Sans', sans-serif;
  font-size: 14px;
  font-weight: 500;
  padding: 10px 25px;
  transition: background-color 0.2s ease;
}

.landing-btn:hover {
  background-color: var(--color-primary-dark);
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .landing-logo h1 {
    font-size: 4rem;
  }
  
  .landing-logo h2 {
    font-size: 1.5rem;
  }
  
  .landing-buttons {
    flex-direction: column;
    width: 100%;
    max-width: 700px;
  }
  
  .landing-btn {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .landing-logo h1 {
    font-size: 3.5rem;
  }
  
  .landing-logo h2 {
    font-size: 1.2rem;
  }
  
  .landing-search {
    height: 50px;
  }
  
  .landing-search #promptInput,
  .landing-search .search-button {
    height: 50px;
  }
  
  .landing-search #promptInput {
    font-size: 16px;
  }
}