/* header.css - split dari main.css LiputanJatim */

/* TOPBAR */
.lj-topbar { background: var(--lj-dark); color: #dbeafe; font-size: 13px; }
.lj-topbar .lj-container { height: 38px; display: flex; align-items: center; justify-content: space-between; }
.lj-topbar-left, .lj-topbar-right { display: flex; align-items: center; gap: 14px; }
.lj-topbar-right a { color: #dbeafe; font-size: 13px; }
.lj-live-dot { width: 8px; height: 8px; background: var(--lj-red); border-radius: 50%; display: inline-block; }
.lj-live-text { color: #fff; font-weight: 800; }
.lj-update { color: #bfdbfe; }

/* HEADER */
.lj-header { background: var(--lj-white); padding: 20px 0; border-bottom: 1px solid var(--lj-border); }
.lj-header-grid { display: grid; grid-template-columns: 250px 1fr; gap: 28px; align-items: center; }
.lj-logo { display: flex; align-items: center; }
.lj-logo-img { width: auto; height: 68px; display: block; }
.lj-header-banner { display: flex; justify-content: flex-end; }
.lj-banner-970 {
  width: 100%; max-width: 970px; height: 110px; border-radius: 18px;
  background: linear-gradient(135deg, rgba(11,58,117,.95), rgba(227,6,19,.85));
  color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 900; letter-spacing: .4px;
}

/* NAVBAR */
.lj-navbar { background: var(--lj-white); border-bottom: 1px solid var(--lj-border); position: sticky; top: 0; z-index: 999; }
.lj-navbar .lj-container { min-height: 54px; display: flex; align-items: center; gap: 22px; }
.lj-mobile-toggle { display: none; border: 0; background: var(--lj-red); color: #fff; font-size: 22px; border-radius: 10px; padding: 8px 12px; cursor: pointer; }
.lj-main-nav { flex: 1; }
.lj-main-nav ul, .lj-menu { list-style: none; padding: 0; margin: 0; display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.lj-main-nav li a { display: block; padding: 16px 10px; font-size: 14px; font-weight: 800; color: var(--lj-dark); }
.lj-main-nav li a:hover { color: var(--lj-red); }
.lj-search { width: 220px; }
.lj-search form { display: flex; align-items: center; }
.lj-search input[type="search"] { width: 100%; height: 36px; border: 1px solid var(--lj-border); border-radius: 999px; padding: 0 14px; outline: none; }
.lj-search input[type="submit"], .lj-search button { display: none; }

/* BREAKING NEWS */
.lj-breaking-news { background: #fff; border-bottom: 1px solid var(--lj-border); }
.lj-breaking-news .lj-container { min-height: 46px; display: flex; align-items: center; gap: 18px; overflow: hidden; }
.lj-breaking-label { background: var(--lj-red); color: #fff; font-weight: 900; font-size: 12px; padding: 8px 12px; border-radius: 999px; white-space: nowrap; flex: 0 0 auto; }
.lj-breaking-marquee { display: flex; gap: 28px; overflow: hidden; white-space: nowrap; flex: 1; }
.lj-breaking-marquee a { font-size: 14px; font-weight: 700; color: var(--lj-dark); display: inline-block; margin-right: 26px; }
.lj-breaking-marquee a:hover { color: var(--lj-red); }

/* HEADER MODERN TANPA UBAH WARNA BRAND */

.lj-header{
  background:#fff;
  padding:16px 0;
  border-bottom:1px solid var(--lj-border);
}

.lj-header-grid{
  display:grid;
  grid-template-columns:240px 1fr 220px;
  gap:28px;
  align-items:center;
}

.lj-logo-img{
  height:58px;
}

.lj-header-banner{
  display:flex;
  justify-content:center;
}

.lj-banner-970{
  height:86px;
  max-width:760px;
  border-radius:16px;
}

/* SEARCH SEPERTI PORTAL BESAR */

.lj-navbar{
  background:#fff;
  position:sticky;
  top:0;
  z-index:99999;
  box-shadow:0 2px 12px rgba(15,23,42,.06);
}

.lj-navbar .lj-container{
  min-height:54px;
}

.lj-search{
  width:280px;
}

.lj-search form{
  position:relative;
}

.lj-search input[type="search"]{
  width:100%;
  height:38px;
  border:1px solid #d1d5db;
  background:#f8fafc;
  border-radius:8px;
  padding:0 14px;
  font-size:14px;
}

.lj-search input[type="search"]:focus{
  background:#fff;
  border-color:var(--lj-blue);
}

/* MENU LEBIH PADAT */

.lj-main-nav li a{
  padding:16px 9px;
  font-size:14px;
  font-weight:900;
}

/* TOPBAR LEBIH TIPIS */

.lj-topbar .lj-container{
  height:32px;
}

.lj-topbar{
  font-size:12px;
}

/* MODERN SEARCH */

.lj-search {
  width: 340px;
  flex: 0 0 340px;
}

.lj-modern-search {
  position: relative;
  width: 100%;
}

.lj-modern-search-input {
  width: 100%;
  height: 42px;
  border: 1px solid #dbe3ee;
  border-radius: 999px;
  background: #f8fafc;
  padding: 0 52px 0 18px;
  font-size: 14px;
  font-weight: 600;
  color: #071d33;
  outline: none;
  transition: all .2s ease;
}

.lj-modern-search-input::placeholder {
  color: #94a3b8;
}

.lj-modern-search-input:focus {
  background: #fff;
  border-color: #0b3a75;
  box-shadow: 0 0 0 4px rgba(11,58,117,.12);
}

.lj-modern-search-button {
  position: absolute;
  right: 6px;
  top: 6px;
  width: 30px;
  height: 30px;
  border: 0;
  border-radius: 50%;
  background: linear-gradient(135deg, #e30613, #0b3a75);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease;
}

.lj-modern-search-button:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 18px rgba(227,6,19,.28);
}

.lj-modern-search-button span {
  font-size: 14px;
  line-height: 1;
}

/* NAVBAR SEARCH POSITION */

.lj-navbar .lj-container {
  gap: 24px;
}

.lj-main-nav {
  flex: 1;
}

@media (max-width: 992px) {
  .lj-search {
    display: none;
  }
}

/* ACCOUNT MENU */

.lj-account-menu {
  display: flex;
  align-items: center;
  gap: 8px;
}

.lj-account-btn,
.lj-account-register,
.lj-account-logout {
  border-radius: 999px;
  padding: 9px 13px;
  font-size: 13px;
  font-weight: 800;
}

.lj-account-btn {
  background: #071d33;
  color: #fff;
}

.lj-account-register {
  background: #e30613;
  color: #fff;
}

.lj-account-logout {
  background: #f1f5f9;
  color: #071d33;
}

/* HEADER CLEAN LIPUTANJATIM */

.lj-topbar,
.lj-header,
.lj-navbar,
.lj-breaking-news{
  display:none !important;
}

.lj-clean-header{
  background:#fff;
  border-bottom:1px solid #e5e7eb;
  position:sticky;
  top:0;
  z-index:99999;
}

.lj-clean-main{
  background:#fff;
  border-bottom:1px solid #eef2f7;
}

.lj-clean-main .lj-container{
  min-height:82px;
  display:flex;
  align-items:center;
  gap:22px;
}

.lj-clean-main .lj-logo{
  flex:0 0 210px;
}

.lj-clean-main .lj-logo img{
  max-height:58px;
  width:auto;
  display:block;
}

.lj-clean-primary{
  display:flex;
  align-items:center;
  gap:22px;
  flex:none;
}

.lj-clean-primary a{
  color:#071d33;
  font-size:14px;
  font-weight:900;
}

.lj-clean-primary a:hover{
  color:#e30613;
}

.lj-clean-main .lj-search{
  flex:1;
  max-width:360px;
  margin-left:auto;
}

.lj-clean-main .lj-search input[type="search"]{
  width:100%;
  height:42px;
  border:1px solid #cbd5e1;
  border-radius:999px;
  background:#f8fafc;
  padding:0 16px;
}

.lj-clean-main .lj-account-menu{
  display:flex;
  align-items:center;
  gap:10px;
  flex:none;
}

.lj-topic-bar{
  background:#f8fafc;
  border-bottom:1px solid #e5e7eb;
}

.lj-topic-bar .lj-container{
  min-height:46px;
  display:flex;
  align-items:center;
  gap:12px;
  overflow-x:auto;
  white-space:nowrap;
}

.lj-topic-bar strong{
  color:#e30613;
  font-size:13px;
  font-weight:900;
  text-transform:uppercase;
}

.lj-topic-bar a{
  background:#fff;
  border:1px solid #e5e7eb;
  color:#071d33;
  padding:7px 12px;
  border-radius:999px;
  font-size:13px;
  font-weight:800;
}

.lj-topic-bar a:hover{
  background:#e30613;
  border-color:#e30613;
  color:#fff;
}

@media(max-width:1000px){
  .lj-clean-main .lj-container{
    flex-wrap:wrap;
    padding-top:12px;
    padding-bottom:12px;
  }

  .lj-clean-main .lj-logo{
    flex:1 1 180px;
  }

  .lj-clean-primary{
    order:3;
    width:100%;
    overflow-x:auto;
    gap:18px;
  }

  .lj-clean-main .lj-search{
    order:4;
    flex:1 1 100%;
    max-width:none;
  }
}

/* MOBILE HEADER MODERN */

@media(max-width:768px){

  .lj-clean-header{
    position:sticky;
    top:0;
    z-index:99999;
  }

  .lj-clean-main .lj-container{
    min-height:auto;
    padding:12px 16px;
    display:grid;
    grid-template-columns:auto 1fr auto;
    gap:12px;
  }

  .lj-clean-main .lj-logo{
    flex:none !important;
  }

  .lj-clean-main .lj-logo img{
    max-height:42px !important;
  }

  .lj-clean-primary{
    grid-column:1 / -1;
    order:3;
    display:flex;
    gap:18px;
    overflow-x:auto;
    padding:8px 0 2px;
    scrollbar-width:none;
  }

  .lj-clean-primary::-webkit-scrollbar,
  .lj-topic-bar .lj-container::-webkit-scrollbar{
    display:none;
  }

  .lj-clean-primary a{
    white-space:nowrap;
    font-size:14px;
  }

  .lj-clean-main .lj-search{
    grid-column:2;
    order:1;
    max-width:none;
    width:100%;
    margin:0;
  }

  .lj-clean-main .lj-search input[type="search"]{
    height:38px;
    font-size:13px;
  }

  .lj-clean-main .lj-account-menu{
    order:2;
    justify-content:flex-end;
  }

  .lj-account-btn,
  .lj-account-register,
  .lj-account-logout{
    padding:8px 11px;
    font-size:12px;
  }

  .lj-account-logout{
    display:none;
  }

  .lj-topic-bar .lj-container{
    padding:8px 16px;
    gap:8px;
    min-height:auto;
  }

  .lj-topic-bar strong{
    font-size:12px;
  }

  .lj-topic-bar a{
    font-size:12px;
    padding:6px 10px;
  }
}

/* MOBILE HEADER MODERN */

@media(max-width:768px){

  .lj-clean-header{
    position:sticky;
    top:0;
    z-index:99999;
  }

  .lj-clean-main .lj-container{
    min-height:auto;
    padding:12px 16px;
    display:grid;
    grid-template-columns:auto 1fr auto;
    gap:12px;
  }

  .lj-clean-main .lj-logo{
    flex:none !important;
  }

  .lj-clean-main .lj-logo img{
    max-height:42px !important;
  }

  .lj-clean-primary{
    grid-column:1 / -1;
    order:3;
    display:flex;
    gap:18px;
    overflow-x:auto;
    padding:8px 0 2px;
    scrollbar-width:none;
  }

  .lj-clean-primary::-webkit-scrollbar,
  .lj-topic-bar .lj-container::-webkit-scrollbar{
    display:none;
  }

  .lj-clean-primary a{
    white-space:nowrap;
    font-size:14px;
  }

  .lj-clean-main .lj-search{
    grid-column:2;
    order:1;
    max-width:none;
    width:100%;
    margin:0;
  }

  .lj-clean-main .lj-search input[type="search"]{
    height:38px;
    font-size:13px;
  }

  .lj-clean-main .lj-account-menu{
    order:2;
    justify-content:flex-end;
  }

  .lj-account-btn,
  .lj-account-register,
  .lj-account-logout{
    padding:8px 11px;
    font-size:12px;
  }

  .lj-account-logout{
    display:none;
  }

  .lj-topic-bar .lj-container{
    padding:8px 16px;
    gap:8px;
    min-height:auto;
  }

  .lj-topic-bar strong{
    font-size:12px;
  }

  .lj-topic-bar a{
    font-size:12px;
    padding:6px 10px;
  }
}
