/* ============================================================
   Logaritmik · Geri Bildirim - "sevimli" tema
   Krem zemin · mercan vurgu · yuvarlak, zıpır, şeker renkli
   ============================================================ */

:root {
  --cream:    #fff6ee;
  --cream-2:  #ffeede;
  --card:     #ffffff;
  --ink:      #43363f;
  --ink-soft: #7d6f78;
  --ink-faint:#a99ca4;
  --line:     #f0e2d6;
  --line-2:   #f6ebe1;

  --coral:     #ff6f5b;
  --coral-dk:  #ec5340;
  --coral-soft:#fff0ec;

  /* şeker durum renkleri */
  --s-okunmadi:   #4ea3f2;
  --s-detay:      #ffa922;
  --s-onayda:     #2fc295;
  --s-reddedildi: #ff7a7a;
  --s-bitirildi:  #9b7ede;
  --s-silindi:    #b0a59a;

  --shadow-sm: 0 4px 14px rgba(120,80,50,.08);
  --shadow-md: 0 12px 30px rgba(120,75,45,.13);
  --shadow-lg: 0 26px 70px rgba(90,55,30,.26);
  --pop: cubic-bezier(.34, 1.56, .64, 1);

  --display: "Baloo 2", system-ui, sans-serif;
  --body:    "Nunito", system-ui, sans-serif;

  --r:    20px;
  --r-sm: 13px;
  --maxw: 900px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }

