/* public/assets/css/news-search.v2.css
   Search UI styled to match update.html (update-notes.v2.css),
   and a header row layout for news.html (title left, search right).
*/

:root{
  --jz-orange:#FF7A00;
  --jz-text:#111;
  --jz-muted:#6B7280;
  --jz-border:#EDEDED;
  --jz-shadow: 0 8px 30px rgba(0,0,0,.06);
}

/* Header row: title left, search right (desktop + mobile) */
.news-head{
  display:flex;
  justify-content:space-between;
  align-items:center; /* symmetric */
  gap:16px;
  flex-wrap:nowrap; /* keep one row on mobile too */
  margin:0 0 14px 0;
}

/* Override old inline styles inside header only */
.news-head .news-section-title{
  margin:0 !important;
  text-align:left !important;
  line-height:44px; /* match input/button height */
  flex:0 0 auto;
  white-space:nowrap;
}

/* Search UI */
.news-search{
  flex:1 1 420px; /* can shrink on small screens */
  max-width:460px;
  min-width:140px;
  margin-left:auto;
}

.update-search{
  display:flex;
  align-items:center;
  gap:10px;
  justify-content:flex-end;
  margin:0;
  min-width:0;
  width:100%;
}

.update-search-input{
  width:100%;
  min-width:0;
  height:44px;
  border:1px solid var(--jz-border);
  border-radius:8px;
  padding:0 14px;
  font-size:14px;
  outline:none;
  background:#fff;
}

.update-search-input:focus{
  border-color:rgba(255,122,0,.65);
  box-shadow:0 0 0 4px rgba(255,122,0,.12);
}

.update-search-btn{
  height:44px;
  padding:0 18px;
  border-radius:8px;
  border:1px solid var(--jz-orange);
  background:var(--jz-orange);
  color:#fff;
  font-weight:900;
  font-size:14px;
  letter-spacing:-.02em;
  white-space:nowrap;
}

/* Pagination (kept from earlier v2 if present in page CSS classes) */
.news-pager-wrap{ margin-top:26px; display:flex; justify-content:center; }
.news-pager{ display:flex; align-items:center; gap:10px; }
.pager-btn{
  height:40px;
  padding:0 14px;
  border-radius:10px;
  border:1px solid var(--jz-border);
  background:#fff;
  box-shadow:var(--jz-shadow);
  font-weight:800;
}
.pager-btn:disabled{ opacity:.5; cursor:not-allowed; }
.pager-pages{ display:flex; gap:8px; align-items:center; }
.pager-page{
  width:40px;
  height:40px;
  border-radius:12px;
  border:1px solid var(--jz-border);
  background:#fff;
  box-shadow:var(--jz-shadow);
  font-weight:900;
}
.pager-page.is-active{
  border-color:rgba(255,122,0,.65);
  box-shadow:0 0 0 4px rgba(255,122,0,.12);
}

/* Small screens: keep row layout, tighten */
@media (max-width: 520px){
  .news-head{ gap:12px; }
  .news-search{ min-width:120px; }
  .update-search-btn{ padding:0 12px; font-size:13px; }
  .update-search-input{ padding:0 10px; font-size:13px; }
}

@media (max-width: 380px){
  .news-search{ min-width:110px; }
  .update-search-btn{ padding:0 10px; font-size:12px; }
}

/* Empty state */
.news-empty{
  padding:22px 16px;
  border:1px solid var(--jz-border);
  border-radius:14px;
  background:#fff;
  box-shadow:var(--jz-shadow);
  color:var(--jz-muted);
  text-align:center;
}
