/* Base Styles */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: 'Segoe UI', sans-serif;
}

body {
  background: linear-gradient(135deg, #fffde7, #fff8e1);
  color: #ffb300;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* Header Section */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.2rem 2rem;
  background: linear-gradient(90deg, #ffd54f, #fff176);
  color: #000;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  flex-wrap: wrap;
  gap: 1rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 14px;
}

.logo-img {
  width: 48px;
  height: 48px;
  filter: drop-shadow(0 0 5px rgba(255, 255, 255, 0.8));
  border-radius: 50%;
}

.logo-text-row {
  display: flex;
  flex-direction: column;
  justify-content: center;
  color: #000;
}

.logo-text-row strong {
  font-size: 1.4rem;
  line-height: 1.2;
  font-weight: 600;
}

.subtitle {
  font-size: 0.9rem;
  color: #000000b3;
  line-height: 1.2;
}

/* Navigation */
nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

nav a {
  text-decoration: none;
  color: #000;
  font-weight: 500;
  padding: 0.6rem 1.2rem;
  border-radius: 10px;
  transition: background 0.3s ease;
}

nav a:hover {
  background-color: rgba(0, 0, 0, 0.1);
}

nav a.active {
  background-color: #fff59d;
  color: #000;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.15);
}

/* Main Content */
main {
  text-align: center;
  padding: 5rem 1rem;
  flex-grow: 1;
}

main h1 {
  font-size: 3rem;
  font-weight: 800;
  color: #fbc02d;
}

.highlight {
  background: linear-gradient(to right, #fff176, #fdd835);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

main p {
  margin-top: 1rem;
  color: #8d6e63;
  font-size: 1.1rem;
}

/* Search Box */
.search-box {
  margin-top: 2.5rem;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
}

.search-box input {
  padding: 0.9rem 1.2rem;
  border-radius: 12px 0 0 12px;
  border: none;
  outline: none;
  width: 320px;
  font-size: 1rem;
  background-color: #fffde7;
  color: #000;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

.search-box button {
  padding: 0.9rem 1.5rem;
  border: none;
  background: linear-gradient(to right, #ffeb3b, #fdd835);
  color: #000;
  font-size: 1.2rem;
  border-radius: 0 12px 12px 0;
  cursor: pointer;
  transition: background 0.3s ease;
}

.search-box button:hover {
  background: linear-gradient(to right, #fbc02d, #fdd835);
}

/* Result Card */
.user-details {
  margin-top: 2rem;
  text-align: center;
}

.user-details .card {
  background-color: #fffde7;
  padding: 1.5rem;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  max-width: 400px;
  margin: auto;
  transition: all 0.3s ease-in-out;
}

.user-details .card h3 {
  color: #fbc02d;
  margin-bottom: 0.5rem;
}

.user-details .card p {
  margin: 0.25rem 0;
  color: #5d4037;
}

.milestone {
  font-weight: bold;
  color: #fdd835;
  font-size: 1.1rem;
}

/* Footer Section */
footer {
  padding: 2rem;
  text-align: center;
  background: linear-gradient(to right, #fffde7, #fff9c4);
  font-size: 0.95rem;
  color: #8d6e63;
  border-top: 1px solid #fceabb;
}

footer a {
  color: #f9a825;
  text-decoration: none;
  font-weight: 500;
}

.socials {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
}

.socials a img {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  margin: 0 10px;
  object-fit: cover;
}

/* Note Box */
.note {
  margin-top: 2rem;
  background: linear-gradient(to right, #fffde7, #fff8e1);
  padding: 1.5rem;
  border-radius: 12px;
  max-width: 650px;
  margin-inline: auto;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

/* SHINY YELLOW TEXT EFFECT */
.shiny-yellow {
  color: #ffc400;
  text-shadow:
    0 0 5px #ffea00,
    0 0 10px #ffd700,
    0 0 15px #ffeb3b,
    0 0 20px #fff176;
  font-weight: 700;
  transition: all 0.4s ease-in-out;
}

@keyframes shimmer {
  0% {
    text-shadow: 0 0 5px #ffea00, 0 0 10px #ffd700, 0 0 15px #ffeb3b, 0 0 20px #fff176;
  }
  50% {
    text-shadow: 0 0 10px #fff176, 0 0 20px #ffeb3b, 0 0 30px #ffd700, 0 0 40px #ffea00;
  }
  100% {
    text-shadow: 0 0 5px #ffea00, 0 0 10px #ffd700, 0 0 15px #ffeb3b, 0 0 20px #fff176;
  }
}

.shiny-yellow.animate {
  animation: shimmer 2s infinite;
}

/* Responsive Design */
@media (max-width: 768px) {
  header {
    flex-direction: column;
    text-align: center;
  }

  .logo {
    justify-content: center;
  }

  main h1 {
    font-size: 2.3rem;
  }

  .search-box {
    flex-direction: column;
    gap: 1rem;
  }

  .search-box input,
  .search-box button {
    width: 90%;
    border-radius: 12px;
  }

  .user-details .card {
    width: 90%;
  }

  nav {
    justify-content: center;
  }

  nav a {
    margin: 0.3rem;
  }

  .note {
    padding: 1rem;
    width: 90%;
  }

  footer {
    font-size: 0.85rem;
  }
}
