/* ════════════════════════════════════════════════════════════════════
   QUTRIT RELEASE NOTES FEED — STILLER
   ──────────────────────────────────────────────────────────────────
   Modern, kart tabanlı, son kullanıcı dostu güncelleme akışı.
   Front-shell sağ panelde gösterilir.
   ══════════════════════════════════════════════════════════════════ */

#qtr-release-feed {
  display: flex;
  flex-direction: column;
  gap: 14px;
  width: 100%;
  max-height: 78vh;
  overflow-y: auto;
  padding-right: 4px;
}

/* Yükleme / boş durumlar */
.qtr-rn-loading,
.qtr-rn-empty {
  padding: 32px 20px;
  text-align: center;
  font-size: 13px;
  color: #64748b;
  background: rgba(255,255,255,.6);
  border: 1px dashed #cbd5e1;
  border-radius: 12px;
}

/* Üst toolbar */
.qtr-rn-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 14px;
  background: linear-gradient(135deg, #1e293b, #334155);
  color: #f1f5f9;
  border-radius: 10px;
  flex-shrink: 0;
}
.qtr-rn-toolbar-info {
  font-size: 12px;
  letter-spacing: .3px;
}
.qtr-rn-toolbar-info strong {
  font-size: 16px;
  color: #fff;
  margin-right: 4px;
}
.qtr-rn-md-btn {
  background: rgba(255,255,255,.95);
  color: #1e293b;
  border: none;
  padding: 7px 14px;
  border-radius: 7px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: all .15s;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.qtr-rn-md-btn:hover {
  background: #fff;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0,0,0,.15);
}

/* Dropdown menü (📥 İndir ▾) */
.qtr-rn-dl-wrap {
  position: relative;
  display: inline-block;
}
.qtr-rn-dl-caret {
  font-size: 10px;
  margin-left: 2px;
  opacity: .7;
}
.qtr-rn-dl-menu {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  min-width: 240px;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(15,23,42,.18), 0 2px 6px rgba(15,23,42,.08);
  padding: 6px;
  z-index: 100;
  display: flex;
  flex-direction: column;
  gap: 1px;
  animation: qtr-rn-dl-fade .15s ease-out;
}
.qtr-rn-dl-section {
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: #94a3b8;
  padding: 6px 12px 4px 12px;
}
.qtr-rn-dl-menu[hidden] { display: none; }
@keyframes qtr-rn-dl-fade {
  from { opacity: 0; transform: translateY(-4px); }
  to   { opacity: 1; transform: translateY(0); }
}
.qtr-rn-dl-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  background: transparent;
  border: none;
  border-radius: 7px;
  cursor: pointer;
  text-align: left;
  width: 100%;
  font-size: 13px;
  font-weight: 600;
  color: #1e293b;
  transition: background .12s;
}
.qtr-rn-dl-item:hover {
  background: #f1f5f9;
}
.qtr-rn-dl-item:active {
  background: #e2e8f0;
}
.qtr-rn-dl-icon {
  font-size: 16px;
  flex-shrink: 0;
  width: 20px;
  text-align: center;
}
.qtr-rn-dl-label {
  flex: 1;
  font-weight: 700;
}
.qtr-rn-dl-hint {
  font-size: 10.5px;
  color: #94a3b8;
  font-weight: 500;
  letter-spacing: .2px;
}
.qtr-rn-dl-sep {
  height: 1px;
  background: #e2e8f0;
  margin: 4px 0;
}

/* Liste container */
.qtr-rn-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* Tek kart */
.qtr-rn-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 14px 16px;
  box-shadow: 0 2px 6px rgba(15,23,42,.04);
  transition: all .2s;
  position: relative;
  overflow: hidden;
}
.qtr-rn-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: 4px;
  background: linear-gradient(180deg, #7c3aed, #ec4899);
}
.qtr-rn-card:hover {
  border-color: #cbd5e1;
  box-shadow: 0 6px 20px rgba(15,23,42,.08);
  transform: translateY(-1px);
}

