/*
 * Akkademi V6 visual bridge
 *
 * This layer deliberately sits after the immutable V5 reference stylesheet.
 * It maps the existing live markup to the V5 design language without changing
 * business logic, URLs, form names, API contracts, or payment behaviour.
 */
:root {
  --v6-blue: #002d94;
  --v6-navy: #001F60;
  --v6-page: #ffffff;
  --v6-logo: #ffffff;
  --v6-surface: #FFFFFF;
  --v6-line: #DFE6F0;
  --v6-text: #10224A;
  --v6-muted: #5D6D86;
  --v6-focus: rgba(0, 51, 160, .24);
  --akk-mobile-dock-space: 0px;
  --akk-bottom-obstruction-space: 0px;
}

html, body {
  background: var(--v6-page) !important;
  color: var(--v6-text);
}

body {
  min-width: 0;
  font-family: "Source Sans 3", Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

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

a { color: var(--v6-blue); }

.v6-site-header.topbar {
  min-height: 80px;
  border-bottom: 1px solid var(--v6-line);
  background: rgba(252, 252, 250, .95);
  box-shadow: none;
  backdrop-filter: blur(18px) saturate(1.15);
}

.v6-site-header .topbar-inner {
  width: min(1200px, calc(100% - 40px));
  min-height: 80px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 24px;
}

.v6-brand.logo {
  gap: 12px;
  color: var(--v6-navy);
  text-decoration: none;
}

.v6-brand .v6-logo-shell {
  display: grid;
  flex: 0 0 58px;
  place-items: center;
  width: 58px;
  height: 58px;
  overflow: hidden;
  border: 1px solid #D7DDE8;
  border-radius: 12px;
  background: var(--v6-logo);
  box-shadow: 0 5px 15px rgba(0, 31, 96, .08);
}

.v6-brand .logo-mark {
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  object-fit: contain;
  background: var(--v6-logo);
}

.v6-brand .logo-text {
  display: grid;
  gap: 1px;
  color: var(--v6-navy);
  font-family: "American Typewriter", "Courier New", monospace;
  font-size: clamp(21px, 2.3vw, 29px);
  font-weight: 800;
  letter-spacing: -.05em;
  line-height: .95;
  text-transform: lowercase;
}

.v6-brand .logo-text small {
  color: var(--v6-muted);
  font-family: "Source Sans 3", Inter, sans-serif;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .01em;
}

.nav-toggle { display: none !important; }

.v6-desktop-nav.nav {
  display: flex;
  justify-content: center;
  gap: 3px;
  min-width: 0;
}

.v6-desktop-nav.nav a,
.v6-desktop-nav.nav button {
  min-height: 42px;
  padding: 0 11px;
  border-radius: 11px;
  color: #4C5B72;
  font-size: 13px;
  font-weight: 750;
  white-space: nowrap;
}

.v6-desktop-nav.nav a:hover,
.v6-desktop-nav.nav a:focus-visible,
.v6-desktop-nav.nav a[aria-current="page"] {
  background: #EEF3FF;
  color: var(--v6-blue);
  box-shadow: inset 0 -2px 0 var(--v6-blue);
}

.v6-desktop-nav .nav-auth-slot a {
  border: 1px solid #C9D7F0;
  background: var(--v6-surface);
  color: var(--v6-blue);
}

.account-menu { justify-self: end; }
.account-trigger { border-color: #C9D7F0 !important; background: var(--v6-surface) !important; color: var(--v6-navy) !important; }

.v6-robot-header .robot-logo-home {
  display: grid;
  flex: 0 0 58px;
  place-items: center;
  width: 58px;
  height: 58px;
  overflow: hidden;
  border: 1px solid #D7DDE8;
  border-radius: 12px;
  background: var(--v6-logo);
  box-shadow: 0 5px 15px rgba(0, 31, 96, .08);
}

.v6-robot-header .robot-logo-home img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: var(--v6-logo);
}

.v6-robot-header .robot-brand-link {
  color: var(--v6-navy);
  font-family: "American Typewriter", "Courier New", monospace;
  font-size: 23px;
  font-weight: 800;
  letter-spacing: -.045em;
}

main.shell {
  width: min(1200px, calc(100% - 40px));
  padding-bottom: 44px;
}

.v6-not-found {
  width: min(760px, calc(100% - 40px));
  min-height: calc(100vh - 180px);
  display: grid;
  align-content: center;
  justify-items: start;
  gap: 18px;
  padding: 80px 0;
}

.v6-not-found h1 { max-width: 620px; margin: 0; font-size: clamp(38px, 6vw, 70px); line-height: .98; }
.v6-not-found p:not(.eyebrow) { max-width: 560px; margin: 0; color: var(--v6-muted); font-size: 18px; line-height: 1.6; }

.view { color: var(--v6-text); }
.card, .route-panel, .report-panel, .practice-shell, .profile-card, .support-card,
.contact-card, .package-card, .exam-card, .question-card, .modal-card {
  border-color: var(--v6-line) !important;
  background: var(--v6-surface) !important;
  box-shadow: 0 10px 30px rgba(0, 31, 96, .07);
}

.cart-seller-trust {
  margin-top: 14px;
  border: 1px solid rgba(18, 129, 67, .16);
  border-radius: 8px;
  background: #f8fffb;
  padding: 11px 12px;
  display: grid;
  gap: 5px;
  color: rgba(45, 41, 53, .70);
  font-size: 13px;
  line-height: 1.4;
  font-weight: 650;
}

.cart-seller-trust strong {
  color: var(--ink, var(--v6-text));
  font-size: 13px;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.cart-seller-trust span,
.cart-seller-trust a {
  min-width: 0;
  overflow-wrap: anywhere;
}

.cart-seller-trust a {
  color: var(--brand, var(--v6-blue));
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.section, .route-panel, .member-workspace, .report-shell, .profile-shell { scroll-margin-top: 96px; }

h1, h2, h3, h4, .route-title, [data-route-title] {
  color: var(--v6-navy);
  letter-spacing: -.025em;
}

.lead, .muted, .route-copy, .auth-copy, .footer-copy { color: var(--v6-muted); }

.btn, button.btn, .form-primary, .form-secondary, .choice-button, .filter-button {
  min-height: 44px;
  border-color: #C9D7F0;
  border-radius: 11px;
  color: var(--v6-blue);
  font-weight: 800;
}

.btn-primary, button.btn-primary, .form-primary {
  border-color: var(--v6-blue) !important;
  background: var(--v6-blue) !important;
  color: #fff !important;
}

.btn:hover, button.btn:hover, .form-primary:hover, .form-secondary:hover,
.choice-button:hover, .filter-button:hover { transform: translateY(-1px); }

button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible,
textarea:focus-visible, summary:focus-visible {
  outline: 3px solid var(--v6-focus) !important;
  outline-offset: 2px;
}

.input, input, select, textarea {
  border-color: #C9D7F0;
  background: #fff;
  color: var(--v6-text);
}

.input:focus, input:focus, select:focus, textarea:focus {
  border-color: var(--v6-blue) !important;
  box-shadow: 0 0 0 3px var(--v6-focus) !important;
}

/* Public product families: a shared V5 card hierarchy rather than per-route paint. */
#view-sinav .exam-grid, #view-blog .blog-grid, #view-packages .package-grid,
#view-contact .contact-grid, #view-ales-deneme .ales-ad-results-grid,
#view-member .member-mode-grid, #view-report .report-grid {
  gap: clamp(12px, 1.6vw, 20px);
}

#view-sinav .exam-card, #view-blog .blog-card, #view-packages .package-card,
#view-contact .contact-card, #view-member .practice-shell, #view-report .report-panel,
#view-profile .profile-card {
  border-radius: 20px;
}

#view-sinav .exam-card:hover, #view-blog .blog-card:hover, #view-packages .package-card:hover {
  border-color: #AFC4E8 !important;
  box-shadow: 0 16px 34px rgba(0, 31, 96, .12);
}

