/* Usta bul: talep formu, usta işleri listesi, talep sayfası + teklif kartları, mesajlar */

/* talep formu */
.tv-page { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 24px; align-items: start; }
.tv-page .form-page { margin: 0; max-width: none; }
.tv-cats { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 10px; }
.post .tv-cat { position: relative; display: grid; justify-items: center; align-content: center; gap: 6px; padding: 14px 8px 12px; border: 1.5px solid #D5DED9; border-radius: 16px;
  background: #FBFDFC; cursor: pointer; text-align: center; font-weight: 700; font-size: 14px; transition: border-color .15s, background .15s, transform .15s; }
.tv-cat:hover { border-color: #B9CEC2; transform: translateY(-1px); }
.tv-cat input { position: absolute; opacity: 0; pointer-events: none; }
.tv-cat:has(input:checked) { border-color: var(--brand); background: var(--brand-soft); color: var(--brand-dark); box-shadow: 0 6px 16px rgba(14,124,71,.14); }
.tv-cat:has(input:focus-visible) { outline: 3px solid #9BD3B4; outline-offset: 2px; }
.tv-ic { font-size: 30px; line-height: 1; }
.tv-other { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-weight: 600; color: var(--muted); }
.tv-other select { flex: 1 1 220px; }
.tv-budget { display: flex; align-items: end; gap: 12px; flex-wrap: wrap; }
.tv-budget label { flex: 1 1 160px; }
.tv-dash { padding-bottom: 14px; font-weight: 800; color: var(--muted); }
.tv-tl { display: flex; align-items: center; border: 1.5px solid #D5DED9; border-radius: 12px; background: #fff; overflow: hidden; }
.tv-tl input { border: 0 !important; box-shadow: none !important; flex: 1; min-width: 0; font-size: 18px; font-weight: 700; }
.tv-tl b { padding: 0 14px; color: var(--muted); }
.tv-how { position: sticky; top: 90px; padding: 20px 22px; border-radius: 20px; background: linear-gradient(180deg, var(--brand-soft), #fff 80%);
  border: 1px solid #CFE3D7; }
.tv-how h2 { margin: 0 0 10px; font-size: 19px; }
.tv-how ol { margin: 0; padding-left: 20px; display: grid; gap: 10px; color: #3B5247; }
.tv-safe { margin: 14px 0 0; font-weight: 700; color: var(--brand-dark); }

/* usta işleri listesi */
.tl-head { display: flex; justify-content: space-between; align-items: end; gap: 14px; flex-wrap: wrap; margin: 6px 0 16px; }
.tl-head h1 { margin: 0; font-size: clamp(26px, 3.6vw, 34px); letter-spacing: -.8px; }
.tl-head p { margin: 4px 0 0; color: var(--muted); max-width: 640px; }
.tl-rights { display: flex; flex-wrap: wrap; gap: 6px 20px; align-items: center; margin: 0 0 14px; padding: 12px 16px; border-radius: 14px;
  background: #FFF8E6; border: 1px solid #F3DFA8; color: inherit; text-decoration: none; }
.tl-rights .vt-go { margin-left: auto; font-weight: 800; color: var(--brand-dark); }
.tl-filter { display: flex; gap: 8px; flex-wrap: wrap; margin: 0 0 6px; }
.tl-filter select, .tl-filter input { padding: 10px 12px; border: 1.5px solid #D5DED9; border-radius: 12px; font: inherit; background: #fff; }
.tl-filter input[name=q] { flex: 1 1 220px; }
.tl-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; margin-top: 10px; }
.tl-card { display: flex; flex-direction: column; gap: 6px; padding: 18px; border: 1px solid var(--line); border-radius: 18px; background: #fff;
  color: inherit; text-decoration: none; box-shadow: 0 6px 18px rgba(16,37,26,.05); transition: transform .15s, box-shadow .15s, border-color .15s; }
.tl-card:hover { transform: translateY(-2px); border-color: #B9CEC2; box-shadow: 0 12px 26px rgba(16,37,26,.1); }
.tl-card h2 { margin: 2px 0 0; font-size: 18px; letter-spacing: -.3px; line-height: 1.3; }
.tl-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin: 0; }
.tl-cat { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 800; color: var(--brand-dark); }
.tl-cat span { font-size: 18px; }
.tl-when { font-size: 12px; font-weight: 800; padding: 3px 9px; border-radius: 999px; background: #F2F5F3; color: #3B5247; }
.tl-when.acil { background: #FEECEB; color: #B42318; }
.tl-when.bu_hafta { background: #FFF4D6; color: #8A5A00; }
.tl-budget { margin: 4px 0 0; font-size: 20px; font-weight: 800; color: var(--brand-dark); }
.tl-meta { margin: 0; color: var(--muted); font-size: 13.5px; display: flex; align-items: center; gap: 4px; }
.tl-meta .ic { width: 15px; height: 15px; }
.tl-foot { display: flex; justify-content: space-between; align-items: center; margin: auto 0 0; padding-top: 10px; border-top: 1px solid var(--line); }
.tl-count { font-size: 13px; font-weight: 700; color: var(--muted); }
.tl-count.full { color: #B42318; }
.tl-go { font-weight: 800; color: var(--brand); }

/* talep sayfası */
.back { display: inline-block; margin: 4px 0 12px; font-weight: 700; color: var(--brand-dark); text-decoration: none; }
.tp { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 20px; align-items: start; }
.tp-main { display: grid; gap: 18px; }
.tp-card, .tp-offer, .tp-mine, .tp-block { padding: 22px 24px; border: 1px solid var(--line); border-radius: 20px; background: #fff; box-shadow: 0 6px 20px rgba(16,37,26,.05); }
.tp-card h1 { margin: 10px 0 6px; font-size: clamp(24px, 3.2vw, 30px); letter-spacing: -.6px; line-height: 1.2; }
.tp-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; margin: 0 0 14px; color: var(--muted); font-size: 14px; }
.tp-meta .ic { width: 15px; height: 15px; }
.tp-desc { white-space: pre-wrap; line-height: 1.6; color: #2E4338; }
.tp-state { font-size: 12px; font-weight: 800; padding: 4px 10px; border-radius: 999px; background: var(--brand-soft); color: var(--brand-dark); }
.tp-state.anlasildi, .tp-state.tamamlandi { background: #E6F4FF; color: #175CD3; }
.tp-state.iptal, .tp-state.suresi_doldu { background: #F2F4F3; color: var(--muted); }
.tp-offers h2, .tp-offer h2, .tp-mine h2 { margin: 0 0 12px; font-size: 21px; letter-spacing: -.3px; }
.tp-offers h2 small { color: var(--muted); font-size: 15px; font-weight: 700; }
.tp-mine h2 span { color: var(--brand-dark); }
.tp-mine.kabul { border-color: #9BD3B4; background: linear-gradient(180deg, var(--brand-soft), #fff 70%); }
.tp-offer { display: grid; gap: 14px; }
.tp-offer h2 { margin: 0; }
.tp-block { background: #FFF8E6; border-color: #F3DFA8; font-weight: 600; }
.tp-actions { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; margin: 12px 0 0; }
.tp-side { position: sticky; top: 90px; display: grid; gap: 14px; }
.tp-box { padding: 18px 20px; border: 1px solid var(--line); border-radius: 18px; background: #fff; display: grid; gap: 10px; box-shadow: 0 6px 20px rgba(16,37,26,.05); }
.tp-box small { color: var(--muted); font-weight: 700; text-transform: uppercase; letter-spacing: .4px; font-size: 12px; }
.tp-budget { font-size: 26px; letter-spacing: -.5px; color: var(--brand-dark); }
.tp-count { margin: 0; display: flex; align-items: center; gap: 6px; color: var(--muted); }
.tp-tips p { margin: 0; color: #3B5247; font-size: 14px; }

/* teklif kartları */
#tk-list { display: grid; gap: 12px; }
.tk-card { padding: 16px 18px; border: 1px solid var(--line); border-radius: 18px; background: #fff; box-shadow: 0 4px 14px rgba(16,37,26,.05); }
.tk-card.yeni { animation: tk-in .6s ease both; }
@keyframes tk-in { from { opacity: 0; transform: translateY(-10px); box-shadow: 0 0 0 4px rgba(22,160,98,.35); } to { opacity: 1; transform: none; } }
.tk-card.kabul { border-color: #9BD3B4; background: linear-gradient(180deg, var(--brand-soft), #fff 60%); }
.tk-card.red { opacity: .6; }
.tk-head { display: flex; gap: 12px; align-items: center; }
.tk-av, .ib-av { width: 46px; height: 46px; flex: none; border-radius: 14px; display: grid; place-items: center; overflow: hidden; background: var(--brand);
  color: #fff; font-weight: 800; text-decoration: none; }
.tk-av img, .ib-av img { width: 100%; height: 100%; object-fit: cover; }
.tk-who { display: grid; gap: 2px; min-width: 0; flex: 1; }
.tk-who a { color: inherit; text-decoration: none; }
.tk-badges { display: flex; flex-wrap: wrap; gap: 4px 10px; font-size: 12.5px; color: var(--muted); }
.tk-badges .ok { color: var(--brand-dark); font-weight: 700; }
.tk-price { display: grid; justify-items: end; text-align: right; margin: 0; }
.tk-price b { font-size: 22px; letter-spacing: -.5px; color: var(--brand-dark); }
.tp-mine .tk-price { justify-items: start; text-align: left; }
.tk-price small { color: var(--muted); font-weight: 600; }
.tk-msg { margin: 12px 0 0; white-space: pre-wrap; color: #2E4338; line-height: 1.55; }
.tk-foot { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 12px; padding-top: 10px;
  border-top: 1px solid var(--line); }
.tk-time { color: var(--muted); font-size: 13px; }
.tk-act { display: flex; gap: 10px; align-items: center; }
.tk-contact { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 12px; padding: 10px 12px; border-radius: 12px; background: #fff;
  border: 1px dashed #9BD3B4; font-weight: 700; }
.tk-empty { display: flex; gap: 14px; align-items: center; padding: 22px; border: 1.5px dashed #CBD8D0; border-radius: 18px; color: var(--muted); }
.tk-empty p { margin: 0; }
.tk-pulse { width: 14px; height: 14px; flex: none; border-radius: 50%; background: var(--brand); animation: tk-pulse 1.6s infinite; }
@keyframes tk-pulse { 0% { box-shadow: 0 0 0 0 rgba(22,160,98,.5); } 100% { box-shadow: 0 0 0 14px rgba(22,160,98,0); } }

/* mesajlar: gelen kutusu */
.ib { display: grid; gap: 8px; max-width: 760px; }
.ib-row { display: flex; gap: 12px; align-items: center; padding: 14px 16px; border: 1px solid var(--line); border-radius: 16px; background: #fff;
  color: inherit; text-decoration: none; }
.ib-row:hover { border-color: #B9CEC2; }
.ib-row.new { border-color: #9BD3B4; background: #F7FCF9; }
.ib-body { display: grid; gap: 2px; min-width: 0; flex: 1; }
.ib-top { display: flex; justify-content: space-between; gap: 8px; }
.ib-top small, .ib-title { color: var(--muted); font-size: 13px; }
.ib-title .ok { color: var(--brand-dark); font-weight: 700; }
.ib-last { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: #3B5247; }
.ib-row.new .ib-last { font-weight: 700; color: var(--ink); }
.ib-badge { min-width: 24px; height: 24px; padding: 0 7px; border-radius: 999px; background: var(--brand); color: #fff; font-weight: 800; font-size: 13px;
  display: grid; place-items: center; }

/* mesajlar: sohbet */
.ch { max-width: 760px; margin: 0 auto; display: flex; flex-direction: column; height: calc(100vh - 170px); min-height: 460px; border: 1px solid var(--line);
  border-radius: 20px; background: #fff; box-shadow: 0 8px 26px rgba(16,37,26,.07); }
/* köşeler parçalarda: kutu taşmayı kesmez ki başlıktaki ⋯ menüsü (engelle / bildir) dışarı açılabilsin */
.ch > :first-child { border-radius: 20px 20px 0 0; }
.ch > :last-child { border-radius: 0 0 20px 20px; }
.ch-head { position: relative; z-index: 3; }
.ch-head { display: flex; gap: 12px; align-items: center; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.ch-back { font-size: 22px; text-decoration: none; color: var(--ink); padding: 0 4px; }
.ch-who { display: grid; min-width: 0; }
.ch-who a { color: inherit; text-decoration: none; }
.ch-ref { font-size: 13px; color: var(--muted) !important; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ch-lock, .ch-open { padding: 9px 16px; font-size: 13.5px; }
.ch-lock { background: #FFF8E6; color: #6B5212; }
.ch-open { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; background: var(--brand-soft); color: var(--brand-dark); font-weight: 700; }
.ch-list { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 8px; background: #F6F9F7; }
.ch-msg { max-width: 78%; align-self: flex-start; padding: 10px 14px 6px; border-radius: 16px 16px 16px 4px; background: #fff; border: 1px solid var(--line); }
.ch-msg.me { align-self: flex-end; border-radius: 16px 16px 4px 16px; background: var(--brand); border-color: var(--brand); color: #fff; }
.ch-msg p { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.45; }
.ch-msg small { display: block; margin-top: 3px; font-size: 11px; opacity: .65; text-align: right; }
.ch-empty { margin: auto; color: var(--muted); }
.ch-form { display: flex; gap: 8px; align-items: flex-end; padding: 10px 12px; border-top: 1px solid var(--line); background: #fff; }
.ch-form textarea { flex: 1; resize: none; min-height: 44px; max-height: 160px; padding: 11px 14px; border: 1.5px solid #D5DED9; border-radius: 14px; font: inherit; }

@media (max-width: 900px) {
  .tv-page, .tp { grid-template-columns: 1fr; }
  .tv-how, .tp-side { position: static; }
  .tp-side { order: -1; }
}
@media (max-width: 640px) {
  .ch { height: calc(100vh - 120px); border-radius: 14px; }
  .ch-msg { max-width: 88%; }
  .tk-head { flex-wrap: wrap; }
  .tk-price { justify-items: start; text-align: left; width: 100%; }
}
.post .tv-cat > span { flex: none; }
.post .tv-cat .tv-ic img, .tv-ic img { width: 34px; height: 34px; }

/* panel: ilanlarım + gelen başvurular (dashboard.html). Kilitli başvuru: mesaj okunur, numara ve cevap 1 krediyle açılır. */
.ls-card { margin: 12px 0 18px; border: 1px solid var(--line); border-radius: 18px; background: #fff; box-shadow: 0 4px 14px rgba(16,37,26,.05); overflow: hidden; }
.ls-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px 18px; flex-wrap: wrap; padding: 14px 18px; background: #F7FAF8; border-bottom: 1px solid var(--line); }
.ls-title p { margin: 0; }
.ls-title a { color: inherit; text-decoration: none; font-size: 17px; }
.ls-title a:hover { color: var(--brand-dark); }
.ls-side { display: grid; justify-items: end; gap: 2px; text-align: right; }
.ls-count { font-weight: 700; }
.ls-count i { font-style: normal; margin-left: 4px; padding: 1px 8px; border-radius: 999px; background: #FFD45C; color: #10251A; font-size: 13px; }
.ls-share { font-size: 13px; color: var(--muted); }
.ls-note { margin: 0; padding: 10px 18px; background: #FEF3F2; color: var(--err); font-size: 14px; }
.ls-empty { margin: 0; padding: 16px 18px; color: var(--muted); }
.ap-list { display: grid; }
.ap { display: flex; gap: 12px; padding: 14px 18px; border-top: 1px solid var(--line); }
.ap:first-child { border-top: 0; }
.ap.basvurdu { background: linear-gradient(90deg, #FFFBEA, #fff 40%); }
.ap.red { opacity: .62; }
.ap-av { width: 44px; height: 44px; flex: none; border-radius: 14px; display: grid; place-items: center; overflow: hidden; background: var(--brand);
  color: #fff; font-weight: 800; text-decoration: none; }
.ap-av img { width: 100%; height: 100%; object-fit: cover; }
.ap-main { flex: 1; min-width: 0; display: grid; gap: 6px; }
.ap-main p { margin: 0; }
.ap-name { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.ap-name a { color: inherit; text-decoration: none; }
.ap-facts { display: flex; flex-wrap: wrap; gap: 2px 12px; font-size: 13px; color: var(--muted); }
.ap-facts .st { color: #B7791F; font-weight: 700; }
.ap-facts .ok { color: var(--brand-dark); font-weight: 700; }
.ap-msg { padding: 9px 12px; border-radius: 4px 14px 14px 14px; background: #F2F6F4; color: #2E4338; white-space: pre-wrap; overflow-wrap: anywhere; }
.ap-act { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.ap-act .btn { display: inline-flex; align-items: center; gap: 6px; }
.ap-act .btn small { font-weight: 600; opacity: .75; }
.btn.amber { background: #FFD45C; color: #10251A; font-weight: 800; } .btn.amber:hover { background: #FFC933; }
.btn[disabled] { opacity: .45; cursor: not-allowed; }
.ap-dot { font-style: normal; min-width: 18px; padding: 0 5px; border-radius: 999px; background: var(--err); color: #fff; font-size: 12px; line-height: 18px; text-align: center; }
.ap-move { display: flex; gap: 14px; margin-left: auto; }
.ap-move button.link { text-decoration: none; font-weight: 700; color: var(--muted); }
.ap-move button.link.ok { color: var(--brand-dark); }
.ap-need { font-size: 13px; color: #8A5A00; }
@media (max-width: 560px) {
  .ls-head, .ap { padding-left: 14px; padding-right: 14px; }
  .ls-side { justify-items: start; text-align: left; }
  .ap-move { margin-left: 0; width: 100%; }
}
.ch-unlock { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.ch-blocked { margin: 0; padding: 12px 14px; border-top: 1px solid var(--line); color: var(--muted); text-align: center; }

/* bildirimler (bildirimler.html, panel) */
.nt-page { max-width: 760px; margin: 18px auto; }
.nt-page h1 { margin: 0 0 4px; }
.nt-new { margin: 12px 0 6px; font-weight: 800; color: #B42318; }
.nt-list, .nt-dash { display: grid; gap: 8px; }
.nt-dash { margin: 14px 0 6px; }
.nt-dash h3 { margin: 0 0 2px; display: flex; gap: 10px; align-items: center; }
.nt-count { padding: 1px 9px; border-radius: 999px; background: #E5484D; color: #fff; font-size: 12.5px; }
.nt { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border: 1px solid var(--line); border-radius: 14px; background: #fff;
  color: inherit; text-decoration: none; }
.nt:hover { border-color: #B9CEC2; }
.nt.new { border-color: #F3C2C2; background: #FFF7F7; }
.nt-dot { width: 10px; height: 10px; margin-top: 6px; flex: none; border-radius: 50%; background: #D5DED9; }
.nt.new .nt-dot { background: #E5484D; box-shadow: 0 0 0 4px rgba(229,72,77,.15); }
.nt-body { display: grid; gap: 2px; flex: 1; min-width: 0; }
.nt-body span { color: #3B5247; }
.nt-body small { color: var(--muted); }
.nt-tag { font-style: normal; font-size: 12px; font-weight: 800; color: #B42318; }
