/* ==========================================================================
   OrtakPaylasim — gorunum
   Bootstrap 5.3 uzerine ince bir katman. Renkler ve olculer burada.
   ========================================================================== */

:root {
  --zemin: #f4f5f7;
  --kart: #ffffff;
  --cizgi: #e7e9ee;
  --yazi: #1f2328;
  --soluk: #6b7280;
  --ana: #0d6efd;
  --ana-koyu: #0b5ed7;
  --ana-acik: #e8f0fe;
  --golge: 0 1px 2px rgba(16, 24, 40, .04), 0 1px 3px rgba(16, 24, 40, .06);
  --yari-cap: 14px;
  --yan-menu: 248px;
  --alt-menu: 64px;

  --bs-body-bg: var(--zemin);
  --bs-body-color: var(--yazi);
  --bs-border-color: var(--cizgi);
  --bs-border-radius: .625rem;
  --bs-border-radius-lg: .875rem;
}

html {
  font-size: 15px;
}

@media (min-width: 768px) {
  html {
    font-size: 15.5px;
  }
}

body {
  background: var(--zemin);
  -webkit-tap-highlight-color: transparent;
}

a {
  text-decoration: none;
}

h1, .h1, h2, .h2, h3, .h3, h4, .h4, h5, .h5, h6, .h6 {
  font-weight: 650;
}

.min-w-0 {
  min-width: 0;
}

/* --- Ikonlar ------------------------------------------------------------ */

.ikon {
  width: 1.25em;
  height: 1.25em;
  flex-shrink: 0;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  vertical-align: -.25em;
}

/* --- Dugmeler ve formlar ------------------------------------------------ */

.btn {
  border-radius: 10px;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .4rem;
}

.btn-sm {
  border-radius: 8px;
}

.btn-ikon {
  width: 2.25rem;
  height: 2.25rem;
  padding: 0;
  flex-shrink: 0;
}

.btn-ikon.btn-sm {
  width: 2rem;
  height: 2rem;
}

.btn-hafif {
  --bs-btn-color: #374151;
  --bs-btn-bg: #fff;
  --bs-btn-border-color: var(--cizgi);
  --bs-btn-hover-color: var(--yazi);
  --bs-btn-hover-bg: #f3f4f6;
  --bs-btn-hover-border-color: #d9dce3;
  --bs-btn-active-bg: #e5e7eb;
  --bs-btn-active-border-color: #d1d5db;
}

.form-control, .form-select {
  border-radius: 10px;
}

.btn:focus-visible, .form-control:focus, .form-select:focus, .form-check-input:focus {
  box-shadow: 0 0 0 .2rem rgba(13, 110, 253, .2);
}

.form-dar {
  width: 100%;
  max-width: 420px;
  margin: 1.5rem auto;
}

.alert {
  border: 0;
  border-radius: 12px;
}

.dropdown-menu {
  border-color: var(--cizgi);
  border-radius: 12px;
  padding: .35rem;
  box-shadow: 0 10px 30px rgba(16, 24, 40, .12);
}

.dropdown-item {
  border-radius: 8px;
  padding: .45rem .75rem;
  display: flex;
  align-items: center;
  gap: .5rem;
}

/* --- Yan menu (masaustu) ------------------------------------------------ */

.yan-menu {
  position: fixed;
  inset: 0 auto 0 0;
  width: var(--yan-menu);
  background: var(--kart);
  border-right: 1px solid var(--cizgi);
  display: none;
  flex-direction: column;
  padding: 1rem .75rem;
  z-index: 1020;
}

.marka {
  display: flex;
  align-items: center;
  gap: .6rem;
  font-weight: 700;
  font-size: 1.08rem;
  color: var(--yazi);
}

.marka img {
  width: 30px;
  height: 30px;
}

.yan-menu .marka {
  padding: .25rem .5rem 1rem;
}

.gonder-dugmesi {
  width: 100%;
  padding: .6rem 1rem;
  box-shadow: 0 2px 6px rgba(13, 110, 253, .25);
}

