/* ============================================================
   ParkExpert — Çözüm Merkezi (Şikâyet Yönetimi) sayfa stilleri
   Yalnızca /sikayet-yonetimi/ ve /sikayet-yonetimi/admin/ içindir.
   tokens.css + components.css üzerine kurulur; yeni tasarım dili yoktur.
   ============================================================ */

/* ---- Hero süreç görseli: Bildir → İncelensin → Çözülsün ---- */
.solve-hero{display:grid;grid-template-columns:minmax(0,7fr) minmax(0,5fr);gap:clamp(28px,4vw,56px);align-items:center}
.solve-hero__cta{display:flex;flex-wrap:wrap;gap:13px;margin-top:28px}
.solve-hero__sub{margin-top:26px;padding:16px 18px;border:1px solid var(--border);border-left:3px solid var(--primary);border-radius:0 var(--r-card) var(--r-card) 0;background:var(--surface)}
.solve-hero__sub b{display:block;font-size:15px;color:var(--foreground);margin-bottom:4px}
.solve-hero__sub p{margin:0;font-size:13.8px;line-height:1.6;color:var(--muted-foreground)}

.solve-flow{background:var(--card);border:1px solid var(--border);border-radius:var(--r-card-lg);box-shadow:var(--shadow-2);padding:26px 24px}
.solve-flow__head{font-size:11.5px;font-weight:800;letter-spacing:.16em;text-transform:uppercase;color:var(--muted-foreground);margin:0 0 18px}
.solve-flow ol{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:0}
.solve-flow li{position:relative;display:flex;align-items:flex-start;gap:15px;padding:0 0 22px}
.solve-flow li:last-child{padding-bottom:0}
.solve-flow li::before{content:"";position:absolute;left:20px;top:44px;bottom:-2px;width:2px;background:linear-gradient(180deg,var(--primary-soft),var(--border))}
.solve-flow li:last-child::before{display:none}
.solve-flow__node{flex:0 0 auto;width:42px;height:42px;border-radius:12px;display:grid;place-items:center;
  background:var(--primary-soft);color:var(--primary);position:relative;z-index:1}
.solve-flow__node svg{width:21px;height:21px}
.solve-flow__txt b{font-size:15.5px;color:var(--foreground)}
.solve-flow__txt p{margin:3px 0 0;font-size:13.5px;line-height:1.55;color:var(--muted-foreground)}

