/* ============================================================
   behic.net - Dijital Ruh (özgün tasarım)
   Koyu zemin + yeşil ışıma; parçacık ruhu + terminal daktilo.
   %100 responsive; PWA değildir.
   ============================================================ */

:root {
  --aksan: #8fc63f;
  --aksan-parlak: #b5e86a;
  --zemin: #060806;
  --sis: rgba(143, 198, 63, .07);
  --metin: #cfd8c3;
  --soluk: #7c8a6e;
  --cizgi: rgba(143, 198, 63, .18);
  --mono: 'IBM Plex Mono', 'Consolas', 'Menlo', monospace;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html, body {
  min-height: 100%;
  background: var(--zemin);
  color: var(--metin);
  font-family: var(--mono);
  font-size: 15px;
  line-height: 1.7;
}

::selection { background: var(--aksan); color: #0a0f05; }

a { color: var(--aksan); text-decoration: none; }
a:hover { color: var(--aksan-parlak); text-decoration: underline; }

/* Parçacık kanvası her şeyin arkasında */
#alan {
  position: fixed; inset: 0;
  width: 100%; height: 100%;
  z-index: 0;
  transition: opacity 1.2s;
}
body.sohbette #alan { opacity: .35; }

/* Vinyet + tarama çizgisi dokusu (hafif CRT hissi) */
body::before {
  content: '';
  position: fixed; inset: 0; z-index: 1; pointer-events: none;
  background:
    repeating-linear-gradient(0deg, rgba(0,0,0,.14) 0 1px, transparent 1px 3px),
    radial-gradient(ellipse at center, transparent 55%, rgba(0,0,0,.55) 100%);
}

/* ---------- GİRİŞ ---------- */
.giris {
  position: relative; z-index: 5;
  min-height: 100svh;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  text-align: center;
  padding: 24px;
  transition: opacity .9s, transform .9s;
}
.giris.kapan { opacity: 0; transform: scale(.97); pointer-events: none; }

.g-ust {
  font-size: 13px; letter-spacing: .35em;
  color: var(--soluk); text-transform: lowercase;
}
.g-baslik {
  margin-top: 26px;
  font-size: clamp(30px, 6vw, 58px);
  font-weight: 600;
  color: #eaf3dc;
  letter-spacing: .02em;
  text-shadow: 0 0 24px rgba(143,198,63,.35), 0 0 90px rgba(143,198,63,.15);
}
.g-yazi {
  margin-top: 18px;
  min-height: 2em;
  font-size: clamp(14px, 2.6vw, 18px);
  color: var(--aksan);
}
.g-yazi .imlec { display: inline-block; width: .55em; height: 1.1em; background: var(--aksan); vertical-align: -0.15em; animation: yanip .9s steps(1) infinite; }

#basla {
  margin-top: 44px;
  font-family: var(--mono);
  font-size: 16px; letter-spacing: .3em;
  color: var(--aksan);
  background: transparent;
  border: 1px solid var(--aksan);
  padding: 15px 42px 15px 46px;
  cursor: pointer;
  opacity: 0; transform: translateY(10px);
  transition: opacity .8s, transform .8s, background .3s, color .3s, box-shadow .3s;
  box-shadow: 0 0 0 rgba(143,198,63,0);
}
#basla.gorun { opacity: 1; transform: none; }
#basla:hover { background: var(--aksan); color: #0a0f05; box-shadow: 0 0 34px rgba(143,198,63,.45); }

