/*
 * Shared public header and footer (partials/site/{header,footer}) for the service, content and
 * not-found pages. The landing styles the same markup from landing/src/styles/landing.css; keep the
 * two in sync so every public page shows one header and footer. Colors are literal on purpose: page
 * stylesheets define their own --brand/--page tokens.
 */
.topbar-shell, .footer { --sc-ink: #292f3b; --sc-muted: #626976; --sc-line: #e4e7ec; --sc-soft: #f1f3f7; --sc-brand: #c63f26; --sc-brand-2: #a8351f; --sc-ease: cubic-bezier(.22, 1, .36, 1); --sc-shadow: 0 1px 2px rgba(41, 47, 59, .04), 0 14px 34px -18px rgba(41, 47, 59, .18); font-family: 'Manrope Variable', 'Manrope Fallback', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif; font-size: 16px; line-height: 1.7; color: var(--sc-ink); }
.topbar-shell *, .topbar-shell *::before, .topbar-shell *::after, .footer *, .footer *::before, .footer *::after { box-sizing: border-box; }
.topbar-shell ul, .topbar-shell p, .footer h2, .footer ul, .footer p { margin: 0; padding: 0; }
.topbar-shell ul, .footer ul { list-style: none; }
.topbar-shell img, .topbar-shell svg, .footer img, .footer svg { display: block; max-width: 100%; }
.topbar-shell img, .footer img { height: auto; }
.topbar-shell a, .footer a { color: inherit; }
.topbar-shell :focus-visible, .footer :focus-visible, .skip:focus-visible { outline: 3px solid #e8553a; outline-offset: 2px; }
.topbar-shell .wrap, .footer .wrap { width: min(100% - 32px, 1200px); margin-inline: auto; }
.footer .sr { position: absolute; top: 0; left: 0; width: 1px; height: 1px; margin: -1px; padding: 0; border: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; left: 16px; top: -80px; z-index: 40; padding: 8px 14px; background: #fff; border-radius: 8px; color: #292f3b; }
.skip:focus { top: 12px; }

/* Header */
.topbar-shell { position: sticky; top: 0; z-index: 20; background: rgba(255, 255, 255, .9); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); box-shadow: 0 1px 0 var(--sc-line); }
.topbar { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px; min-height: 72px; }
.topbar .nav { display: flex; gap: 2px; }
.topbar .nav a { display: block; padding: 7px 16px; border-radius: 999px; color: var(--sc-ink); text-decoration: none; font-size: .925rem; font-weight: 500; transition: background-color .2s, box-shadow .2s; }
.topbar .nav a:hover { background: var(--sc-soft); }
.topbar__cta { display: flex; align-items: center; justify-content: flex-end; gap: 16px; }
.topbar__cta .btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 8px 20px; border: 0; border-radius: 14px; background: var(--sc-brand); color: #fff; font-weight: 700; text-decoration: none; white-space: nowrap; box-shadow: 0 8px 18px -12px rgba(41, 47, 59, .7); transition: transform .25s var(--sc-ease), box-shadow .25s var(--sc-ease), background-color .2s; }
.topbar__cta .btn:hover { transform: translateY(-2px); background: var(--sc-brand-2); box-shadow: 0 14px 24px -12px rgba(198, 63, 38, .6); }
.topbar__cta .btn:active { transform: scale(.98); }
.link-plain { text-decoration: none; font-weight: 500; white-space: nowrap; }
.link-plain:hover { text-decoration: underline; }
.menu-toggle { display: none; place-items: center; width: 44px; height: 44px; padding: 0; border: 1px solid var(--sc-line); border-radius: 12px; background: #fff; color: var(--sc-ink); cursor: pointer; transition: background-color .2s; }
.menu-toggle:hover { background: var(--sc-soft); }
.menu-toggle__close, .menu-toggle[aria-expanded="true"] .menu-toggle__open { display: none; }
.menu-toggle[aria-expanded="true"] .menu-toggle__close { display: inline; }
.auth-user { position: relative; display: inline-flex; align-items: center; gap: 10px; min-height: 46px; padding: 4px 12px 4px 4px; border: 1px solid var(--sc-line); border-radius: 999px; background: #fff; color: var(--sc-ink); text-decoration: none; white-space: nowrap; transition: border-color .2s, box-shadow .2s, transform .2s; }
.auth-user:hover { border-color: #c3c9d4; box-shadow: 0 10px 22px -14px rgba(41, 47, 59, .45); transform: translateY(-1px); }
.auth-user i { display: grid; width: 36px; height: 36px; flex: none; place-items: center; border-radius: 50%; background: linear-gradient(140deg, #e8553a, #b63c25); color: #fff; font-size: .85rem; font-style: normal; font-weight: 800; box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .25); }
.auth-user > span { display: grid; line-height: 1.15; text-align: left; }
.auth-user b { max-width: 120px; overflow: hidden; font-size: .9rem; font-weight: 700; text-overflow: ellipsis; }
.auth-user small { color: var(--sc-muted); font-size: .72rem; font-weight: 600; }
.auth-user svg { color: var(--sc-muted); transition: transform .2s, color .2s; }
.auth-user:hover svg { color: var(--sc-ink); transform: translateX(2px); }

/* Mega-menus (Servisler, Ülkeler, Araçlar). Same block in assets/css/site-chrome.css and landing/src/styles/landing.css;
   colors are literal so it reads identically in both. Hover opens them on desktop; the chevron button opens
   them by keyboard/touch and inside the mobile menu (has-menu/is-open are set by the scripts). */
.topbar .has-mega { position: relative; display: flex; align-items: center; border-radius: 999px; transition: background-color .2s; }
.topbar .nav .has-mega > a { padding-right: 4px; }
.topbar .nav .has-mega > a:hover { background: transparent; }
.topbar .has-mega:hover, .topbar .has-mega.is-open { background: #f1f3f7; }
.mega-toggle { display: grid; place-items: center; width: 28px; height: 28px; margin-right: 6px; padding: 0; border: 0; border-radius: 50%; background: transparent; color: #626976; cursor: pointer; transition: background-color .2s, color .2s; }
.mega-toggle:hover { background: #fff; color: #292f3b; }
.mega-toggle svg { transition: transform .25s cubic-bezier(.22, 1, .36, 1); }
.has-mega.is-open .mega-toggle svg { transform: rotate(180deg); }
.mega { position: absolute; top: 100%; left: -12px; z-index: 30; display: none; width: min(560px, calc(100vw - 32px)); padding-top: 14px; }
.mega--wide { width: min(660px, calc(100vw - 32px)); }
.has-mega.is-open > .mega, .topbar:not(.has-menu) .has-mega:focus-within > .mega { display: block; animation: mega-pop .22s cubic-bezier(.22, 1, .36, 1); }
@media (hover: hover) and (min-width: 961px) {
  .has-mega:hover > .mega { display: block; animation: mega-pop .22s cubic-bezier(.22, 1, .36, 1); }
  .has-mega:hover .mega-toggle svg { transform: rotate(180deg); }
}
.mega__panel { padding: 18px; border: 1px solid #e4e7ec; border-radius: 22px; background: #fff; box-shadow: 0 1px 2px rgba(41, 47, 59, .04), 0 24px 48px -20px rgba(41, 47, 59, .28); }
.topbar .mega__title { margin: 0 0 14px 6px; color: #626976; font-size: .72rem; font-weight: 700; letter-spacing: .06em; line-height: 1.4; text-transform: uppercase; }
.mega__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px; margin: 0; padding: 0; list-style: none; }
.topbar .nav .mega__item { display: flex; align-items: center; gap: 12px; padding: 10px; border-radius: 14px; font-size: .9rem; line-height: 1.35; transition: background-color .2s; }
.topbar .nav .mega__item:hover { background: #f1f3f7; }
.mega__item > span:last-child { display: grid; gap: 2px; min-width: 0; }
.mega__item strong { overflow: hidden; color: #292f3b; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.mega__item small { color: #626976; font-size: .78rem; font-weight: 500; }
.mega__item--tool { align-items: flex-start; }
.mega__item--tool strong { white-space: normal; }
.mega__item--all strong { color: #b63c25; }
.mega__ico { display: grid; flex: none; place-items: center; width: 38px; height: 38px; border-radius: 12px; background: #fff; box-shadow: inset 0 0 0 1px #e4e7ec; color: #b63c25; }
.topbar .mega__ico img { width: 24px; height: 18px; border-radius: 3px; }
.mega__ico svg { width: 20px; height: 20px; }
.mega__ico--txt { --c: #626976; background: color-mix(in srgb, var(--c) 14%, #fff); box-shadow: none; color: color-mix(in srgb, var(--c) 78%, #000); font-size: .75rem; font-weight: 700; letter-spacing: .02em; }
.mega__item--tool .mega__ico, .mega__item--all .mega__ico { background: #fff0eb; box-shadow: none; }
.mega__wide { grid-column: 1 / -1; margin-bottom: 8px; }
.topbar .nav .mega__item--featured { position: relative; gap: 16px; padding: 18px; border-radius: 18px; background: radial-gradient(120px 90px at 100% 0, rgba(255, 214, 107, .35), transparent 70%), linear-gradient(120deg, #ffd9d0, #fff3f0 70%); box-shadow: inset 0 0 0 1px #f5c1b5; transition: box-shadow .25s, transform .25s cubic-bezier(.22, 1, .36, 1); }
.topbar .nav .mega__item--featured:hover { background: radial-gradient(120px 90px at 100% 0, rgba(255, 214, 107, .35), transparent 70%), linear-gradient(120deg, #ffd9d0, #fff3f0 70%); box-shadow: inset 0 0 0 1px #e8553a, 0 16px 28px -20px rgba(198, 63, 38, .7); transform: translateY(-1px); }
.mega__item--featured .mega__text { display: grid; flex: 1; gap: 4px; min-width: 0; }
.mega__item--featured strong { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; color: #3e170f; font-size: 1.05rem; font-weight: 800; white-space: normal; }
.mega__item--featured em { padding: 1px 8px; border-radius: 999px; background: #ffd66b; color: #4a3500; font-size: .68rem; font-style: normal; font-weight: 800; line-height: 1.6; }
.mega__item--featured small { color: #4b5c56; font-size: .8rem; line-height: 1.45; }
.mega__item--featured .mega__ico { width: 48px; height: 48px; border-radius: 15px; background: linear-gradient(145deg, #e8553a, #a33620); box-shadow: 0 10px 18px -10px rgba(198, 63, 38, .9); color: #fff; }
.mega__item--featured .mega__ico svg { width: 24px; height: 24px; }
.topbar .mega__item--featured .mega__go { display: inline-flex; flex: none; align-items: center; gap: 6px; padding: 9px 14px; border-radius: 999px; background: #c63f26; color: #fff; font-size: .82rem; font-weight: 700; white-space: nowrap; }
.mega__item--featured .mega__go svg { transition: transform .2s; }
.mega__item--featured:hover .mega__go svg { transform: translateX(3px); }
.topbar .nav .mega__all { display: inline-flex; gap: 6px; margin: 10px 0 0 6px; padding: 4px 0; border-radius: 0; color: #b63c25; font-size: .875rem; font-weight: 700; }
.topbar .nav .mega__all:hover { background: transparent; text-decoration: underline; }
@keyframes mega-pop { from { opacity: 0; translate: 0 -6px; } to { opacity: 1; translate: none; } }
@media (max-width: 960px) {
  .topbar .has-mega { flex-wrap: wrap; border-radius: 12px; }
  .topbar .has-mega:hover { background: transparent; }
  .topbar .has-mega.is-open { background: #f6f7fa; }
  .topbar.has-menu .nav .has-mega > a { flex: 1; }
  .mega-toggle { width: 44px; height: 44px; margin-right: 0; border-radius: 12px; }
  .mega, .mega--wide { position: static; flex-basis: 100%; width: auto; padding: 0 0 6px; }
  .mega__panel { padding: 6px; border: 0; border-radius: 14px; background: transparent; box-shadow: none; }
  .topbar .mega__title { margin: 4px 0 10px 10px; }
  .mega__grid { grid-template-columns: minmax(0, 1fr); }
  .topbar.has-menu nav { max-height: calc(100vh - 96px); max-height: calc(100dvh - 96px); overflow-y: auto; overscroll-behavior: contain; }
  .topbar.has-menu .nav .mega__item { padding: 8px 10px; font-size: .925rem; }
  .topbar.has-menu .nav .mega__item:hover { background: #fff; }
  .topbar.has-menu .nav .mega__item--featured { gap: 12px; padding: 14px; }
  .mega__item--featured small { display: none; }
  .topbar .mega__item--featured .mega__go { padding: 9px; font-size: 0; gap: 0; }
  .mega__item--tool { align-items: center; }
  .mega__item--tool small { display: none; }
  .topbar.has-menu .nav .mega__all { margin: 4px 0 4px 10px; }
}

/* Footer */
.footer { padding-block: 16px 96px; }
.footer__in { display: grid; grid-template-columns: 2fr repeat(3, 1fr); gap: 28px; padding-top: 40px; border-top: 1px solid var(--sc-line); }
.footer__brand p { max-width: 38em; margin-top: 14px; color: var(--sc-muted); font-size: .9rem; line-height: 1.7; }
.footer h2 { margin-bottom: 8px; font-size: .875rem; font-weight: 700; letter-spacing: 0; line-height: 1.5; }
.footer a { display: inline-block; padding-block: 3px; color: var(--sc-muted); text-decoration: none; transition: color .2s; }
.footer a:hover { color: var(--sc-ink); }
.footer__pay { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 20px 40px; margin-top: 32px; padding-top: 28px; border-top: 1px solid var(--sc-line); }
.footer__pay h2 { font-size: .75rem; color: var(--sc-muted); text-transform: uppercase; letter-spacing: .06em; }
.pay-logos { display: flex; flex-wrap: wrap; gap: 8px; }
.pay-logo { display: inline-grid; place-items: center; min-width: 56px; height: 38px; padding: 0 10px; border-radius: 10px; background: #fff; box-shadow: 0 0 0 1px var(--sc-line); font-size: .75rem; font-weight: 700; transition: transform .2s var(--sc-ease), box-shadow .2s; }
.pay-logo:hover { transform: translateY(-2px); box-shadow: 0 0 0 1px #c3c9d4, var(--sc-shadow); }
.pay-logo--text { font-size: .8rem; font-weight: 800; color: #d6001c; letter-spacing: -.01em; }
.pay-logo--wide { display: inline-flex; align-items: center; gap: 8px; padding: 0 14px; font-size: .85rem; font-weight: 700; color: var(--sc-ink); }
.footer__secure { flex-basis: 100%; color: var(--sc-muted); font-size: .85rem; }
.footer__secure svg { display: inline-block; margin-right: 6px; vertical-align: -3px; }
.footer__legal { margin-top: 24px; color: var(--sc-muted); }

@keyframes sc-pop { from { opacity: 0; transform: translateY(-6px) scale(.98); } to { opacity: 1; transform: none; } }

@media (max-width: 960px) {
    .topbar { position: relative; grid-template-columns: 1fr auto; }
    .topbar nav { display: none; }
    /* has-menu is set by site-chrome.js, so without JS the links stay reachable from the footer. */
    .topbar.has-menu { grid-template-columns: 1fr auto auto; gap: 10px; }
    .topbar.has-menu .menu-toggle { display: grid; }
    .topbar.has-menu nav { position: absolute; top: calc(100% + 8px); left: 0; right: 0; padding: 8px; border: 1px solid var(--sc-line); border-radius: 18px; background: #fff; box-shadow: var(--sc-shadow); }
    .topbar.has-menu.is-open nav { display: block; animation: sc-pop .22s var(--sc-ease); }
    .topbar.has-menu .nav { flex-direction: column; gap: 2px; }
    .topbar.has-menu .nav a { padding: 12px 16px; border-radius: 12px; font-size: 1rem; }
    .footer__in { grid-template-columns: 1fr 1fr; }
    .footer__brand { grid-column: 1 / -1; }
}
@media (max-width: 620px) {
    .topbar { min-height: 62px; }
    .topbar img { width: 170px; height: auto; }
    .link-plain { display: none; }
}
@media (prefers-reduced-motion: reduce) {
    .topbar-shell *, .footer * { transition: none !important; animation: none !important; }
}