.menu {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-top: .75rem;
  overflow-y: auto;
}

.menu-oge {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: .55rem .75rem;
  border-radius: 10px;
  color: #374151;
  font-weight: 500;
  background: none;
  border: 0;
  text-align: left;
}

.menu-oge .ikon {
  width: 1.3rem;
  height: 1.3rem;
  color: var(--soluk);
}

.menu-oge:hover {
  background: #f3f4f6;
  color: var(--yazi);
}

.menu-oge.aktif {
  background: var(--ana-acik);
  color: var(--ana);
}

.menu-oge.aktif .ikon {
  color: var(--ana);
}

.menu-oge .rozet {
  margin-left: auto;
}

.menu-baslik {
  font-size: .72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: #9ca3af;
  padding: 1rem .75rem .35rem;
}

.yan-menu-alt {
  margin-top: auto;
  padding-top: .75rem;
  border-top: 1px solid var(--cizgi);
}

.kullanici-dugmesi {
  display: flex;
  align-items: center;
  gap: .6rem;
  width: 100%;
  background: none;
  border: 0;
  padding: .45rem;
  border-radius: 10px;
  text-align: left;
  color: var(--yazi);
}

.kullanici-dugmesi:hover {
  background: #f3f4f6;
}

.kullanici-dugmesi .ad {
  font-weight: 600;
  line-height: 1.2;
}

.kullanici-dugmesi .eposta {
  font-size: .78rem;
  color: var(--soluk);
}

.rozet {
  min-width: 1.35rem;
  height: 1.35rem;
  padding: 0 .4rem;
  border-radius: 999px;
  background: var(--ana);
  color: #fff;
  font-size: .72rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* --- Telefon: ust cubuk, alt menu, alt panel ---------------------------- */

.ust-cubuk {
  position: sticky;
  top: 0;
  z-index: 1010;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: .6rem 1rem;
  padding-top: calc(.6rem + env(safe-area-inset-top));
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--cizgi);
}

.ust-cubuk .marka img {
  width: 26px;
  height: 26px;
}

.alt-menu {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  height: calc(var(--alt-menu) + env(safe-area-inset-bottom));
  padding-bottom: env(safe-area-inset-bottom);
  background: rgba(255, 255, 255, .96);
  backdrop-filter: blur(8px);
  border-top: 1px solid var(--cizgi);
  display: flex;
  z-index: 1030;
}

.alt-menu-oge {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  font-size: .7rem;
  font-weight: 500;
  color: var(--soluk);
  background: none;
  border: 0;
  position: relative;
}

.alt-menu-oge .ikon {
  width: 1.5rem;
  height: 1.5rem;
}

.alt-menu-oge.aktif {
  color: var(--ana);
}

.alt-menu-oge .rozet {
  position: absolute;
  top: 6px;
  left: calc(50% + 4px);
}

.gonder-daire {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--ana);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: -20px;
  box-shadow: 0 6px 16px rgba(13, 110, 253, .35);
  border: 3px solid #fff;
}

.gonder-daire .ikon {
  width: 1.6rem;
  height: 1.6rem;
  stroke-width: 2.4;
}

.alt-panel {
  border-radius: 18px 18px 0 0;
  height: auto !important;
  max-height: 85vh;
  padding-bottom: env(safe-area-inset-bottom);
}

/* --- Sayfa iskeleti ----------------------------------------------------- */

.sayfa {
  max-width: 1080px;
  margin: 0 auto;
  padding: 1rem 1rem calc(var(--alt-menu) + 2rem);
}

@media (min-width: 992px) {
  .yan-menu {
    display: flex;
  }

  .icerik {
    margin-left: var(--yan-menu);
  }

  .ust-cubuk, .alt-menu {
    display: none;
  }

  .sayfa {
    padding: 2rem 2rem 3rem;
  }
}

#bildirimKutusu {
  bottom: calc(var(--alt-menu) + env(safe-area-inset-bottom));
}

@media (min-width: 992px) {
  #bildirimKutusu {
    bottom: 0;
  }
}

