/* MekanSistemi Türkçe Yardım - Ana Stil */
* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: 'Google Sans', Roboto, Arial, sans-serif;
  font-size: 14px;
  color: #202124;
  background: #fff;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* ── Header ── */
.site-header {
  background: #1a73e8;
  color: #fff;
  padding: 0 16px;
  height: 64px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 2px 4px rgba(0,0,0,.2);
  position: sticky;
  top: 0;
  z-index: 100;
}
.site-header .logo {
  width: 40px;
  height: 40px;
  background: #fff;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: #1a73e8;
  font-size: 18px;
  text-decoration: none;
  flex-shrink: 0;
}
.site-header h1 {
  font-size: 18px;
  font-weight: 500;
  flex: 1;
}
.site-header h1 a { color: #fff; text-decoration: none; }
.search-box {
  background: rgba(255,255,255,.15);
  border: 1px solid rgba(255,255,255,.3);
  border-radius: 24px;
  padding: 8px 16px;
  color: #fff;
  width: 240px;
  font-size: 14px;
  outline: none;
}
.search-box::placeholder { color: rgba(255,255,255,.7); }
.search-box:focus { background: rgba(255,255,255,.25); }

/* ── Layout ── */
.layout {
  display: flex;
  flex: 1;
}

/* ── Sidebar ── */
.sidebar {
  width: 280px;
  min-width: 280px;
  background: #f8f9fa;
  border-right: 1px solid #e0e0e0;
  overflow-y: auto;
  padding: 16px 0;
  position: sticky;
  top: 64px;
  height: calc(100vh - 64px);
}
.sidebar ul { list-style: none; }
.sidebar > ul > li { margin-bottom: 2px; }

.nav-section-title {
  display: block;
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 600;
  color: #5f6368;
  text-transform: uppercase;
  letter-spacing: .5px;
  cursor: pointer;
  text-decoration: none;
}
.nav-section-title:hover { color: #1a73e8; }

.nav-section > ul {
  display: none;
  padding-left: 0;
}
.nav-section.open > ul { display: block; }
.nav-section > .nav-section-title::before {
  content: '▶';
  font-size: 10px;
  margin-right: 6px;
  transition: transform .15s;
}
.nav-section.open > .nav-section-title::before { transform: rotate(90deg); }

.nav-item {
  display: block;
  padding: 7px 16px 7px 32px;
  color: #3c4043;
  text-decoration: none;
  font-size: 13px;
  border-left: 3px solid transparent;
  transition: background .1s;
}
.nav-item:hover { background: #e8f0fe; color: #1a73e8; }
.nav-item.active { border-left-color: #1a73e8; background: #e8f0fe; color: #1a73e8; font-weight: 500; }

.nav-sub > ul { display: none; }
.nav-sub.open > ul { display: block; }
.nav-sub > .nav-item { padding-left: 32px; }
.nav-sub > .nav-item::before { content: '▶'; font-size: 9px; margin-right: 6px; }
.nav-sub.open > .nav-item::before { transform: rotate(90deg); display: inline-block; }
.nav-sub > ul > li > a { padding-left: 48px; font-size: 12.5px; }
.nav-sub > ul > li > ul > li > a { padding-left: 60px; font-size: 12px; }

/* ── Main Content ── */
.main-content {
  flex: 1;
  padding: 32px 48px;
  max-width: 900px;
}

h1.page-title {
  font-size: 28px;
  font-weight: 400;
  color: #202124;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid #e0e0e0;
}
h2 { font-size: 20px; font-weight: 500; margin: 28px 0 12px; color: #202124; }
h3 { font-size: 16px; font-weight: 500; margin: 20px 0 8px; color: #3c4043; }
h4 { font-size: 14px; font-weight: 600; margin: 16px 0 6px; color: #5f6368; }

p { line-height: 1.7; margin-bottom: 12px; color: #3c4043; }
ul, ol { margin: 8px 0 16px 24px; }
li { line-height: 1.8; color: #3c4043; }
strong { color: #202124; }

/* Cards on home page */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin-top: 24px;
}
.card {
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 20px;
  text-decoration: none;
  color: #202124;
  transition: box-shadow .15s, border-color .15s;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.card:hover { box-shadow: 0 2px 8px rgba(0,0,0,.15); border-color: #1a73e8; }
.card .card-icon { font-size: 28px; }
.card h3 { margin: 0; font-size: 15px; color: #1a73e8; }
.card p { margin: 0; font-size: 13px; color: #5f6368; }

/* Info box */
.info-box {
  background: #e8f4fd;
  border-left: 4px solid #1a73e8;
  border-radius: 4px;
  padding: 12px 16px;
  margin: 16px 0;
  font-size: 13.5px;
  color: #3c4043;
}
.warn-box {
  background: #fef7e0;
  border-left: 4px solid #fbbc04;
  border-radius: 4px;
  padding: 12px 16px;
  margin: 16px 0;
  font-size: 13.5px;
}

/* Table */
table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0;
  font-size: 13.5px;
}
th {
  background: #f8f9fa;
  border: 1px solid #e0e0e0;
  padding: 10px 12px;
  text-align: left;
  font-weight: 600;
  color: #3c4043;
}
td {
  border: 1px solid #e0e0e0;
  padding: 9px 12px;
  color: #3c4043;
}
tr:nth-child(even) td { background: #fafafa; }

/* Code */
code {
  background: #f1f3f4;
  border-radius: 4px;
  padding: 2px 6px;
  font-family: 'Roboto Mono', monospace;
  font-size: 12.5px;
  color: #c62828;
}
pre {
  background: #f1f3f4;
  border-radius: 6px;
  padding: 16px;
  overflow-x: auto;
  margin: 12px 0;
}
pre code { background: none; padding: 0; color: #202124; }

/* Breadcrumb */
.breadcrumb {
  font-size: 13px;
  color: #5f6368;
  margin-bottom: 20px;
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.breadcrumb a { color: #1a73e8; text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb span { color: #9aa0a6; }

/* Footer */
.site-footer {
  background: #f8f9fa;
  border-top: 1px solid #e0e0e0;
  padding: 16px 48px;
  font-size: 12px;
  color: #5f6368;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}

/* Hamburger for mobile */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: #fff;
  font-size: 22px;
  cursor: pointer;
  padding: 4px;
}

@media (max-width: 768px) {
  .menu-toggle { display: block; }
  .sidebar {
    position: fixed;
    left: -300px;
    top: 64px;
    z-index: 99;
    transition: left .25s;
    height: calc(100vh - 64px);
    box-shadow: 2px 0 8px rgba(0,0,0,.2);
  }
  .sidebar.open { left: 0; }
  .search-box { width: 140px; }
  .main-content { padding: 24px 20px; }
}

/* Step numbers */
.steps ol { counter-reset: step; list-style: none; margin-left: 0; }
.steps ol li {
  counter-increment: step;
  padding: 10px 10px 10px 44px;
  position: relative;
  margin-bottom: 8px;
  background: #f8f9fa;
  border-radius: 6px;
}
.steps ol li::before {
  content: counter(step);
  position: absolute;
  left: 12px;
  top: 10px;
  background: #1a73e8;
  color: #fff;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
}

/* Image placeholder */
.img-placeholder {
  background: #f1f3f4;
  border: 2px dashed #dadce0;
  border-radius: 6px;
  padding: 24px;
  text-align: center;
  color: #9aa0a6;
  font-size: 13px;
  margin: 16px 0;
}
.img-placeholder img {
  max-width: 100%;
  border-radius: 4px;
  display: block;
  margin: 0 auto;
}

/* ── Image enhancements ── */
.img-placeholder img {
  transition: transform .2s, box-shadow .2s;
  cursor: zoom-in;
}
.img-placeholder img:hover {
  transform: scale(1.02);
  box-shadow: 0 4px 16px rgba(0,0,0,.2);
}
.img-placeholder a {
  display: block;
}

/* Lightbox overlay */
#lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.85);
  z-index: 999;
  align-items: center;
  justify-content: center;
  cursor: zoom-out;
}
#lightbox.open { display: flex; }
#lightbox img {
  max-width: 92vw;
  max-height: 90vh;
  border-radius: 6px;
  box-shadow: 0 8px 32px rgba(0,0,0,.5);
}
#lightbox-close {
  position: fixed;
  top: 16px;
  right: 20px;
  color: #fff;
  font-size: 32px;
  cursor: pointer;
  line-height: 1;
  z-index: 1000;
}
