/* CBN Lojistik Sözlüğü - Public */

.cbn-ls-wrap {
  width: 100%;
  box-sizing: border-box;
  font-family: inherit;
  font-size: var(--cbn-ls-base-size, 16px);
}

.cbn-ls-single {
  font-family: inherit;
  font-size: var(--cbn-ls-base-size, 16px);
}

.cbn-ls-card {
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 14px;
  box-shadow: 0 8px 28px rgba(15, 23, 42, 0.06);
}

/* Toolbar card (Title + Search) */
.cbn-ls-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 18px;
  margin: 0 0 14px 0;
}

.cbn-ls-toolbar-left {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 220px;
}

.cbn-ls-title-bar {
  width: 3px;
  height: 22px;
  border-radius: 2px;
  background: #0b5ed7;
  flex: 0 0 auto;
}

.cbn-ls-title {
  font-size: 1.25em;
  line-height: 1.2;
  margin: 0;
  color: #0f172a;
  font-weight: 700;
}

.cbn-ls-toolbar-right {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex: 1 1 auto;
}

.cbn-ls-search {
  position: relative;
  width: min(520px, 100%);
}

.cbn-ls-search-input {
  width: 100%;
  padding: 14px 44px 14px 16px;
  border-radius: 12px;
  border: 1px solid rgba(15, 23, 42, 0.10);
  background: #f1f5f9;
  color: #0f172a;
  font-size: 0.94em;
  outline: none;
}

.cbn-ls-search-input:focus {
  border-color: rgba(11, 94, 215, 0.55);
  box-shadow: 0 0 0 4px rgba(11, 94, 215, 0.10);
  background: #fff;
}

.cbn-ls-search-clear {
  position: absolute;
  top: 50%;
  right: 10px;
  transform: translateY(-50%);
  width: 28px;
  height: 28px;
  border-radius: 999px;
  border: 0;
  background: rgba(15, 23, 42, 0.08);
  color: #0f172a;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  line-height: 1;
}

.cbn-ls-search.has-value .cbn-ls-search-clear {
  display: inline-flex;
}

/* Letters card */
.cbn-ls-letters {
  padding: 12px 12px;
  margin: 0 0 18px 0;
}

.cbn-ls-letters-scroll {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  padding: 4px 2px;
  scrollbar-width: thin;
}

.cbn-ls-letters-scroll::-webkit-scrollbar {
  height: 7px;
}

.cbn-ls-letters-scroll::-webkit-scrollbar-thumb {
  background: rgba(15, 23, 42, 0.18);
  border-radius: 999px;
}

.cbn-ls-letter {
  flex: 0 0 auto;
  padding: 7px 12px;
  border-radius: 999px;
  border: 1px solid rgba(15, 23, 42, 0.12);
  background: #fff;
  color: #0f172a;
  font-weight: 600;
  font-size: 0.82em;
  cursor: pointer;
}

.cbn-ls-letter.is-active {
  background: #0b5ed7;
  border-color: #0b5ed7;
  color: #fff;
}

/* Grid */
.cbn-ls-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

@media (max-width: 1100px) {
  .cbn-ls-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 820px) {
  .cbn-ls-toolbar { flex-direction: column; align-items: stretch; }
  .cbn-ls-toolbar-left { min-width: 0; }
  .cbn-ls-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 520px) {
  .cbn-ls-grid { grid-template-columns: 1fr; }
}

/* Term cards */
.cbn-ls-term-card {
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.10);
  border-radius: 14px;
  padding: 14px 14px;
  transition: transform 140ms ease, box-shadow 140ms ease, border-color 140ms ease;
}

.cbn-ls-term-card:hover {
  transform: translateY(-2px);
  border-color: rgba(11, 94, 215, 0.25);
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.10);
}

.cbn-ls-term-link {
  text-decoration: none !important;
  color: inherit;
  display: block;
}

.cbn-ls-term-head {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 10px;
}

.cbn-ls-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #0b5ed7;
  margin-top: 6px;
  flex: 0 0 auto;
}

.cbn-ls-term-title {
  font-size: 0.94em;
  line-height: 1.25;
  margin: 0;
  color: #0f172a;
  font-weight: 700;
}

.cbn-ls-term-excerpt {
  margin: 0;
  color: rgba(15, 23, 42, 0.72);
  font-size: 0.85em;
  line-height: 1.55;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
  line-clamp: 4;
  overflow: hidden;
}

/* Loader */
.cbn-ls-wrap [hidden] {
  display: none !important;
}

.cbn-ls-loader {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 18px 0;
  color: rgba(15, 23, 42, 0.70);
}