.g-not {
  margin-top: 34px;
  font-size: 11.5px; color: var(--soluk);
  max-width: 520px;
}
.g-alt {
  position: absolute; bottom: 18px; left: 0; right: 0;
  font-size: 11px; color: #55614a;
}
.g-alt a { color: #77875f; }

/* ---------- SOHBET ---------- */
.sohbet {
  position: relative; z-index: 5;
  display: none;
  min-height: 100svh;
  max-width: 780px;
  margin: 0 auto;
  padding: 20px 18px 110px;
  flex-direction: column;
}
body.sohbette .sohbet { display: flex; }
body.sohbette .yaz { display: block; }

.s-tepe {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 2px 14px;
  border-bottom: 1px solid var(--cizgi);
  position: sticky; top: 0;
  background: linear-gradient(180deg, var(--zemin) 78%, transparent);
  z-index: 6;
}
.s-nokta { width: 9px; height: 9px; border-radius: 50%; background: var(--aksan); box-shadow: 0 0 12px var(--aksan); animation: nefes 3s ease-in-out infinite; }
.s-isim { font-size: 13px; letter-spacing: .18em; color: #b9cba0; }
.s-durum { margin-left: auto; font-size: 11px; color: var(--soluk); }

#akis { flex: 1; padding: 22px 2px 8px; }

.satir { margin: 0 0 18px; white-space: pre-wrap; word-wrap: break-word; }
.satir.sen { color: #e9f2da; }
.satir.sen::before { content: '> '; color: var(--soluk); }
.satir.ruh { color: var(--metin); }
.satir.ruh::before { content: ''; display: block; height: 2px; width: 26px; background: var(--aksan); margin-bottom: 8px; opacity: .8; }
.satir.sistem { color: var(--soluk); font-size: 12.5px; }
.satir .kursor { display: inline-block; width: .55em; height: 1.05em; background: var(--aksan); vertical-align: -0.12em; animation: yanip .8s steps(1) infinite; }

.satir img.tema { display: block; max-width: 220px; margin-top: 10px; border: 1px solid var(--cizgi); }

/* Bağlantı kartı */
.kart {
  display: inline-block;
  margin: 8px 8px 0 0;
  padding: 8px 14px;
  border: 1px solid var(--cizgi);
  background: rgba(143,198,63,.06);
  font-size: 13px;
  transition: border-color .25s, background .25s;
}
.kart:hover { border-color: var(--aksan); background: rgba(143,198,63,.12); text-decoration: none; }

/* Öneri çipleri */
.cipler { display: flex; flex-wrap: wrap; gap: 8px; margin: 6px 0 16px; }
.cip {
  font-family: var(--mono);
  font-size: 12.5px;
  color: var(--soluk);
  background: transparent;
  border: 1px dashed var(--cizgi);
  padding: 7px 13px;
  cursor: pointer;
  transition: color .25s, border-color .25s;
}
.cip:hover { color: var(--aksan); border-color: var(--aksan); }

/* Yazma satırı */
.yaz {
  display: none;
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 7;
  background: linear-gradient(0deg, var(--zemin) 72%, transparent);
  padding: 18px 0 22px;
}
.yaz-ic {
  max-width: 780px; margin: 0 auto; padding: 0 18px;
  display: flex; align-items: center; gap: 10px;
}
.yaz-satir {
  flex: 1;
  position: relative;
  display: flex; align-items: center;
  border: 1px solid var(--cizgi);
  background: rgba(6,10,5,.85);
  padding: 13px 14px;
  cursor: text;
  transition: border-color .3s, box-shadow .3s;
}
.yaz-satir.odak { border-color: var(--aksan); box-shadow: 0 0 22px rgba(143,198,63,.15); }
.yaz-satir .on { color: var(--soluk); margin-right: 9px; }
#girdiGoster { flex: 1; min-height: 1.2em; color: #eaf3dc; word-break: break-all; }
#girdiGoster .kursor { display: inline-block; width: .55em; height: 1.1em; background: var(--aksan); vertical-align: -0.14em; animation: yanip .8s steps(1) infinite; }
#girdi {
  position: absolute; opacity: 0.01; pointer-events: none;
  left: 0; bottom: 0; width: 100%; height: 40px;
  border: 0; background: transparent; color: transparent;
  font: inherit; caret-color: transparent;
}
#gonder {
  font-family: var(--mono);
  background: transparent; border: 1px solid var(--cizgi);
  color: var(--aksan); font-size: 13px; letter-spacing: .12em;
  padding: 13px 18px; cursor: pointer;
  transition: border-color .3s, background .3s, color .3s;
}
#gonder:hover { border-color: var(--aksan); background: var(--aksan); color: #0a0f05; }

/* Mesaj formu (sohbet içi) */
.mform {
  margin: 6px 0 18px;
  border: 1px solid var(--cizgi);
  background: rgba(143,198,63,.05);
  padding: 16px;
  display: grid; gap: 10px;
  max-width: 480px;
}
.mform input, .mform textarea {
  font-family: var(--mono); font-size: 13.5px;
  background: rgba(6,10,5,.9);
  border: 1px solid var(--cizgi);
  color: #eaf3dc;
  padding: 10px 12px;
}
.mform input:focus, .mform textarea:focus { outline: none; border-color: var(--aksan); }
.mform textarea { min-height: 90px; resize: vertical; }
.mform button {
  font-family: var(--mono); justify-self: start;
  background: transparent; border: 1px solid var(--aksan);
  color: var(--aksan); padding: 9px 22px; letter-spacing: .15em; cursor: pointer;
}
.mform button:hover { background: var(--aksan); color: #0a0f05; }
.mform .kapat { justify-self: end; border: 0; color: var(--soluk); background: none; cursor: pointer; font-size: 12px; }

/* Kanıt kartı (hakaret) */
.kanit {
  margin: 6px 0 18px;
  border: 1px solid #c0392b;
  background: rgba(192,57,43,.08);
  padding: 16px;
  max-width: 520px;
}
.kanit h4 { color: #e07060; font-size: 14px; letter-spacing: .1em; margin-bottom: 8px; }
.kanit p { font-size: 12.5px; color: #c9a9a4; }
.kanit img { max-width: 100%; margin-top: 10px; border: 1px solid rgba(192,57,43,.4); }

/* Flaş efekti */
.flas { position: fixed; inset: 0; background: #fff; z-index: 90; opacity: 0; pointer-events: none; }
.flas.cak { animation: flas .5s ease-out; }

@keyframes flas { 0% { opacity: .95; } 100% { opacity: 0; } }
@keyframes yanip { 0%, 55% { opacity: 1; } 56%, 100% { opacity: 0; } }
@keyframes nefes { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }

/* Mobil */
@media (max-width: 640px) {
  html, body { font-size: 14px; }
  .sohbet { padding: 14px 12px 104px; }
  .yaz-ic { padding: 0 12px; }
  #gonder { padding: 12px 14px; }
  .g-not { font-size: 11px; }
}

/* Sohbet başı klasik sayfa linki */
.s-cv { margin-left: 16px; font-size: 12px; color: var(--soluk); border-bottom: 1px dashed var(--cizgi); }
.s-cv:hover { color: var(--aksan); text-decoration: none; border-color: var(--aksan); }
/* Öneri çipleri (cevap sonrası) hafif ayrılsın */
.cipler.oneri { margin-top: 10px; border-top: 1px dashed var(--cizgi); padding-top: 12px; }
.cipler.oneri::before { content: 'şunu da sorabilirsin:'; display: block; width: 100%; font-size: 11px; color: var(--soluk); margin-bottom: 6px; letter-spacing: .04em; }
