/* WordPress'e özgü uyarlamalar (ana tasarım main.css içindedir) */
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 46px; } }
.es-logo-link { display: inline-flex; align-items: center; text-decoration: none; }
.es-logo-text { font-family: var(--font-display); font-size: 24px; font-weight: 700; color: var(--primary); letter-spacing: .02em; text-transform: uppercase; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px,1px,1px,1px); white-space: nowrap; }

/* Gutenberg blokları — .rich-content içinde eski sitedeki görünüm */
.rich-content > * + * { margin-top: 0; }
.rich-content figure { margin: 18px 0; }
.rich-content figure img { margin: 0; }
.rich-content figcaption, .rich-content .wp-element-caption { font-size: 12.5px; color: var(--text-lt); text-align: center; margin-top: 6px; font-style: italic; }
.rich-content .alignleft { float: left; margin: 6px 20px 14px 0; max-width: 50%; }
.rich-content .alignright { float: right; margin: 6px 0 14px 20px; max-width: 50%; }
.rich-content .aligncenter { margin-left: auto; margin-right: auto; text-align: center; }
.rich-content .wp-block-table table, .rich-content table { width: 100%; border-collapse: collapse; margin: 0 0 1.2em; font-size: 14.5px; }
.rich-content th, .rich-content td { border: 1px solid var(--gray); padding: 9px 12px; text-align: left; }
.rich-content th { background: var(--off-white); }
.rich-content .wp-block-embed iframe, .rich-content iframe { max-width: 100%; border-radius: 10px; }
.rich-content blockquote { border-left: 4px solid var(--secondary); background: var(--off-white); margin: 0 0 1em; padding: 14px 20px; border-radius: 8px; }
.rich-content::after { content: ''; display: block; clear: both; }

/* Sayfalama */
.es-pagination { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; margin-top: 40px; }
.es-pagination .page-numbers { display: inline-flex; min-width: 40px; height: 40px; align-items: center; justify-content: center; border: 1px solid var(--gray); border-radius: 8px; color: var(--text); padding: 0 12px; }
.es-pagination .page-numbers.current { background: var(--primary); border-color: var(--primary); color: #fff; }

/* Form bildirimleri */
.alert-success { background: #e9f7ec; color: #1e6b32; border: 1px solid #bfe3c8; border-radius: 8px; padding: 12px 16px; margin-bottom: 16px; }
.alert-error { background: #fdecec; color: #a02020; border: 1px solid #f3c2c2; border-radius: 8px; padding: 12px 16px; margin-bottom: 16px; }

/* Dar ekranda tablolar yatay kaydırılır (sayfa taşmaz) */
@media (max-width: 700px) {
  .variant-table, .rich-content table, .es-tam-genislik table { display: block; max-width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .variant-table th, .variant-table td { white-space: nowrap; padding: 12px 14px; }
}
.es-tam-genislik { overflow-x: clip; }

/* GTranslate dil seçici */
.es-dil { display: inline-flex; align-items: center; gap: 6px; color: inherit; font-size: 13px; }
.es-dil > i { font-size: 16px; opacity: .85; }
.es-dil select, .es-dil .gt_selector { background: transparent; color: inherit; border: 1px solid rgba(255,255,255,.25); border-radius: 6px; padding: 3px 6px; font: inherit; font-size: 12.5px; cursor: pointer; max-width: 150px; }
.es-dil select option { color: #111; }
.es-dil .gtranslate_wrapper, .es-dil .gt_switcher_wrapper { position: static !important; display: inline-block; }
.es-dil-ust { margin-right: 12px; }
.es-dil-mobil { display: none; }
@media (max-width: 760px) {
  .es-dil-mobil { display: flex; padding: 12px 14px; color: var(--dark); border-bottom: 1px solid var(--gray); }
  .es-dil-mobil select, .es-dil-mobil .gt_selector { border-color: var(--gray); color: var(--dark); max-width: none; flex: 1; padding: 8px 10px; }
}
/* Google çeviri üst çubuğunun sayfayı aşağı itmesini engelle */
body { top: 0 !important; }
.skiptranslate iframe, #goog-gt-tt, .goog-te-banner-frame { display: none !important; }

/* Dil seçici: yalnızca bayraklar (dil kodu / adı ve çeviri ikonu gizli) */
.es-dil > i, .es-dil-mobil > span { display: none; }
.es-dil a.glink span, .es-dil a.glink + span, .es-dil .gt_switcher .gt_selected a span, .es-dil .gt-lang-code { display: none !important; }
.es-dil a.glink { display: inline-flex; align-items: center; margin: 0 3px; padding: 0; opacity: .75; transition: opacity .15s, transform .15s; font-size: 0; line-height: 0; }
.es-dil a.glink:hover, .es-dil a.glink.gt-current-lang { opacity: 1; transform: translateY(-1px); }
.es-dil a.glink img { width: 22px !important; height: auto !important; border-radius: 3px; box-shadow: 0 0 0 1px rgba(255,255,255,.25); margin: 0 !important; }
.es-dil-mobil a.glink img { width: 30px !important; box-shadow: 0 0 0 1px var(--gray); }
.es-dil-mobil { gap: 4px; justify-content: center; }