body {
  font-family: var(--body);
  font-weight: 500;
  color: var(--ink);
  background-color: var(--cream);
  background-image:
    radial-gradient(40% 32% at 12% 8%,  rgba(255,111,91,.16),  transparent 70%),
    radial-gradient(36% 30% at 92% 4%,  rgba(78,163,242,.14),  transparent 70%),
    radial-gradient(46% 40% at 88% 98%, rgba(47,194,149,.14),  transparent 70%),
    radial-gradient(40% 36% at 4% 96%,  rgba(255,169,34,.14),   transparent 70%);
  background-attachment: fixed;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

::selection { background: var(--coral); color: #fff; }
button { font-family: inherit; cursor: pointer; }
input, textarea { font-family: inherit; }

.muted { color: var(--ink-soft); }
.hide { display: none !important; }

/* =====================================================
   GİRİŞ
   ===================================================== */
.login { min-height: 100vh; display: grid; place-items: center; padding: 24px; }
.login-card {
  width: min(410px, 100%); background: var(--card);
  border-radius: 28px; box-shadow: var(--shadow-md);
  padding: 38px 32px 30px; position: relative; overflow: hidden;
  animation: pop-in .5s var(--pop) both;
}
.login-card::after {
  content: ""; position: absolute; top: -40px; right: -40px;
  width: 130px; height: 130px; border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #ffd0c6, #ff6f5b);
  opacity: .18;
}
.login .mark {
  font-family: var(--display); font-weight: 700; font-size: 13px;
  letter-spacing: .14em; text-transform: uppercase; color: var(--coral);
}
.login h1 {
  font-family: var(--display); font-weight: 800; font-size: 38px;
  line-height: 1.02; margin: 6px 0 24px; letter-spacing: -.01em;
}
.login h1 em { font-style: normal; color: var(--coral); }
.login .sub { color: var(--ink-soft); font-size: 15px; margin-bottom: 24px; font-weight: 600; }

.field { margin-bottom: 14px; }
.field label {
  display: block; font-family: var(--display); font-weight: 600; font-size: 13px;
  color: var(--ink-soft); margin: 0 0 6px 4px;
}
.field input {
  width: 100%; padding: 13px 16px; font-size: 15px; font-weight: 600; color: var(--ink);
  background: var(--cream); border: 2.5px solid transparent; border-radius: var(--r-sm);
  transition: border-color .15s, background .15s;
}
.field input::placeholder { color: var(--ink-faint); font-weight: 500; }
.field input:focus { outline: none; border-color: var(--coral); background: #fff; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: none; border-radius: var(--r-sm); font-family: var(--display);
  font-weight: 700; font-size: 15.5px; padding: 13px 20px;
  transition: transform .14s var(--pop), box-shadow .2s, background .2s, filter .15s;
}
.btn-primary {
  background: var(--coral); color: #fff; width: 100%;
  box-shadow: 0 6px 16px -7px rgba(236,83,64,.55);
}
.btn-primary:hover { filter: brightness(1.03); transform: translateY(-2px); box-shadow: 0 11px 22px -8px rgba(236,83,64,.6); }
.btn-primary:active { transform: translateY(0); box-shadow: 0 4px 12px -7px rgba(236,83,64,.5); }
.btn-primary:disabled { opacity: .65; transform: none; box-shadow: 0 6px 16px -7px rgba(236,83,64,.4); }

.form-error { color: var(--coral-dk); font-size: 14px; font-weight: 700; margin-top: 8px; min-height: 18px; }

/* =====================================================
   MASTHEAD
   ===================================================== */
.masthead {
  position: sticky; top: 0; z-index: 30;
  background: rgba(255,246,238,.82); backdrop-filter: blur(10px);
  border-bottom: 2px solid var(--line);
}
.masthead-in { max-width: var(--maxw); margin: 0 auto; padding: 13px 18px; display: flex; align-items: center; gap: 12px; }
.brand { display: flex; align-items: center; gap: 11px; }
.brand .logo {
  width: 38px; height: 38px; border-radius: 13px; flex: none;
  background: linear-gradient(140deg, #ff8e62, var(--coral));
  display: grid; place-items: center; color: #fff;
  font-family: var(--display); font-weight: 800; font-size: 20px;
  box-shadow: 0 4px 0 var(--coral-dk); transform: rotate(-4deg);
}
.brand .txt { display: flex; flex-direction: column; line-height: 1.05; }
.brand .top { font-family: var(--display); font-weight: 600; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--coral); }
.brand .name { font-family: var(--display); font-weight: 800; font-size: 21px; letter-spacing: -.01em; }
.spacer { flex: 1; }
.userchip { display: flex; align-items: center; gap: 8px; }
.avatar {
  width: 36px; height: 36px; border-radius: 50%;
  background: linear-gradient(140deg, #6db9ff, var(--s-okunmadi)); color: #fff;
  display: grid; place-items: center; font-family: var(--display); font-weight: 700; font-size: 16px;
  box-shadow: var(--shadow-sm);
}
.iconbtn {
  background: #fff; border: 2px solid var(--line); border-radius: 999px;
  color: var(--ink-soft); padding: 8px 14px; font-family: var(--display); font-weight: 600; font-size: 13.5px;
  transition: .15s;
}
.iconbtn:hover { color: var(--coral-dk); border-color: #ffd3c9; transform: translateY(-1px); }

/* =====================================================
   TABS
   ===================================================== */
.board { max-width: var(--maxw); margin: 0 auto; padding: 22px 18px 130px; }
.tabs { display: flex; gap: 9px; flex-wrap: wrap; margin-bottom: 22px; }
.tab {
  display: inline-flex; align-items: center; gap: 8px;
  background: #fff; border: 2px solid var(--line); border-radius: 999px;
  padding: 8px 14px 8px 12px; font-family: var(--display); font-weight: 600; font-size: 14px;
  color: var(--ink-soft); transition: transform .15s var(--pop), border-color .15s, color .15s;
}
.tab:hover { transform: translateY(-2px); border-color: var(--dot, #ffd3c9); color: var(--ink); }
.tab .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--dot, var(--ink-faint)); }
.tab .count {
  font-weight: 700; font-size: 12.5px; color: #fff; background: var(--dot, var(--ink-faint));
  border-radius: 999px; padding: 1px 8px; min-width: 22px; text-align: center;
}
.tab.active {
  color: #fff; border-color: transparent;
  background: var(--dot, var(--coral));
  box-shadow: 0 6px 16px -4px var(--dot, var(--coral));
  transform: translateY(-1px);
}
.tab.active .count { background: rgba(255,255,255,.28); }

/* =====================================================
   KARTLAR
   ===================================================== */
.cards { display: flex; flex-direction: column; gap: 14px; }
.card {
  position: relative; display: block; text-align: left; width: 100%;
  background: var(--card); border: 2px solid transparent; border-radius: var(--r);
  padding: 17px 18px 15px; box-shadow: var(--shadow-sm);
  transition: transform .18s var(--pop), box-shadow .2s, border-color .2s;
  animation: pop-in .45s var(--pop) both; overflow: hidden;
}
.card::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 6px;
  background: var(--accent-bar, var(--coral));
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--line); }
.card-top { display: flex; align-items: flex-start; gap: 12px; }
.card h3 { font-family: var(--display); font-weight: 700; font-size: 19px; line-height: 1.2; margin: 0; flex: 1; }
.card .snippet {
  color: var(--ink-soft); font-size: 14.5px; line-height: 1.5; margin: 6px 0 0; font-weight: 500;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.thumbs { display: flex; gap: 7px; margin-top: 12px; flex-wrap: wrap; }
.thumbs img { width: 60px; height: 60px; object-fit: cover; border-radius: 12px; border: 2px solid var(--line); background: var(--cream-2); }
.thumbs .more {
  width: 60px; height: 60px; border-radius: 12px; border: 2px dashed var(--line);
  display: grid; place-items: center; font-family: var(--display); font-weight: 700; font-size: 13px; color: var(--ink-faint);
}
.card-meta { display: flex; align-items: center; gap: 13px; margin-top: 13px; font-size: 12.5px; font-weight: 700; color: var(--ink-faint); }
.card-meta .spacer { flex: 1; }
.unread-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--coral); box-shadow: 0 0 0 4px var(--coral-soft); animation: pulse 2s infinite; }

.badge {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--display); font-weight: 700; font-size: 12px;
  padding: 4px 11px 4px 9px; border-radius: 999px;
  background: var(--b-bg); color: var(--b-fg); white-space: nowrap;
}
.badge .dot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; }