#view-home .hero, #view-ales-deneme .ales-ad-hero, #view-sinav .route-hero,
#view-blog .route-hero, #view-packages .route-hero, #view-contact .route-hero {
  border-radius: 24px;
}

/* The old carousel remains in the DOM for compatibility, but the V5 hero is
   the only marketed home entry point. Its links use the live routes. */
html[data-page="home"] #view-home > .hero { display: none !important; }
html[data-page="home"] .v6-marketing-hero { display: block; }
html[data-page="home"] .v6-marketing-hero .hero-trust {
  margin: 22px 0 0;
  padding: 0;
  color: var(--v6-muted);
  list-style: none;
}
html[data-page="home"] .v6-marketing-hero .hero-trust li {
  display: inline-flex;
  align-items: center;
  margin: 0 14px 8px 0;
  font-size: 13px;
  font-weight: 750;
}
html[data-page="home"] .v6-marketing-hero .hero-trust li::before {
  width: 18px;
  height: 18px;
  margin-right: 7px;
  border-radius: 50%;
  background: #EAF1FF;
  color: var(--v6-blue);
  content: "✓";
  font-size: 11px;
  line-height: 18px;
  text-align: center;
}

#view-home .ak-home-ales-carousel, #view-ales-deneme .ales-ad-hero,
#view-sinav .exam-card, #view-blog .blog-card, #view-packages .package-card {
  overflow: hidden;
}

