/* Styles for <site-nav> and <site-footer> web components. */

/* ── Nav ── */
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1120px;
  margin: 0 auto;
  padding: 16px 24px;
}
.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.nav-brand img { height: 40px; width: 40px; }
.nav-brand span {
  font-size: 20px;
  font-weight: 700;
  color: var(--color-text-primary);
}
.nav-brand .nav-tagline {
  font-size: 14px;
  font-weight: 400;
  color: var(--color-text-dim);
  border-left: 1px solid var(--color-border-default);
  padding-left: 10px;
  letter-spacing: 0.01em;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
}
.nav-links a {
  font-size: 15px;
  font-weight: 500;
  color: var(--color-text-secondary);
  text-decoration: none;
}
.nav-links a:hover { color: var(--color-text-primary); }
.nav-links a.active {
  color: var(--color-accent-teal);
  font-weight: 600;
}
.nav-login {
  display: inline-block;
  padding: 8px 20px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  color: #fff !important;
  background: var(--color-accent-teal);
  text-decoration: none;
  transition: background 0.15s;
}
.nav-login:hover { background: #0f766e; text-decoration: none; }
.nav-logout-link {
  font-size: 14px;
  color: var(--color-text-muted);
  text-decoration: none;
  transition: color 0.15s;
}
.nav-logout-link:hover {
  color: var(--color-text-primary);
  text-decoration: underline;
}
.nav-welcome {
  font-size: 14px;
  color: var(--color-text-muted);
  text-align: center;
  padding: 8px 0;
}
.nav-login-wrapper {
  position: relative;
}
.nav-login-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: var(--color-bg-panel);
  border: 1px solid var(--color-border-default);
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  min-width: 180px;
  z-index: 100;
  overflow: hidden;
}
.nav-login-dropdown.show {
  display: block;
}
.nav-login-option {
  display: block;
  padding: 10px 16px;
  font-size: 14px;
  color: var(--color-text-primary);
  text-decoration: none;
}
.nav-login-option:hover {
  background: var(--color-bg-subtle);
  text-decoration: none;
}
.nav-login-option + .nav-login-option {
  border-top: 1px solid var(--color-border-default);
}

/* ── Footer ── */
.footer {
  border-top: 1px solid var(--color-border-default);
  padding: 36px 24px;
}
.footer-inner {
  max-width: 1120px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 8px;
}
.footer-brand img { height: 28px; width: 28px; }
.footer-brand span {
  font-size: 16px;
  font-weight: 700;
  color: var(--color-text-primary);
}
.footer-links {
  display: flex;
  gap: 24px;
  list-style: none;
}
.footer-links a {
  font-size: 14px;
  color: var(--color-text-muted);
  text-decoration: none;
}
.footer-links a:hover { color: var(--color-text-primary); }
.footer-copy {
  font-size: 13px;
  color: var(--color-text-dim);
}

/* ── Bot Check Form ── */
.bot-check {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin: 1.5rem auto;
  max-width: 480px;
}
.bot-check input {
  flex: 1;
  padding: 14px 18px;
  font-size: 16px;
  border: 2px solid var(--color-border-default);
  border-right: none;
  border-radius: 10px 0 0 10px;
  outline: none;
  background: var(--color-bg-panel);
  color: var(--color-text-primary);
  transition: border-color 0.15s;
}
.bot-check input:focus { border-color: var(--color-accent-teal); }
.bot-check input::placeholder { color: var(--color-text-dim); }
.bot-check button {
  padding: 14px 28px;
  font-size: 16px;
  font-weight: 600;
  border: 2px solid var(--color-accent-teal);
  border-radius: 0 10px 10px 0;
  background: var(--color-accent-teal);
  color: #fff;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s;
}
.bot-check button:hover { background: #0f766e; border-color: #0f766e; }

/* ── Responsive ── */
@media (max-width: 820px) {
  .nav-links { gap: 16px; }
}
@media (max-width: 640px) {
  .nav { flex-wrap: wrap; gap: 12px; }
  .nav-links { gap: 12px; }
  .nav-brand .nav-tagline { display: none; }
  .footer-inner { flex-direction: column; text-align: center; }
  .footer-links { flex-wrap: wrap; justify-content: center; }
  .bot-check { flex-direction: column; gap: 0; }
  .bot-check input { border-right: 2px solid var(--color-border-default); border-radius: 10px 10px 0 0; border-bottom: none; }
  .bot-check input:focus { border-color: var(--color-accent-teal); }
  .bot-check button { border-radius: 0 0 10px 10px; width: 100%; }
}