.empty { text-align: center; padding: 64px 20px; animation: pop-in .5s var(--pop) both; }
.empty .emoji { font-size: 46px; display: block; margin-bottom: 10px; animation: bob 3s ease-in-out infinite; }
.empty .big { font-family: var(--display); font-weight: 700; font-size: 21px; color: var(--ink); margin-bottom: 4px; }
.empty .sub { color: var(--ink-soft); font-weight: 500; }

/* FAB */
.fab {
  position: fixed; right: max(20px, calc(50% - var(--maxw)/2 + 18px)); bottom: 24px; z-index: 25;
  background: var(--coral); color: #fff; border: none; border-radius: 999px;
  padding: 15px 24px; font-family: var(--display); font-weight: 700; font-size: 15.5px;
  box-shadow: 0 10px 24px -8px rgba(236,83,64,.6);
  display: inline-flex; align-items: center; gap: 9px; transition: transform .16s var(--pop), filter .2s, box-shadow .2s;
}
.fab:hover { transform: translateY(-2px); filter: brightness(1.04); box-shadow: 0 14px 28px -8px rgba(236,83,64,.66); }
.fab:active { transform: translateY(0); box-shadow: 0 6px 16px -8px rgba(236,83,64,.55); }
.fab .plus { font-size: 22px; line-height: 1; margin-top: -2px; }

/* =====================================================
   OVERLAY / SHEET
   ===================================================== */