#view-member .practice-shell, #view-member .diagnostic-question-card,
#view-member .member-question-card, #view-report .report-panel, #view-profile .profile-card {
  border-radius: 18px !important;
}

#view-member .option-item, #view-member .diagnostic-option, #view-member .answer-option {
  border-color: #C9D7F0 !important;
  background: #fff !important;
}

#view-member .option-item:has(input:checked), #view-member .diagnostic-option:has(input:checked),
#view-member .answer-option:has(input:checked) {
  border-color: var(--v6-blue) !important;
  background: #EEF3FF !important;
}

/* V5 footer language. */
.footer {
  margin-top: 40px;
  border-top: 1px solid var(--v6-line);
  background: #F7F9FD;
  color: var(--v6-muted);
}

.footer a, .footer-link { color: var(--v6-blue); }

/* Dynamically rendered blog pages use the same card, surface and reading rhythm. */
.akk-blog-shell {
  width: min(1120px, calc(100% - 40px)) !important;
  max-width: none !important;
  padding: 32px 0 60px !important;
  color: var(--v6-text) !important;
}

.akk-blog-header {
  min-height: 72px;
  gap: 12px !important;
  border-bottom-color: var(--v6-line) !important;
}

.akk-blog-logo {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  overflow: hidden;
  border: 1px solid #D7DDE8;
  border-radius: 12px;
  background: var(--v6-logo);
}

