/* GÖREVLERİNİZ KARTI — templates/includes/_gorev_karti.html (2026-10-13).
   Header "Görevler n/N" düğmesiyle (kurulum-checklist.css) aynı renk dili. JS yok. */

.tm-gorev {
  margin: 0 0 var(--tm-dashboard-section-gap, 16px);
  padding: 18px 20px 14px;
  background: #fff; border: 1px solid #E2E8F0; border-radius: 16px;
  box-shadow: 0 4px 18px rgba(15, 23, 42, .06);
}
.tm-gorev__bas { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.tm-gorev__bas h3, .tm-gorev__bas-kucuk { margin: 0; font-size: 16px; font-weight: 800; color: #0F172A; }
.tm-gorev__bas p { margin: 2px 0 0; font-size: 12.5px; color: #64748B; }
.tm-gorev__bas-kucuk { margin-bottom: 8px; }

.tm-gorev__halka {
  flex: 0 0 52px; width: 52px; height: 52px; border-radius: 50%;
  background: conic-gradient(#2563EB var(--tm-gorev-yuzde, 0%), #E2E8F0 0);
  display: grid; place-items: center;
}
.tm-gorev__halka span {
  width: 40px; height: 40px; border-radius: 50%; background: #fff;
  display: grid; place-items: center; font-size: 12px; font-weight: 800; color: #1D4ED8;
}
.tm-gorev__cubuk { height: 6px; border-radius: 3px; background: #E2E8F0; margin: 12px 0 14px; overflow: hidden; }
.tm-gorev__cubuk span { display: block; height: 100%; background: #2563EB; border-radius: 3px; transition: width .4s ease; }

.tm-gorev__sirada {
  display: grid; grid-template-columns: 1fr auto; grid-template-areas: "etiket cta" "baslik cta" "neden cta";
  gap: 2px 16px; align-items: center;
  padding: 12px 14px; border-radius: 12px;
  background: #EFF6FF; border: 1px solid #BFDBFE; margin-bottom: 12px;
}
.tm-gorev__etiket { grid-area: etiket; font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: #1D4ED8; }
.tm-gorev__sirada-baslik { grid-area: baslik; font-size: 15px; color: #0F172A; }
.tm-gorev__sirada-neden { grid-area: neden; margin: 0; font-size: 12.5px; color: #475569; line-height: 1.4; }
.tm-gorev__cta {
  grid-area: cta; align-self: center; white-space: nowrap;
  padding: 9px 16px; border-radius: 999px; background: #2563EB; color: #fff;
  font-size: 13px; font-weight: 700; text-decoration: none;
}
.tm-gorev__cta:hover { background: #1D4ED8; color: #fff; }
.tm-gorev__cta:focus-visible { outline: 2px solid #1E3A8A; outline-offset: 2px; }

.tm-gorev__liste { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2px 18px; }
.tm-gorev__madde { display: flex; align-items: center; gap: 8px; padding: 5px 0; min-width: 0; }
.tm-gorev__ic {
  flex: 0 0 20px; width: 20px; height: 20px; border-radius: 50%;
  display: grid; place-items: center; font-size: 11px; font-weight: 700;
  background: #fff; border: 2px solid #CBD5E1; color: #64748B;
}
.tm-gorev__madde[data-d="tamam"] .tm-gorev__ic { background: #16A34A; border-color: #16A34A; color: #fff; }
.tm-gorev__madde[data-sirada="1"] .tm-gorev__ic { border-color: #2563EB; color: #1D4ED8; background: #DBEAFE; }
.tm-gorev__madde-link { font-size: 13px; font-weight: 600; color: #0F172A; text-decoration: none; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tm-gorev__madde-link:hover { text-decoration: underline; }
.tm-gorev__madde[data-d="tamam"] .tm-gorev__madde-link { color: #64748B; text-decoration: line-through; font-weight: 500; }
.tm-gorev__durum { margin-left: auto; font-size: 11px; font-weight: 700; color: #16A34A; }
.tm-gorev__durum--sirada { color: #1D4ED8; }

.tm-gorev__dikkat { margin-top: 12px; padding-top: 10px; border-top: 1px solid #E2E8F0; }
.tm-gorev__dikkat h4 { margin: 0 0 6px; font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: #B45309; }
.tm-gorev__dikkat-satir {
  display: grid; grid-template-columns: 1fr auto; grid-template-areas: "b e" "s e"; gap: 0 12px; align-items: center;
  padding: 8px 12px; border-radius: 10px; text-decoration: none; color: inherit;
  background: #FFFBEB; border: 1px solid #FDE68A; margin-bottom: 6px;
}
.tm-gorev__dikkat-satir[data-sev="critical"] { background: #FEF2F2; border-color: #FECACA; }
.tm-gorev__dikkat-satir b { grid-area: b; font-size: 13px; color: #0F172A; }
.tm-gorev__dikkat-satir span { grid-area: s; font-size: 12px; color: #475569; }
.tm-gorev__dikkat-satir em { grid-area: e; font-style: normal; font-size: 12.5px; font-weight: 700; color: #B45309; white-space: nowrap; }
.tm-gorev__dikkat-satir[data-sev="critical"] em { color: #B91C1C; }
.tm-gorev__dikkat-satir:hover { filter: brightness(.98); }

@media (max-width: 767.98px) {
  .tm-gorev { padding: 14px 14px 10px; border-radius: 14px; }
  .tm-gorev__liste { grid-template-columns: 1fr; }
  .tm-gorev__sirada { grid-template-columns: 1fr; grid-template-areas: "etiket" "baslik" "neden" "cta"; }
  .tm-gorev__cta { justify-self: start; margin-top: 8px; }
  .tm-gorev__dikkat-satir { grid-template-columns: 1fr; grid-template-areas: "b" "s" "e"; }
}

html.dark .tm-gorev, body.dark-mode .tm-gorev { background: #0F172A; border-color: #1E293B; }
html.dark .tm-gorev__bas h3, body.dark-mode .tm-gorev__bas h3,
html.dark .tm-gorev__bas-kucuk, body.dark-mode .tm-gorev__bas-kucuk,
html.dark .tm-gorev__madde-link, body.dark-mode .tm-gorev__madde-link,
html.dark .tm-gorev__sirada-baslik, body.dark-mode .tm-gorev__sirada-baslik { color: #E2E8F0; }
html.dark .tm-gorev__halka span, body.dark-mode .tm-gorev__halka span { background: #0F172A; }
html.dark .tm-gorev__cubuk, body.dark-mode .tm-gorev__cubuk { background: #1E293B; }
html.dark .tm-gorev__sirada, body.dark-mode .tm-gorev__sirada { background: #172554; border-color: #1E3A8A; }
html.dark .tm-gorev__sirada-neden, body.dark-mode .tm-gorev__sirada-neden { color: #94A3B8; }
html.dark .tm-gorev__ic, body.dark-mode .tm-gorev__ic { background: transparent; border-color: #475569; }
html.dark .tm-gorev__dikkat, body.dark-mode .tm-gorev__dikkat { border-top-color: #1E293B; }
html.dark .tm-gorev__dikkat-satir, body.dark-mode .tm-gorev__dikkat-satir { background: #1C1917; border-color: #44403C; }
html.dark .tm-gorev__dikkat-satir b, body.dark-mode .tm-gorev__dikkat-satir b { color: #E2E8F0; }