/* ---- Kategori seçimi (seçilebilir tile) ---- */
.cat-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:14px}
.cat-tile{
  position:relative;display:flex;flex-direction:column;gap:11px;text-align:left;
  background:var(--card);border:1.5px solid var(--border);border-radius:var(--r-card);
  padding:18px 17px;color:var(--foreground);font:inherit;cursor:pointer;
  transition:border-color .16s ease,transform .16s ease,box-shadow .16s ease;
}
.cat-tile:hover{border-color:var(--primary-soft);transform:translateY(-2px);box-shadow:var(--shadow-2)}
.cat-tile .ic{width:38px;height:38px;border-radius:10px;display:grid;place-items:center;background:var(--primary-soft);color:var(--primary);transition:background .16s ease,color .16s ease}
.cat-tile .ic svg{width:19px;height:19px}
.cat-tile b{font-size:14.5px;font-weight:700;line-height:1.3}
.cat-tile.is-active{border-color:var(--primary);box-shadow:0 0 0 3px color-mix(in srgb, var(--primary) 16%, transparent)}
.cat-tile.is-active .ic{background:var(--primary);color:var(--primary-foreground)}
.cat-tile__check{position:absolute;top:12px;right:12px;width:20px;height:20px;border-radius:50%;background:var(--primary);color:#fff;display:none;place-items:center}
.cat-tile__check svg{width:12px;height:12px}
.cat-tile.is-active .cat-tile__check{display:grid}

/* ---- Tesis seçimi ---- */
.facility-box{position:relative;max-width:640px}
.facility-list{list-style:none;margin:10px 0 0;padding:6px;border:1px solid var(--border);border-radius:var(--r-card);background:var(--card);box-shadow:var(--shadow-2);max-height:280px;overflow:auto}
.facility-list[hidden]{display:none}
.facility-list button{display:flex;flex-direction:column;gap:2px;width:100%;text-align:left;background:none;border:0;font:inherit;cursor:pointer;padding:11px 13px;border-radius:10px;color:var(--foreground)}
.facility-list button:hover,.facility-list button.is-focus{background:var(--surface)}
.facility-list b{font-size:14.5px;font-weight:650}
.facility-list small{font-size:12.5px;color:var(--muted-foreground)}
.facility-list .empty{padding:14px 13px;font-size:13.5px;color:var(--muted-foreground)}
.facility-chosen{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:12px;padding:13px 16px;border:1px solid var(--primary-soft);background:var(--primary-soft);border-radius:var(--r-card)}
.facility-chosen[hidden]{display:none}
.facility-chosen b{font-size:14.5px;color:var(--foreground)}
.facility-chosen small{display:block;font-size:12.5px;color:var(--muted-foreground);font-weight:600}
.facility-chosen button{background:none;border:0;color:var(--primary);font:inherit;font-weight:650;font-size:13.5px;cursor:pointer;padding:6px 8px;border-radius:8px}
.facility-chosen button:hover{background:color-mix(in srgb,var(--primary) 12%,transparent)}

/* ---- Sihirbaz adımları ---- */
.wizard-steps{display:flex;gap:8px;margin:0 0 26px;padding:0;list-style:none;flex-wrap:wrap}
.wizard-steps li{display:flex;align-items:center;gap:9px;font-size:13.5px;font-weight:650;color:var(--muted-foreground)}
.wizard-steps li .n{width:26px;height:26px;border-radius:50%;display:grid;place-items:center;font-size:12.5px;font-weight:800;background:var(--surface-secondary);color:var(--muted-foreground);border:1.5px solid var(--border)}
.wizard-steps li.is-active{color:var(--foreground)}
.wizard-steps li.is-active .n{background:var(--primary);color:#fff;border-color:var(--primary)}
.wizard-steps li.is-done .n{background:var(--success-soft);color:var(--success);border-color:transparent}
.wizard-steps li + li::before{content:"";width:22px;height:2px;background:var(--border);border-radius:2px}
.wizard-panel[hidden]{display:none}
.wizard-nav{display:flex;gap:12px;justify-content:space-between;margin-top:26px;flex-wrap:wrap}
.wizard-nav .spacer{flex:1}

/* ---- Dinamik alanların kutusu ---- */
.dyn-fields{border:1px dashed var(--border);border-radius:var(--r-card);background:var(--surface);padding:20px 22px 4px;margin:0 0 18px}
.dyn-fields[hidden]{display:none}
.dyn-fields > p{margin:0 0 14px;font-size:12px;font-weight:800;letter-spacing:.14em;text-transform:uppercase;color:var(--primary)}

/* ---- Dosya yükleme ---- */
.uploader{border:1.5px dashed var(--border);border-radius:var(--r-card);background:var(--surface);
  padding:26px 22px;text-align:center;cursor:pointer;transition:border-color .16s ease,background .16s ease}
.uploader:hover,.uploader.is-drag{border-color:var(--primary);background:color-mix(in srgb,var(--primary) 6%,transparent)}
.uploader .ic{width:42px;height:42px;border-radius:12px;display:grid;place-items:center;margin:0 auto 12px;background:var(--primary-soft);color:var(--primary)}
.uploader .ic svg{width:21px;height:21px}
.uploader b{font-size:14.5px;color:var(--foreground)}
.uploader p{margin:6px 0 0;font-size:13px;color:var(--muted-foreground)}
.uploader input{display:none}
.file-list{list-style:none;margin:14px 0 0;padding:0;display:flex;flex-direction:column;gap:8px}
.file-list li{display:flex;align-items:center;gap:11px;padding:10px 13px;border:1px solid var(--border);border-radius:11px;background:var(--card);font-size:13.5px}
.file-list li .fn{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-weight:600;color:var(--foreground)}
.file-list li .fs{color:var(--muted-foreground);font-size:12.5px;flex:0 0 auto}
.file-list li button{background:none;border:0;color:var(--muted-foreground);cursor:pointer;padding:4px;border-radius:6px;flex:0 0 auto;display:grid;place-items:center}
.file-list li button:hover{color:var(--danger);background:color-mix(in srgb,var(--danger) 10%,transparent)}
.file-list li button svg{width:15px;height:15px}

/* ---- Acil durum bilgisi (kırmızı banner değil) ---- */
.emergency{display:flex;gap:14px;align-items:flex-start;border:1px solid var(--border);
  border-left:3px solid var(--warning);border-radius:0 var(--r-card) var(--r-card) 0;
  background:color-mix(in srgb,var(--warning) 5%,var(--surface));padding:18px 20px;margin:0 0 22px}
.emergency .ic{flex:0 0 auto;width:34px;height:34px;border-radius:9px;display:grid;place-items:center;background:color-mix(in srgb,var(--warning) 14%,transparent);color:var(--warning)}
.emergency .ic svg{width:19px;height:19px}
.emergency b{font-size:14.5px;color:var(--foreground)}
.emergency p{margin:5px 0 0;font-size:13.5px;line-height:1.6;color:var(--muted-foreground)}

/* ---- Başvuru özeti (kontrol) ---- */
.review-list{list-style:none;margin:0;padding:0}
.review-list li{display:grid;grid-template-columns:150px 1fr;gap:14px;padding:12px 0;border-bottom:1px solid var(--border);font-size:14.5px}
.review-list li:last-child{border-bottom:0}
.review-list dt,.review-list .k{color:var(--muted-foreground);font-weight:600}
.review-list dd,.review-list .v{margin:0;color:var(--foreground);font-weight:600}
@media (max-width:520px){.review-list li{grid-template-columns:1fr;gap:2px}}

/* ---- Başarı ekranı ---- */
.result-card{max-width:640px;margin:0 auto;text-align:center;background:var(--card);border:1px solid var(--border);border-radius:var(--r-card-lg);padding:clamp(30px,4vw,48px)}
.result-card .tick{width:66px;height:66px;border-radius:50%;display:grid;place-items:center;margin:0 auto 20px;background:var(--success-soft);color:var(--success)}
.result-card .tick svg{width:32px;height:32px}
.result-card h1,.result-card h2{font-size:clamp(24px,3vw,32px)}
.result-card p{margin:12px auto 0;max-width:440px;color:var(--muted-foreground)}
.result-ref{display:inline-flex;flex-direction:column;gap:3px;margin:22px auto;padding:16px 28px;border:1px solid var(--border);border-radius:var(--r-card);background:var(--surface)}
.result-ref small{font-size:11.5px;font-weight:800;letter-spacing:.14em;text-transform:uppercase;color:var(--muted-foreground)}
.result-ref b{font-size:22px;letter-spacing:.02em;font-variant-numeric:tabular-nums;color:var(--foreground)}
.result-card__actions{display:flex;flex-wrap:wrap;gap:12px;justify-content:center;margin-top:8px}

/* ---- Durum rozetleri ---- */
.st-badge{display:inline-flex;align-items:center;gap:7px;padding:5px 12px;border-radius:var(--r-chip);
  font-size:12px;font-weight:700;letter-spacing:.01em;border:1px solid var(--border);background:var(--surface);color:var(--muted-foreground)}
.st-badge::before{content:"";width:7px;height:7px;border-radius:50%;background:currentColor;flex:0 0 auto}
.st-badge--received{color:#475569}
.st-badge--assigned{color:var(--primary);background:var(--primary-soft);border-color:transparent}
.st-badge--in_review{color:#b45309;background:color-mix(in srgb,var(--warning) 12%,transparent);border-color:transparent}
.st-badge--waiting_customer{color:#7c3aed;background:color-mix(in srgb,#7c3aed 12%,transparent);border-color:transparent}
.st-badge--resolved{color:var(--success);background:var(--success-soft);border-color:transparent}
.st-badge--closed{color:#475569;background:var(--surface-secondary);border-color:transparent}
.st-badge--rejected{color:var(--danger);background:color-mix(in srgb,var(--danger) 10%,transparent);border-color:transparent}

/* ---- Takip / timeline ---- */
.track-result[hidden]{display:none}
.track-result{margin-top:26px;border:1px solid var(--border);border-radius:var(--r-card-lg);background:var(--card);padding:26px 28px;max-width:680px}
.track-result__top{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:12px;margin-bottom:20px}
.track-result__top b{font-size:17px;font-variant-numeric:tabular-nums}
.pe-timeline{list-style:none;margin:0;padding:0}
.pe-timeline li{position:relative;padding:0 0 22px 30px}
.pe-timeline li:last-child{padding-bottom:0}
.pe-timeline li::before{content:"";position:absolute;left:6px;top:16px;bottom:-2px;width:2px;background:var(--border)}
.pe-timeline li:last-child::before{display:none}
.pe-timeline li::after{content:"";position:absolute;left:0;top:5px;width:14px;height:14px;border-radius:50%;background:var(--card);border:2px solid var(--primary)}
.pe-timeline li.is-current::after{background:var(--primary)}
.pe-timeline li.is-next::after{border-color:var(--border)}
.pe-timeline time{display:block;font-size:12px;font-weight:700;color:var(--muted-foreground);letter-spacing:.02em}
.pe-timeline p{margin:3px 0 0;font-size:14.5px;color:var(--foreground);font-weight:600}
.pe-timeline li.is-next p{color:var(--muted-foreground);font-weight:600}

/* ---- Güven süreç kartları (3'lü) ---- */
.assure-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:16px}
.assure-card{background:var(--card);border:1px solid var(--border);border-radius:var(--r-card-lg);padding:26px 24px}
.assure-card .ic{width:44px;height:44px;border-radius:12px;display:grid;place-items:center;background:var(--primary-soft);color:var(--primary);margin-bottom:16px}
.assure-card .ic svg{width:22px;height:22px}
.assure-card h3{font-size:16.5px;margin-bottom:8px}
.assure-card p{margin:0;font-size:14px;line-height:1.6;color:var(--muted-foreground)}
.assure-note{max-width:760px;margin:22px auto 0;text-align:center;font-size:13.5px;color:var(--muted-foreground)}
.assure-note b{color:var(--foreground)}

/* ---- Admin dashboard tablo durumu ---- */
.dash-sla{font-variant-numeric:tabular-nums;font-weight:700}
.dash-sla--low{color:var(--danger)}

/* ---- Responsive ---- */
@media (max-width:1080px){
  .solve-hero{grid-template-columns:1fr;gap:34px}
  .cat-grid{grid-template-columns:repeat(3,1fr)}
  .assure-grid{grid-template-columns:1fr}
}
@media (max-width:760px){
  .cat-grid{grid-template-columns:repeat(2,1fr)}
}
@media (max-width:420px){
  .cat-grid{grid-template-columns:1fr}
}

/* ---- Admin demo: KPI ızgarası ---- */
.kpi-grid{display:grid;grid-template-columns:repeat(5,1fr);gap:14px}
.kpi{background:var(--card);border:1px solid var(--border);border-radius:var(--r-card);padding:20px 20px}
.kpi small{display:block;font-size:11.5px;font-weight:700;letter-spacing:.04em;color:var(--muted-foreground);margin-bottom:9px}
.kpi strong{font-size:clamp(22px,2.4vw,30px);font-weight:800;letter-spacing:-.02em;font-variant-numeric:tabular-nums;color:var(--foreground)}
.kpi .unit{font-size:14px;font-weight:600;color:var(--muted-foreground);margin-left:3px}
.kpi--warn strong{color:var(--warning)}
@media (max-width:1080px){.kpi-grid{grid-template-columns:repeat(3,1fr)}}
@media (max-width:620px){.kpi-grid{grid-template-columns:repeat(2,1fr)}}