/* Kart header */
.qtr-rn-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
  flex-wrap: wrap;
}
.qtr-rn-head-left {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.qtr-rn-head-right {
  display: flex;
  align-items: center;
  gap: 6px;
}
.qtr-rn-num {
  font-family: ui-monospace, "SF Mono", Monaco, Consolas, monospace;
  font-size: 11px;
  font-weight: 700;
  color: #475569;
  background: #f1f5f9;
  padding: 3px 8px;
  border-radius: 6px;
  letter-spacing: .5px;
}
.qtr-rn-tip {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .3px;
  text-transform: uppercase;
}
.qtr-rn-version {
  font-family: ui-monospace, monospace;
  font-size: 10px;
  font-weight: 700;
  color: #0284c7;
  background: #e0f2fe;
  padding: 2px 7px;
  border-radius: 5px;
  letter-spacing: .3px;
}
.qtr-rn-date {
  font-size: 11px;
  color: #94a3b8;
  font-weight: 600;
}
.qtr-rn-md-btn-mini {
  background: transparent;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  width: 26px;
  height: 26px;
  font-size: 12px;
  cursor: pointer;
  transition: all .15s;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.qtr-rn-md-btn-mini:hover {
  background: #1e293b;
  border-color: #1e293b;
  color: #fff;
}

/* Kart başlık */
.qtr-rn-title {
  margin: 0 0 6px 0;
  font-size: 15px;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.35;
}

/* Özet */
.qtr-rn-ozet {
  margin: 0 0 10px 0;
  font-size: 12.5px;
  color: #475569;
  line-height: 1.55;
}

/* Etiketler */
.qtr-rn-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-bottom: 10px;
}
.qtr-rn-tag {
  font-size: 10px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 5px;
  letter-spacing: .3px;
  text-transform: uppercase;
}

/* Detay (markdown render) */
.qtr-rn-details {
  margin-top: 8px;
  border-top: 1px dashed #e2e8f0;
  padding-top: 10px;
}
.qtr-rn-details summary {
  cursor: pointer;
  font-size: 12px;
  font-weight: 700;
  color: #6366f1;
  padding: 4px 0;
  user-select: none;
  outline: none;
}
.qtr-rn-details summary:hover {
  color: #4338ca;
}
.qtr-rn-details[open] summary {
  margin-bottom: 8px;
  color: #1e293b;
}
.qtr-rn-detay-body {
  font-size: 12.5px;
  line-height: 1.6;
  color: #334155;
  padding: 4px 6px 6px 6px;
  background: #f8fafc;
  border-radius: 6px;
}
.qtr-rn-detay-body p {
  margin: 0 0 8px 0;
}
.qtr-rn-detay-body strong {
  color: #0f172a;
}
.qtr-rn-md-h2 {
  margin: 12px 0 6px 0;
  font-size: 14.5px;
  color: #1e293b;
  border-bottom: 1px solid #cbd5e1;
  padding-bottom: 4px;
}
.qtr-rn-md-h3 {
  margin: 10px 0 5px 0;
  font-size: 13px;
  color: #1e293b;
}
.qtr-rn-md-h4 {
  margin: 8px 0 4px 0;
  font-size: 12px;
  color: #475569;
}
.qtr-rn-md-ul {
  margin: 4px 0 8px 0;
  padding-left: 18px;
}
.qtr-rn-md-ul li {
  margin: 2px 0;
}
.qtr-rn-md-hr {
  border: none;
  border-top: 1px solid #cbd5e1;
  margin: 10px 0;
}

/* Mobile */
@media (max-width: 768px) {
  #qtr-release-feed {
    max-height: none;
  }
  .qtr-rn-card {
    padding: 12px 14px;
  }
  .qtr-rn-title {
    font-size: 14px;
  }
}
