:root {
  --ykt-code-text: #0f172a;
  --ykt-code-muted: #5b6b80;
  --ykt-code-keyword: #1d4ed8;
  --ykt-code-string: #047857;
  --ykt-code-number: #b45309;
  --ykt-code-escape: #7e22ce;
  --ykt-code-method: #0e7490;
  --ykt-code-group: #475569;
}

/* Yazı içeriği */
.ykt-content {
  font-size: 1.0625rem;
  line-height: 1.75;
  overflow-wrap: anywhere;
}

.ykt-content > * {
  max-width: 100%;
}

.ykt-content h2,
.ykt-content h3,
.ykt-content h4 {
  margin-top: 2.25rem;
  margin-bottom: 0.75rem;
}

.ykt-content a {
  text-decoration: underline;
  text-underline-offset: 2px;
}

.ykt-content ul,
.ykt-content ol {
  padding-left: 1.4rem;
}

.ykt-content blockquote {
  margin: 1.5rem 0;
  padding: 0.25rem 0 0.25rem 1.25rem;
  border-left: 3px solid var(--wp--preset--color--border-strong);
  color: var(--wp--preset--color--text-2);
}

.ykt-content img {
  max-width: 100%;
  height: auto;
}

.ykt-content figure,
.ykt-content .wp-caption {
  max-width: 100%;
  margin: 1.5rem 0;
}

.ykt-content .wp-caption-text,
.ykt-content figcaption {
  font-size: 0.8125rem;
  color: var(--wp--preset--color--text-2);
  text-align: center;
  margin-top: 0.5rem;
}

.ykt-content .alignleft {
  float: left;
  margin: 0.25rem 1.5rem 1rem 0;
}

.ykt-content .alignright {
  float: right;
  margin: 0.25rem 0 1rem 1.5rem;
}