.cbn-ls-spinner {
  width: 16px;
  height: 16px;
  border: 2px solid rgba(15, 23, 42, 0.16);
  border-top-color: rgba(11, 94, 215, 0.85);
  border-radius: 999px;
  animation: cbn-ls-spin 0.9s linear infinite;
}

@keyframes cbn-ls-spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.cbn-ls-empty {
  grid-column: 1 / -1;
  padding: 18px;
  text-align: center;
  color: rgba(15, 23, 42, 0.70);
}

/* Single */
.cbn-ls-single { padding: 26px 0; }
.cbn-ls-single-inner { width: min(1100px, calc(100% - 32px)); margin: 0 auto; }

.cbn-ls-single-stack {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.cbn-ls-term-card { padding: 22px; }

.cbn-ls-term-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.cbn-ls-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 26px;
  padding: 0 10px;
  border-radius: 999px;
  border: 1px solid rgba(15, 23, 42, 0.10);
  background: rgba(11, 94, 215, 0.08);
  color: #0b5ed7;
  text-decoration: none !important;
  font-weight: 700;
  font-size: 0.75em;
}

.cbn-ls-back:hover {
  background: rgba(11, 94, 215, 0.12);
  color: #0b5ed7;
}

.cbn-ls-alpha-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 26px;
  padding: 0 10px;
  border-radius: 999px;
  border: 1px solid rgba(15, 23, 42, 0.10);
  background: rgba(11, 94, 215, 0.08);
  color: #0b5ed7;
  text-decoration: none !important;
  font-weight: 700;
  font-size: 0.75em;
}

.cbn-ls-detail-title {
  margin: 0 0 10px 0;
  font-size: 1.88em;
  color: #0f172a;
  font-weight: 800;
  letter-spacing: -0.2px;
}

.cbn-ls-detail-content {
  color: rgba(15, 23, 42, 0.82);
  font-size: 0.97em;
  line-height: 1.78;
  /* İçerik tüm kart genişliğine yayılsın (satır erken kırılmasın) */
  max-width: none;
  width: 100%;
  
  max-height: none;
  overflow: visible;
  display: block;
  -webkit-line-clamp: unset;
}

.cbn-ls-detail-content p{
  margin: 0 0 10px 0;
}

.cbn-ls-detail-content p:last-child{
  margin-bottom: 0;
}


.cbn-ls-prev-next {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 0;
}

@media (max-width: 720px) {
  .cbn-ls-prev-next { grid-template-columns: 1fr; }
}

.cbn-ls-pn-col { min-height: 1px; }

.cbn-ls-pn {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(15, 23, 42, 0.10);
  background: rgba(255,255,255,0.92);
  text-decoration: none !important;
  color: #0f172a;
}

.cbn-ls-pn:hover {
  border-color: rgba(11, 94, 215, 0.22);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
}

.cbn-ls-pn-kicker { font-size: 0.75em; color: rgba(15, 23, 42, 0.58); }
.cbn-ls-pn-title { font-size: 0.85em; font-weight: 800; }
.cbn-ls-pn-next { text-align: right; }

.cbn-ls-nav-card { padding: 16px 18px; }
.cbn-ls-support-card { padding: 16px 18px; }

.cbn-ls-support {
  margin: 0;
  padding: 0;
  border: 0;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.cbn-ls-support-text { font-size: 0.82em; color: rgba(15, 23, 42, 0.68); }
.cbn-ls-support-link { font-size: 0.82em; text-decoration: none !important; color: #0b5ed7; font-weight: 700; }

.cbn-ls-related { padding: 18px; }

.cbn-ls-related-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.cbn-ls-related-title { margin: 0; font-size: 0.88em; color: rgba(15, 23, 42, 0.78); font-weight: 800; }
.cbn-ls-related-more { font-size: 0.82em; text-decoration: none !important; color: rgba(11, 94, 215, 0.95); font-weight: 700; }

.cbn-ls-related-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

@media (max-width: 980px) {
  .cbn-ls-related-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 560px) {
  .cbn-ls-related-grid { grid-template-columns: 1fr; }
}

.cbn-ls-related-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(15, 23, 42, 0.10);
  background: #fff;
  text-decoration: none !important;
  color: #0f172a;
}

.cbn-ls-related-item:hover {
  border-color: rgba(11, 94, 215, 0.22);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
}

.cbn-ls-related-dot { width: 8px; height: 8px; border-radius: 999px; background: #0b5ed7; flex: 0 0 auto; }

.cbn-ls-related-text { font-size: 0.85em; font-weight: 800; }

.cbn-ls-empty-small { color: rgba(15, 23, 42, 0.65); font-size: 0.82em; }
