/* base.css, uygulama kabugu icin html ve body'ye overflow:hidden veriyor -
   uygulamada kaydirma ic kapsayicilarda yapildigi icin dogru. Ama paylasim
   sayfasi normal bir belge; orada ayni kural sayfayi hic kaydirilamaz
   yapiyordu ve uzun bir notun altini kimse goremiyordu. */
html.share-doc,
html.share-doc body {
  height: auto;
  min-height: 100%;
  overflow: visible;
}

/* ============================================
   Herkese acik not goruntuleyici
   ============================================ */

.share-page {
  background: var(--bg-base);
  color: var(--text-primary);
  font-family: var(--font-sans);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  margin: 0;
}

/* --- Ust bar --- */
.share-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 24px;
  border-bottom: 1px solid var(--border);
  background: var(--bg-surface);
  position: sticky;
  top: 0;
  z-index: 10;
}

.share-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text-primary);
  font-weight: 600;
  letter-spacing: -0.01em;
}

.share-brand img { border-radius: var(--radius-sm); }

.share-cta {
  display: inline-block;
  padding: 8px 16px;
  border-radius: var(--radius);
  background: var(--accent);
  color: #fff;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: background var(--transition-fast);
  white-space: nowrap;
}

.share-cta:hover { background: var(--accent-hover); }
.share-cta:focus-visible { outline: 2px solid var(--accent-hover); outline-offset: 2px; }

/* --- Govde --- */
.share-main {
  flex: 1;
  width: 100%;
  max-width: 780px;
  margin: 0 auto;
  padding: 48px 24px 72px;
  box-sizing: border-box;
}

.share-loading,
.share-empty {
  color: var(--text-muted);
  text-align: center;
  padding: 48px 0;
}

.share-note-head {
  padding-bottom: 24px;
  margin-bottom: 32px;
  border-bottom: 1px solid var(--border);
}

.share-icon { font-size: 40px; line-height: 1; margin-bottom: 14px; }

.share-title {
  font-size: clamp(28px, 5vw, 40px);
  line-height: 1.15;
  letter-spacing: -0.025em;
  font-weight: 700;
  margin: 0 0 14px;
  text-wrap: balance;
}

.share-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
  font-size: 14px;
}

.share-dot { opacity: 0.5; }

.share-author {
  color: var(--accent-hover);
  text-decoration: none;
  font-weight: 500;
}

.share-author:hover { text-decoration: underline; }

/* --- Not icerigi ---
   Icerik .page-card > .page-editor icinde render ediliyor; tipografi,
   kod bloklari ve bilesen stilleri editor.css ile components.css'ten
   geliyor. Burada yalnizca paylasim sayfasina ozel duzeltmeler var:
   salt-okunur davranis ve tasma kontrolu. */

.share-readonly {
  cursor: default;
  min-height: 0;
  /* Editordeki yatay dolgu, sayfa kartinin ic bosluguydu. Kart olmadigi
     icin burada gereksiz - icerik metin sutunuyla hizali baslasin. */
  padding: 0;
}

.share-readonly:focus { background: none; }

/* Genis icerik sayfayi yana kaydirmamali; kendi icinde kaysin. */
.share-readonly pre,
.share-readonly table,
.share-readonly .code-block-wrapper {
  max-width: 100%;
  overflow-x: auto;
}

.share-readonly img,
.share-readonly video {
  max-width: 100%;
  height: auto;
}

/* iframe'e height:auto verilmez: gomulu cerceve icsel bir en-boy oranina
   sahip degildir ve auto onu tarayicinin 150px varsayilanina dusurur -
   videolar ezik goruntuleniyordu. Oran acikca sabitlenir. */
.share-readonly iframe {
  display: block;
  max-width: 100%;
  width: 100%;
  aspect-ratio: 16 / 9;
  height: auto;
  border: 0;
}

.share-page-section { margin-bottom: 28px; }

.share-page-name {
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 600;
  margin: 0 0 12px;
}

/* --- Profil sayfasi --- */
.profile-head {
  display: flex;
  align-items: center;
  gap: 18px;
  padding-bottom: 28px;
  margin-bottom: 28px;
  border-bottom: 1px solid var(--border);
}

.profile-avatar {
  width: 72px;
  height: 72px;
  flex: 0 0 72px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, var(--accent), #8b5cf6);
  box-shadow: var(--accent-glow);
}

.profile-name {
  font-size: clamp(24px, 4vw, 32px);
  letter-spacing: -0.02em;
  margin: 0 0 6px;
}

.profile-sub {
  color: var(--text-muted);
  font-size: 14px;
  margin: 0;
}

