/* ========== RESET + BASE ========== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    Arial, sans-serif;
  background: #f2f2f2;
}

body {
  width: 100%;
  min-height: 100vh;
  background: white;
  color: #111;
  overflow-x: hidden;
  padding-bottom: 90px; /* space for navbar */
}

/* IMPORTANT: Prevent image resizing jump */
img {
  display: block;
}

/* ========== EXPLORE HEADER ========== */
.explore_header {
  height: 60px;
  width: 100%;
  padding: 10px 12px;

  display: flex;
  align-items: center;
  gap: 10px;

  background: white;
  border-bottom: 1px solid rgba(0, 0, 0, 0.15);
}

#search_input {
  flex: 1;
  height: 40px;

  border-radius: 12px;
  border: 1px solid rgba(0, 0, 0, 0.18);

  padding: 10px 12px;
  font-size: 14px;
  font-weight: 600;

  outline: none;
}

#search_input:focus {
  border-color: rgba(0, 0, 0, 0.55);
}

#search_btn {
  height: 34px;
  width: 34px;
  object-fit: contain;
  cursor: pointer;
}

/* ========== EXPLORE GRID ========== */
.explore_main {
  padding-top: 6px;
}

.explore_grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
}

.grid_item {
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: #f2f2f2;
}

.grid_item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ========== BOTTOM NAV (SAME AS INDEX.CSS) ========== */
.nav_footer {
  position: fixed;
  bottom: 0;
  left: 0;

  width: 100%;
  height: 62px;

  background: white;
  border-top: 1px solid rgba(0, 0, 0, 0.15);

  display: flex;
  justify-content: space-around;
  align-items: center;

  z-index: 1000;
}

.nav_footer a {
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
}

.nav_footer img {
  height: 38px;
  width: 38px;
  object-fit: contain;
  display: block;
}

#profile_nav {
  height: 42px;
  width: 42px;

  border-radius: 50%;
  border: 2px solid rgba(0, 0, 0, 0.25);

  overflow: hidden;
}

#profile_nav img {
  height: 100%;
  width: 100%;
  object-fit: cover;
  display: block;
}

/* ========== DESKTOP CENTER (SAME AS INDEX.CSS) ========== */
@media (min-width: 768px) {
  body {
    max-width: 440px;
    margin: 0 auto;

    border-left: 1px solid rgba(0, 0, 0, 0.12);
    border-right: 1px solid rgba(0, 0, 0, 0.12);
  }

  .nav_footer {
    max-width: 440px;
    left: 50%;
    transform: translateX(-50%);
  }

  .explore_header {
    max-width: 440px;
    margin: 0 auto;
  }
}

/* ========== SMALL SCREEN SAFETY (SAME AS INDEX.CSS) ========== */
@media (max-width: 360px) {
  .nav_footer img {
    height: 34px;
    width: 34px;
  }

  #profile_nav {
    height: 40px;
    width: 40px;
  }
}
