/* ============================================================
   style-nova-modern.css — "quick wins" modernization layer
   Loaded LAST (after style-s3ek2nnrm-min4 + nova-baslik-v01),
   so equal-specificity rules here win. Nothing here is critical:
   without this file the site still renders the legacy way.
   v1 — 2026-09-02
   ============================================================ */

/* --- resets & fluid baseline (QW1 + QW4) --- */
*, *::before, *::after { box-sizing: border-box; }

body {
  font-size: 16px;
  line-height: 1.55;
}

img { max-width: 100%; height: auto; }

/* fixed-width layout -> fluid (QW1) */
#site_content { width: auto; max-width: 830px; padding: 20px 12px 0; }
#content      { width: auto; min-width: 0; max-width: 620px; float: left; }
.content_item { width: auto; max-width: 710px; }
.content_text { width: auto; max-width: 520px; }
.sidebar_container { width: 180px; }
.sidebar_item { width: auto; padding: 10px 12px; }

/* sidebar: unfloat inner box, center fluid button-links (fixes right lean) */
.sidebar { float: none; width: auto; padding-left: 0; margin: 0 auto; }
.sidebar h2 { text-align: center; }
a.tussal {
  display: block;
  width: auto; max-width: 100%;
  margin: 8px auto;
  padding: 10px 14px;
  line-height: 1.2;
  text-align: center;
  transition: background 0.15s ease;
}

/* hover/focus must keep the modern geometry: legacy .sidebar a:hover
   (width:130px; margin:0; padding-left:6px; line-height:2.5em) otherwise
   snaps the fluid centered buttons back into a narrow, left-pinned,
   taller box. Same specificity (0,2,1), but this file loads last -> wins. */
a.tussal:hover,
a.tussal:focus {
  width: auto; max-width: 100%;
  margin: 8px auto;
  padding: 10px 14px;
  line-height: 1.2;
  text-align: center;
  color: #eef;
  background: #04547e;
  box-shadow: 0 2px 3px rgba(4, 105, 155, 0.45);
  text-decoration: none;
}

/* --- P1.4: system font stack, keep legacy sizes --- */
body {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* --- P1.5: skip link + screen-reader utility --- */
header, nav, main, aside, footer, article { display: block; } /* safety for old browsers */
.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: #01679a; color: #fff;
  padding: 10px 16px; border-radius: 0 0 8px 0;
  z-index: 100; text-decoration: none;
}
.skip-link:focus { left: 0; color: #fff; }
#content:focus { outline: none; }
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* --- P1.2: hamburger via checkbox hack (no JS, works with JS disabled) --- */
.nav-toggle { position: absolute; opacity: 0; }
.nav-burger { display: none; }

@media (max-width: 700px) {
  .nav-burger {
    display: inline-block;
    position: relative;
    width: 52px; height: 44px;
    margin: 0 10px 0 auto;
    background: #01679a;
    border-radius: 8px;
    cursor: pointer;
  }
  .nav-burger::before {
    content: "";
    position: absolute; top: 50%; left: 13px; right: 13px; height: 3px;
    margin-top: -1.5px;
    background: #fff;
    box-shadow: 0 -7px 0 #fff, 0 7px 0 #fff;
  }
  .nav-burger:hover { background: #04547e; }
  .nav-toggle:focus ~ .nav-burger { outline: 2px solid #fff; outline-offset: 2px; }

  /* (1,0,2) beats the base ul#menu {display:flex} rule from QW2 */
  nav#menubar {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;   /* burger on the right */
    align-items: center;
  }
  nav#menubar ul#menu { display: none; }
  nav#menubar #nav-toggle:checked ~ ul#menu {
    display: flex;
    flex-direction: column;
    flex-basis: 100%;            /* open menu takes its own full-width row */
    margin-top: 6px;
  }
  ul#menu li { width: 100%; }
  ul#menu li a { width: 100%; padding: 12px 16px; }
  ul#menu li + li a { border-top: 1px solid rgba(255, 255, 255, 0.25); }
}

/* --- P1.3: share widget (inline SVG icons injected by paylas5p2-min.js) --- */
#paylas { margin: 10px 0; }
#paylas svg { vertical-align: middle; }
#paylas a { text-decoration: none; }
#paylas a:hover svg { fill: #04547e; }

/* --- headings & header block (QW4) --- */
h1, h2, h3, h4, h5, h6 { letter-spacing: normal; }
h1 { font-size: 150%; }
h2 { font-size: 140%; }

#site_heading { width: auto; height: auto; margin-bottom: 10px; padding: 6px 0 0 4px; }
#header { height: auto; }

/* logo + title row: flex instead of absolute positioning (QW4) */
div.sar {
  width: auto; height: auto;
  display: flex; align-items: center; gap: 12px;
  flex-wrap: wrap;
}
div.sar img { flex: 0 0 auto; }
div.sar h1, div.sar h2 { position: static; float: none; width: auto; }
div.sar h2 { flex-basis: 100%; }
#site_heading h1 {
  width: auto;
  font-size: clamp(1.5rem, 5vw, 2.1rem);
  letter-spacing: normal;
}
#site_heading h2 { width: auto; font-size: clamp(0.95rem, 3vw, 1.1rem); }

