/* Taalas LLM API — unified styles
   Matches ReDoc typography for visual consistency across all pages. */

@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;600;700&family=Poppins:wght@400;500;600&family=Roboto:wght@300;400;500;700&family=Source+Sans+Pro:wght@300;400;600&display=swap');


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

body {
  font-family: "Source Sans Pro", -apple-system, BlinkMacSystemFont,
               "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.6;
  color: #333;
  background: #fafafa;
  margin: 0;
  padding: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* --- Site header --- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: #142B49;
  color: #fff;
  box-shadow: 0 2px 6px rgba(0,0,0,.25);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: .55rem 1.5rem;
}


.header-logo-svg {
  transition: fill .15s;
  display: block;
  position: relative;
}

a:hover .header-logo-svg {
  fill: #F1AD73;
}

.header-nav {
  display: flex;
  gap: 2.5rem;
  align-items: center;
}

.header-nav a {
  display: inline-block;
  color: #d5eff4;
  fill: #d5eff4;
  text-decoration: none;
  font-family: "Poppins", sans-serif;
  font-weight: 500;
  font-size: .85rem;
  line-height: 1;
  text-transform: uppercase;
  padding: .45em 1.2em .5em;
  border: 1px solid #d5eff4;
  border-radius: 1.8em;
  transition: color .2s, border-color .2s;
}

.header-nav a:hover {
  color: #e8b07c;
  border-color: #e8b07c;
  text-decoration: none;
}

.nav-label {
  display: inline-block;
  vertical-align: middle;
  position: relative;
  line-height: 1;
  overflow: hidden;
}

.nav-label > span {
  display: block;
  transition: transform .6s;
}

.nav-label > .bottom {
  position: absolute;
  bottom: -100%;
  left: 0;
  right: 0;
}

.header-nav a:hover .nav-label > span {
  transform: translateY(calc(-100% + .05em));
}

/* --- Hamburger toggle (hidden on desktop) --- */

.menu-toggle {
  display: none;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
  width: 28px;
  height: 20px;
  position: relative;
  flex-direction: column;
  justify-content: space-between;
}

.menu-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: #d5eff4;
  border-radius: 2px;
  transition: transform .3s, opacity .3s;
}

.menu-toggle.active span:nth-child(1) {
  transform: translateY(9px) rotate(45deg);
}

.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
  transform: translateY(-9px) rotate(-45deg);
}

/* --- Mobile nav overlay (hidden by default) --- */

.mobile-nav-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(20, 43, 73, .97);
  z-index: 999;
  padding-top: 5rem;
  opacity: 0;
  transition: opacity .3s;
  pointer-events: none;
}

.mobile-nav-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.mobile-nav-overlay ul {
  list-style: none;
  margin: 0;
  padding: 2rem 1.5rem;
  text-align: center;
}

.mobile-nav-overlay li {
  margin-bottom: 1.5rem;
}

.mobile-nav-overlay a {
  font-family: "Poppins", sans-serif;
  font-weight: 500;
  font-size: 1.2rem;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: #d5eff4;
  text-decoration: none;
  transition: color .2s;
}

.mobile-nav-overlay a:hover {
  color: #e8b07c;
  text-decoration: none;
}

/* --- Content pages (landing, bug report) --- */

.container {
  max-width: 760px;
  width: 100%;
  margin: 0 auto;
  padding: 2.5rem 1.5rem 4rem;
  flex: 1;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: "Montserrat", sans-serif;
  font-weight: 700;
  color: #263238;
}

