/* destek.teybilisim.com — TEY Bilişim destek merkezi */
:root {
  --brand: #1694ca;
  --brand-dark: #0f6f99;
  --ink: #1f2937;
  --muted: #6b7280;
  --line: #e5e7eb;
  --bg: #f6f8fb;
  --card: #ffffff;
  --ok: #047857;
  --warn: #b45309;
  --radius: 12px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 16px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; color: var(--ink); background: var(--bg); }
/* Kısa sayfada alt bilgi pencerenin tabanına otursun (içerik ortada boşlukta kalmasın) */
body { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; }
body > main { flex: 1 0 auto; }
a { color: var(--brand-dark); }
h1 { font-size: clamp(1.6rem, 4vw, 2.3rem); line-height: 1.2; margin: 0 0 .5rem; }
h2 { font-size: 1.25rem; margin: 2rem 0 1rem; }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 760px; padding-top: 32px; padding-bottom: 48px; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }

.top { background: #fff; border-bottom: 1px solid var(--line); }
.top__in { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; flex-wrap: wrap; }
.brand { font-weight: 700; color: var(--ink); text-decoration: none; display: flex; align-items: center; gap: 8px; }
.brand__mark { background: var(--brand); color: #fff; border-radius: 8px; padding: 2px 8px; font-size: .9rem; letter-spacing: .5px; }
.top__nav { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; font-size: .95rem; }
.top__nav a { text-decoration: none; }
.langs { display: inline-flex; gap: 4px; }
.langs a { padding: 2px 6px; border-radius: 6px; color: var(--muted); font-size: .8rem; }
.langs a.is-on { background: var(--bg); color: var(--ink); font-weight: 600; }

.hero { background: linear-gradient(135deg, #e8f5fb, #f6f8fb); padding: 48px 0 40px; text-align: center; }
.search { display: flex; max-width: 640px; margin: 20px auto 0; background: #fff; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; box-shadow: 0 6px 20px rgba(22, 148, 202, .08); }
.search input { flex: 1; min-width: 0; border: 0; padding: 14px 20px; font: inherit; outline: none; }
.search button { border: 0; background: var(--brand); color: #fff; padding: 0 24px; font: inherit; font-weight: 600; cursor: pointer; }

.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 16px; }
.card { display: flex; flex-direction: column; gap: 6px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; text-decoration: none; color: var(--ink); transition: border-color .15s, box-shadow .15s; }
.card:hover { border-color: var(--brand); box-shadow: 0 6px 18px rgba(0, 0, 0, .05); }

.articles { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.articles a { display: grid; gap: 2px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 18px; text-decoration: none; color: var(--ink); }
.articles a:hover { border-color: var(--brand); }
.tag { display: inline-block; font-size: .75rem; color: var(--brand-dark); background: #e8f5fb; border-radius: 999px; padding: 1px 10px; width: fit-content; }
.tag--Resolved, .tag--Closed { color: var(--ok); background: #ecfdf5; }
.tag--WaitingCustomer { color: var(--warn); background: #fffbeb; }

.cta { display: flex; gap: 12px; flex-wrap: wrap; margin: 32px 0 48px; }
.btn { display: inline-block; border: 1px solid var(--line); background: #fff; color: var(--ink); border-radius: 10px; padding: 10px 18px; font: inherit; font-weight: 600; text-decoration: none; cursor: pointer; }
.btn--primary { background: var(--brand); border-color: var(--brand); color: #fff; }
.btn--primary:hover { background: var(--brand-dark); }
.btn:disabled { opacity: .6; cursor: wait; }

.note { background: #e8f5fb; border-left: 4px solid var(--brand); border-radius: 8px; padding: 12px 16px; font-size: .95rem; }
.form { display: grid; gap: 14px; margin-top: 16px; }
.form label { display: grid; gap: 4px; font-weight: 600; font-size: .9rem; }
.form input, .form select, .form textarea { font: inherit; font-weight: 400; width: 100%; padding: 10px 12px; border: 1px solid #cbd5e1; border-radius: 10px; background: #fff; }
.form input:focus, .form select:focus, .form textarea:focus { outline: 2px solid rgba(22, 148, 202, .35); border-color: var(--brand); }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form__error { color: #b91c1c; margin: 0; }
.box { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; margin-top: 16px; }

.thread { display: grid; gap: 12px; margin: 20px 0; }
.msg { max-width: 88%; border-radius: 12px; padding: 12px 16px; }
.msg--staff { background: #e8f5fb; justify-self: start; }
.msg--me { background: #fff; border: 1px solid var(--line); justify-self: end; }
.msg__head { font-size: .85rem; margin-bottom: 4px; }
.msg__body { white-space: pre-wrap; word-break: break-word; }

.foot { border-top: 1px solid var(--line); padding: 24px 0; color: var(--muted); font-size: .9rem; background: #fff; }

@media (max-width: 640px) {
  .row { grid-template-columns: 1fr; }
  .hero { padding: 32px 0; }
  .msg { max-width: 100%; }
  .top__nav { gap: 10px; font-size: .9rem; }
}
.form > .btn { justify-self: start; }

/* Yardım yazısı */
.prose { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; margin-top: 16px; overflow-wrap: anywhere; }
.prose h2 { margin-top: 1.6rem; }
.prose img { max-width: 100%; height: auto; border-radius: 8px; border: 1px solid var(--line); }
.prose table { border-collapse: collapse; width: 100%; display: block; overflow-x: auto; }
.prose th, .prose td { border: 1px solid var(--line); padding: 8px 10px; text-align: left; }
.prose code { background: #f1f5f9; border-radius: 4px; padding: 1px 5px; }
.prose pre { background: #0f172a; color: #e2e8f0; border-radius: 8px; padding: 14px; overflow-x: auto; }
.prose pre code { background: none; padding: 0; }
