/* ========== Global Styles ========== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Poppins", sans-serif;
}

/* ========== Background Gradient ========== */
body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background: linear-gradient(135deg, #667eedea, #764ba2);
  /* background: linear-gradient(135deg, #93291e, #764ba2); */
  color: #fff;
}

/* ========== Search Page Styles ========== */
.container {
  margin-top: 100px;
  text-align: center;
  width: 90%;
  max-width: 600px;
}

.container h1 {
  font-size: 2rem;
  margin-bottom: 20px;
  letter-spacing: 1px;
}

.search-box {
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.15);
  padding: 10px;
  border-radius: 50px;
  backdrop-filter: blur(8px);
}

.search-box input {
  border: none;
  outline: none;
  background: transparent;
  color: #fff;
  font-size: 1rem;
  padding: 10px 15px;
  width: 70%;
}

.search-box input::placeholder {
  color: rgba(255, 255, 255, 0.8);
}

.search-box button {
  border: none;
  background: #fff;
  color: #764ba2;
  padding: 10px 20px;
  border-radius: 30px;
  cursor: pointer;
  font-weight: 600;
  transition: 0.3s;
}

.search-box button:hover {
  background: #ffb347;
  color: #fff;
}
/*All Employees*/
.view-all-box {
  margin-top: 15px;
  text-align: center;
}

.view-all-btn {
  display: inline-block;
  text-decoration: none;
  background: #fff;
  color: #764ba2;
  padding: 10px 22px;
  border-radius: 30px;
  font-weight: 600;
  transition: 0.3s;
}

.view-all-btn:hover {
  background: #ffb347;
  color: #fff;
}


/* ========== Most Visited Employees Section ========== */
.most-visited {
  text-align: center;
  margin-top: 60px;
  color: #fff;
  width: 100%;
  padding: 40px 20px;
}

.most-visited h2 {
  font-size: 1.8rem;
  margin-bottom: 30px;
  letter-spacing: 1px;
}

.employee-cards {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
}

.employee-card {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 20px;
  padding: 20px;
  width: 230px;
  text-align: center;
  backdrop-filter: blur(6px);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.employee-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

.employee-card img {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 15px;
  border: 3px solid #ffeb99;
}

.employee-card h3 {
  margin-bottom: 5px;
  font-size: 1.2rem;
}

.employee-card p {
  font-size: 0.9rem;
  color: #ffe6cc;
  margin-bottom: 15px;
}

.view-btn {
  display: inline-block;
  text-decoration: none;
  background: #fff;
  color: #764ba2;
  padding: 8px 18px;
  border-radius: 25px;
  font-weight: 600;
  transition: 0.3s;
}

.view-btn:hover {
  background: #ffb347;
  color: #fff;
}

/* Responsive */
@media (max-width: 700px) {
  .employee-cards {
    flex-direction: column;
    align-items: center;
  }
  .container h1 {
  font-size: 1.5rem;
}

}
/* ========== Employee Profile Page ========== */
.profile-container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  background: rgba(255, 255, 255, 0.1);
  padding: 30px;
  border-radius: 20px;
  backdrop-filter: blur(10px);
  max-width: 800px;
}

.profile-img {
  flex: 1 1 250px;
  text-align: center;
}

.profile-img img {
  width: 220px;
  height: 220px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid #ffeb99;
}

.profile-info {
  flex: 2 1 400px;
  padding: 20px;
}

.profile-info h2{
  font-size: 2rem;
  margin-bottom: 10px;
}

.profile-info h4, .profile-info h5 {
  color: #ffeb99;
  margin-bottom: 15px;
  font-weight: 500;
}

.profile-info p {
  line-height: 1.6;
  margin-bottom: 20px;
}

.social-links a {
  color: #fff;
  text-decoration: none;
  margin-right: 15px;
  font-size: 1.3rem;
  transition: 0.3s;
}

.social-links a:hover {
  color: #ffb347;
}

/* Responsive */
@media (max-width: 700px) {
  .profile-container {
    flex-direction: column;
    text-align: center;
  }

  .profile-info {
    padding: 0;
  }
}
/* ========== Back Button ========== */
.back-btn {
  display: inline-block;
  margin-top: 25px;
  text-decoration: none;
  background: #fff;
  color: #764ba2;
  padding: 10px 22px;
  border-radius: 30px;
  font-weight: 600;
  transition: all 0.3s ease;
}

.back-btn:hover {
  background: #ffb347;
  color: #fff;
  transform: translateY(-2px);
}

/* ---------- Search Results Styles ---------- */
.search-results {
  width: 100%;
  max-width: 900px;
  margin: 18px auto 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: center;
}

.result-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
  width: 100%;
}

.result-card {
  background: rgba(255,255,255,0.08);
  border-radius: 14px;
  padding: 12px;
  width: 220px;
  text-align: center;
  backdrop-filter: blur(6px);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.result-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 18px rgba(0,0,0,0.25);
}

.result-card img {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid #ffeb99;
  margin-bottom: 10px;
}

.result-actions {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin-top: 10px;
}

.result-actions .view-btn {
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 0.9rem;
}

/* message when no results */
.search-empty {
  color: #fff;
  opacity: 0.95;
  padding: 14px;
  background: rgba(0,0,0,0.08);
  border-radius: 12px;
  width: 90%;
  text-align: center;
}
