/* ---- Butonlar ---- */

.btn-mosk {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--u2);
  padding: 10px 18px;
  font-family: var(--font-govde);
  font-size: 15px;
  font-weight: 500;
  line-height: 1.2;
  border: 1px solid transparent;
  border-radius: var(--r-buton);
  cursor: pointer;
  transition: background var(--gecis), border-color var(--gecis), color var(--gecis), transform var(--gecis);
  text-decoration: none;
}

.btn-mosk:hover {
  text-decoration: none;
}

.btn-mosk:disabled,
.btn-mosk[aria-disabled="true"] {
  opacity: .55;
  cursor: not-allowed;
}

.btn-dolu {
  background: var(--brand-600);
  border-color: var(--brand-600);
  color: #fff;
}

.btn-dolu:hover {
  background: var(--brand-700);
  border-color: var(--brand-700);
  color: #fff;
}

.btn-cizgili {
  background: transparent;
  border-color: var(--line);
  color: var(--ink-700);
}

.btn-cizgili:hover {
  border-color: var(--brand-500);
  color: var(--brand-metin);
  background: var(--brand-050);
}

.btn-sade {
  background: transparent;
  border-color: transparent;
  color: var(--ink-700);
  padding-inline: 10px;
}

.btn-sade:hover {
  background: var(--paper-alt);
  color: var(--baslik);
}

.btn-tehlike {
  background: transparent;
  border-color: var(--line);
  color: var(--hata-600);
}

.btn-tehlike:hover {
  background: var(--hata-050);
  border-color: var(--hata-600);
  color: var(--hata-600);
}

.btn-kucuk {
  padding: 6px 12px;
  font-size: 13px;
}

.btn-ikon {
  width: 34px;
  height: 34px;
  padding: 0;
  border-radius: 8px;
  font-size: 15px;
}

/* ---- Rozetler ---- */

.rozet {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  font-family: var(--font-kunye);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .06em;
  text-transform: uppercase;
  border-radius: var(--r-rozet);
  background: var(--paper-alt);
  color: var(--muted);
  white-space: nowrap;
}

.rozet-yayinda { background: var(--ok-050); color: var(--ok-600); }
.rozet-pasif { background: var(--paper-alt); color: var(--muted); }
.rozet-uyari { background: var(--uyari-050); color: var(--uyari-600); }
.rozet-hata { background: var(--hata-050); color: var(--hata-600); }
.rozet-marka { background: var(--brand-050); color: var(--brand-metin); }
.rozet-vurgu { background: var(--accent-050); color: var(--accent-600); }

/* ---- Kartlar ---- */

.kart {
  position: relative;
  background: var(--yuzey);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-kart);
  box-shadow: var(--golge);
  transition: transform var(--gecis), border-color var(--gecis), box-shadow var(--gecis);
}

.kart-tiklanabilir:hover {
  transform: translateY(-2px);
  border-color: var(--brand-500);
  box-shadow: var(--golge-yukseltilmis);
}

.kart-govde {
  padding: var(--u5);
}

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

.tablo-sarmal {
  overflow-x: auto;
  border: 1px solid var(--line-soft);
  border-radius: var(--r-kart);
  background: var(--yuzey);
}

.tablo {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  min-width: 720px;
}

.tablo th {
  position: sticky;
  top: 0;
  padding: 12px 14px;
  text-align: left;
  font-family: var(--font-kunye);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--muted);
  background: var(--paper-alt);
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}

.tablo td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--line-soft);
  vertical-align: middle;
}

.tablo tbody tr:last-child td {
  border-bottom: 0;
}

.tablo tbody tr:hover {
  background: var(--brand-050);
}

.tablo .islemler {
  display: flex;
  gap: 6px;
  justify-content: flex-end;
}

/* ---- Modal ---- */

.modal-katman {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: none;
  padding: var(--u4);
  background: rgba(11, 29, 42, .55);
  overflow-y: auto;
}

.modal-katman.acik {
  display: flex;
  align-items: flex-start;
  justify-content: center;
}

.modal {
  width: 100%;
  max-width: 640px;
  margin: auto;
  background: var(--yuzey-2);
  border-radius: var(--r-kart);
  box-shadow: var(--golge-yukseltilmis);
  animation: modal-giris 140ms ease;
}