.ykt-content .aligncenter {
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.ykt-content table {
  display: block;
  max-width: 100%;
  overflow-x: auto;
  border-collapse: collapse;
  font-size: 0.9375rem;
  margin: 1.5rem 0;
}

.ykt-content th,
.ykt-content td {
  padding: 0.55rem 0.8rem;
  border: 1px solid var(--wp--preset--color--border);
  text-align: left;
  vertical-align: top;
}

.ykt-content th {
  background: var(--wp--preset--color--bg);
  font-weight: 600;
}

/* Satır içi kod */
.ykt-content :not(pre) > code {
  padding: 0.12em 0.4em;
  border-radius: 5px;
  background: var(--wp--preset--color--bg);
  font-family: var(--wp--preset--font-family--jetbrains-mono);
  font-size: 0.875em;
  overflow-wrap: anywhere;
}

/* Kod blokları: düz pre, eski brush biçimi ve Enlighter yüklenmeden önceki ham hâl */
.ykt-content pre,
.wp-block-post-content pre {
  max-width: 100%;
  margin: 1.5rem 0;
  padding: 1rem 1.1rem;
  overflow-x: auto;
  border: 1px solid var(--wp--preset--color--border);
  border-radius: 12px;
  background: var(--wp--preset--color--bg);
  color: var(--ykt-code-text);
  font-family: var(--wp--preset--font-family--jetbrains-mono);
  font-size: 0.8125rem;
  line-height: 1.75;
  white-space: pre;
  overflow-wrap: normal;
  tab-size: 4;
}

.ykt-content pre code,
.wp-block-post-content pre code {
  padding: 0;
  background: none;
  font-size: inherit;
  white-space: inherit;
}

/* Enlighter */
.wp-block-post-content .enlighter-default {
  max-width: 100%;
  margin: 1.5rem 0;
  border: 1px solid var(--wp--preset--color--border);
  border-radius: 12px;
  background: var(--wp--preset--color--bg);
  color: var(--ykt-code-muted);
  font-family: var(--wp--preset--font-family--jetbrains-mono);
  font-size: 0.8125rem;
  line-height: 1.75;
  overflow: hidden;
  overflow-wrap: anywhere;
}

.wp-block-post-content .enlighter-default.enlighter-t-enlighter {
  border-radius: 12px;
  border-color: var(--wp--preset--color--border);
  color: var(--ykt-code-muted);
}

.wp-block-post-content .enlighter-default div.enlighter > div,
.wp-block-post-content .enlighter-default.enlighter-t-enlighter div.enlighter > div {
  color: var(--ykt-code-text);
  line-height: 1.75;
  background: transparent;
  border-radius: 0;
}

.wp-block-post-content .enlighter-default.enlighter-t-enlighter.enlighter-hover div.enlighter > div:hover,
.wp-block-post-content .enlighter-default.enlighter-t-enlighter.enlighter-hover.enlighter-linenumbers div.enlighter > div:hover {
  background-color: var(--wp--preset--color--border);
  color: var(--ykt-code-text);
}

.wp-block-post-content .enlighter-default.enlighter-t-enlighter.enlighter-linenumbers div.enlighter > div::before {
  background-color: var(--wp--preset--color--bg);
  border-right: 1px solid var(--wp--preset--color--border);
  color: var(--ykt-code-muted);
  border-radius: 0;
}

.wp-block-post-content .enlighter-default .enlighter-raw,
.wp-block-post-content .enlighter-default.enlighter-t-enlighter .enlighter-raw {
  background-color: var(--wp--preset--color--bg);
  color: var(--ykt-code-text);
  border-radius: 12px;
}

.wp-block-post-content .enlighter-default .enlighter-btn,
.wp-block-post-content .enlighter-default.enlighter-t-enlighter .enlighter-btn {
  background-color: var(--wp--preset--color--surface);
  border-color: var(--wp--preset--color--border-strong);
}

.wp-block-post-content .enlighter-default.enlighter-t-enlighter span[class^="enlighter-"] {
  background: none;
}

.wp-block-post-content .enlighter-default.enlighter-t-enlighter .enlighter-text {
  color: var(--ykt-code-text);
}

.wp-block-post-content .enlighter-default.enlighter-t-enlighter span[class^="enlighter-c"] {
  color: var(--ykt-code-muted);
}

.wp-block-post-content .enlighter-default.enlighter-t-enlighter span[class^="enlighter-k"] {
  color: var(--ykt-code-keyword);
}

.wp-block-post-content .enlighter-default.enlighter-t-enlighter span[class^="enlighter-s"] {
  color: var(--ykt-code-string);
}

.wp-block-post-content .enlighter-default.enlighter-t-enlighter span[class^="enlighter-n"] {
  color: var(--ykt-code-number);
}

.wp-block-post-content .enlighter-default.enlighter-t-enlighter span[class^="enlighter-e"] {
  color: var(--ykt-code-escape);
}

.wp-block-post-content .enlighter-default.enlighter-t-enlighter span[class^="enlighter-m"] {
  color: var(--ykt-code-method);
}

.wp-block-post-content .enlighter-default.enlighter-t-enlighter span[class^="enlighter-g"],
.wp-block-post-content .enlighter-default.enlighter-t-enlighter span[class^="enlighter-x"] {
  color: var(--ykt-code-group);
}

@media (max-width: 640px) {
  .ykt-content .alignleft,
  .ykt-content .alignright {
    float: none;
    display: block;
    margin: 1rem auto;
  }
}

/* Tablo hücreleri: sözcükleri harf harf bölme, tablo kendi içinde kaydırılsın */
.ykt-content table,
.ykt-content th,
.ykt-content td {
  overflow-wrap: normal;
  word-break: normal;
}

/* SyntaxHighlighter Evolved (canlıdaki eski kod yazılarının çoğu): eklentinin !important'lı
   beyaz temasını tema renklerine çevirir. Seçiciler eklentininkinden bir sınıf fazla özgüllüktedir. */
.wp-block-post-content div.syntaxhighlighter {
  width: 100% !important;
  max-width: 100%;
  margin: 1.5rem 0 !important;
  padding: 0.35rem 0 !important;
  overflow-x: auto !important;
  background-color: var(--wp--preset--color--bg) !important;
  border: 1px solid var(--wp--preset--color--border) !important;
  border-radius: 12px !important;
  color: var(--ykt-code-text) !important;
  font-family: var(--wp--preset--font-family--jetbrains-mono) !important;
  font-size: 0.8125rem !important;
}

.wp-block-post-content div.syntaxhighlighter table {
  display: table !important;
  width: 100% !important;
  margin: 0 !important;
  border: 0 !important;
  font-size: inherit !important;
  overflow: visible !important;
}

.wp-block-post-content div.syntaxhighlighter table td,
.wp-block-post-content div.syntaxhighlighter table th {
  padding: 0 !important;
  border: 0 !important;
  background: none !important;
  vertical-align: top !important;
}

.wp-block-post-content div.syntaxhighlighter table td.code {
  width: 100% !important;
}

.wp-block-post-content div.syntaxhighlighter .container,
.wp-block-post-content div.syntaxhighlighter .line,
.wp-block-post-content div.syntaxhighlighter code {
  font-family: var(--wp--preset--font-family--jetbrains-mono) !important;
  font-size: inherit !important;
  line-height: 1.75 !important;
  min-height: 0 !important;
}

.wp-block-post-content div.syntaxhighlighter .line.alt1,
.wp-block-post-content div.syntaxhighlighter .line.alt2,
.wp-block-post-content div.syntaxhighlighter .container .line {
  background-color: transparent !important;
}

.wp-block-post-content div.syntaxhighlighter .code .line {
  padding: 0 1rem !important;
}

.wp-block-post-content div.syntaxhighlighter .gutter .line {
  padding: 0 0.75rem 0 0.9rem !important;
  border-right: 1px solid var(--wp--preset--color--border) !important;
  color: var(--ykt-code-muted) !important;
  text-align: right !important;
}

.wp-block-post-content div.syntaxhighlighter .line.highlighted.alt1,
.wp-block-post-content div.syntaxhighlighter .line.highlighted.alt2,
.wp-block-post-content div.syntaxhighlighter .gutter .line.highlighted {
  background-color: var(--wp--preset--color--border) !important;
  color: var(--ykt-code-text) !important;
}

.wp-block-post-content div.syntaxhighlighter .toolbar {
  display: none !important;
}

.wp-block-post-content div.syntaxhighlighter code.plain,
.wp-block-post-content div.syntaxhighlighter .plain a,
.wp-block-post-content div.syntaxhighlighter .spaces {
  color: var(--ykt-code-text) !important;
}

.wp-block-post-content div.syntaxhighlighter code.comments,
.wp-block-post-content div.syntaxhighlighter .comments a {
  color: var(--ykt-code-muted) !important;
}

.wp-block-post-content div.syntaxhighlighter code.keyword,
.wp-block-post-content div.syntaxhighlighter code.script,
.wp-block-post-content div.syntaxhighlighter .keyword a {
  color: var(--ykt-code-keyword) !important;
  background: none !important;
}

.wp-block-post-content div.syntaxhighlighter code.string,
.wp-block-post-content div.syntaxhighlighter .string a {
  color: var(--ykt-code-string) !important;
}

.wp-block-post-content div.syntaxhighlighter code.variable,
.wp-block-post-content div.syntaxhighlighter code.constants,
.wp-block-post-content div.syntaxhighlighter code.color3 {
  color: var(--ykt-code-number) !important;
}

.wp-block-post-content div.syntaxhighlighter code.value,
.wp-block-post-content div.syntaxhighlighter code.functions {
  color: var(--ykt-code-method) !important;
}

.wp-block-post-content div.syntaxhighlighter code.color2 {
  color: var(--ykt-code-escape) !important;
}

.wp-block-post-content div.syntaxhighlighter code.preprocessor,
.wp-block-post-content div.syntaxhighlighter code.color1,
.wp-block-post-content div.syntaxhighlighter .color1 a {
  color: var(--ykt-code-group) !important;
}

/* ---------- YK Teknik'e özgü ayarlar ---------- */
.ykt-content {
  color: var(--wp--preset--color--text);
  font-size: 1.0625rem;
  line-height: 1.75;
}

.ykt-content > * { margin-block: 0; }
.ykt-content > * + * { margin-top: 1.25rem; }

.ykt-content h2,
.ykt-content h3,
.ykt-content h4 {
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-top: 2.25rem;
  margin-bottom: 0.75rem;
}

.ykt-content h2 { font-size: 1.75rem; line-height: 1.3; }
.ykt-content h3 { font-size: 1.3125rem; line-height: 1.35; }
.ykt-content h4 { font-size: 1.125rem; line-height: 1.4; }

@media (max-width: 640px) {
  .ykt-content h2 { font-size: 1.5rem; }
}

.ykt-content a { text-decoration-color: var(--wp--preset--color--brand-line); }
.ykt-content a:hover { text-decoration-color: currentColor; }

.ykt-content :not(pre) > code {
  padding: 2px 6px;
  border: 1px solid var(--wp--preset--color--border);
  border-radius: 6px;
  background: var(--wp--preset--color--subtle);
  color: var(--wp--preset--color--text);
}

.ykt-content th {
  background: var(--wp--preset--color--bg);
  color: var(--wp--preset--color--muted);
  font-family: var(--wp--preset--font-family--jetbrains-mono);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.ykt-content tbody tr:nth-child(even) td { background: var(--wp--preset--color--bg); }