.oturumsuz-sayfa {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 2.5rem 1rem;
}

.marka-ortada {
  font-size: 1.25rem;
  margin-bottom: .5rem;
}

.marka-ortada img {
  width: 36px;
  height: 36px;
}

.sayfa-basligi {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  margin-bottom: 1rem;
}

.sayfa-basligi h1 {
  font-size: 1.45rem;
  font-weight: 700;
  margin: 0;
}

.sayfa-basligi .alt-baslik {
  color: var(--soluk);
  font-size: .9rem;
  margin: .15rem 0 0;
}

.geri-baglantisi {
  display: inline-flex;
  align-items: center;
  gap: .2rem;
  color: var(--soluk);
  font-size: .9rem;
  margin-bottom: .5rem;
}

.geri-baglantisi:hover {
  color: var(--yazi);
}

/* --- Kart ve listeler --------------------------------------------------- */

.kart {
  background: var(--kart);
  border: 1px solid var(--cizgi);
  border-radius: var(--yari-cap);
  padding: 1.1rem 1.25rem;
  box-shadow: var(--golge);
}

/* Icinde satir listesi olan kart: kenarlar satirlara ait. Acilir menu
   koyma, overflow kesiyor; islem dugmeleri kartin disinda dursun. */
.liste-kart {
  padding: 0;
  overflow: hidden;
}

.kart-baslik {
  font-weight: 650;
  font-size: 1rem;
  margin-bottom: .75rem;
  display: flex;
  align-items: center;
  gap: .5rem;
}

.satir {
  display: flex;
  align-items: center;
  gap: .85rem;
  padding: .8rem 1rem;
  color: inherit;
  border-bottom: 1px solid var(--cizgi);
}

.satir:last-child {
  border-bottom: 0;
}

a.satir:hover, .satir-tiklanir:hover {
  background: #f9fafb;
  color: inherit;
}

.satir-govde {
  flex: 1;
  min-width: 0;
  color: inherit;
}

.satir-ust {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: .5rem;
}

.satir-baslik {
  font-weight: 500;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.satir.yeni .satir-baslik {
  font-weight: 700;
}

.satir-zaman {
  font-size: .8rem;
  color: var(--soluk);
  white-space: nowrap;
}

.satir.yeni .satir-zaman {
  color: var(--ana);
  font-weight: 600;
}

.satir-alt {
  color: var(--soluk);
  font-size: .88rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.okunmadi-nokta {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--ana);
  flex-shrink: 0;
}

.durum-cipi {
  display: inline-flex;
  align-items: center;
  gap: .25rem;
  font-size: .76rem;
  font-weight: 500;
  padding: .1rem .55rem;
  border-radius: 999px;
  background: #f3f4f6;
  color: #4b5563;
  white-space: nowrap;
}

.durum-cipi .ikon {
  width: .95rem;
  height: .95rem;
}

.durum-cipi.basari {
  background: #dcfce7;
  color: #166534;
}

.durum-cipi.bilgi {
  background: var(--ana-acik);
  color: var(--ana-koyu);
}

.durum-cipi.proje {
  background: #ede9fe;
  color: #5b21b6;
}

/* --- Kisi yuvarlaklari -------------------------------------------------- */

.avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 650;
  font-size: .82rem;
  flex-shrink: 0;
  letter-spacing: .02em;
  user-select: none;
}

.avatar-kucuk {
  width: 28px;
  height: 28px;
  font-size: .68rem;
}

.avatar-yigini {
  display: inline-flex;
}

.avatar-yigini .avatar {
  border: 2px solid #fff;
  margin-left: -8px;
}

.avatar-yigini .avatar:first-child {
  margin-left: 0;
}

