/* Tragly Public Site — Nav, Footer, i18n base styles
 *
 * SZÍNEK (2026-08-07, tulaj-döntés: „mindenhol legyen ez a világos háttér"):
 * a nav-sáv és a lábléc korábban sötét volt (#111827 / #0f172a) világos törzs mellett.
 * A belső felület `v0.7.57.0`-ban egyetlen világos `stone` sémára állt; a publikus keret most
 * ugyanazokat az értékeket használja, hogy a marketing-oldal és a bejelentkezés utáni felület
 * ne két különböző terméknek nézzen ki. A tokenek forrása `src/dashboard/shared.css`:
 *   #ffffff kártya · #fafaf9 lap · #f5f5f4 kiemelt · #e7e5e4 vonal · #d6d3d1 erős vonal
 *   #0c0a09 címsor · #1c1917 törzs · #57534e másodlagos · #78716c halvány · #1d4ed8 link
 * A kék márkajelet #3b82f6-ról #1d4ed8-ra vittem: a világosabb kék fehéren 3,7:1 (bukó),
 * a blue-700 8,6:1. A #78716c a 12 px-es lábjegyzeten 4,7:1 — ez az alsó határ, alá ne menjünk.
 * Az `ecosystem.html` lila kiemelése SZÁNDÉKOSAN marad (korábbi tulaj-döntés).
 */
*, *::before, *::after { box-sizing: border-box }

/* ── i18n ── */
.lang-en [lang="hu"] { display: none }
.lang-hu [lang="en"] { display: none }

/* ── NAV ── */
/* The nav is injected into #tragly-header, whose box is exactly as tall as the nav — a sticky
   child there has zero travel and scrolls away. The sticky must live on the wrapper itself. */