h1 { font-size: 2rem; margin-top: 0; }
h2 { margin-top: 2.5rem; border-bottom: 1px solid #e0e0e0; padding-bottom: .35rem; }
h3 { margin-top: 1.5rem; }

p, li { font-size: 1.05rem; }

pre {
  background: #263238;
  color: #f8f8f2;
  padding: 1rem;
  border-radius: 4px;
  overflow-x: auto;
  font-size: .9rem;
  max-width: 100%;
}

code {
  background: #e8eaed;
  padding: .15rem .4rem;
  border-radius: 3px;
  font-size: .9em;
}

pre code { background: none; padding: 0; }

a { color: #0065fb; text-decoration: none; }
a:hover { text-decoration: underline; }

/* --- Bug report form --- */

.form-group { margin-bottom: 1.25rem; }

label {
  display: block;
  font-family: "Montserrat", sans-serif;
  font-weight: 600;
  margin-bottom: .35rem;
  color: #263238;
}

.container input[type="text"],
.container input[type="password"],
.container textarea {
  width: 100%;
  padding: .6rem .75rem;
  font-size: 1rem;
  font-family: "Source Sans Pro", sans-serif;
  border: 1px solid #ccc;
  border-radius: 4px;
  transition: border-color .15s;
}

.container input:focus, .container textarea:focus {
  outline: none;
  border-color: #0065fb;
  box-shadow: 0 0 0 3px rgba(0,101,251,.12);
}

button[type="submit"] {
  font-family: "Montserrat", sans-serif;
  background: #263238;
  color: #fff;
  border: none;
  padding: .7rem 1.5rem;
  font-size: 1rem;
  border-radius: 4px;
  cursor: pointer;
  font-weight: 600;
  transition: background .15s;
}

button[type="submit"]:hover { background: #37474f; }
button[type="submit"]:disabled { opacity: .6; cursor: not-allowed; }

.alert {
  margin-top: 1.25rem;
  padding: .85rem 1rem;
  border-radius: 4px;
  font-weight: 500;
}

.alert.success { background: #d1e7dd; color: #0a3622; }
.alert.error   { background: #f8d7da; color: #58151c; }

/* --- ReDoc-style content pages --- */

.redoc-style {
  font-family: Roboto, sans-serif;
  font-size: 14px;
  line-height: 1.5em;
  color: #333;
  background: #fafafa;
}

.redoc-style .container {
  max-width: 900px;
  width: 100%;
  padding: 2.5rem 2rem 4rem;
}

.redoc-style h1 {
  font-family: Montserrat, sans-serif;
  font-weight: 400;
  font-size: 1.85714em;
  color: #333;
  margin: 0 0 .5em;
  border: none;
}

.redoc-style h2 {
  font-family: Montserrat, sans-serif;
  font-weight: 400;
  font-size: 1.57143em;
  color: #333;
  border: none;
  margin-top: 2em;
}

.redoc-style p {
  font-size: 1em;
  line-height: 1.5em;
  color: #333;
}

.redoc-style label {
  font-family: Montserrat, sans-serif;
  font-weight: 400;
  font-size: .929em;
  color: #333;
  margin-bottom: .3rem;
}

.redoc-style .form-group {
  margin-bottom: 1.5rem;
}

.redoc-style .container input[type="text"],
.redoc-style .container input[type="password"],
.redoc-style .container textarea {
  font-family: Roboto, sans-serif;
  font-size: 1em;
  padding: .55rem .75rem;
  border: 1px solid #d8dde7;
  border-radius: 4px;
}

.redoc-style .container input:focus,
.redoc-style .container textarea:focus {
  border-color: #0065fb;
  box-shadow: 0 0 0 3px rgba(0,101,251,.08);
}

.redoc-style button[type="submit"] {
  font-family: Montserrat, sans-serif;
  font-weight: 400;
  font-size: .929em;
  background: #333;
  color: #fff;
  border: none;
  padding: .6rem 1.5rem;
  border-radius: 4px;
  cursor: pointer;
  transition: background .2s;
}

.redoc-style button[type="submit"]:hover { background: #555; }

.redoc-style .alert {
  font-size: 1em;
  border-radius: 4px;
}

/* --- Site footer --- */

.site-footer {
  background: #142B49;
  color: #d5eff4;
  fill: #d5eff4;
  border-top: 1px solid rgba(213, 236, 241, .25);
  padding: 1.4rem 1.5rem;
  font-family: Roboto, sans-serif;
  font-size: .8rem;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-col a {
  color: #d5eff4;
  text-decoration: none;
  transition: color .2s;
}

.footer-col a:hover {
  color: #e8b07c;
  text-decoration: none;
}

.footer-center {
  text-align: center;
}

.footer-right {
  text-align: right;
  display: flex;
  gap: 1.5rem;
}

/* --- ReDoc page overrides --- */

.redoc-page { background: #fafafa; }
.redoc-page .container { display: none; }
.redoc-page .site-footer { display: none; }

/* --- Responsive --- */

@media (max-width: 768px) {

  /* Header */
  .header-inner { padding: .45rem 1rem; }

  .header-logo-svg { width: 140px; height: auto; }

  .header-nav { display: none; }

  .menu-toggle { display: flex; }

  .mobile-nav-overlay { display: block; }

  /* Content */
  .container { padding: 1.5rem 1rem 3rem; }

  .redoc-style .container { padding: 1.5rem 1rem 3rem; }

  .redoc-style h1 { font-size: 1.5em; }

  .redoc-style h2 { font-size: 1.3em; }

  h1 { font-size: 1.5rem; }

  /* Footer */
  .footer-inner {
    flex-direction: column;
    gap: .75rem;
    text-align: center;
  }

  .footer-center { order: -1; }

  .footer-right {
    text-align: center;
    justify-content: center;
  }
}