.renk-0 { background: #dbeafe; color: #1e40af; }
.renk-1 { background: #dcfce7; color: #166534; }
.renk-2 { background: #fef3c7; color: #92400e; }
.renk-3 { background: #fce7f3; color: #9d174d; }
.renk-4 { background: #ede9fe; color: #5b21b6; }
.renk-5 { background: #ccfbf1; color: #115e59; }
.renk-6 { background: #ffedd5; color: #9a3412; }
.renk-7 { background: #e0e7ff; color: #3730a3; }

/* --- Dosya rozeti (uzanti ya da kucuk resim) ---------------------------- */

.dosya-rozeti {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  flex-shrink: 0;
  border-radius: 10px;
  background: #f1f3f6;
  color: #4b5563;
  font-size: .66rem;
  font-weight: 700;
  letter-spacing: .02em;
  overflow: hidden;
}

.dosya-rozeti img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.dosya-rozeti.kucuk {
  width: 2.25rem;
  height: 2.25rem;
  font-size: .6rem;
}

.dosya-rozeti-buyuk {
  width: 5rem;
  height: 5rem;
  font-size: 1rem;
}

.tur-resim { background: #fce7f3; color: #be185d; }
.tur-video { background: #ede9fe; color: #6d28d9; }
.tur-ses { background: #ccfbf1; color: #0f766e; }
.tur-pdf { background: #fee2e2; color: #b91c1c; }
.tur-belge { background: #dbeafe; color: #1d4ed8; }
.tur-tablo { background: #dcfce7; color: #15803d; }
.tur-sunum { background: #ffedd5; color: #c2410c; }
.tur-arsiv { background: #fef3c7; color: #a16207; }

/* --- Cipler (filtre, klasor, kisi secimi) ------------------------------- */

.cip-listesi {
  display: flex;
  gap: .5rem;
  overflow-x: auto;
  padding-bottom: .25rem;
  scrollbar-width: none;
}

.cip-listesi::-webkit-scrollbar {
  display: none;
}

.cip {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .38rem .85rem;
  border-radius: 999px;
  border: 1px solid var(--cizgi);
  background: #fff;
  color: #374151;
  white-space: nowrap;
  font-size: .88rem;
  font-weight: 500;
}

.cip:hover {
  border-color: #cfd4dc;
  color: var(--yazi);
}

.cip.aktif {
  background: var(--yazi);
  border-color: var(--yazi);
  color: #fff;
}

.cip .sayi {
  font-size: .75rem;
  opacity: .7;
}

.cip .ikon {
  width: 1rem;
  height: 1rem;
}

/* Kisi secimi: <input class="btn-check"> + <label class="kisi-cipi"> */
.kisi-cipi {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  padding: .25rem .85rem .25rem .25rem;
  border-radius: 999px;
  border: 1px solid var(--cizgi);
  background: #fff;
  cursor: pointer;
  user-select: none;
  font-weight: 500;
}

.kisi-cipi .avatar {
  width: 30px;
  height: 30px;
  font-size: .68rem;
}

.btn-check:checked + .kisi-cipi {
  background: var(--ana-acik);
  border-color: var(--ana);
  color: var(--ana-koyu);
}

.btn-check:focus-visible + .kisi-cipi {
  outline: 2px solid var(--ana);
  outline-offset: 2px;
}

/* --- Secim cubugu: dosya secince alttan beliren islem cubugu ------------ */

.secim-cubugu {
  position: sticky;
  bottom: calc(var(--alt-menu) + env(safe-area-inset-bottom) + 12px);
  z-index: 1025;
  margin-top: .75rem;
  display: flex;
  align-items: center;
  gap: .25rem;
  flex-wrap: wrap;
  background: #111827;
  color: #fff;
  border-radius: 14px;
  padding: .45rem .5rem .45rem 1rem;
  box-shadow: 0 10px 25px rgba(0, 0, 0, .18);
}

.secim-cubugu[hidden] {
  display: none;
}

@media (min-width: 992px) {
  .secim-cubugu {
    bottom: 1rem;
  }
}

.secim-cubugu .secim-sayisi {
  font-weight: 600;
  margin-right: auto;
}

.secim-cubugu .btn {
  --bs-btn-color: #fff;
  --bs-btn-hover-color: #fff;
  --bs-btn-hover-bg: rgba(255, 255, 255, .12);
  --bs-btn-active-color: #fff;
  --bs-btn-active-bg: rgba(255, 255, 255, .2);
  border: 0;
}

/* --- Proje -------------------------------------------------------------- */

.proje-ikonu {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 12px;
  background: #ede9fe;
  color: #6d28d9;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.proje-ikonu .ikon {
  width: 1.4rem;
  height: 1.4rem;
}

/* --- Bos durum ---------------------------------------------------------- */

.bos-durum {
  text-align: center;
  padding: 2.75rem 1rem;
}

.bos-durum-ikon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--ana-acik);
  color: var(--ana);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}

.bos-durum-ikon .ikon {
  width: 1.9rem;
  height: 1.9rem;
}

.bos-durum p {
  color: var(--soluk);
  max-width: 26rem;
  margin: 0 auto 1rem;
}

/* --- Gonder: birakma alani ve dosya satirlari -------------------------- */

.birakma-alani {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .35rem;
  border: 2px dashed #cdd3dc;
  border-radius: var(--yari-cap);
  padding: 1.75rem 1rem;
  text-align: center;
  cursor: pointer;
  background: #fafbfc;
  transition: background .15s, border-color .15s;
}

.birakma-alani:hover, .birakma-alani.uzerinde {
  border-color: var(--ana);
  background: #f2f7ff;
}

.birakma-alani.pasif {
  pointer-events: none;
  opacity: .6;
}

.birakma-ikon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--ana-acik);
  color: var(--ana);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: .25rem;
}

.birakma-ikon .ikon {
  width: 1.6rem;
  height: 1.6rem;
}

.dosya-satiri {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: .6rem 0;
  border-bottom: 1px solid var(--cizgi);
}

.dosya-satiri:last-child {
  border-bottom: 0;
}

.progress.ince {
  height: 4px;
  margin-top: .3rem;
}

.alici-listesi {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  max-height: 16rem;
  overflow-y: auto;
}

/* Telefonda Gonder dugmesi alt menunun ustunde hep gorunsun. */
.yapiskan-gonder {
  position: sticky;
  bottom: calc(var(--alt-menu) + env(safe-area-inset-bottom) + 10px);
  z-index: 1015;
}

@media (min-width: 992px) {
  .yapiskan-gonder {
    position: static;
  }
}

/* --- Paylasim: not, yorumlar ------------------------------------------- */

.not-balonu {
  background: #f6f7f9;
  border-radius: 12px;
  padding: .75rem 1rem;
  white-space: pre-wrap;
  margin-top: .85rem;
}

.yorum {
  background: #f1f3f5;
  border-radius: 14px;
  border-top-left-radius: 4px;
  padding: .5rem .8rem;
  max-width: 85%;
}

.yorum-benim {
  background: var(--ana-acik);
  border-top-left-radius: 14px;
  border-top-right-radius: 4px;
}

/* --- Eski sayfalarin kullandigi siniflar -------------------------------- */

.baglanti-kutusu {
  font-family: ui-monospace, Consolas, monospace;
  font-size: .85rem;
  word-break: break-all;
}

.paylasim-satiri {
  display: block;
  color: inherit;
}

.paylasim-satiri:hover {
  background: #f9fafb;
  color: inherit;
}

/* --- Onizleme ----------------------------------------------------------- */

.onizleme-resim {
  display: block;
  max-width: 100%;
  max-height: 80vh;
  margin: 0 auto;
  border-radius: 12px;
  background: #fff;
}

.onizleme-video {
  display: block;
  width: 100%;
  max-height: 80vh;
  border-radius: 12px;
  background: #000;
}

.onizleme-pdf {
  width: 100%;
  height: 80vh;
  border: 1px solid var(--cizgi);
  border-radius: 12px;
  background: #fff;
  margin-bottom: 1rem;
}

.onizleme-metin {
  white-space: pre-wrap;
  word-break: break-word;
  font-size: .85rem;
  max-height: 75vh;
  overflow: auto;
}

.table-responsive {
  -webkit-overflow-scrolling: touch;
}