.profile-section-title {
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 600;
  margin: 0 0 16px;
}

.profile-notes {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.profile-note-card {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 16px 18px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--bg-surface);
  text-decoration: none;
  color: var(--text-primary);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast), transform var(--transition-fast);
}

.profile-note-card:hover {
  border-color: var(--border-strong);
  box-shadow: var(--shadow);
  transform: translateY(-1px);
}

.profile-note-icon { font-size: 22px; line-height: 1.3; }

.profile-note-body {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.profile-note-title {
  font-weight: 600;
  font-size: 16px;
  letter-spacing: -0.01em;
}

.profile-note-snippet {
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.5;
}

.profile-note-date {
  color: var(--text-muted);
  font-size: 12.5px;
  margin-top: 2px;
}

/* --- Hata --- */
.share-error { text-align: center; padding: 64px 0; }
.share-error h1 { font-size: 26px; margin: 0 0 10px; }
.share-error p { color: var(--text-muted); margin: 0 0 24px; }

/* --- Alt bilgi --- */
.share-footer {
  border-top: 1px solid var(--border);
  padding: 20px 24px;
  text-align: center;
}

.share-footer p { color: var(--text-muted); font-size: 13px; margin: 0; }

@media (max-width: 560px) {
  .share-main { padding: 32px 18px 56px; }
}

/* --- /claude rehber sayfasi -------------------------------------------- */

.docs-tagline {
  color: var(--text-secondary);
  font-size: 16px;
  line-height: 1.6;
  margin: 10px 0 0;
  max-width: 60ch;
}

.docs-block { margin-top: 44px; }

.docs-block > h2 {
  font-size: 20px;
  margin: 0 0 16px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}

/* Kartlar: dar ekranda tek sutuna dusen esnek izgara. */
.docs-why {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 14px;
  margin-top: 26px;
}

.docs-why-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 15px 16px;
}

.docs-why-card h3 {
  font-size: 14px;
  margin: 0 0 7px;
  color: var(--accent, #a78bfa);
}

.docs-why-card p {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.62;
  color: var(--text-secondary);
}

.docs-steps {
  list-style: none;
  counter-reset: docs-step;
  margin: 0;
  padding: 0;
}

.docs-steps > li {
  counter-increment: docs-step;
  position: relative;
  padding: 0 0 4px 44px;
  margin-bottom: 26px;
}

/* Numara madalyonu: liste isaretcisi yerine, adim sayisi net gorunsun. */
.docs-steps > li::before {
  content: counter(docs-step);
  position: absolute;
  left: 0;
  top: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
}

.docs-steps > li h3 { font-size: 15.5px; margin: 3px 0 8px; }

.docs-steps > li p {
  margin: 0 0 12px;
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.65;
}

/* Kod ve agac: dar ekranda sayfayi degil KENDILERINI kaydirsinlar. */
.docs-page pre {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 13px 15px;
  overflow-x: auto;
  margin: 0 0 6px;
}

.docs-page pre code {
  font-family: var(--font-mono, monospace);
  font-size: 12.5px;
  line-height: 1.6;
  white-space: pre;
  color: var(--text-primary);
}

.docs-tree code { color: var(--text-secondary); }

.docs-table {
  width: 100%;
  border-collapse: collapse;
  display: block;
  overflow-x: auto;
}

.docs-table td {
  border-bottom: 1px solid var(--border);
  padding: 10px 12px 10px 0;
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--text-secondary);
  vertical-align: top;
}

.docs-table tr:last-child td { border-bottom: 0; }
.docs-table td:first-child { white-space: nowrap; padding-right: 20px; color: var(--text-primary); }
.docs-table code { font-family: var(--font-mono, monospace); font-size: 12.5px; }

.docs-shot { margin: 22px 0 0; }

.docs-shot img {
  width: 100%;
  max-width: 100%;
  height: auto;
  display: block;
  border: 1px solid var(--border);
  border-radius: 10px;
}

.docs-shot figcaption {
  color: var(--text-muted);
  font-size: 12.5px;
  margin-top: 8px;
  line-height: 1.5;
}

.docs-cta {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px 22px;
}

.docs-cta > h2 { border-bottom: 0; padding-bottom: 0; }
.docs-cta p { color: var(--text-secondary); font-size: 14px; line-height: 1.65; margin: 0 0 12px; }
.docs-cta .docs-note { color: var(--text-muted); font-size: 13px; margin: 12px 0 0; }

@media (max-width: 560px) {
  .docs-steps > li { padding-left: 36px; }
  .docs-page pre code { font-size: 11.5px; }
}
