/* ================================================================
   FIYONK — Mesaj detay (çeviri sistemi)
   402 × 874. Light + amber. Her mesajda original + çeviri.
   ================================================================ */

:root {
  --slate-950: #020618;
  --slate-700: #314158;
  --slate-600: #45556c;
  --slate-500: #62748e;
  --slate-400: #90a1b9;
  --slate-300: #cad5e2;
  --slate-200: #e2e8f0;
  --slate-100: #f1f5f9;
  --slate-50:  #f8fafc;
  --amber-500: #ffb900;
  --amber-600: #fe9a00;
  --green-500: #00c950;
  --white: #ffffff;

  --stage-bg: #e7eaf0;
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; }
html, body {
  margin: 0;
  padding: 0;
  background: var(--stage-bg);
  color: var(--slate-950);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
button {
  background: none; border: 0; color: inherit;
  font: inherit; cursor: pointer; padding: 0;
}
ul { list-style: none; margin: 0; padding: 0; }
input {
  background: none; border: 0; color: inherit;
  font: inherit; outline: none; width: 100%;
}

/* ----------------------------------------------------------------
   Stage / phone
---------------------------------------------------------------- */
.stage {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px 24px;
}
.phone {
  position: relative;
  width: 402px;
  height: 874px;
  overflow: hidden;
  background: var(--white);
  isolation: isolate;
}

/* ----------------------------------------------------------------
   Status bar
---------------------------------------------------------------- */
.status-bar {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 62px;
  z-index: 50;
  padding: 18px 28px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--slate-950);
  font-size: 17px;
  font-weight: 600;
  background: var(--white);
  pointer-events: none;
}
.status-bar__icons { display: flex; align-items: center; gap: 6px; }

/* ----------------------------------------------------------------
   Chat header
---------------------------------------------------------------- */
.chat-header {
  position: absolute;
  top: 62px; left: 0; right: 0;
  height: 56px;
  padding: 0 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--white);
  border-bottom: 1px solid var(--slate-100);
  z-index: 5;
}
.chat-header__back {
  width: 32px;
  height: 40px;
  color: var(--slate-950);
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
}
.chat-header__user {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
.chat-header__avatar {
  width: 36px;
  height: 36px;
  border-radius: 999px;
  object-fit: cover;
  background: var(--slate-200);
}
.chat-header__meta {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.chat-header__name {
  font-size: 15px;
  font-weight: 700;
  color: var(--slate-950);
  letter-spacing: -0.2px;
}
.chat-header__sub {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 500;
  color: var(--green-500);
}
.online-dot {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--green-500);
}
.chat-header__actions {
  display: flex;
  align-items: center;
  gap: 8px;
}
.ic {
  width: 36px;
  height: 36px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--slate-700);
  transition: background-color .15s ease;
}
.ic:hover { background: var(--slate-100); color: var(--slate-950); }

/* ----------------------------------------------------------------
   Stream
---------------------------------------------------------------- */
.stream {
  position: absolute;
  top: 118px; bottom: 76px;
  left: 0; right: 0;
  padding: 14px 16px 18px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: var(--slate-50);
}
.stream::-webkit-scrollbar { width: 0; }

.sys {
  text-align: center;
  font-size: 12px;
  font-weight: 500;
  color: var(--slate-500);
  padding: 4px 12px;
  letter-spacing: -0.1px;
}
.sys strong {
  font-weight: 700;
  color: var(--slate-700);
}

.date-divider {
  text-align: center;
  margin: 6px 0 4px;
}
.date-divider span {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  color: var(--slate-400);
  letter-spacing: 0.2px;
  padding: 4px 10px;
}

/* ----------------------------------------------------------------
   Messages
---------------------------------------------------------------- */
.msg {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  max-width: 100%;
}
.msg--in { justify-content: flex-start; }
.msg--self { justify-content: flex-end; }
.msg__avatar {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  flex: 0 0 auto;
  object-fit: cover;
  background: var(--slate-200);
}

/* ----------------------------------------------------------------
   Bubble (with translation)
---------------------------------------------------------------- */
.bubble {
  max-width: 76%;
  padding: 10px 14px 8px;
  border-radius: 18px;
  font-size: 14px;
  line-height: 1.4;
  font-weight: 500;
  color: var(--slate-950);
  letter-spacing: -0.1px;
  position: relative;
}
.bubble--in {
  background: var(--white);
  border: 1px solid var(--slate-100);
  border-bottom-left-radius: 6px;
}
.bubble--self {
  background: var(--amber-500);
  color: var(--slate-950);
  border-bottom-right-radius: 6px;
}

.bubble__original {
  margin: 0;
  font-weight: 600;
}
.bubble__divider {
  height: 1px;
  margin: 8px -4px;
  background: var(--slate-200);
}
.bubble--in .bubble__divider {
  background: linear-gradient(90deg, transparent 0%, var(--slate-200) 12%, var(--slate-200) 88%, transparent 100%);
}
.bubble--self .bubble__divider {
  background: linear-gradient(90deg, transparent 0%, rgba(2, 6, 24, 0.22) 12%, rgba(2, 6, 24, 0.22) 88%, transparent 100%);
}
.bubble__translation {
  margin: 0;
  font-size: 13.5px;
  font-weight: 500;
}
.bubble--in .bubble__translation { color: var(--slate-600); }
.bubble--self .bubble__translation { color: rgba(2, 6, 24, 0.7); }

.bubble__time {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 6px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.2px;
}
.bubble--in .bubble__time { color: var(--slate-400); }
.bubble--self .bubble__time { color: rgba(2, 6, 24, 0.55); }

/* ----------------------------------------------------------------
   Input bar
---------------------------------------------------------------- */
.input-bar {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 76px;
  padding: 14px 14px 18px;
  background: var(--white);
  border-top: 1px solid var(--slate-100);
  display: flex;
  align-items: center;
  gap: 10px;
  z-index: 5;
}
.input-bar__cam {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--slate-600);
  flex: 0 0 auto;
  transition: background-color .15s ease;
}
.input-bar__cam:hover { background: var(--slate-100); color: var(--slate-950); }
.input-bar__field {
  flex: 1;
  height: 44px;
  background: var(--slate-50);
  border: 1px solid var(--slate-100);
  border-radius: 999px;
  padding: 0 18px;
  display: flex;
  align-items: center;
}
.input-bar__field input {
  font-size: 14px;
  color: var(--slate-950);
  font-weight: 500;
}
.input-bar__field input::placeholder {
  color: var(--slate-400);
  font-weight: 500;
}
.input-bar__send {
  width: 44px;
  height: 44px;
  border-radius: 999px;
  background: var(--amber-500);
  color: var(--slate-950);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  transition: background-color .15s ease;
}
.input-bar__send:hover { background: var(--amber-600); }
.input-bar__send svg {
  transform: translateX(1px);
}
