/* ==========================================================================
   Bursa Teknik Sünger — yönetim paneli
   Siteden ayrı bir stil dosyası: panel bir uygulama, site bir yayın.
   Ortak olan tek şey renk paleti.
   ========================================================================== */

:root {
  --p-lacivert: #001629;
  --p-lacivert-acik: #092b45;
  --p-teal: #078f91;
  --p-teal-koyu: #066f71;
  --p-zemin: #f4f5f7;
  --p-kart: #ffffff;
  --p-cizgi: #dfe3e8;
  --p-metin: #1a1c1e;
  --p-soluk: #6b7280;
  --p-hata: #ba1a1a;
  --p-basari: #0f7b47;
  --p-uyari: #b45309;
  --p-kenar-genislik: 264px;
}

* { box-sizing: border-box; }

.p-govde,
.p-giris-govde {
  margin: 0;
  font-family: Inter, system-ui, sans-serif;
  color: var(--p-metin);
  background: var(--p-zemin);
  -webkit-font-smoothing: antialiased;
}

.material-symbols-outlined {
  font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
  line-height: 1;
  flex-shrink: 0;
}

.p-atla {
  position: absolute;
  left: -9999px;
}
.p-atla:focus {
  left: 12px;
  top: 12px;
  z-index: 100;
  background: var(--p-lacivert);
  color: #fff;
  padding: 10px 16px;
}

/* --- Kenar çubuğu ------------------------------------------------------ */

.p-kenar {
  position: fixed;
  inset: 0 auto 0 0;
  width: var(--p-kenar-genislik);
  background: var(--p-lacivert);
  color: #fff;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  z-index: 40;
}