/* --- menu: visible and touch-friendly on every width (QW2) --- */
#menubar {
  width: auto; max-width: 780px;
  height: auto;
  padding: 8px 10px;
  border-radius: 12px;
  display: block;               /* undoes the 580px display:none */
}
ul#menu {
  display: flex; flex-wrap: wrap; justify-content: center;
  gap: 2px 0;
  margin: 0;
}
ul#menu li { display: block; margin: 0; }
ul#menu li a {
  display: block;
  min-height: 44px;
  line-height: 20px;
  padding: 12px 16px;
  font-size: 105%;
  letter-spacing: normal;
  text-shadow: none;
  box-sizing: border-box;
}

/* --- CTA button: CSS instead of PNG (QW5) --- */
ol:has(> li.button) { list-style: none; padding: 0; margin: 14px auto; }
li.button, li.asasabutton {
  width: auto; height: auto;
  margin: 0 auto;
  background: none;
  list-style: none;
  display: block;
  text-align: center;
  line-height: normal;
}
li.button a {
  display: inline-block;
  background: linear-gradient(#0b7dbd, #04699b);
  color: #fff;
  font-size: 1.25rem;
  line-height: 1.25;
  padding: 18px 36px;
  border-radius: 12px;
  box-shadow: 0 3px 8px rgba(4, 105, 155, 0.35);
  text-decoration: none;
}
li.button a:hover, li.button a:focus { background: #034f75; color: #fff; }
li.button a span { color: #fff; font-family: inherit; }
#tiklatus { width: auto; max-width: 100%; }

/* --- one accent: kill yellow glow, unify blue (QW6) --- */
h1, h2, h3, h4, h5, h6 { text-shadow: none; }
#site_heading h1 { color: #04699b; }
#site_heading h2 { color: #0d3c5a; }
ul#menu li a { text-shadow: none; }
#footer { text-shadow: none; }
.sidebar h2, .sidebar h4 { text-shadow: none; }

/* footer fluid (QW1) */
#footer { width: auto; max-width: 780px; height: auto; padding: 16px 20px; border-radius: 12px; }

/* intro image behaves on narrow screens */
#introimg img { max-width: 100%; height: auto; }

/* gutter between 50% float columns (ozellikler grid) */
.sutun { padding-right: 4%; }

/* ============================================================
   Mobile: stack everything under 700px (QW3)
   ============================================================ */
@media (max-width: 700px) {
  #content {
    float: none;
    width: auto;
    max-width: none;
    padding-right: 0;
  }
  .sidebar_container {
    float: none;
    width: 100%;
    margin: 16px 0 20px;
  }
  .sidebar { float: none; width: auto; }
  .sidebar_item { padding: 12px 16px; }

  .sutun { width: 100%; float: none; padding-right: 0; }

  #introimg { float: none; text-align: center; padding-right: 0; }

  ul#menu li a { padding: 12px 10px; }

  #footer { width: auto; }

  .giris { font-size: 105%; }
}
