/* KKU.Web.UI — içerik detay (Haber / Duyuru / Etkinlik — legacy Index.cshtml uyumu) */
.kku-crumb-section {
  background: #f8f9fa;
  border-bottom: 1px solid #eee;
  padding: 15px 0;
}
.kku-crumb-section ol {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
  font-size: 14px;
  color: #666;
}
.kku-crumb-section a {
  color: var(--kku-blue, #005493);
  text-decoration: none;
}
.kku-crumb-section a:hover { color: #003d6f; }
.kku-crumb-section li + li::before {
  content: "\f054";
  font-family: "Font Awesome 5 Free";
  font-weight: 900;
  padding: 0 10px;
  color: #ccc;
  font-size: 10px;
}
.kku-crumb-section li:last-child { color: #333; font-weight: 500; }

.kku-content-detay {
  padding: 40px 0;
  background: #fff;
  min-height: 50vh;
}
.kku-content-detay__row {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 24px;
  align-items: start;
}
.kku-content-card {
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 15px rgba(0,0,0,0.05);
  padding: 30px;
}
.kku-content-card__header {
  margin-bottom: 25px;
  border-bottom: 1px solid #eee;
  padding-bottom: 20px;
}
.kku-content-card__meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
  font-size: 14px;
  color: #666;
}
.kku-content-card__meta i { margin-right: 5px; color: var(--kku-blue, #005493); }
.kku-content-card__title {
  margin: 0;
  font-size: 24px;
  color: #333;
  line-height: 1.4;
}
.kku-content-card__body {
  font-size: 16px;
  line-height: 1.6;
  color: #444;
}
.kku-content-card__body p { margin: 15px 0; }
.kku-content-card__body img {
  margin: 20px 0;
  max-width: 100%;
  height: auto;
  border-radius: 4px;
  cursor: pointer;
}
.kku-btn-print {
  background: transparent;
  border: none;
  color: var(--kku-blue, #005493);
  padding: 8px;
  cursor: pointer;
  transition: color 0.2s, transform 0.2s;
}
.kku-btn-print:hover { color: #004377; transform: translateY(-2px); }
.kku-btn-print i { font-size: 18px; }

.kku-content-sidebar {
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 15px rgba(0,0,0,0.05);
  padding: 20px;
  position: sticky;
  top: 16px;
}
.kku-content-sidebar__title {
  font-size: 20px;
  color: #333;
  margin: 0 0 20px;
  padding-bottom: 15px;
  border-bottom: 2px solid var(--kku-blue, #005493);
}
.kku-content-sidebar__title i {
  color: var(--kku-blue, #005493);
  margin-right: 8px;
}
.kku-sidebar-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border-bottom: 1px solid #eee;
  transition: background 0.3s, transform 0.3s;
}
.kku-sidebar-item:hover {
  background: #f8f9fa;
  transform: translateX(5px);
}
.kku-sidebar-item.is-active {
  background: #e8f4ff;
  border-left: 3px solid var(--kku-blue, #005493);
  padding-left: 9px;
}
.kku-sidebar-item__thumb {
  width: 100px;
  height: 60px;
  flex-shrink: 0;
  border-radius: 4px;
  overflow: hidden;
}
.kku-sidebar-item__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}
.kku-sidebar-item:hover .kku-sidebar-item__thumb img { transform: scale(1.1); }
.kku-sidebar-item__date {
  min-width: 45px;
  text-align: center;
  flex-shrink: 0;
}
.kku-sidebar-item__date .day {
  display: block;
  font-size: 20px;
  font-weight: 700;
  color: var(--kku-blue, #005493);
  line-height: 1;
}
.kku-sidebar-item__date .month {
  display: block;
  font-size: 12px;
  color: #666;
  text-transform: uppercase;
}
.kku-sidebar-item__date .year {
  display: block;
  font-size: 11px;
  color: #888;
}
.kku-sidebar-item__link {
  flex: 1;
  min-width: 0;
  color: #333;
  text-decoration: none;
  font-size: 14px;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.kku-sidebar-item__link:hover { color: var(--kku-blue, #005493); }
.kku-sidebar-pagination {
  display: flex;
  justify-content: center;
  gap: 5px;
  margin-top: 16px;
  flex-wrap: wrap;
}
.kku-sidebar-page {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 35px;
  height: 35px;
  border-radius: 8px;
  background: #fff;
  color: var(--kku-blue, #005493);
  border: 1px solid #eee;
  font-size: 14px;
  text-decoration: none;
  transition: all 0.2s;
}
.kku-sidebar-page:hover {
  background: #f8f9fa;
  transform: translateY(-2px);
}
.kku-sidebar-page.is-disabled {
  opacity: 0.45;
  cursor: default;
  pointer-events: none;
}
.kku-sidebar-page.is-active {
  background: var(--kku-blue, #005493);
  color: #fff;
  border-color: var(--kku-blue, #005493);
}
.kku-btn-all {
  display: block;
  text-align: center;
  margin-top: 16px;
  background: var(--kku-blue, #005493);
  color: #fff;
  padding: 12px;
  border-radius: 6px;
  text-decoration: none;
  transition: background 0.2s, transform 0.2s;
}
.kku-btn-all:hover {
  background: #004377;
  transform: translateY(-2px);
  color: #fff;
}
.kku-btn-all i { margin-right: 8px; }

/* Görseller galerisi (haber) */
.kku-content-gallery-wrap {
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid #eee;
}
.kku-content-gallery-wrap.is-empty { display: none; }
.kku-content-gallery-wrap h3 {
  font-size: 18px;
  color: #333;
  margin: 0 0 15px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.kku-content-gallery-wrap h3 i { color: var(--kku-blue, #005493); }
.kku-content-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 10px;
}
.kku-gallery-item {
  position: relative;
  border-radius: 6px;
  overflow: hidden;
  cursor: pointer;
  height: 120px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  transition: transform 0.3s, box-shadow 0.3s;
}
.kku-gallery-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 15px rgba(0,0,0,0.15);
}
.kku-gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}
.kku-gallery-item:hover img { transform: scale(1.1); }

.kku-print-overlay {
  position: fixed;
  inset: 0;
  background: rgba(255,255,255,0.95);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
}
.kku-print-overlay.is-active { opacity: 1; visibility: visible; }
.kku-print-overlay i {
  font-size: 48px;
  color: var(--kku-blue, #005493);
  animation: kku-print-pulse 1s infinite;
}
@keyframes kku-print-pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.2); }
}

.kku-lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.9);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
}
.kku-lightbox.is-active { opacity: 1; visibility: visible; }
.kku-lightbox__content { position: relative; max-width: 90%; max-height: 85vh; }
.kku-lightbox__img {
  display: block;
  max-width: 100%;
  max-height: 85vh;
  border-radius: 4px;
}
.kku-lightbox__close {
  position: absolute;
  top: -40px;
  right: 0;
  background: none;
  border: none;
  color: #fff;
  font-size: 24px;
  cursor: pointer;
}
.kku-lightbox__nav {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  transform: translateY(-50%);
  display: flex;
  justify-content: space-between;
  padding: 0 20px;
  pointer-events: none;
}
.kku-lightbox__nav button {
  pointer-events: auto;
  background: rgba(255,255,255,0.2);
  color: #fff;
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
}
.kku-lightbox__counter {
  position: absolute;
  bottom: -28px;
  left: 0;
  right: 0;
  text-align: center;
  color: #fff;
  font-size: 14px;
}

@media (max-width: 991px) {
  .kku-content-detay__row { grid-template-columns: 1fr; }
  .kku-content-sidebar { position: static; }
}
@media (max-width: 768px) {
  .kku-content-detay { padding: 20px 0; }
  .kku-content-card { padding: 15px; }
  .kku-content-card__title { font-size: 20px; }
  .kku-sidebar-item__thumb { width: 80px; height: 50px; }
  .kku-content-gallery { grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); }
  .kku-gallery-item { height: 100px; }
}

@media print {
  .kku-crumb-section,
  .kku-content-detay__side,
  .kku-btn-print,
  .kku-content-card__header,
  .kku-content-gallery-wrap,
  .kku-print-overlay,
  .kku-lightbox,
  .kku-signalr-badge { display: none !important; }
  .kku-content-card__body, .kku-content-card__body * { visibility: visible !important; }
}
