/* ============ হোম স্ক্রিন (home.css) ============ */
/* হোম স্ক্রিন পুরো স্ক্রিন জুড়ে থাকে; এডিটরের ডিজাইনে কোনো পরিবর্তন নেই */
.home-screen {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 40;
  flex-direction: column;
  background: var(--bg);
  color: var(--tx);
  font-family: var(--ui);
}
body.home-active .home-screen { display: flex; }

.home-scroll {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: calc(env(safe-area-inset-top, 0px) + 18px) 16px 24px;
}

.home-hero h1 {
  margin: 0;
  font-size: 22px;
  font-weight: 800;
  line-height: 1.3;
}
.home-hero p {
  margin: 4px 0 14px;
  color: var(--mu);
  font-size: 13px;
}

.home-search {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 44px;
  padding: 0 12px;
  background: var(--sh);
  border: 1px solid var(--ln);
  border-radius: 12px;
  color: var(--mu);
}
.home-search input {
  flex: 1;
  min-width: 0;
  background: none;
  border: 0;
  outline: 0;
  color: var(--tx);
  font: inherit;
  font-size: 14px;
}
.home-search input::placeholder { color: var(--mu); }

.home-sec { margin-top: 22px; }
.home-sec h2 {
  margin: 0 0 10px;
  font-size: 13px;
  font-weight: 700;
  color: var(--mu);
}
.home-sec-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}
.home-sec-head h2 { margin: 0; }
.home-sec-head button {
  background: none;
  border: 0;
  padding: 4px 0;
  color: var(--ac);
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

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

.home-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 4px;
  min-height: 68px;
  padding: 14px;
  background: var(--sh);
  border: 1px solid var(--ln);
  border-radius: 14px;
  color: var(--tx);
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: transform 0.15s ease, border-color 0.15s ease;
}
.home-card b { font-size: 14px; font-weight: 700; }
.home-card small { color: var(--mu); font-size: 12px; }
.home-grid.three .home-card {
  min-height: 64px;
  padding: 12px 6px;
  align-items: center;
  text-align: center;
}
.home-grid.three .home-card b { font-size: 13px; }
.home-card:active,
.home-proj:active { transform: scale(0.98); }
.home-card:hover { border-color: var(--ac); }

.home-recent {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}
.home-proj {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: 0;
  background: var(--sh);
  border: 1px solid var(--ln);
  border-radius: 14px;
  color: var(--tx);
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: transform 0.15s ease;
}
.home-proj.ghost { opacity: 0.7; }
.hp-thumb {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 4 / 5;
  background: var(--soft);
  color: var(--mu);
  font-size: 12px;
}
.hp-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hp-name {
  display: block;
  padding: 8px 10px 10px;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.hp-name small {
  display: block;
  color: var(--mu);
  font-size: 11px;
  font-weight: 400;
}

.home-nav { flex: none; }
