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

html, body {
  height: 100%;
  font-family: 'Poppins', sans-serif;
  background: #f3f4f6;
  color: #1f2937;
}


.title {
  font-size: 3.5rem;
  text-align: center;
  margin: 40px 0 10px;
  color: #111827;
  font-weight: 600;
}


#search-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
  padding: 20px;
}

#search-bar {
  width: 100%;
  max-width: 600px;
  padding: 14px 20px;
  font-size: 1.1rem;
  border: none;
  border-radius: 12px;
  background: #ffffff;
  box-shadow: 0 8px 20px rgba(0,0,0,0.08);
  outline: none;
  transition: box-shadow 0.3s ease;
}

#search-bar:focus {
  box-shadow: 0 0 0 3px rgba(59,130,246,0.5);
}

#search-button {
  padding: 12px 24px;
  font-size: 1.1rem;
  border: none;
  border-radius: 30px;
  background-color: #3b82f6;
  color: white;
  cursor: pointer;
  transition: background-color 0.3s, transform 0.2s;
}

#search-button:hover {
  background-color: #2563eb;
  transform: translateY(-2px);
}

#search-button:active {
  background-color: #1d4ed8;
}

/* Tabs */
#search-tabs {
  display: flex;
  justify-content: center;
  gap: 30px;
  margin-top: 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid #e5e7eb;
}

.tab {
  font-size: 1rem;
  font-weight: 500;
  color: #6b7280;
  cursor: pointer;
  position: relative;
  padding-bottom: 5px;
}

.tab.active {
  color: #111827;
}

.tab.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background-color: #3b82f6;
  border-radius: 2px;
}


.tab-content {
  display: none;
  padding: 20px 40px;
  max-width: 960px;
  margin: auto;
}

.tab-content.active {
  display: block;
}


.result-item {
  background-color: white;
  padding: 20px;
  margin-bottom: 16px;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.05);
  transition: transform 0.2s, box-shadow 0.3s;
}

.result-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.1);
}

.result-item h3 {
  font-size: 1.4rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: #111827;
}

.result-item p {
  font-size: 1rem;
  color: #4b5563;
}

.result-item a {
  margin-top: 8px;
  display: inline-block;
  color: #3b82f6;
  text-decoration: none;
  font-weight: 500;
}


#images-tab {
  display: none;
  padding: 20px;
}

#images-tab.active {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 20px;
  padding: 20px 40px;
  max-width: 1080px;
  margin: auto;
}

#images-tab .result-item img {
  width: 100%;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  transition: transform 0.3s ease;
}

#images-tab .result-item img:hover {
  transform: scale(1.05);
}

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

  #search-tabs {
    font-size: 0.9rem;
    gap: 10px;
  }

  #search-button {
    font-size: 1rem;
  }

  .result-item h3 {
    font-size: 1.1rem;
  }

  .result-item p {
    font-size: 0.95rem;
  }
}