/* Doküman Yönetimi sayfası — mor tema. styles.css üzerine yüklenir. */
body.theme-dms {
  --navy: #1d1040;
  --navy-2: #321a6b;
  --accent: #7c3aed;
  --accent-2: #c026d3;
  --bg-alt: #f7f5fc;
  --line: #e7e3f1;
}

.theme-dms .btn:hover { background: #6427d6; border-color: #6427d6; }
.theme-dms .btn-light:hover { background: #f1ebff; border-color: #f1ebff; }
.theme-dms .nav-links a.current { color: var(--accent); }

.theme-dms .hero {
  background:
    radial-gradient(900px 420px at 90% -10%, rgba(192,38,211,.35), transparent 60%),
    radial-gradient(700px 400px at -10% 110%, rgba(124,58,237,.45), transparent 60%),
    linear-gradient(160deg, var(--navy), var(--navy-2));
}
.theme-dms .hero .eyebrow,
.theme-dms .r-head .eyebrow,
.theme-dms .section-dark .eyebrow { color: #d8b4fe; }
.theme-dms .grad { background-image: linear-gradient(90deg, #c4b5fd, #f0abfc); }
.theme-dms .hero .lead, .theme-dms .contact .lead { color: #d9d0ee; }
.theme-dms .dot { background: #e879f9; box-shadow: 0 0 0 0 rgba(232,121,249,.6); animation-name: pulse-p; }
@keyframes pulse-p { 70% { box-shadow: 0 0 0 8px rgba(232,121,249,0); } 100% { box-shadow: 0 0 0 0 rgba(232,121,249,0); } }

/* Wizard + sonuç renkleri */
.theme-dms .opt:hover { border-color: #cdb8f6; }
.theme-dms .opt.sel { background: #f5f0ff; box-shadow: 0 0 0 3px rgba(124,58,237,.14); }
.theme-dms .r-path { border-color: #ddd0fb; background: #f8f4ff; }
.theme-dms .r-act .mod { color: #a21caf; background: #fae8ff; }
.theme-dms .finder { box-shadow: 0 24px 50px -30px rgba(50,26,107,.35); }

/* Hero: belge akışı kartı */
.flow-card {
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.14);
  border-radius: 18px; padding: 22px; backdrop-filter: blur(6px);
  box-shadow: 0 30px 60px -30px rgba(0,0,0,.55);
}
.flow-head { display: flex; align-items: center; gap: 8px; font-size: .8rem; color: #b9addb; margin-bottom: 16px; }
.flow { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; position: relative; }
.flow::before {
  content: ""; position: absolute; left: 19px; top: 20px; bottom: 20px; width: 2px;
  background: linear-gradient(180deg, #a78bfa, #e879f9); opacity: .45;
}
.flow li {
  position: relative; display: flex; align-items: center; gap: 14px; padding: 8px 10px 8px 0; border-radius: 12px;
  animation: flowStep 7.5s infinite; animation-delay: calc(var(--i) * 1.5s);
}
.fi {
  flex: none; width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center; z-index: 1;
  background: #2b1a5a; border: 1px solid rgba(255,255,255,.16); transition: all .3s;
}
.fi svg { width: 20px; height: 20px; fill: none; stroke: #c4b5fd; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.flow b { display: block; font-size: .95rem; font-weight: 600; }
.flow small { color: #b9addb; font-size: .82rem; }
@keyframes flowStep {
  0%, 22% { background: rgba(232,121,249,.12); }
  25%, 100% { background: transparent; }
}
@media (prefers-reduced-motion: reduce) { .flow li { animation: none; } }

/* Kapsam göstergesi */
.scope { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.scope div { border: 1.5px solid var(--line); border-radius: 12px; padding: 14px 16px; opacity: .55; }
.scope div.on { opacity: 1; border-color: var(--accent); background: #f8f4ff; box-shadow: 0 0 0 3px rgba(124,58,237,.1); }
.scope b { display: block; margin-bottom: 2px; }
.scope span { font-size: .85rem; color: var(--muted); }
.scope .on b::after { content: " ✓"; color: var(--accent); }

/* Belge → SAP nesnesi eşleme */
.map { width: 100%; border-collapse: collapse; font-size: .92rem; }
.map th { text-align: left; font-size: .75rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 600; padding: 0 12px 10px 0; border-bottom: 1px solid var(--line); }
.map td { padding: 12px 12px 12px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.map td:first-child { font-weight: 600; }
.map code { font-family: ui-monospace, "Cascadia Mono", Consolas, monospace; font-size: .82rem; background: #f3eefe; color: #5b21b6; padding: 2px 6px; border-radius: 6px; white-space: nowrap; }
.map-wrap { overflow-x: auto; }

/* Entegrasyon yöntemleri */
.method-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.method { border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; transition: border-color .2s, box-shadow .2s, transform .2s; }
.method:hover { border-color: #d5c4fa; box-shadow: 0 12px 32px -16px rgba(50,26,107,.3); transform: translateY(-2px); }
.method .tag { display: inline-block; font-size: .74rem; font-weight: 600; color: #a21caf; background: #fae8ff; padding: 3px 10px; border-radius: 999px; margin-bottom: 14px; }
.method h3 { font-size: 1.15rem; }
.method p { color: var(--muted); font-size: .95rem; margin: 0; }

/* Veri arşivleme */
.arch-steps { list-style: none; margin: 0 0 40px; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.arch-steps li { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; display: flex; flex-direction: column; }
.arch-steps .an {
  width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; margin-bottom: 14px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: #fff; font-weight: 700; font-size: .9rem;
}
.arch-steps h3 { font-size: 1.08rem; }
.arch-steps p { color: var(--muted); font-size: .93rem; margin: 0 0 14px; flex: 1; }
.arch-steps .tx { display: flex; flex-wrap: wrap; gap: 6px; }
.theme-dms code { font-family: ui-monospace, "Cascadia Mono", Consolas, monospace; font-size: .82rem; background: #f3eefe; color: #5b21b6; padding: 2px 6px; border-radius: 6px; white-space: nowrap; }
.arch-grid { display: grid; grid-template-columns: 1.35fr 1fr; gap: 24px; align-items: start; }
.arch-table { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px 24px 8px; }
.arch-table h3 { font-size: 1.08rem; margin-bottom: 16px; }
.arch-table .map td:last-child { color: var(--muted); font-size: .88rem; }
.arch-notes { display: grid; gap: 12px; }
.arch-note { background: #fff; border: 1px solid var(--line); border-left: 3px solid var(--accent); border-radius: 12px; padding: 18px 20px; }
.arch-note b { display: block; margin-bottom: 4px; }
.arch-note p { margin: 0; color: var(--muted); font-size: .93rem; }

@media (max-width: 980px) {
  .arch-steps { grid-template-columns: repeat(2, 1fr); }
  .arch-grid { grid-template-columns: 1fr; }
  .method-grid { grid-template-columns: 1fr; }
  .scope { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .arch-steps { grid-template-columns: 1fr; }
}
