/* O‑AI — minimalistický tmavý chat UI (Neocities‑ready) */
:root{
  --bg: #0e0f12;
  --panel: #14161b;
  --muted: #9aa3b2;
  --text: #e5e7eb;
  --accent: #7c7cff;
  --accent-2: #6ee7ff;
  --danger: #ff6b6b;
  --radius: 14px;
}

*{ box-sizing: border-box; }
html, body{ height:100%; }
body{
  margin:0;
  background: radial-gradient(1200px 800px at 10% 0%, rgba(124,124,255,0.15), transparent 65%),
              radial-gradient(1000px 600px at 90% 10%, rgba(110,231,255,0.10), transparent 60%),
              var(--bg);
  color: var(--text);
  font: 16px/1.5 system-ui, -apple-system, Segoe UI, Roboto, Inter, Arial, sans-serif;
}

.topbar{
  position: sticky; top:0; z-index: 10;
  display:flex; align-items:center; justify-content: space-between;
  padding: 12px 16px;
  background: linear-gradient(180deg, rgba(20,22,27,0.95), rgba(20,22,27,0.7));
  backdrop-filter: blur(6px);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.brand{ display:flex; align-items:center; gap:10px; font-weight:600; letter-spacing: 0.3px; }
.logo{ display:inline-grid; place-items:center; width:28px; height:28px; border-radius:50%;
  background: radial-gradient(circle at 35% 35%, var(--accent-2), var(--accent));
  color:#0b0d12; font-weight:800; }
.title{ font-size: 18px; }
.status{ font-size: 13px; color: var(--muted); display:flex; gap:14px; }

.container{
  max-width: 900px; margin: 0 auto; padding: 16px;
}

.messages{
  height: calc(100vh - 250px);
  overflow: auto;
  padding: 12px;
  background: var(--panel);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--radius);
  box-shadow: 0 10px 30px rgba(0,0,0,0.25) inset;
}

.msg{ display:flex; gap:12px; margin: 14px 0; align-items:flex-start; }
.msg .avatar{
  flex:0 0 36px; width:36px; height:36px; border-radius: 50%;
  display:grid; place-items:center;
  background: rgba(124,124,255,0.2);
  border: 1px solid rgba(124,124,255,0.4);
  font-weight:700;
}
.msg.user .avatar{ background: rgba(255,255,255,0.08); border-color: rgba(255,255,255,0.2); }
.msg .bubble{
  max-width: 75%;
  padding: 12px 14px;
  border-radius: 12px 12px 12px 4px;
  background: #1a1d24;
  border: 1px solid rgba(255,255,255,0.08);
  white-space: pre-wrap; word-wrap: break-word;
}
.msg.user .bubble{ background:#101218; border-color: rgba(255,255,255,0.06); border-radius: 12px 12px 4px 12px; }
.msg.assistant .bubble{ background:#141a2a; border-color: rgba(124,124,255,0.18); }

.composer{
  margin-top: 12px;
  display:grid; grid-template-columns: 1fr auto; gap: 10px;
}
#user-input{
  width:100%; resize: vertical; min-height: 54px; max-height: 160px;
  padding: 12px 14px; border-radius: var(--radius); border: 1px solid rgba(255,255,255,0.08);
  background: #0f1116; color: var(--text); outline:none;
}
.actions{ display:flex; gap:10px; align-items:center; }
.btn{
  padding: 10px 14px; border-radius: 10px; background: #191c24; color: var(--text);
  border: 1px solid rgba(255,255,255,0.08); cursor:pointer;
}
.btn[disabled]{ opacity:0.6; cursor:not-allowed; }
.btn.primary{ background: linear-gradient(135deg, var(--accent), var(--accent-2)); color:#0b0d12; font-weight:700; border:none; }

.hint{ color: var(--muted); font-size: 13px; margin: 10px 4px; }
.footer{ text-align:center; color: var(--muted); font-size: 12px; padding: 14px; }
/* Mobilní zobrazení — vlož na konec styles.css */
@media (max-width: 600px) {
  .container {
    padding: 8px;
  }

  .messages {
    height: calc(100vh - 210px);
    padding: 8px;
  }

  .msg .bubble {
    max-width: 85%;
    font-size: 15px;
    padding: 10px 12px;
  }

  #user-input {
    min-height: 48px;
    font-size: 15px;
  }

  .btn {
    padding: 8px 10px;
    font-size: 14px;
  }

  .status {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }
}
/* Rotující slogan */
.rotating-text {
  text-align: center;
  font-size: 18px;
  font-weight: 600;
  color: #fff;
  margin: 12px 0 18px;
  min-height: 24px;
}

/* Glow tlačítka */
.btn.primary {
  background: #fff;
  color: #000;
  font-weight: 700;
  border: none;
  box-shadow: 0 0 10px rgba(255,255,255,0.6);
  transition: box-shadow 0.3s ease, transform 0.2s ease;
}
.btn.primary:hover {
  box-shadow: 0 0 16px rgba(255,255,255,0.8);
  transform: scale(1.03);
}

.btn {
  transition: box-shadow 0.3s ease, transform 0.2s ease;
}
.btn:hover {
  box-shadow: 0 0 8px rgba(255,255,255,0.3);
  transform: scale(1.02);
}

/* Bílé prvky na tmavém pozadí */
body {
  background: #000;
  color: #fff;
}
.topbar {
  background: rgba(0,0,0,0.9);
}
.messages {
  background: #111;
}
.msg .bubble {
  background: #181818;
}
.msg.assistant .bubble {
  background: #222;
}
/* Scrollbars */
.messages::-webkit-scrollbar { width: 10px; }
.messages::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.12); border-radius: 10px; }
.messages::-webkit-scrollbar-track { background: transparent; }
