/* CBN Topbar + Dil Butonu */

/* Topbar font: tema header ile aynı */
.cbn-topbar,
.cbn-topbar .cbn-topbar-links,
.cbn-topbar .cbn-topbar-link,
.cbn-topbar .dw-lang-btn,
.cbn-topbar .dw-lang-item{
  font-family: Raleway, sans-serif;
}

.cbn-topbar-links{
  font-size: 16px;
  font-weight: 400;
}

.cbn-topbar{background:var(--cbn-topbar-bg,#255AA8);color:var(--cbn-topbar-text,#FFF);height:var(--cbn-topbar-height,44px);width:100%;position:relative;z-index:9999;}
.cbn-topbar-inner{height:100%;width:100%;max-width:var(--cbn-topbar-maxw,1200px);margin:0 auto;padding:0 var(--cbn-topbar-pad,16px);box-sizing:border-box;display:flex;align-items:center;justify-content:flex-end;gap:14px;}
.cbn-topbar-links{display:flex;align-items:center;gap:14px;font-size:16px;font-weight:400;white-space:nowrap;}
.cbn-topbar-link{color:inherit;text-decoration:none;}
.cbn-topbar-link:hover{color:var(--cbn-topbar-text,#FFF);text-decoration:underline;}
.cbn-topbar-sep{opacity:.9;}
.cbn-topbar-lang{display:flex;align-items:center;}
.dw-lang-switcher{position:relative;display:inline-block;}
.dw-lang-btn{display:flex;align-items:center;justify-content:center;gap:6px;padding:6px 8px;border:0;background:#fff;border-radius:10px;cursor:pointer;line-height:1;}
.dw-lang-ico-img{width:32px;height:32px;display:block;}
.dw-lang-current-name{font-size:16px;font-weight:400;color:#111;white-space:nowrap;}
.dw-lang-code{font-size:16px;font-weight:700;color:#111;}
.dw-lang-caret{font-size:16px;opacity:.8;color:#111;}

/* Hover: yazı beyaz olsun */
.cbn-topbar .dw-lang-btn:hover,
.cbn-topbar .dw-lang-btn:focus,
.cbn-topbar .dw-lang-btn:focus-visible{background: var(--cbn-topbar-bg,#255AA8) !important;}
.cbn-topbar .dw-lang-btn:hover .dw-lang-current-name,
.cbn-topbar .dw-lang-btn:hover .dw-lang-code,
.cbn-topbar .dw-lang-btn:hover .dw-lang-caret,
.cbn-topbar .dw-lang-btn:focus .dw-lang-current-name,
.cbn-topbar .dw-lang-btn:focus .dw-lang-code,
.cbn-topbar .dw-lang-btn:focus .dw-lang-caret,
.cbn-topbar .dw-lang-btn:focus-visible .dw-lang-current-name,
.cbn-topbar .dw-lang-btn:focus-visible .dw-lang-code,
.cbn-topbar .dw-lang-btn:focus-visible .dw-lang-caret{color:#fff !important;}
.dw-lang-menu{
  position:absolute;
  top:calc(100% + 8px);
  right:0;
  width: max-content;
  min-width: 0;
  max-width: 90vw;
  box-sizing: border-box;
  background:#fff;
  border:1px solid rgba(0,0,0,.12);
  border-radius:12px;
  padding:6px;
  box-shadow:0 12px 30px rgba(0,0,0,.12);
  display:none;
  z-index:99999;
}
.dw-lang-switcher.is-open .dw-lang-menu{display:block;}
.dw-lang-item{
  display:block;
  padding:8px 12px;
  border-radius:4px;
  text-decoration:none;
  color:#111;
  font-size:16px;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.cbn-topbar .dw-lang-menu .dw-lang-item:hover,
.cbn-topbar .dw-lang-menu .dw-lang-item:focus,
.cbn-topbar .dw-lang-menu .dw-lang-item:focus-visible{background: var(--cbn-topbar-bg,#255AA8) !important; color:#fff !important;}
.dw-lang-item.is-active{
  background: transparent;
  font-weight: 400;
  position: relative;
  padding-left: 14px;
}

.dw-lang-item.is-active::before{
  content:"";
  position:absolute;
  left:6px;
  top:6px;
  bottom:6px;
  width:3px;
  background:#255AA8;
  border-radius:2px;
}

.dw-lang-extra{margin:0 0 6px 0;padding:0 0 6px 0;border-bottom:1px solid rgba(0,0,0,.10);}
.cbn-mobile-actions{display:none;}
.cbn-mobile-action{
  display: block;
  padding: 8px 10px;
  border-radius: 10px;
  text-decoration: none;
  color: #111;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.cbn-mobile-action:hover{background:rgba(0,0,0,.06);}
@media (max-width: 991px){
  .cbn-topbar .cbn-topbar-links{max-width:calc(100% - 52px);overflow-x:auto;-webkit-overflow-scrolling:touch;scrollbar-width:none;}
  .cbn-topbar .cbn-topbar-links::-webkit-scrollbar{display:none;}
  .cbn-topbar-links{font-size:16px;gap:15px;}
  .cbn-topbar .dw-lang-current-name{display:none;}
}



@media (max-width: 991px){
  .cbn-topbar .dw-lang-menu{
    min-width: 170px;
    max-height: 60vh;
    overflow: auto;
  }
}

@media (max-width: 991px){
  .cbn-topbar.is-compact-mobile .cbn-topbar-links{font-size:16px;gap:10px;}
}


.cbn-topbar .dw-lang-menu{
  min-width: 180px;
  border-radius: 16px;
  padding: 6px;
}

/* Baloncuk oku */
.cbn-topbar .dw-lang-menu::before{
  content:"";
  position:absolute;
  top:-6px;
  right: 18px;
  width: 12px;
  height: 12px;
  background:#fff;
  border-left:1px solid rgba(0,0,0,.12);
  border-top:1px solid rgba(0,0,0,.12);
  transform: rotate(45deg);
}

/* Mobilde biraz daha kompakt */
@media (max-width: 991px){
  .cbn-topbar .dw-lang-menu{
    min-width: 168px;
    max-height: 60vh;
    overflow: auto;
  }
  .cbn-topbar .dw-lang-menu::before{
    right: 14px;
  }
}


@media (max-width: 991px){
  .cbn-topbar-links{font-size:16px;}
}
