/* Köşe yazısı detay sayfası görsel iyileştirmeleri */
.kb-article-content{
  font-size: 1.125rem;
  line-height: 1.85;
  color: #111827;
}
@media (max-width: 767.98px){
  .kb-article-content{
    font-size: 1.0625rem;
    line-height: 1.75;
  }
}
.kb-article-content p{
  margin: 0 0 1rem 0;
}
.kb-article-content h1,
.kb-article-content h2,
.kb-article-content h3{
  margin-top: 1.25rem;
  margin-bottom: .75rem;
  font-weight: 700;
  line-height: 1.25;
}
.kb-article-content h2{ font-size: 1.375rem; }
.kb-article-content h3{ font-size: 1.25rem; }
.kb-article-content ul,
.kb-article-content ol{
  margin: 0 0 1rem 1.25rem;
}
.kb-article-content li{ margin-bottom: .35rem; }
.kb-article-content blockquote{
  border-left: 4px solid #16a085;
  margin: 1rem 0;
  padding: .5rem 1rem;
  color: #374151;
  background: #ecfdf54d;
  border-radius: 8px;
}
.kb-article-content img{
  display: block;
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0,0,0,.08);
  margin: .75rem auto 1rem;
  cursor: pointer;
}
#kyCover{
  border-radius: 14px;
  box-shadow: 0 10px 28px rgba(0,0,0,.08);
}
.kb-tags{
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: .5rem .5rem;
}
.kb-tags .bi-tags{ color:#6b7280; }
.kb-tags .badge{ font-weight: 500; }
.kb-tags-more{
  background: transparent;
  border: none;
  color: #0ea5a8;
  font-weight: 600;
  padding: 0 .25rem;
}
/* Breadcrumb */
.kb-breadcrumb{
  font-size: .92rem;
  color: #16a085;
  padding-top: .5rem;
  padding-bottom: .25rem;
}
.kb-breadcrumb a{ color: #0f766e; text-decoration: none; }
.kb-breadcrumb a:hover{ text-decoration: underline; }
.kb-breadcrumb .sep{ color: #94a3b8; margin: 0 .35rem; }
.kb-author-name,
#kyAuthorName,
#kyAuthorNameMobile{
  color: var(--kb-primary, #16a085);
}

/* Köşe yazısı detay: yazar bilgi kartı taşmasını engelle */
#kyAuthorAvatar + div,
#kyAuthorAvatarMobile + div{
  min-width: 0;      /* flex item shrink için kritik */
  flex: 1 1 0;
}
#kyAuthorTitle,
#kyAuthorTitleMobile,
#kyAuthorInfo,
#kyAuthorInfoMobile,
#kyAuthorEmail,
#kyAuthorEmailMobile{
  overflow-wrap: anywhere;
  word-break: break-word;
}
#kyAuthorEmail a,
#kyAuthorEmailMobile a{
  overflow-wrap: anywhere;
  word-break: break-word;
}
@media (max-width: 575.98px){
  /* Dar ekranda avatar küçülsün ki metin rahatlasın */
  #kyAuthorAvatarMobile{
    width: 96px !important;
    height: 96px !important;
  }
}
#kyAuthorEmail a,
#kyAuthorEmailMobile a{
  color: #0f766e;
  font-weight: 600;
  text-decoration: none;
}
#kyAuthorEmail a:hover,
#kyAuthorEmailMobile a:hover{
  color: #16a085;
  text-decoration: underline;
}
@media (max-width: 575.98px){
  /* Mobilde başlık: masaüstüne göre biraz küçük ama hâlâ belirgin */
  #kyTitle{
    font-size: 1.25rem;
    line-height: 1.3;
    font-weight: 700;
    letter-spacing: .01em;
  }
}
.kb-sticky{ }
@media (min-width: 992px){
  .kb-sticky{ position: sticky; top: 84px; }
}
/* Meta line - responsive layout */
.kb-meta{
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 10px;
  color: #6b7280;
}
.kb-meta .kb-sep{
  opacity: .6;
}
@media (max-width: 575.98px){
  /* Mobilde aralıkları biraz sıkılaştır */
  .kb-meta{
    gap: 2px 8px;
  }
  .kb-meta .kb-read{
    flex: 0 0 100%;
    margin-top: 2px;
  }
}
/* Read progress bar */
#kbReadProgress{
  position: fixed;
  left: 0;
  right: 0;
  top: 0;
  height: 3px;
  z-index: 1060;
  pointer-events: none;
}
#kbReadProgress .bar{
  width: 0%;
  height: 100%;
  background: var(--kb-primary, #16a085);
  box-shadow: 0 1px 0 rgba(0,0,0,.05);
  transition: width .1s linear;
}
/* Sidebar author-list look like index */
#kyLatestAuthors .avatar{
  width: 52px !important;
  height: 52px !important;
  object-fit: cover;
  border-radius: 50%;
  flex: 0 0 52px;
  display: block;
}
@media (max-width: 575.98px){
  #kyLatestAuthors .avatar{
    width: 44px !important;
    height: 44px !important;
  }
}
#kyLatestAuthors .flex-grow-1{ min-width: 0; }
#kyLatestAuthors .fw-semibold,
#kyLatestAuthors .text-secondary.small{
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.kb-article-content hr{
  border: none;
  border-top: 1px dashed #d8dbe0;
  margin: 1.25rem 0;
}
.kb-article-content table{
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0;
  font-size: .95rem;
}
.kb-article-content .kb-table-responsive{
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: .5rem 0 1rem;
}
.kb-article-content th,
.kb-article-content td{
  border: 1px solid #e5e7eb;
  padding: .5rem .6rem;
  word-break: break-word;
  vertical-align: top;
}
.kb-article-content thead th{
  background: #f9fafb;
  font-weight: 600;
}

/* Mobile bottom-safe area so content isn't hidden behind mobile tabbar */
@media (max-width: 767.98px){
  html{ scroll-padding-bottom: calc(96px + env(safe-area-inset-bottom)); }
  main{ padding-bottom: calc(120px + env(safe-area-inset-bottom)); }
  /* Sağ kolon kartı veya son içerik, tabbar üstünde kalsın */
  .kb-sticky .card:last-child{ margin-bottom: calc(96px + 8px + env(safe-area-inset-bottom)); }
}

