/* Motorola Edge 60 Fusion inspired fonts and UI */
@import url("https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;500;700&display=swap");

:root {
  --moto-green: #006534;
  --moto-dark-green: #004926;
  --moto-light-blue: #e0f0ff;
  --moto-gray: #f5f7fa;
}

body {
  font-family: "Roboto", sans-serif;
  background: var(--moto-gray);
  color: #1a1a1a;
}

.intro-section {
  padding: 2rem;
  text-align: center;
  background: linear-gradient(135deg, #b1f6d4 0%, #ffffff 50%, #a5c7b6 100%);
  color: black;
  padding-top: 195px;
}

.intro-section p{
  width: 75%;
  margin: 0 auto;
}

.text-4xl {
  font-size: 48px;
  font-weight: 700;
}

.search-bar {
  max-width: 700px;
  margin: 0.5rem auto 2rem;
}

.search-bar input {
  width: 100%;
  padding: 0.75rem 1rem;
  border: none;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  font-size: 1rem;
}

.search-bar input:focus{
  border-color: #006534;
}

/* suggestion  */
#autocomplete-list {
  position: absolute;
  border-top: none;
  z-index: 99;
  background-color: var(--moto-green);
  color: white;
  border-radius: 10px;
  max-height: 200px;
  margin-top: 10px;
  overflow-y: auto;
  width: 100%;
}

.autocomplete-item {
  padding: 0.75rem 1rem;
  cursor: pointer;
  text-align: left;
}

.autocomplete-item:hover {
  background-color: var(--moto-dark-green);
}

.autocomplete-container {
  position: relative;
}

.text-lg {
  font-size: 20px;
  margin: 0 0 16px;
}

.tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
  padding: 1rem 2rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.tool-card {
  background: white;
  border: none;
  border-radius: 1rem;
  padding: 1.5rem;
  text-align: center;
  transition: transform 0.3s, box-shadow 0.3s;
  text-decoration: none;
  color: inherit;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
}

.tool-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
  color: black;
}

.tool-icon {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: var(--moto-green);
}

.no-result {
  display: none;
  background-color: #f7d0d3;
  color: #6a4034;
  font-weight: bold;
  border-radius: 10px;
  margin-bottom: 10px;
  padding: 20px;
  text-align: center;
}

.toolsbtn {
  background: var(--moto-green);
  color: white;
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: background-color 0.3s;
  font-weight: 500;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.toolsbtn:hover {
  background: var(--moto-dark-green);
  color: white;
}

.toolsbtn:focus{
  box-shadow: none;
}

footer {
  background-color: white;
  border-top: 1px solid #eaeaea;
}

footer a {
  color: var(--moto-green);
  text-decoration: none;
  font-weight: 500;
}

footer a:hover {
  text-decoration: underline;
}

/* Banner */
.affiliate-banner {
  background: white;
  border-radius: 1rem;
  margin: 1rem auto 2rem;
  max-width: 900px;
  padding: 1.5rem;
  display: flex;
  align-items: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.affiliate-banner-text {
  flex: 1;
  padding-right: 1rem;
}

.text-xl{
  font-size: 28px;
  font-weight: 700;
  line-height: 1.75rem;
}

.affiliate-banner p{
  margin: 0 0 12px;
  font-size: 18px;
}

.affiliate-badge {
  display: inline-block;
  background: #ff9900;
  color: black;
  padding: 0.25rem 0.5rem;
  border-radius: 0.25rem;
  font-size: 0.8rem;
  font-weight: bold;
  margin-bottom: 0.5rem;
}

.tools-grid h3{
  font-size: 20px;
  margin: 0 0 0 0;
}
