/* LLM Fluent — minimal, translate-inspired layout */
:root {
  --blue: #1a73e8;
  --blue-hover: #1557b0;
  --text: #202124;
  --muted: #5f6368;
  --border: #dadce0;
  --panel-out: #f8f9fa;
  --bg: #fff;
  --radius: 8px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Google Sans", Roboto, Arial, Helvetica, sans-serif;
  color: var(--text);
  background: var(--bg);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

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

.site-header {
  padding: 12px 24px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}

.brand {
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--text);
}
.brand a {
  color: inherit;
  text-decoration: none;
}
.brand a:hover {
  text-decoration: underline;
}

.learn-more {
  font-size: 0.875rem;
  font-weight: 500;
  padding: 8px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--blue);
}
.learn-more:hover {
  background: #f1f3f4;
  text-decoration: none;
}

main {
  flex: 1;
  max-width: 1100px;
  width: 100%;
  margin: 0 auto;
  padding: 24px 16px 0;
}

.lang-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.lang-select {
  appearance: none;
  padding: 10px 36px 10px 14px;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--blue);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%231a73e8' d='M6 8L1 3h10z'/%3E%3C/svg%3E") no-repeat right 12px center;
  cursor: pointer;
  min-width: 140px;
}

.swap-btn {
  width: 40px;
  height: 40px;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: var(--bg);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-size: 1.1rem;
  line-height: 1;
}
.swap-btn:hover {
  background: #f1f3f4;
}

.panels {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  min-height: 280px;
}

@media (max-width: 720px) {
  .panels {
    grid-template-columns: 1fr;
  }
}

.panel {
  position: relative;
  min-height: 240px;
}

.panel-in {
  border-right: 1px solid var(--border);
}
@media (max-width: 720px) {
  .panel-in {
    border-right: none;
    border-bottom: 1px solid var(--border);
  }
}

.panel-out {
  background: var(--panel-out);
}

.panel-inner {
  padding: 20px 20px 48px;
  min-height: 220px;
}

.prompt-input {
  width: 100%;
  min-height: 180px;
  border: none;
  resize: vertical;
  font-family: inherit;
  font-size: 1.5rem;
  line-height: 1.45;
  color: var(--text);
  background: transparent;
  outline: none;
}
.prompt-input::placeholder {
  color: #bdc1c6;
}

.output-display {
  font-size: 1.5rem;
  line-height: 1.45;
  color: var(--muted);
  word-break: break-word;
  white-space: pre-wrap;
}
.output-display.has-content {
  color: var(--text);
}

.mic-btn {
  position: absolute;
  bottom: 12px;
  left: 16px;
  width: 36px;
  height: 36px;
  border: none;
  background: transparent;
  cursor: pointer;
  color: var(--muted);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.mic-btn:hover {
  background: #f1f3f4;
}
.mic-btn svg {
  width: 22px;
  height: 22px;
}

.site-footer {
  margin-top: auto;
  padding: 24px 16px 32px;
  border-top: 1px solid var(--border);
  font-size: 0.75rem;
  color: var(--muted);
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
}

.disclaimer {
  margin: 0 0 12px;
  line-height: 1.5;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  align-items: center;
  justify-content: flex-end;
}
.footer-links a {
  color: var(--muted);
  text-decoration: underline;
}
.footer-links a:hover {
  color: var(--text);
}

/* Blog */
.blog-wrap {
  max-width: 720px;
  margin: 0 auto;
  padding: 24px 16px 48px;
}

.blog-wrap h1 {
  font-size: 1.75rem;
  font-weight: 400;
  margin: 0 0 8px;
}

.blog-meta {
  font-size: 0.875rem;
  color: var(--muted);
  margin-bottom: 24px;
}

.post-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.post-list li {
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
}

.post-list a {
  font-size: 1.125rem;
  font-weight: 500;
}

.article-body {
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text);
}

.article-body p {
  margin: 0 0 1em;
}

.article-body h2 {
  font-size: 1.25rem;
  font-weight: 500;
  margin: 1.5em 0 0.5em;
}

.back-link {
  display: inline-block;
  margin-bottom: 16px;
  font-size: 0.875rem;
}