.overlay {
  position: fixed; inset: 0; z-index: 50; background: rgba(67,54,63,.42);
  backdrop-filter: blur(4px); display: grid; place-items: end center; animation: fade .2s ease both;
}
@media (min-width: 720px) { .overlay { place-items: center; padding: 24px; } }
.sheet {
  width: min(660px, 100%); max-height: 92vh; overflow-y: auto;
  background: var(--cream); border-radius: 26px 26px 0 0; box-shadow: var(--shadow-lg);
  animation: sheet-up .34s var(--pop) both;
}
@media (min-width: 720px) { .sheet { border-radius: 26px; animation: pop-in .3s var(--pop) both; } }
.sheet-head {
  position: sticky; top: 0; z-index: 2; display: flex; align-items: center; gap: 12px;
  padding: 16px 20px; border-bottom: 2px solid var(--line);
  background: rgba(255,246,238,.9); backdrop-filter: blur(8px);
}
.sheet-head h2 { font-family: var(--display); font-weight: 700; font-size: 18px; margin: 0; flex: 1; }
.sheet-body { padding: 20px; }
.x {
  background: #fff; border: 2px solid var(--line); border-radius: 50%;
  width: 36px; height: 36px; font-size: 16px; color: var(--ink-soft);
  display: grid; place-items: center; transition: .15s;
}
.x:hover { color: var(--coral-dk); border-color: #ffd3c9; transform: rotate(90deg); }

.detail-title { font-family: var(--display); font-weight: 800; font-size: 27px; line-height: 1.13; margin: 4px 0 12px; }
.detail-desc { font-size: 15.5px; line-height: 1.62; color: #5a4d55; font-weight: 500; white-space: pre-wrap; }

.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(108px, 1fr)); gap: 10px; margin: 16px 0 4px; }
.gallery img {
  width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 14px;
  border: 2px solid var(--line); cursor: zoom-in; background: var(--cream-2);
  transition: transform .16s var(--pop), box-shadow .2s;
}
.gallery img:hover { transform: scale(1.04) rotate(-1deg); box-shadow: var(--shadow-md); }

.rule { height: 2px; background: var(--line); margin: 22px 0; border: none; border-radius: 2px; }