#tragly-header {
  position: sticky;
  top: 0;
  z-index: 100;
}
.tragly-nav {
  z-index: 100;
  background: #ffffff;
  border-bottom: 1px solid #e7e5e4;
  box-shadow: 0 1px 3px rgba(0,0,0,.06);
}
.tragly-nav .nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  height: 60px;
  display: flex;
  align-items: center;
  gap: 4px;
}
.tragly-nav .nav-logo {
  font-size: 20px;
  font-weight: 800;
  color: #0c0a09;
  text-decoration: none;
  letter-spacing: -0.5px;
  margin-right: 20px;
  flex-shrink: 0;
}
.tragly-nav .nav-logo span { color: #1d4ed8 }
.nav-logo .logo-icon, .footer-logo .logo-icon {
  /* display kell: a Tailwind-preflightos oldalakon az img alapból block lenne → sortörés */
  display: inline-block;
  width: 26px; height: 26px; vertical-align: -6px; margin-right: 8px; border-radius: 6px;
}
.tragly-nav .nav-links {
  display: flex;
  gap: 2px;
  flex: 1;
  overflow: hidden;
}
.tragly-nav .nav-link {
  font-size: 14px;
  color: #57534e;
  text-decoration: none;
  padding: 6px 10px;
  border-radius: 6px;
  font-weight: 500;
  white-space: nowrap;
  transition: color .15s, background .15s;
}
.tragly-nav .nav-link:hover { color: #0c0a09; background: #f5f5f4 }
/* Az aktív lap háttérrel jelölt, nem alsó vonallal: a vonal 2 px-et adna a magassághoz és a
   60 px-es sáv elemei elcsúsznának — a háttér nem változtat elrendezést. */
.tragly-nav .nav-link.active { color: #0c0a09; background: #f5f5f4; font-weight: 700 }
.tragly-nav .nav-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
  flex-shrink: 0;
}
.tragly-nav .btn-login {
  font-size: 13px;
  color: #1c1917;
  text-decoration: none;
  padding: 6px 14px;
  border-radius: 6px;
  border: 1px solid #d6d3d1;
  font-weight: 500;
  transition: border-color .15s, color .15s, background .15s;
  white-space: nowrap;
}
.tragly-nav .btn-login:hover { color: #0c0a09; border-color: #1c1917; background: #f5f5f4 }
.tragly-nav .lang-dd { position: relative }
.tragly-nav .lang-dd-btn {
  font-size: 12px;
  color: #57534e;
  background: none;
  border: 1px solid #d6d3d1;
  padding: 5px 9px;
  border-radius: 5px;
  cursor: pointer;
  transition: color .15s, border-color .15s;
  font-family: inherit;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.tragly-nav .lang-dd-btn:hover { color: #0c0a09; border-color: #1c1917 }
.tragly-nav .lang-dd-btn i { font-style: normal; font-size: 9px; color: #78716c }
.tragly-nav .lang-dd svg { width: 18px; height: auto; border-radius: 2px; display: block; flex-shrink: 0 }
.tragly-nav .lang-dd-menu {
  position: absolute; right: 0; top: calc(100% + 6px);
  background: #ffffff; border: 1px solid #e7e5e4; border-radius: 8px;
  padding: 4px; min-width: 156px; z-index: 200;
  box-shadow: 0 12px 32px rgba(0,0,0,.12);
}
.tragly-nav .lang-dd-menu button {
  display: flex; align-items: center; gap: 8px; width: 100%;
  background: none; border: 0; color: #1c1917;
  font: 500 13px system-ui, sans-serif; padding: 7px 10px;
  border-radius: 6px; cursor: pointer; text-align: left;
}
.tragly-nav .lang-dd-menu button:hover { background: #f5f5f4; color: #0c0a09 }
.tragly-nav .lang-dd-menu button[aria-selected="true"] { color: #1d4ed8; font-weight: 700 }
.tragly-nav .btn-hamburger {
  display: none;
  background: none;
  border: none;
  color: #57534e;
  font-size: 22px;
  cursor: pointer;
  padding: 4px 8px;
  line-height: 1;
}
.tragly-nav .mobile-nav {
  display: none;
  flex-direction: column;
  background: #ffffff;
  border-top: 1px solid #e7e5e4;
  padding: 8px 24px 16px;
}
.tragly-nav .mobile-nav.open { display: flex }
.tragly-nav .mobile-nav .nav-link {
  padding: 11px 4px;
  border-bottom: 1px solid #e7e5e4;
  border-radius: 0;
  color: #1c1917;
}
.tragly-nav .mobile-nav .nav-link:last-child { border-bottom: none }
.tragly-nav .mobile-nav .nav-link:hover { background: none; color: #0c0a09 }

@media (max-width: 900px) {
  .tragly-nav .nav-links { display: none }
  .tragly-nav .btn-login { display: none }
  .tragly-nav .btn-hamburger { display: block }
}

/* ── FOOTER ── */
.tragly-footer {
  background: #fafaf9;
  border-top: 1px solid #e7e5e4;
  margin-top: 64px;
}
.tragly-footer .footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 48px 24px 32px;
}
.tragly-footer .footer-top {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 48px;
  margin-bottom: 32px;
  padding-bottom: 32px;
  border-bottom: 1px solid #e7e5e4;
}
.tragly-footer .footer-brand {}
.tragly-footer .footer-logo {
  font-size: 18px;
  font-weight: 800;
  color: #0c0a09;
  text-decoration: none;
  display: block;
  margin-bottom: 10px;
}
.tragly-footer .footer-logo span { color: #1d4ed8 }
.tragly-footer .footer-eco {
  display: flex; flex-wrap: wrap; align-items: center; gap: 6px 18px;
  padding-bottom: 24px; margin-bottom: 24px; border-bottom: 1px solid #e7e5e4;
  font-size: 13px;
}
.tragly-footer .footer-eco-label {
  font-weight: 700; text-transform: uppercase; letter-spacing: .6px;
  font-size: 11px; color: #78716c;
}
.tragly-footer .footer-eco a { color: #57534e; text-decoration: none }
.tragly-footer .footer-eco a:hover { color: #0c0a09; text-decoration: underline }
.tragly-footer .footer-brand p {
  font-size: 13px;
  color: #57534e;
  line-height: 1.65;
  margin: 0;
}
.tragly-footer .footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 28px;
  align-content: flex-start;
}
.tragly-footer .footer-links a {
  font-size: 13px;
  color: #57534e;
  text-decoration: none;
  transition: color .15s;
}
.tragly-footer .footer-links a:hover { color: #0c0a09 }
.tragly-footer .footer-bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 6px;
}
.tragly-footer .footer-bottom p {
  font-size: 12px;
  color: #78716c;
  margin: 0;
}
.tragly-footer .footer-bottom a { color: #57534e; text-decoration: none }
.tragly-footer .footer-bottom a:hover { color: #0c0a09 }

@media (max-width: 640px) {
  .tragly-footer .footer-top { grid-template-columns: 1fr; gap: 24px }
  .tragly-footer .footer-bottom { flex-direction: column }
  .tragly-footer { margin-top: 40px }
}
