/* Tüyo kutusu (geri bildirim, kütüphane detayı ve sonuç incelemesinde ortak). */

.tip-box {
  margin: 0 0 1rem;
  padding: 1rem 1.2rem 0.9rem;
  border: 1px solid var(--tip-border);
  border-left: 4px solid var(--tip);
  border-radius: var(--radius-md);
  background: var(--tip-light);
}

.tip-box:empty {
  display: none;
}

.tip-kicker {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 0 0 4px;
  color: var(--tip);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.tip-kicker::before {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--tip);
  content: "";
}

.tip-title {
  margin: 0 0 6px;
  font-size: 1.05rem;
  line-height: 1.25;
}

.tip-test {
  margin: 0 0 8px;
  font-size: 0.88rem;
  line-height: 1.5;
}

.tip-examples {
  margin: 0;
  padding-left: 18px;
  color: var(--text-secondary);
  font-size: 0.82rem;
  line-height: 1.55;
}

.tip-note {
  margin: 10px 0 0;
  padding-top: 8px;
  border-top: 1px dashed var(--tip-border);
  color: var(--text-muted);
  font-size: 0.76rem;
  line-height: 1.45;
}

.tip-note:empty {
  display: none;
}

.tip-details {
  margin: 0;
}

.tip-summary {
  display: flex;
  min-height: 44px;
  align-items: center;
  gap: 9px;
  margin: -1rem -1.2rem -0.9rem;
  padding: 10px 1.2rem;
  cursor: pointer;
  font-family: var(--font-serif);
  font-size: 1rem;
  font-weight: 700;
  list-style: none;
}

.tip-summary::-webkit-details-marker {
  display: none;
}

.tip-summary-kicker {
  flex: 0 0 auto;
  padding: 3px 8px;
  border-radius: var(--radius-full);
  color: var(--tip);
  background: var(--bg-surface);
  font-family: var(--font-sans);
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.tip-summary::after {
  margin-left: auto;
  color: var(--tip);
  content: "+";
  font-size: 1.1rem;
}

.tip-details[open] .tip-summary {
  margin-bottom: 8px;
  border-bottom: 1px dashed var(--tip-border);
}

.tip-details[open] .tip-summary::after {
  content: "−";
}
