/* ========= RESET ========= */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: "Segoe UI", Arial, sans-serif;
  background: #f7f7fb;
  color: #333;
  transition: background 0.4s ease, color 0.4s ease;
}

/* ========= DARK MODE ========= */
body.dark {
  background: #121212;
  color: #eaeaea;
}

body.dark .name-card,
body.dark .ad-box,
body.dark .search-box input {
  background: #1e1e1e;
  color: #eaeaea;
}

/* ========= HEADER ========= */
.top-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: linear-gradient(90deg, #ff5ea2, #c77dff);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.menu-icon {
  font-size: 28px;
  cursor: pointer;
  color: white;
}

.logo img {
  height: 60px;
}

/* ========= DARK MODE BUTTON ========= */
.theme-toggle {
  margin-left: auto;
  font-size: 18px;
  cursor: pointer;
  color: white;
}

/* ========= OVERLAY ========= */
.overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.45);
  opacity: 0;
  visibility: hidden;
  transition: 0.3s;
  z-index: 9998;
}

.overlay.show {
  opacity: 1;
  visibility: visible;
}

/* ========= SIDE MENU ========= */
.side-menu {
  position: fixed;
  top: 0;
  left: -260px;
  width: 240px;
  height: 100%;
  background: linear-gradient(180deg, #ff5ea2, #c77dff);
  padding-top: 90px;
  transition: left 0.35s ease;
  z-index: 9999;
}

.side-menu.open {
  left: 0;
}

.side-menu a {
  display: block;
  padding: 14px 18px;
  color: white;
  text-decoration: none;
  font-size: 16px;
  border-bottom: 1px solid rgba(255,255,255,0.25);
  transition: padding-left 0.3s, background 0.3s;
}

.side-menu a:hover {
  background: rgba(255,255,255,0.2);
  padding-left: 28px;
}

.side-menu hr {
  border: none;
  border-top: 1px solid rgba(255,255,255,0.3);
  margin: 12px;
}

/* ========= STICKY SEARCH ========= */
.search-box {
  position: sticky;
  top: 70px;
  z-index: 900;
  background: inherit;
  padding: 15px;
  text-align: center;
}

.search-box input {
  width: 90%;
  max-width: 420px;
  padding: 14px;
  font-size: 16px;
  border-radius: 30px;
  border: none;
  outline: none;
  box-shadow: 0 6px 15px rgba(0,0,0,0.15);
}

/* ========= FILTERS ========= */
.gender, .alphabets {
  text-align: center;
  margin: 12px 0;
}

.gender button {
  padding: 10px 18px;
  margin: 6px;
  border-radius: 20px;
  border: none;
  background: linear-gradient(90deg, #ff5ea2, #ff8dc7);
  color: white;
  cursor: pointer;
  transition: transform 0.3s, box-shadow 0.3s;
}

.gender button:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 22px rgba(0,0,0,0.2);
}

.alphabets span {
  margin: 5px;
  font-weight: bold;
  cursor: pointer;
  color: #c77dff;
}

.alphabets span:hover {
  color: #ff5ea2;
}

/* ========= ADS ========= */
.ad-box {
  margin: 18px;
  padding: 20px;
  text-align: center;
  background: white;
  border-radius: 14px;
  box-shadow: 0 6px 16px rgba(0,0,0,0.12);
}

/* ========= NAME GRID ========= */
.name-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 14px;
  padding: 16px;
}

.name-card {
  background: white;
  padding: 14px;
  text-align: center;
  border-radius: 16px;
  font-weight: 600;
  box-shadow: 0 6px 14px rgba(0,0,0,0.12);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

/* 🔥 PREMIUM HOVER */
.name-card:hover {
  transform: translateY(-6px) scale(1.03);
  box-shadow: 0 14px 28px rgba(0,0,0,0.25);
}

/* ========= FOOTER ========= */
footer {
  text-align: center;
  padding: 25px;
  font-size: 14px;
  color: #777;
}

footer span {
  font-weight: bold;
  color: #ff5ea2;
}
