/* =========================================================
   home.css  —  홈 화면 (앱 아이콘 / 페이지 / 독)
   ========================================================= */

#home { position: absolute; inset: 0; z-index: 1; }

/* 가로로 넘기는 페이지들 */
#home-pages { position: absolute; inset: 0; overflow: hidden; touch-action: pan-y; }
#home-track {
  display: flex;
  width: 100%;
  height: 100%;
  transition: transform 0.35s cubic-bezier(0.22, 0.8, 0.24, 1);
}
#home-track.dragging { transition: none; }
.home-page {
  flex: none;
  width: 100%;
  height: 100%;
  padding: 78px 22px 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 100px;
  justify-items: center;
  align-content: start;
}

/* 앱 아이콘 */
.app-ico {
  width: 76px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  background: none;
  border: 0;
  color: #fff;
  cursor: pointer;
  transition: transform 0.12s;
}
.app-ico:active { transform: scale(0.9); }
.app-ico .ic {
  width: 62px;
  height: 62px;
  border-radius: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.18);
}
.app-ico .nm {
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: -0.2px;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.45);
  white-space: nowrap;
}

/* 검색 알약 + 페이지 점 */
#home-dots {
  position: absolute;
  left: 0; right: 0; bottom: 186px;
  display: flex; justify-content: center; gap: 9px;
}
#home-dots i {
  width: 7px; height: 7px; border-radius: 50%;
  background: rgba(255, 255, 255, 0.45);
  transition: background 0.2s;
}
#home-dots i.on { background: #fff; }

#home-search {
  position: absolute;
  left: 50%; bottom: 140px;
  transform: translateX(-50%);
  height: 38px;
  padding: 0 22px;
  display: flex; align-items: center; gap: 7px;
  border: 0;
  border-radius: 20px;
  background: rgba(70, 70, 76, 0.55);
  color: #fff;
  font-size: 14.5px;
  font-weight: 500;
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  cursor: pointer;
}

/* 독 */
#dock {
  position: absolute;
  left: 11px; right: 11px; bottom: 26px;
  height: 100px;
  padding: 0 8px;
  border-radius: 34px;
  display: flex;
  align-items: center;
  justify-content: space-around;
  background: rgba(235, 235, 240, 0.3);
  -webkit-backdrop-filter: blur(22px) saturate(1.5);
  backdrop-filter: blur(22px) saturate(1.5);
}
#dock .app-ico .nm { display: none; }