.modal-genis { max-width: 880px; }

@keyframes modal-giris {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.modal-baslik {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--u4);
  padding: var(--u5) var(--u6);
  border-bottom: 1px solid var(--line-soft);
}

.modal-baslik h3 {
  margin: 0;
  font-size: 20px;
}

.modal-govde {
  padding: var(--u6);
}

.modal-alt {
  display: flex;
  justify-content: flex-end;
  gap: var(--u3);
  padding: var(--u4) var(--u6);
  border-top: 1px solid var(--line-soft);
  background: var(--paper);
  border-radius: 0 0 var(--r-kart) var(--r-kart);
}

/* ---- Toast ---- */

.toast-alani {
  position: fixed;
  right: var(--u5);
  bottom: var(--u5);
  z-index: 1400;
  display: flex;
  flex-direction: column;
  gap: var(--u2);
  max-width: min(380px, calc(100vw - 32px));
}

.toast {
  display: flex;
  align-items: flex-start;
  gap: var(--u3);
  padding: 12px 14px;
  background: var(--ink-900);
  color: #fff;
  border-radius: var(--r-buton);
  box-shadow: var(--golge-yukseltilmis);
  font-size: 14px;
  animation: toast-giris 160ms ease;
}

.toast i {
  font-size: 16px;
  line-height: 1.4;
}

.toast-basarili i { color: #6FD8A8; }
.toast-hata i { color: #FF9E9E; }
.toast-bilgi i { color: var(--brand-400); }

@keyframes toast-giris {
  from { opacity: 0; transform: translateX(12px); }
  to { opacity: 1; transform: translateX(0); }
}

/* ---- Boş durum ---- */

.bos-durum {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--u3);
  padding: var(--u12) var(--u6);
  text-align: center;
  background: var(--yuzey);
  border: 1px dashed var(--line);
  border-radius: var(--r-kart);
}

.bos-durum i {
  font-size: 34px;
  color: var(--brand-400);
}

.bos-durum h4 {
  margin: 0;
  font-size: 20px;
}

.bos-durum p {
  margin: 0;
  max-width: 46ch;
  color: var(--muted);
}

/* ---- İlerleme çubuğu ---- */

.ilerleme {
  height: 6px;
  background: var(--paper-alt);
  border-radius: var(--r-rozet);
  overflow: hidden;
}

.ilerleme-dolgu {
  height: 100%;
  width: 0;
  background: var(--brand-600);
  transition: width 160ms ease;
}

/* ---- Doküman kartı ---- */

.dokuman-kart {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
}

.dokuman-kapak {
  position: relative;
  aspect-ratio: 4 / 3;
  background: var(--paper-alt);
  border-bottom: 1px solid var(--line-soft);
  overflow: hidden;
}

.dokuman-kapak img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

.kapak-yedek {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  font-family: var(--font-display);
  font-size: 34px;
  font-weight: 700;
  letter-spacing: -.03em;
  color: rgba(255, 255, 255, .92);
}

.dokuman-kart .kart-govde {
  display: flex;
  flex-direction: column;
  gap: var(--u3);
  flex: 1;
}

.dokuman-kart h4 {
  margin: 0;
  font-size: 18px;
  line-height: 1.3;
}

.dokuman-kart p {
  margin: 0;
  font-size: 14px;
  color: var(--muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.dokuman-kart .kunye-satir {
  margin-top: auto;
  padding-top: var(--u3);
  border-top: 1px solid var(--line-soft);
}

.urun-etiketi {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-kunye);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .06em;
  text-transform: uppercase;
}

/* ---- Sekme ---- */

.sekmeler {
  display: flex;
  gap: var(--u5);
  border-bottom: 1px solid var(--line);
  margin-bottom: var(--u6);
  overflow-x: auto;
}

.sekme {
  position: relative;
  padding: 10px 2px;
  font-size: 15px;
  font-weight: 500;
  color: var(--muted);
  background: none;
  border: 0;
  cursor: pointer;
  white-space: nowrap;
}

.sekme[aria-selected="true"] {
  color: var(--baslik);
}

.sekme[aria-selected="true"]::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  background: var(--brand-600);
  border-radius: 2px;
}