.akk-blog-logo img { width: 100% !important; height: 100% !important; border-radius: 0 !important; object-fit: contain; background: var(--v6-logo); }
.akk-blog-wordmark, .akk-blog-wordmark span { color: var(--v6-navy) !important; font-family: "American Typewriter", "Courier New", monospace; }
.akk-blog-breadcrumb, .akk-blog-date { color: var(--v6-muted) !important; }
.akk-blog-breadcrumb a, .akk-blog-index-nav a, .akk-blog-card a, .akk-blog-article a { color: var(--v6-blue) !important; }
.akk-blog-index-nav a { border-color: #C9D7F0 !important; border-radius: 999px !important; background: #fff !important; }
.akk-blog-list { gap: 16px !important; }
.akk-blog-card, .akk-blog-article, .akk-blog-sources, .akk-blog-callout, .akk-blog-table-wrap {
  border-color: var(--v6-line) !important;
  border-radius: 18px !important;
  background: #fff !important;
  box-shadow: 0 10px 30px rgba(0, 31, 96, .06);
}

.akk-blog-card { padding: 22px !important; }
.akk-blog-article { padding: clamp(22px, 4vw, 48px); }
.akk-blog-article h1, .akk-blog-index h1 { color: var(--v6-navy) !important; }
.akk-blog-article p, .akk-blog-article li, .akk-blog-index > p { color: #42516A; }

/* The V5 mobile system: there is intentionally no hamburger fallback. */
.v6-mobile-dock {
  display: none;
}

@media (max-width: 980px) {
  body { padding-bottom: max(calc(76px + env(safe-area-inset-bottom)), calc(var(--akk-bottom-obstruction-space, 0px) + 8px)); }
  .v6-site-header .topbar-inner {
    width: min(100% - 24px, 720px);
    min-height: 72px;
    grid-template-columns: auto 1fr auto;
    gap: 10px;
  }
  .v6-brand .v6-logo-shell { width: 50px; height: 50px; flex-basis: 50px; }
  .v6-brand .logo-text { font-size: 23px; }
  .v6-brand .logo-text small { display: none; }
  .v6-desktop-nav.nav { display: none !important; }
  .v6-robot-header .robot-logo-home { width: 50px; height: 50px; flex-basis: 50px; }
  .v6-robot-header .robot-brand-link { font-size: 21px; }
  .account-menu { max-width: 145px; }
  main.shell { width: min(100% - 24px, 720px); padding-bottom: 22px; }
  html[data-page="packages"] main.shell,
  html[data-page="cart"] main.shell {
    padding-bottom: max(calc(150px + env(safe-area-inset-bottom)), calc(var(--akk-bottom-obstruction-space, 0px) + 20px));
  }
  html[data-page="packages"],
  html[data-page="cart"] {
    scroll-padding-bottom: max(calc(170px + env(safe-area-inset-bottom)), calc(var(--akk-bottom-obstruction-space, 0px) + 28px));
  }
  html[data-page="packages"] .pricing-card,
  html[data-page="packages"] .package-new-price,
  html[data-page="packages"] .pricing-cta,
  html[data-page="cart"] .cart-panel,
  html[data-page="cart"] .cart-summary {
    scroll-margin-bottom: max(calc(170px + env(safe-area-inset-bottom)), calc(var(--akk-bottom-obstruction-space, 0px) + 28px));
  }
  .v6-not-found { width: min(100% - 24px, 720px); min-height: calc(100vh - 150px); padding: 48px 0 120px; }
  .v6-mobile-dock {
    position: fixed;
    z-index: 2147482000;
    left: 50%;
    bottom: max(4px, env(safe-area-inset-bottom));
    display: block;
    width: min(calc(100vw - 12px), 414px);
    transform: translateX(-50%);
  }
  .v6-mobile-dock-inner {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 2px;
    padding: 4px;
    border: 1px solid #CBD6E5;
    border-radius: 18px;
    background: rgba(252, 252, 250, .98);
    box-shadow: 0 12px 28px rgba(0, 31, 96, .16);
    backdrop-filter: blur(18px);
  }
  .v6-dock-item {
    display: grid;
    min-width: 0;
    min-height: 48px;
    place-items: center;
    align-content: center;
    gap: 2px;
    padding: 5px 0 4px;
    border: 1px solid transparent;
    border-radius: 13px;
    color: #55627a;
    font-size: 12px;
    font-weight: 850;
    line-height: 1.05;
    text-align: center;
    text-decoration: none;
  }
  .v6-dock-item svg { width: 24px; height: 24px; stroke: currentColor; }
  .v6-dock-item[aria-current="page"] {
    border-color: #AFC4E8;
    background: #EEF3FF;
    color: var(--v6-blue);
  }
  .v6-dock-item:focus-visible { outline: 3px solid var(--v6-focus); outline-offset: 1px; }
  .footer { padding-bottom: max(calc(78px + env(safe-area-inset-bottom)), calc(var(--akk-bottom-obstruction-space, 0px) + 12px)); }
  .akk-blog-shell { width: min(100% - 24px, 720px) !important; padding-top: 18px !important; }
}

@media (max-width: 420px) {
  .v6-brand .logo-text { font-size: 21px; }
  .account-menu { max-width: 120px; }
  .account-trigger { max-width: 120px !important; }
  .v6-dock-item { font-size: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; transition-duration: .01ms !important; }
}

.nav-exam-menu { position:relative; }
.nav-exam-menu summary { min-height:44px; display:flex; align-items:center; padding:0 16px; cursor:pointer; color:var(--v6-ink); font-size:14px; font-weight:700; list-style:none; }
.nav-exam-menu summary::-webkit-details-marker { display:none; }
.nav-exam-menu summary::after { content:"⌄"; margin-left:6px; }
.nav-exam-popover { position:absolute; z-index:70; top:calc(100% + 6px); left:0; min-width:210px; padding:6px; border:1px solid var(--v6-line); border-radius:6px; background:#fff; box-shadow:0 12px 28px rgba(20,39,74,.16); }
.nav-exam-popover a { min-height:44px; display:flex; align-items:center; padding:0 10px; font-size:14px; }
.nav-start-link { min-height:44px !important; background:#002d94 !important; color:#fff !important; }
.v210-mobile-menu { display:none; }
.footer-exam-links { margin-top:18px; }
.footer-exam-links h2 { margin:0 0 8px; font-size:14px; }
.footer-exam-links ul { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:8px 14px; padding:0; margin:0; list-style:none; }
.footer-exam-links a { min-height:44px; display:flex; align-items:center; font-size:14px; }
.p2-package-terms { margin:10px 0 0; font-size:14px; line-height:1.45; }
.p2-package-terms a { min-height:44px; display:inline-flex; align-items:center; }
.p2-package-trust { display:flex; flex-wrap:wrap; gap:10px 18px; margin:20px 0; font-size:14px; line-height:1.45; }
.p2-package-trust a { min-height:44px; display:inline-flex; align-items:center; }
.p2-mobile-compare { display:none; }
@media (max-width:760px) {
  .p2-mobile-compare { display:grid; grid-template-columns:repeat(3, minmax(0, 1fr)); gap:6px; margin:12px 0; }
  .p2-mobile-compare > div { min-width:0; padding:8px 6px; border:1px solid var(--line, #d9e0e8); border-radius:6px; background:#fff; }
  .p2-mobile-compare strong, .p2-mobile-compare span { display:block; overflow-wrap:anywhere; font-size:14px; line-height:1.35; }
  .p2-mobile-compare span + span { margin-top:4px; }
}
@media (max-width:980px) {
  .v210-mobile-menu { display:block; position:relative; z-index:60; border-bottom:1px solid var(--v6-line); background:#fff; }
  .v210-mobile-menu > summary { min-height:44px; display:flex; align-items:center; padding:0 16px; cursor:pointer; color:var(--v6-ink); font-size:14px; font-weight:700; }
  .v210-mobile-menu-panel { display:grid; gap:2px; padding:8px 16px 14px; border-top:1px solid var(--v6-line); }
  .v210-mobile-menu-panel > a,.v210-mobile-menu-panel details > summary,.v210-mobile-menu-panel details > a { min-height:44px; display:flex; align-items:center; padding:0 10px; color:var(--v6-ink); font-size:14px; font-weight:700; }
  .v210-mobile-menu-panel details > a { margin-left:10px; font-weight:500; }
  .v210-mobile-start { justify-content:center; background:#002d94; color:#fff !important; }
  .footer-exam-links ul { grid-template-columns:1fr; }
}

/* A5 2026-11-16 eski nginx kopyasi birlestirme: 20.08.2026 "MOBILE_COOKIE_DOCK_FIX" kopyasinda olup depoda olmayan kurallar (birebir). Kopya artik sunulmuyor. */
body.cookie-panel-open {
  padding-bottom: max(96px, calc(var(--akk-bottom-obstruction-space, 0px) + 18px)) !important;
}

body.cookie-panel-open main.shell {
  padding-bottom: max(120px, calc(var(--akk-bottom-obstruction-space, 0px) + 18px)) !important;
}

@media (max-width: 980px) {
  body.cookie-panel-open {
    padding-bottom: max(calc(170px + env(safe-area-inset-bottom)), calc(var(--akk-bottom-obstruction-space, 0px) + 18px)) !important;
  }

  body.cookie-panel-open main.shell {
    padding-bottom: max(calc(170px + env(safe-area-inset-bottom)), calc(var(--akk-bottom-obstruction-space, 0px) + 18px)) !important;
  }
}

@media (max-width: 620px) {
  .cookie-panel {
    bottom: max(calc(76px + env(safe-area-inset-bottom)), calc(var(--akk-mobile-dock-space, 72px) + 8px)) !important;
    max-height: min(38dvh, 300px) !important;
  }
}

@media (max-width: 980px) {
  main.shell {
    padding-bottom: max(40px, calc(var(--akk-mobile-dock-space, 0px) + 24px)) !important;
  }
}

@media (max-width: 340px) {
  .topbar-inner {
    width: calc(100% - 16px) !important;
    min-width: 0 !important;
  }

  .logo {
    min-width: 0 !important;
    max-width: 100% !important;
    gap: 8px !important;
    font-size: 22px !important;
  }

  .logo-mark,
  .v6-brand .v6-logo-shell {
    width: 48px !important;
    height: 48px !important;
    flex-basis: 48px !important;
  }

  html[data-page="register"] #view-register .auth-card,
  html[data-page="register"] #register-form,
  html[data-page="register"] #register-form .field,
  html[data-page="register"] #register-form .input,
  html[data-page="register"] .register-password-wrap,
  html[data-page="register"] .consent-group,
  html[data-page="register"] .consent-section,
  html[data-page="register"] .consent-label,
  html[data-page="register"] .optional-consents,
  html[data-page="login"] #view-login .auth-card,
  html[data-page="login"] #login-form,
  html[data-page="login"] #login-form .field,
  html[data-page="login"] #login-form .input {
    min-width: 0 !important;
    max-width: 100% !important;
    width: auto !important;
  }

  html[data-page="register"] #register-form,
  html[data-page="register"] #register-form .field,
  html[data-page="login"] #login-form,
  html[data-page="login"] #login-form .field {
    grid-template-columns: minmax(0, 1fr) !important;
  }
}

/* A5 2026-11-16 ust uste binme (yalniz yerlesim): cerez bandi/sekmesi aciksa alt menu onun ustune cikar, bant alt menuyu ortmez. */
@media (max-width: 980px) {
  html.akk-cb .v6-mobile-dock { bottom: calc(var(--akk-cb-h, 0px) + max(4px, env(safe-area-inset-bottom))); }
}

/* HAYATI 2026-11-26 tasma (yalniz yerlesim): blog yazilarinda uzun adresler (osym.gov.tr/...) 390 px'te satir sonuna sigsin. */
.akk-blog-article a, .akk-blog-article li, .akk-blog-article p, .akk-blog-article td { overflow-wrap: anywhere; }
.akk-blog-article { min-width: 0; }