.p-marka {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 20px 18px;
  text-decoration: none;
  color: #fff;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.p-marka img { background: #fff; padding: 3px; }
.p-marka strong { display: block; font-size: 14px; line-height: 1.3; }
.p-marka small { display: block; font-size: 11px; color: rgba(255, 255, 255, 0.55); }

.p-menu { flex: 1; padding: 12px 10px; }

.p-menu-bag,
.p-acilir > summary {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 10px 12px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.75);
  text-decoration: none;
  background: none;
  border: 0;
  border-radius: 4px;
  cursor: pointer;
  font-family: inherit;
  text-align: left;
}
.p-menu-bag:hover,
.p-acilir > summary:hover { background: rgba(255, 255, 255, 0.07); color: #fff; }
.p-menu-bag.p-etkin { background: var(--p-teal); color: #fff; }

.p-acilir > summary { list-style: none; }
.p-acilir > summary::-webkit-details-marker { display: none; }
.p-acilir > summary::after {
  content: 'expand_more';
  font-family: 'Material Symbols Outlined';
  margin-left: auto;
  font-size: 18px;
  transition: transform 0.15s;
}
.p-acilir[open] > summary::after { transform: rotate(180deg); }

.p-alt-menu { display: flex; flex-direction: column; padding: 2px 0 6px 34px; }
.p-alt-menu a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 10px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
  border-radius: 4px;
}
.p-alt-menu a:hover { color: #fff; background: rgba(255, 255, 255, 0.06); }
.p-alt-menu a.p-etkin { color: #fff; background: rgba(7, 143, 145, 0.35); }

/* Yayınlanmamış değişiklik göstergeleri */
.p-nokta {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--p-teal);
  margin-left: auto;
}
.p-rozet,
.p-sayi {
  margin-left: auto;
  font-size: 11px;
  font-weight: 600;
  padding: 2px 7px;
  border-radius: 10px;
}
.p-rozet { background: var(--p-teal); color: #fff; }
.p-sayi { background: rgba(255, 255, 255, 0.12); color: rgba(255, 255, 255, 0.7); }

.p-cikis {
  padding: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.p-menu-dugmesi {
  display: none;
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 50;
  background: var(--p-lacivert);
  color: #fff;
  border: 0;
  padding: 10px;
  border-radius: 4px;
  cursor: pointer;
}

/* --- Ana alan ---------------------------------------------------------- */

.p-ana {
  margin-left: var(--p-kenar-genislik);
  padding: 24px 28px 64px;
  max-width: 1200px;
}

.p-ust {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 24px;
}
.p-ust h1 { font-size: 24px; margin: 0 0 4px; }
.p-ust-not { margin: 0; font-size: 13px; color: var(--p-soluk); }
.p-ust-eylem { display: flex; gap: 10px; flex-wrap: wrap; }

.p-etiket-uyari {
  display: inline-block;
  margin-left: 8px;
  padding: 2px 8px;
  font-size: 11px;
  font-weight: 600;
  color: var(--p-uyari);
  background: #fef3c7;
  border-radius: 3px;
}

/* --- Şerit ve bildirimler ---------------------------------------------- */

.p-serit,
.p-bildirim {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-radius: 4px;
  margin-bottom: 20px;
  font-size: 14px;
}
.p-serit { background: #fef3c7; border: 1px solid #fcd34d; color: #713f12; }
.p-serit form { margin-left: auto; }
.p-bildirim-basarili { background: #dcfce7; border: 1px solid #86efac; color: #14532d; }
.p-bildirim-hatali { background: #fee2e2; border: 1px solid #fca5a5; color: #7f1d1d; }

/* --- Düğmeler ---------------------------------------------------------- */

.p-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 16px;
  font-size: 14px;
  font-weight: 500;
  font-family: inherit;
  border-radius: 4px;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
}
.p-btn .material-symbols-outlined { font-size: 18px; }
.p-btn-birincil { background: var(--p-teal); color: #fff; }
.p-btn-birincil:hover { background: var(--p-teal-koyu); }
.p-btn-ikincil { background: #fff; color: var(--p-lacivert); border-color: var(--p-cizgi); }
.p-btn-ikincil:hover { border-color: var(--p-teal); color: var(--p-teal); }
.p-btn-sade { background: none; color: var(--p-soluk); padding: 9px 10px; }
.p-btn-sade:hover { color: var(--p-hata); }
.p-btn[disabled] { opacity: 0.45; cursor: not-allowed; }

/* --- Sayfa düzenleme --------------------------------------------------- */

.p-duzen { display: grid; grid-template-columns: 200px 1fr; gap: 24px; align-items: start; }

.p-bolumler {
  position: sticky;
  top: 24px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  background: var(--p-kart);
  border: 1px solid var(--p-cizgi);
  border-radius: 6px;
  padding: 8px;
}
.p-bolumler a {
  padding: 8px 10px;
  font-size: 13px;
  color: var(--p-soluk);
  text-decoration: none;
  border-radius: 4px;
  border-left: 2px solid transparent;
}
.p-bolumler a:hover { background: var(--p-zemin); color: var(--p-metin); }
.p-bolumler a.p-etkin {
  color: var(--p-teal);
  background: #f0fdfa;
  border-left-color: var(--p-teal);
  font-weight: 500;
}

.p-alanlar { display: flex; flex-direction: column; gap: 20px; min-width: 0; }

.p-bolum {
  background: var(--p-kart);
  border: 1px solid var(--p-cizgi);
  border-radius: 6px;
  padding: 22px;
  scroll-margin-top: 20px;
}
.p-bolum > h2 {
  font-size: 16px;
  margin: 0 0 18px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--p-cizgi);
}

/* --- Alanlar ----------------------------------------------------------- */

.alan { margin-bottom: 18px; }
.alan:last-child { margin-bottom: 0; }

.p-etiket {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 6px;
}

.p-sayac { margin-left: auto; font-size: 11px; color: var(--p-soluk); font-weight: 400; }
.p-sayac.p-yakin { color: var(--p-uyari); }
.p-sayac.p-asti { color: var(--p-hata); font-weight: 600; }

.p-girdi {
  width: 100%;
  padding: 9px 12px;
  font-size: 14px;
  font-family: inherit;
  color: var(--p-metin);
  background: #fff;
  border: 1px solid var(--p-cizgi);
  border-radius: 4px;
}
.p-girdi:focus {
  outline: 2px solid var(--p-teal);
  outline-offset: -1px;
  border-color: var(--p-teal);
}
textarea.p-girdi { resize: vertical; line-height: 1.55; }

.p-yardim { margin: 5px 0 0; font-size: 12px; color: var(--p-soluk); line-height: 1.5; }
.p-hata { margin: 5px 0 0; font-size: 12px; color: var(--p-hata); font-weight: 500; }

.p-grup {
  border: 1px solid var(--p-cizgi);
  border-radius: 5px;
  padding: 16px;
  margin: 0 0 18px;
}
.p-grup-baslik { font-size: 13px; font-weight: 600; padding: 0 6px; color: var(--p-lacivert); }

/* Görsel alanı */
.p-gorsel { display: flex; gap: 12px; align-items: flex-start; }
.p-gorsel-onizleme {
  width: 76px;
  height: 76px;
  flex-shrink: 0;
  border: 1px solid var(--p-cizgi);
  border-radius: 4px;
  background: var(--p-zemin);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.p-gorsel-onizleme img { width: 100%; height: 100%; object-fit: cover; }
.p-gorsel-onizleme .material-symbols-outlined { color: var(--p-soluk); font-size: 28px; }
.p-gorsel-govde { flex: 1; display: flex; flex-direction: column; gap: 8px; min-width: 0; }

/* İkon alanı */
.p-ikon { display: flex; gap: 10px; align-items: center; }
.p-ikon-onizleme {
  width: 42px;
  height: 42px;
  border: 1px solid var(--p-cizgi);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--p-teal);
  background: var(--p-zemin);
}

/* --- Tekrarlı listeler ------------------------------------------------- */

.p-liste {
  border: 1px solid var(--p-cizgi);
  border-radius: 5px;
  padding: 16px;
  margin-bottom: 18px;
  background: #fbfbfc;
}
.p-liste-baslik { display: flex; align-items: center; gap: 10px; }
.p-liste-sayi { margin-left: auto; font-size: 12px; color: var(--p-soluk); }

.p-oge-listesi { list-style: none; margin: 12px 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }

.p-oge { background: #fff; border: 1px solid var(--p-cizgi); border-radius: 4px; }
.p-oge.p-suruklenen { opacity: 0.4; }
.p-oge.p-hedef { border-color: var(--p-teal); border-style: dashed; }

.p-oge-baslik {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 12px;
  cursor: pointer;
}
.p-oge-ad { flex: 1; font-size: 13px; font-weight: 500; }
.p-tut,
.p-oge-sil {
  background: none;
  border: 0;
  padding: 4px;
  cursor: pointer;
  color: var(--p-soluk);
  display: flex;
}
.p-tut { cursor: grab; }
.p-oge-sil:hover { color: var(--p-hata); }

.p-oge-govde { padding: 4px 14px 16px; border-top: 1px solid var(--p-cizgi); }
.p-oge.p-kapali .p-oge-govde { display: none; }

/* --- Alt çubuk --------------------------------------------------------- */

.p-alt {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: space-between;
  align-items: center;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--p-cizgi);
}
.p-alt-sol { display: flex; gap: 4px; flex-wrap: wrap; }

/* --- Gösterge paneli --------------------------------------------------- */

.p-kartlar {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 14px;
  margin-bottom: 24px;
}
.p-kart {
  background: var(--p-kart);
  border: 1px solid var(--p-cizgi);
  border-radius: 6px;
  padding: 18px;
  text-decoration: none;
  color: var(--p-metin);
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.p-kart:hover { border-color: var(--p-teal); }
.p-kart .material-symbols-outlined { color: var(--p-teal); margin-bottom: 4px; }
.p-kart strong { font-size: 26px; line-height: 1; }
.p-kart span:last-child { font-size: 13px; color: var(--p-soluk); }
.p-kart-vurgu { border-color: var(--p-teal); background: #f0fdfa; }

.p-ikili { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 20px; }

.p-blok {
  background: var(--p-kart);
  border: 1px solid var(--p-cizgi);
  border-radius: 6px;
  padding: 20px;
}
.p-blok h2 { font-size: 15px; margin: 0 0 14px; }

.p-liste-sade { list-style: none; margin: 0; padding: 0; }
.p-liste-sade li {
  padding: 10px 0;
  border-bottom: 1px solid var(--p-cizgi);
  font-size: 13px;
}
.p-liste-sade li:last-child { border-bottom: 0; }
.p-liste-sade a { text-decoration: none; color: inherit; display: flex; gap: 8px; align-items: baseline; }
.p-liste-sade a:hover strong { color: var(--p-teal); }
.p-okunmamis strong::before {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--p-teal);
  margin-right: 6px;
  vertical-align: middle;
}
.p-soluk { color: var(--p-soluk); }
.p-zaman { margin-left: auto; font-size: 11px; color: var(--p-soluk); white-space: nowrap; }
.p-kirp {
  margin: 4px 0 0;
  color: var(--p-soluk);
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.p-islem { font-weight: 500; }
.p-bos { color: var(--p-soluk); font-size: 13px; margin: 0; }

/* --- Giriş ------------------------------------------------------------- */

.p-giris-govde {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--p-lacivert);
  padding: 24px;
}
.p-giris {
  width: 100%;
  max-width: 380px;
  background: #fff;
  border-radius: 8px;
  padding: 36px 32px;
  text-align: center;
}
.p-giris-logo { margin: 0 auto 16px; display: block; }
.p-giris h1 { font-size: 19px; margin: 0; }
.p-giris-alt { margin: 4px 0 26px; font-size: 13px; color: var(--p-soluk); }
.p-giris-form { text-align: left; }
.p-giris-form .p-etiket { margin-top: 14px; }
.p-giris-dugme { width: 100%; justify-content: center; margin-top: 22px; }
.p-giris-hata { margin-top: 14px; }
.p-giris-don {
  display: inline-block;
  margin-top: 22px;
  font-size: 13px;
  color: var(--p-soluk);
  text-decoration: none;
}
.p-giris-don:hover { color: var(--p-teal); }

/* --- Dar ekran --------------------------------------------------------- */

@media (max-width: 900px) {
  .p-duzen { grid-template-columns: 1fr; }
  .p-bolumler { position: static; flex-direction: row; overflow-x: auto; }
}

@media (max-width: 720px) {
  .p-kenar { transform: translateX(-100%); transition: transform 0.2s; }
  .p-kenar.p-acik { transform: none; }
  .p-menu-dugmesi { display: block; }
  .p-ana { margin-left: 0; padding: 64px 16px 48px; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}

/* --- Koleksiyon listeleri ---------------------------------------------- */

.p-kayit-listesi { list-style: none; margin: 0; padding: 0; }

.p-kayit {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 4px;
  border-bottom: 1px solid var(--p-cizgi);
}
.p-kayit:last-child { border-bottom: 0; }
.p-kayit.p-suruklenen { opacity: 0.4; }

.p-kayit-gorsel {
  width: 46px;
  height: 46px;
  flex-shrink: 0;
  border: 1px solid var(--p-cizgi);
  border-radius: 4px;
  background: var(--p-zemin);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.p-kayit-gorsel img { width: 100%; height: 100%; object-fit: cover; }
.p-kayit-gorsel .material-symbols-outlined { color: var(--p-soluk); font-size: 20px; }

.p-kayit-ad {
  flex: 1;
  font-size: 14px;
  font-weight: 500;
  color: var(--p-metin);
  text-decoration: none;
  min-width: 0;
}
.p-kayit-ad:hover { color: var(--p-teal); }

.p-durum {
  font-size: 11px;
  font-weight: 600;
  padding: 3px 9px;
  border-radius: 10px;
  white-space: nowrap;
}
.p-durum-yayinda { background: #dcfce7; color: #14532d; }
.p-durum-taslak { background: #f1f5f9; color: #475569; }

.p-kayit-eylem { display: flex; gap: 4px; }
.p-kayit-eylem a {
  display: flex;
  padding: 6px;
  color: var(--p-soluk);
  border-radius: 4px;
}
.p-kayit-eylem a:hover { color: var(--p-teal); background: var(--p-zemin); }

.p-tek-sutun { max-width: 780px; }
.p-dar { max-width: 460px; }

/* Boş durum kutusu */
.p-bos-kutu { text-align: center; padding: 48px 24px; }
.p-bos-kutu .material-symbols-outlined { font-size: 44px; color: var(--p-soluk); }
.p-bos-kutu h2 { font-size: 17px; margin: 14px 0 6px; border: 0; padding: 0; }
.p-bos-kutu p { color: var(--p-soluk); font-size: 14px; max-width: 460px; margin: 0 auto 18px; line-height: 1.6; }

/* --- Mesajlar ---------------------------------------------------------- */

.p-mesajlar { display: flex; flex-direction: column; gap: 14px; }

.p-mesaj {
  background: var(--p-kart);
  border: 1px solid var(--p-cizgi);
  border-radius: 6px;
  padding: 18px 20px;
}
.p-mesaj-yeni { border-left: 3px solid var(--p-teal); }

.p-mesaj-ust { display: flex; justify-content: space-between; gap: 16px; align-items: flex-start; }
.p-mesaj-ust h2 { font-size: 15px; margin: 0 0 4px; }
.p-mesaj-ust time { font-size: 12px; color: var(--p-soluk); white-space: nowrap; }
.p-mesaj-bilgi { margin: 0; font-size: 13px; color: var(--p-soluk); }
.p-mesaj-bilgi a { color: var(--p-teal); text-decoration: none; }
.p-mesaj-bilgi a:hover { text-decoration: underline; }

.p-mesaj-govde {
  margin: 14px 0;
  font-size: 14px;
  line-height: 1.65;
  white-space: pre-wrap;
}
.p-mesaj-not {
  margin: 0 0 14px;
  padding: 10px 14px;
  background: #fffbeb;
  border-left: 3px solid #fcd34d;
  font-size: 13px;
}

.p-mesaj-alt {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: space-between;
  align-items: center;
  padding-top: 14px;
  border-top: 1px solid var(--p-cizgi);
}
.p-mesaj-not-form { display: flex; gap: 8px; flex: 1; min-width: 260px; }
.p-mesaj-eylem { display: flex; gap: 4px; }

/* --- Tablo ------------------------------------------------------------- */

.p-tablo { width: 100%; border-collapse: collapse; font-size: 13px; }
.p-tablo th {
  text-align: left;
  font-weight: 600;
  padding: 8px 10px;
  border-bottom: 2px solid var(--p-cizgi);
  white-space: nowrap;
}
.p-tablo td { padding: 8px 10px; border-bottom: 1px solid var(--p-cizgi); }
.p-tablo tr:last-child td { border-bottom: 0; }

/* --- Mail hesapları ---------------------------------------------------- */

.p-bilgi-kutusu {
  display: flex;
  gap: 12px;
  padding: 14px 16px;
  margin-bottom: 20px;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  border-radius: 4px;
  font-size: 13px;
  line-height: 1.6;
  color: #1e3a5f;
}
.p-bilgi-kutusu .material-symbols-outlined { color: #2563eb; }

.p-mail-form { max-width: 460px; }

.p-adres-girdi { display: flex; align-items: stretch; }
.p-adres-girdi .p-girdi { border-radius: 4px 0 0 4px; }
.p-adres-son {
  display: flex;
  align-items: center;
  padding: 0 12px;
  font-size: 13px;
  color: var(--p-soluk);
  background: var(--p-zemin);
  border: 1px solid var(--p-cizgi);
  border-left: 0;
  border-radius: 0 4px 4px 0;
  white-space: nowrap;
}

.p-mail-hesap {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  padding: 12px 4px;
  border-bottom: 1px solid var(--p-cizgi);
}
.p-mail-hesap:last-child { border-bottom: 0; }

.p-mail-bilgi { display: flex; flex-direction: column; gap: 3px; min-width: 220px; }
.p-mail-bilgi strong { font-size: 14px; }
.p-mail-bilgi .p-soluk { font-size: 12px; }

.p-uyari-etiket {
  display: inline-block;
  width: fit-content;
  margin-top: 2px;
  padding: 2px 8px;
  font-size: 11px;
  font-weight: 600;
  color: var(--p-uyari);
  background: #fef3c7;
  border-radius: 3px;
}

.p-mail-eylem { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.p-mail-satir-form { display: flex; gap: 6px; }
.p-girdi-dar { width: 170px; }

.p-bilgi-kutusu code,
.p-yardim code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.92em;
  background: rgba(0, 0, 0, 0.06);
  padding: 1px 5px;
  border-radius: 3px;
}

/* --- Galeri ekranı ----------------------------------------------------- */

.p-yukleme {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 32px 24px;
  margin-bottom: 20px;
  text-align: center;
  background: var(--p-kart);
  border: 2px dashed var(--p-cizgi);
  border-radius: 6px;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}
.p-yukleme:hover { border-color: var(--p-teal); }
.p-yukleme.p-suruklendi { border-color: var(--p-teal); background: #f0fdfa; }
.p-yukleme.p-yukleniyor { opacity: 0.6; pointer-events: none; }
.p-yukleme .material-symbols-outlined { font-size: 38px; color: var(--p-teal); }
.p-yukleme strong { font-size: 15px; }
.p-yukleme span { font-size: 13px; color: var(--p-soluk); }
.p-yukleme small { font-size: 12px; color: var(--p-soluk); margin-top: 4px; }

.p-bag-btn {
  background: none;
  border: 0;
  padding: 0;
  font: inherit;
  color: var(--p-teal);
  text-decoration: underline;
  cursor: pointer;
}

.p-yukleme-durum {
  margin-top: 10px;
  padding: 8px 14px;
  font-size: 13px;
  border-radius: 4px;
  background: #dcfce7;
  color: #14532d;
}
.p-yukleme-durum.p-yukleme-hata { background: #fee2e2; color: #7f1d1d; }

.p-galeri-izgara {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 14px;
}

.p-galeri-kart {
  position: relative;
  background: var(--p-kart);
  border: 1px solid var(--p-cizgi);
  border-radius: 6px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.p-galeri-kart.p-suruklenen { opacity: 0.4; }

.p-galeri-gorsel {
  position: relative;
  aspect-ratio: 4 / 3;
  background: var(--p-zemin);
}
.p-galeri-gorsel img { width: 100%; height: 100%; object-fit: cover; display: block; }

.p-galeri-gorsel .p-tut {
  position: absolute;
  top: 6px;
  left: 6px;
  background: rgba(0, 22, 41, 0.7);
  color: #fff;
  border-radius: 4px;
  padding: 4px;
}

.p-galeri-no {
  position: absolute;
  bottom: 6px;
  left: 6px;
  min-width: 22px;
  padding: 2px 7px;
  font-size: 11px;
  font-weight: 600;
  text-align: center;
  color: #fff;
  background: rgba(0, 22, 41, 0.75);
  border-radius: 10px;
}

.p-galeri-alanlar { padding: 12px; display: flex; flex-direction: column; gap: 3px; }
.p-galeri-alanlar .p-etiket { margin: 6px 0 2px; font-size: 12px; }
.p-galeri-alanlar .p-etiket:first-child { margin-top: 0; }
.p-galeri-alanlar .p-girdi { padding: 6px 9px; font-size: 13px; }

/* Açıklaması olmayan görsel görünür şekilde işaretlenir: bu alan görme
   engelli kullanıcılar için okunur, boş kalması gerçek bir eksiklik. */
.p-girdi-eksik {
  border-color: var(--p-hata);
  background: #fef2f2;
}

.p-galeri-sil {
  position: absolute;
  top: 6px;
  right: 6px;
  display: flex;
  padding: 5px;
  color: #fff;
  background: rgba(0, 22, 41, 0.7);
  border: 0;
  border-radius: 4px;
  cursor: pointer;
}
.p-galeri-sil:hover { background: var(--p-hata); }

.p-eksik-uyari { color: var(--p-hata); font-weight: 500; }