.thread-h { font-family: var(--display); font-weight: 700; font-size: 14px; color: var(--ink-soft); margin: 0 0 14px; }
.comment { display: flex; gap: 11px; margin-bottom: 16px; animation: pop-in .4s var(--pop) both; }
.comment .av {
  flex: none; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center;
  font-family: var(--display); font-weight: 700; font-size: 15px; color: #fff;
  background: linear-gradient(140deg, #8fa6b8, var(--ink-soft));
}
.comment.team .av { background: linear-gradient(140deg, #ff8e62, var(--coral)); }
.comment .bubble-wrap { flex: 1; min-width: 0; }
.comment .who { font-family: var(--display); font-size: 13.5px; font-weight: 700; margin-bottom: 4px; color: var(--ink); }
.comment .who .role {
  font-size: 10px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  color: #fff; background: var(--coral); border-radius: 999px; padding: 1px 7px; margin-left: 7px;
}
.comment .who .time { color: var(--ink-faint); font-weight: 600; margin-left: 6px; }
.comment.team .who { color: var(--coral-dk); }
.bubble {
  background: #fff; border-radius: 6px 16px 16px 16px; padding: 12px 15px;
  font-size: 14.5px; line-height: 1.55; color: #5a4d55; font-weight: 500; white-space: pre-wrap;
  box-shadow: var(--shadow-sm);
}
.comment.team .bubble { background: var(--coral-soft); }
.bubble .imgs { display: flex; gap: 7px; flex-wrap: wrap; margin-top: 9px; }
.bubble .imgs img { width: 80px; height: 80px; object-fit: cover; border-radius: 11px; border: 2px solid var(--line); cursor: zoom-in; }

.approve-box {
  background: #e6f9f1; border-radius: var(--r); padding: 16px 18px; margin: 18px 0;
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
}
.approve-box .txt { flex: 1; min-width: 170px; font-weight: 600; }
.approve-box .txt b { font-family: var(--display); font-weight: 800; }
.btn-approve { background: var(--s-onayda); color: #fff; box-shadow: 0 6px 16px -7px rgba(47,194,149,.6); }
.btn-approve:hover { box-shadow: 0 11px 22px -8px rgba(47,194,149,.66); }
.btn-approve:active { box-shadow: 0 4px 12px -7px rgba(47,194,149,.55); }

/* COMPOSER / FORM */
.composer { margin-top: 8px; }
textarea.area {
  width: 100%; min-height: 96px; resize: vertical; padding: 14px 16px;
  font-size: 15px; line-height: 1.55; font-weight: 500; color: var(--ink);
  background: #fff; border: 2.5px solid var(--line); border-radius: var(--r-sm); transition: border-color .15s;
}
textarea.area:focus, input.titlein:focus { outline: none; border-color: var(--coral); }
input.titlein {
  width: 100%; padding: 14px 16px; font-size: 18px; font-family: var(--display); font-weight: 700;
  background: #fff; border: 2.5px solid var(--line); border-radius: var(--r-sm); color: var(--ink);
}
input.titlein::placeholder { font-family: var(--body); font-weight: 500; color: var(--ink-faint); font-size: 15px; }

.dropzone {
  margin-top: 12px; border: 2.5px dashed #f0cdbf; border-radius: var(--r);
  padding: 20px; text-align: center; color: var(--ink-soft); font-size: 14px; font-weight: 600;
  transition: .18s var(--pop); background: #fff;
}
.dropzone:hover, .dropzone.drag { border-color: var(--coral); color: var(--coral-dk); background: var(--coral-soft); transform: translateY(-1px); }
.dropzone b { color: var(--coral-dk); font-family: var(--display); font-weight: 700; }
.dropzone .hint { font-size: 12px; font-weight: 600; margin-top: 5px; color: var(--ink-faint); }

.previews { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 13px; }
.preview { position: relative; width: 82px; height: 82px; border-radius: 13px; overflow: hidden; border: 2px solid var(--line); animation: pop-in .3s var(--pop) both; }
.preview img { width: 100%; height: 100%; object-fit: cover; }
.preview .rm {
  position: absolute; top: 4px; right: 4px; width: 22px; height: 22px; border-radius: 50%;
  background: rgba(67,54,63,.78); color: #fff; border: none; font-size: 13px; line-height: 1;
  display: grid; place-items: center; cursor: pointer;
}
.composer-actions { display: flex; gap: 10px; align-items: center; margin-top: 16px; }
.composer-actions .spacer { flex: 1; }

/* LIGHTBOX */
.lightbox {
  position: fixed; inset: 0; z-index: 80; background: rgba(50,35,30,.88);
  display: grid; place-items: center; padding: 28px; cursor: zoom-out; animation: fade .2s ease both;
}
.lightbox img { max-width: 100%; max-height: 100%; border-radius: 14px; box-shadow: var(--shadow-lg); animation: pop-in .28s var(--pop) both; }

/* TOAST + SPINNER */
.toast {
  position: fixed; bottom: 26px; left: 50%; transform: translateX(-50%) translateY(20px);
  background: var(--ink); color: #fff; padding: 13px 22px; border-radius: 999px;
  font-family: var(--display); font-weight: 700; font-size: 14px; z-index: 100; box-shadow: var(--shadow-lg);
  opacity: 0; transition: opacity .25s, transform .3s var(--pop); pointer-events: none;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.toast.err { background: var(--coral); }
.spinner {
  width: 18px; height: 18px; border: 3px solid rgba(255,255,255,.4);
  border-top-color: #fff; border-radius: 50%; animation: spin .7s linear infinite;
}
.loading-screen { display: grid; place-items: center; min-height: 70vh; }
.loading-screen .spinner { width: 28px; height: 28px; border-color: var(--coral-soft); border-top-color: var(--coral); }

/* ANİMASYONLAR */
@keyframes pop-in { from { opacity: 0; transform: translateY(12px) scale(.98); } to { opacity: 1; transform: translateY(0) scale(1); } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes sheet-up { from { transform: translateY(100%); } to { transform: translateY(0); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes pulse { 0%,100% { box-shadow: 0 0 0 4px var(--coral-soft); } 50% { box-shadow: 0 0 0 7px rgba(255,111,91,.12); } }
@keyframes bob { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-7px); } }

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