/* style.css - the DESIGN of: the basics - colours, login screen, avatars, top bar, friends row, language picker. Part of the old single style.css (split 2026-11-03); loaded in the order listed in index.html. */
* { box-sizing: border-box; }
:root { --chat-font-size: 15px; }
html, body {
  margin: 0; padding: 0; height: 100%;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: #121212; color: #EDEDED;
}
.hidden { display: none !important; }

.screen { height: 100%; display: flex; flex-direction: column; }

/* --- auth --- */
#auth-screen { align-items: center; justify-content: center; }
.auth-card {
  width: 90%; max-width: 320px; display: flex; flex-direction: column; gap: 10px;
  background: #1C1C1E; padding: 24px; border-radius: 14px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.4);
}
.auth-card h1 { text-align: center; margin: 0 0 8px; color: #2FDE76; }

input[type=text], input[type=password], input[type=number], input[type=file], select, textarea {
  background: #2A2A2C; border: 1px solid #3A3A3C; color: #EDEDED;
  padding: 10px 12px; border-radius: 8px; font-size: 16px; width: 100%;
}
textarea { font-family: inherit; resize: vertical; }
label { display: flex; flex-direction: column; gap: 4px; font-size: 13px; color: #9A9A9A; margin: 8px 0; }
label input[type=checkbox] { width: auto; margin-right: 8px; }
.note { font-size: 12px; color: #7A7A7A; }
.section-label { font-size: 12px; color: #7A7A7A; margin: 10px 0 2px; }

button {
  background: #06C755; color: #08170D; border: none; border-radius: 8px;
  padding: 11px 14px; font-size: 15px; font-weight: 600; cursor: pointer;
}
button.secondary { background: #2C2C2E; color: #EDEDED; }
button.danger { background: #1C1C1E; color: #FF6B60; border: 1px solid #FF6B60; }
button.icon-btn { background: transparent; color: #EDEDED; font-size: 18px; padding: 4px 8px; position: relative; }
button.small { padding: 6px 10px; font-size: 13px; }
.error { color: #FF6B60; font-size: 13px; min-height: 16px; }

/* --- avatars --- */
.avatar {
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 50%; background: #06C755; color: #08170D; font-weight: 700;
  overflow: hidden; flex-shrink: 0; background-size: cover; background-position: center;
}
.avatar-xs { width: 22px; height: 22px; font-size: 10px; }
.avatar-sm { width: 32px; height: 32px; font-size: 13px; }
.avatar-md { width: 44px; height: 44px; font-size: 16px; }
.avatar-lg { width: 84px; height: 84px; font-size: 28px; }

/* --- topbar --- */
.topbar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 7px 14px; background: #1C1C1E; border-bottom: 1px solid #2C2C2E;
  position: sticky; top: 0; z-index: 2;
}
.topbar span#chat-title, .topbar .me-identity span:last-child { font-weight: 600; }
.me-identity { display: flex; align-items: center; gap: 8px; cursor: pointer; }
.topbar-actions { display: flex; align-items: center; gap: 4px; }
.badge-dot {
  position: absolute; top: 0; right: 0; width: 8px; height: 8px; border-radius: 50%;
  background: #FF6B60;
}
.badge-count {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 16px; height: 16px; padding: 0 4px; border-radius: 8px;
  background: #FF6B60; color: #1C1C1E; font-size: 10px; font-weight: 700;
}

/* --- friends bar --- */
#friends-bar {
  display: flex; gap: 14px; overflow-x: auto; padding: 12px 14px;
  background: #1C1C1E; border-bottom: 1px solid #2C2C2E;
}
#friends-bar:empty { display: none; }
.friend-item { display: flex; flex-direction: column; align-items: center; gap: 4px; flex-shrink: 0; width: 56px; }
.friend-item .avatar { cursor: pointer; }
.friend-item.bot .avatar { box-shadow: 0 0 0 2px #06C755; }
.friend-item .friend-name {
  font-size: 11px; color: #9A9A9A; text-align: center; cursor: pointer;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; width: 100%;
}

/* Owner / Guest view: a gold circle first in the friends row + a big notice when it changes (Kuma 2026-11-02) */
.view-circle { font-size: 20px; background: linear-gradient(135deg, #FFD60A, #FF9F0A) !important; color: #000; box-shadow: 0 0 0 2px #FFD60A88; }
.view-circle.guest { background: linear-gradient(135deg, #64D2FF, #0A84FF) !important; box-shadow: 0 0 0 2px #0A84FF88; }
#view-circle-item { cursor: pointer; } #view-circle-item .friend-name { font-weight: 700; color: #FFD60A; }
.view-mode-notice { position: fixed; inset: 0; z-index: 200; display: flex; align-items: center; justify-content: center; background: #000c;
  transition: opacity .45s; padding: 24px; }
.view-mode-notice.out { opacity: 0; }
.view-mode-notice > div { display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; padding: 26px 22px; border-radius: 22px;
  background: #1C1C1E; border: 2px solid #FFD60A; max-width: 340px; }
.view-mode-notice.guest > div { border-color: #0A84FF; }
.view-mode-notice span { font-size: 56px; } .view-mode-notice b { font-size: 22px; } .view-mode-notice small { color: #A1A1A6; font-size: 14px; }
/* language picker on the first screen (Kuma 2026-11-02) */
.lang-pick { max-width: 420px; margin: 14px auto 0; padding: 0 16px; }
.lang-pick-title { text-align: center; font-weight: 700; color: #C9C9C9; font-size: 14px; margin-bottom: 8px; }
.lang-pick-list { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 6px; scrollbar-width: none; }
.lang-btn { flex: 0 0 auto; width: auto; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 8px 10px; border-radius: 14px;
  background: #1C1C1E; color: #fff; font-size: 12px; border: 2px solid transparent; }
.lang-btn span { font-size: 26px; line-height: 1; }
.lang-btn.on { border-color: #30D158; background: #30D15822; }

