:root {
  --ana-renk: #8b1e1e;
  --arka-plan: #0000ff;
  --kart: #ffffff;
  --yazi: #1a1a1a;
  --soluk: #6b6b76;
}
* { box-sizing: border-box; }
body {
  font-family: -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  background: var(--arka-plan);
  color: var(--yazi);
  max-width: 640px;
  margin: 0 auto;
  padding: 20px 16px 60px;
  line-height: 1.5;
}
h1 { text-align: center; margin: 8px 0 24px; }

/* Kartlar */
.kart {
  background: var(--kart);
  padding: 18px;
  margin-bottom: 16px;
  border-radius: 14px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
}
.haber h2 { margin: 0 0 4px; font-size: 20px; }
.tarih { color: var(--soluk); font-size: 13px; margin: 0 0 10px; }
.ozet { margin: 0; white-space: pre-wrap; }

/* Formlar */
input, textarea {
  width: 100%;
  padding: 10px 12px;
  margin-bottom: 10px;
  font-size: 16px;
  font-family: inherit;
  border: 1px solid #d0d0d8;
  border-radius: 8px;
}
input:focus, textarea:focus {
  outline: 2px solid var(--ana-renk);
  border-color: transparent;
}
textarea { min-height: 90px; resize: vertical; }

/* Butonlar */
button {
  background: var(--ana-renk);
  color: white;
  border: none;
  padding: 10px 16px;
  border-radius: 8px;
  font-size: 16px;
  cursor: pointer;
}
button:hover { opacity: 0.9; }
button:disabled { opacity: 0.5; cursor: default; }
.ikincil { background: #e4e4ea; color: var(--yazi); }
.tehlike { background: white; color: #b00020; border: 1px solid #b00020; }

.butonlar { margin-top: 14px; display: flex; gap: 8px; }
.butonlar button { font-size: 14px; padding: 6px 12px; }

/* Beğeni */
.begeni-satiri { margin-top: 12px; }
.begeni-btn {
  background: #f1f1f5;
  color: var(--yazi);
  padding: 6px 14px;
  font-size: 15px;
  border-radius: 20px;
}
.begeni-btn.begenildi {
  background: #fbe9e9;
  color: var(--ana-renk);
  font-weight: bold;
}

/* Yorumlar */
.yorumlar {
  margin-top: 16px;
  border-top: 1px solid #ececf0;
  padding-top: 12px;
}
.yorumlar h3 { font-size: 15px; margin: 0 0 10px; }
.yorum {
  background: #f7f7f9;
  border-radius: 10px;
  padding: 8px 12px;
  margin-bottom: 8px;
}
.yorum-ust { font-size: 13px; color: var(--soluk); }
.yorum p { margin: 2px 0 0; white-space: pre-wrap; }
.yorum-sil {
  background: none;
  color: #b00020;
  padding: 0;
  margin-top: 4px;
  font-size: 13px;
}
.yorum-form { display: flex; gap: 8px; }
.yorum-form input { margin-bottom: 0; flex: 1; }
.yorum-form button { padding: 8px 14px; font-size: 14px; }

/* Üst şerit ve yardımcılar */
.ust-serit {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
  color: var(--soluk);
  font-size: 14px;
}
.bos { text-align: center; color: var(--soluk); }
.gizli { display: none; }

/* Düzenleme penceresi */
dialog {
  border: none;
  border-radius: 14px;
  padding: 20px;
  width: min(90vw, 480px);
}
dialog::backdrop { background: rgba(0, 0, 0, 0.4); }
dialog h2 { margin-top: 0; }
.pencere-butonlar { display: flex; justify-content: flex-end; gap: 8px; }/* Resim */
.dosya-etiketi {
  display: block;
  font-size: 14px;
  color: var(--soluk);
  margin-bottom: 4px;
}
input[type="file"] { padding: 8px; background: #fafafc; }
.haber-resmi {
  display: block;
  width: 100%;
  max-height: 420px;
  object-fit: cover;
  border-radius: 10px;
  margin-top: 12px;
}/* Üst şeritteki butonlar */
.ust-serit div { display: flex; gap: 8px; }/* Kategoriler */
select {
  width: 100%;
  padding: 10px 12px;
  margin-bottom: 10px;
  font-size: 16px;
  font-family: inherit;
  border: 1px solid #d0d0d8;
  border-radius: 8px;
  background: white;
}
.kategori-cubugu {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 8px;
  margin-bottom: 8px;
}
.kategori-btn {
  background: #e4e4ea;
  color: var(--yazi);
  border-radius: 20px;
  padding: 6px 14px;
  font-size: 14px;
  white-space: nowrap;
}
.kategori-btn.secili {
  background: var(--ana-renk);
  color: white;
}
.rozet {
  display: inline-block;
  background: #fbe9e9;
  color: var(--ana-renk);
  font-size: 12px;
  font-weight: bold;
  padding: 2px 10px;
  border-radius: 12px;
  margin-bottom: 6px;
}/* Düzenleme penceresinde resim */
.onizleme {
  display: block;
  width: 100%;
  max-height: 180px;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 10px;
}
.onizleme.gizli { display: none; }

.onay-satiri {
  display: flex;
  align-items: center;
  font-size: 14px;
  margin-bottom: 10px;
}
.onay-satiri input { width: auto; margin: 0 8px 0 0; }
.onay-satiri.gizli { display: none; }