/*
 * Transition site chrome: header, notice bar and footer. Loaded by every
 * transition page, including the old (Bootstrap) course and lesson pages,
 * so it sets its own font and does not rely on the page's base styles.
 */
/*
 * Transition site: styles of the temporary imprevo.hu pages, built from the
 * approved static mock-up in storage/app/public/temp-web.
 */

:root {
  color-scheme: light;
  --ink: #142c3d;
  --deep: #164f50;
  --deep-dark: #103b3e;
  --teal: #168f83;
  --mint: #e8f3ed;
  --paper: #fbfcf9;
  --gold: #ffae00;
  --gold-dark: #e89c00;
  --white: #fff;
}

/* Own typography, so the chrome looks the same on the old Bootstrap pages */
.site-header,
.notice-banner,
.site-footer {
  font-family: Inter, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: normal;
  -webkit-font-smoothing: antialiased;
}

.site-header {
  position: relative;
  z-index: 1;
  display: flex;
  width: min(100% - 56px, 1200px);
  min-height: 88px;
  align-items: center;
  justify-content: space-between;
  margin-inline: auto;
  border-bottom: 1px solid rgba(22, 79, 80, .1);
}

.brand {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  text-decoration: none;
}

.brand img {
  display: block;
  width: 194px;
  height: 19px;
  object-fit: contain;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-link {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  padding: 0 13px;
  border-radius: 8px;
  color: var(--deep);
  font-size: 12px;
  font-weight: 750;
  letter-spacing: .045em;
  text-decoration: none;
  transition: background-color .18s ease, color .18s ease, transform .18s ease;
}

.nav-link:hover { color: var(--teal); }

.nav-login {
  padding-inline: 17px;
  background: var(--gold);
  color: #173b3d;
}

.nav-login:hover {
  background: #ffc13a;
  color: #173b3d;
  transform: translateY(-1px);
}

.site-nav a:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 3px;
}

.notice-banner {
  border-bottom: 1px solid rgba(213, 161, 38, .34);
  background: #fff5d9;
  color: #3e5556;
}

.notice-banner-inner {
  display: grid;
  width: min(100% - 56px, 1200px);
  grid-template-columns: 22px minmax(0, 1fr);
  align-items: start;
  gap: 12px;
  margin-inline: auto;
  padding: 15px 0;
}

.notice-symbol {
  display: grid;
  width: 22px;
  height: 22px;
  place-items: center;
  margin-top: 1px;
  border-radius: 50%;
  background: var(--gold);
  color: #173b3d;
  font-size: 14px;
  font-weight: 850;
  line-height: 1;
}

.notice-text {
  margin: 0;
  color: #3e5556;
  font-size: 13px;
  line-height: 1.65;
}

.notice-text strong {
  color: var(--deep-dark);
  font-weight: 800;
}

.notice-text a {
  color: var(--deep);
  font-weight: 750;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.notice-text a:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 3px;
}

.brand:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 4px;
}

.site-footer {
  margin-top: auto;
  padding: 54px 28px 20px;
  background: var(--deep-dark);
  color: #e3eeea;
}

.footer-inner {
  width: min(100%, 1200px);
  margin-inline: auto;
}

.footer-main {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, .85fr);
  gap: clamp(42px, 8vw, 112px);
  padding-bottom: 36px;
}

.footer-brand-link {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  border-radius: 4px;
}

.footer-brand-link img {
  display: block;
  width: 194px;
  height: 19px;
  object-fit: contain;
}

.footer-brand p {
  max-width: 500px;
  margin: 20px 0 0;
  color: #d2e1dc;
  font-size: 14px;
  line-height: 1.75;
}

.footer-contact h2 {
  margin: 0 0 16px;
  color: var(--white);
  font-size: 15px;
  font-weight: 700;
}

.footer-contact address {
  display: grid;
  gap: 4px;
  margin: 0 0 14px;
  color: #e3eeea;
  font-size: 14px;
  font-style: normal;
  line-height: 1.6;
}

.footer-contact-list {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  color: #b4cbc3;
  font-size: 14px;
  line-height: 1.6;
  list-style: none;
}

.site-footer a {
  color: inherit;
  text-decoration: none;
  text-underline-offset: 4px;
}

.site-footer a:hover {
  color: var(--gold);
  text-decoration: underline;
}

.site-footer a:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 4px;
}

.footer-secondary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 20px 0;
  border-top: 1px solid rgba(255, 255, 255, .19);
}

.social-links,
.legal-links {
  display: flex;
  align-items: center;
  gap: 12px;
}

.social-link {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, .28);
  border-radius: 50%;
  color: var(--gold) !important;
  transition: background-color .18s ease, border-color .18s ease, transform .18s ease;
}

.social-link:hover {
  border-color: var(--gold) !important;
  background: rgba(255, 174, 0, .12);
  text-decoration: none !important;
  transform: translateY(-2px);
}

.social-link svg {
  width: 19px;
  height: 19px;
}

.legal-links { gap: 24px; font-size: 13px; }

.footer-copyright {
  margin: 0;
  padding-top: 17px;
  border-top: 1px solid rgba(255, 255, 255, .12);
  color: #9fb8b0;
  font-size: 12px;
  text-align: center;
}

@media (max-width: 640px) {
  .site-header {
    width: min(100% - 36px, 1200px);
    min-height: 72px;
  }

  .brand img {
    width: 155px;
    height: auto;
  }

  .site-nav { gap: 2px; }

  .nav-link {
    min-height: 40px;
    padding-inline: 9px;
    font-size: 11px;
    letter-spacing: .025em;
  }

  .nav-login { padding-inline: 12px; }

  .notice-banner-inner {
    width: min(100% - 36px, 1200px);
    grid-template-columns: 20px minmax(0, 1fr);
    gap: 10px;
    padding: 13px 0;
  }

  .notice-symbol { width: 20px; height: 20px; font-size: 13px; }
  .notice-text { font-size: 12px; line-height: 1.6; }

  .site-footer { padding: 40px 20px 18px; }

  .footer-main {
    grid-template-columns: 1fr;
    gap: 32px;
    padding-bottom: 29px;
  }

  .footer-brand-link img { width: 170px; height: auto; }

  .footer-secondary {
    align-items: flex-start;
    flex-direction: column;
    gap: 18px;
  }

  .legal-links { gap: 20px; }

  .footer-copyright { text-align: left; }
  .legal-links { flex-wrap: wrap; }
}

@media (max-width: 420px) {
  .site-header { width: calc(100% - 24px); }
  .brand img { width: 116px; }
  .site-nav { gap: 0; }
  .nav-link {
    min-height: 38px;
    padding-inline: 6px;
    font-size: 10px;
    letter-spacing: .015em;
  }
}

/* Logout is a POST form in the header, styled like the other nav links */
.nav-logout-form { display: contents; }

.nav-logout {
  border: 0;
  background: none;
  font-family: inherit;
  cursor: pointer;
}

/* Old pages in the transition layout: keep the footer at the bottom */
.page-legacy {
  display: flex;
  min-height: 100vh;
  flex-direction: column;
}

.page-legacy > .wrapper { flex: 1; }
