.nav-menu a,
.site-title-link {
  text-decoration: none;
  color: #fff;
  overflow: hidden;
}
.nav-menu a,
.nav-menu li:hover > .sub-menu {
  display: block;
}
.panel,
.site-header {
  box-shadow: var(--shadow);
}
#cont,
body::before {
  position: fixed;
  top: 0;
}
:root {
  --body-bg: #fbeaeb;
  --primary-bg-start: #94cfaa;
  --primary-bg-end: #aceecd;
  --header-bg: #375e97;
  --nav-bg: #375e97;
  --footer-bg: #375e97;
  --panel-bg-start: #b596e9;
  --panel-bg-end: #f39acc;
  --accent-color: #94cfaa;
  --text-color: #1a1a1a;
  --border-color: #ccc;
  --font-family: "Montserrat", sans-serif;
  --base-font-size: 16px;
  --shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  --glow: 0 0 8px var(--accent-color);
}
*,
::after,
::before {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body,
html {
  font: var(--base-font-size) / 1.6 var(--font-family);
  color: var(--text-color);
  background: var(--body-bg);
  position: relative;
}
.custom-content ul li,
.input-group,
.nav-menu a,
.nav-menu li,
.panel,
.site-title-link,
.target-display {
  position: relative;
}
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--panel-bg-end);
}
.nav-menu .sub-menu li a:hover,
.nav-menu a:hover {
  background: var(--accent-color);
  box-shadow: var(--glow);
}
::-webkit-scrollbar-thumb {
  background: var(--accent-color);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--header-bg);
}
.site-header {
  background: var(--header-bg);
  width: 100%;
  padding: 0;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem 1rem;
  box-sizing: border-box;
}
.site-branding .site-logo {
  display: block;
  width: auto;
  max-height: 60px;
  object-fit: contain;
}
@media (max-width: 600px) {
  .header-inner {
    padding: 0.25rem 0.75rem;
  }
  .site-branding .site-logo {
    max-height: 1.6rem;
  }
}
.site-title-link {
  display: inline-block;
  margin-right: auto;
  font-size: 1.25rem;
  font-weight: 700;
}
#cont,
.menu-icon {
  display: none;
}
.site-title-left,
.site-title-link::after {
  color: var(--accent-color);
}
.site-title-link::after {
  content: attr(data-text);
  position: absolute;
  top: 0;
  left: 100%;
  transition: left 0.3s;
}
.entry-title:hover::after,
.nav-menu a:hover::after,
.site-title-link:hover::after,
.translate-page-title:hover::after {
  left: 0;
}
.site-title-left,
.site-title-right {
  font-size: 24px;
  font-weight: 700;
}
.site-title-right {
  color: gold;
}
.main-navigation {
  display: flex;
  background: var(--nav-bg);
}
.nav-menu {
  list-style: none;
  display: flex;
  gap: 1rem;
}
.nav-menu a {
  padding: 0.5rem 1rem;
  transition: 0.3s;
}
.entry-title::after,
.nav-menu a::after,
.translate-page-title::after {
  content: attr(data-text);
  position: absolute;
  left: 100%;
  top: 0;
  color: var(--accent-color);
  transition: left 0.3s;
}
.nav-menu a:hover {
  transform: scale(1.05);
}
.nav-menu .sub-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--nav-bg);
  list-style: none;
  padding: 0.5rem 0;
  min-width: 180px;
  z-index: 1000;
}
.nav-menu .sub-menu li a {
  padding: 0.5rem 0.1rem 1rem 0.5rem;
  color: #fff;
}
.translate-page-wrapper {
  max-width: 1200px;
  margin: 2rem auto;
  padding: 0 1rem;
}
.entry-title,
.translate-page-title {
  text-align: center;
  margin-bottom: 1rem;
  font-size: 2rem;
  color: var(--header-bg);
  font-weight: 700;
  position: relative;
  overflow: hidden;
}
.lang-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.1rem;
  overflow-x: auto;
}
.lang-row select {
  flex: 1;
  min-width: 120px;
  padding: 0.6rem;
  font-size: 1rem;
  border: 1px solid var(--border-color);
  border-radius: 4px;
  background: #fff;
  transition: 0.3s;
}
.lang-row select:focus,
.lang-row select:hover {
  box-shadow: var(--glow);
  outline: 2px solid var(--accent-color);
}
.refresh-icon,
.svg-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.refresh-icon {
  width: 40px;
  height: 40px;
  background: #fff;
  border-radius: 2px;
}
.refresh-icon svg {
  stroke: var(--text-color);
}
.svg-icon {
  width: 24px;
  height: 24px;
  stroke-width: 3;
  color: var(--accent-color);
  transition: color 0.3s, transform 0.2s;
}
.svg-icon:hover {
  color: var(--header-bg);
  transform: scale(1.1);
}
#cont,
.zoom-overlay {
  width: 100%;
  height: 100%;
}
.svg-icon.icon-refresh,
.svg-icon.icon-trash,
.svg-icon.icon-search,
.svg-icon.icon-download,
.svg-icon.icon-clipboard {
  /* animation-delay kaldirildi: artik sonsuz animasyon yok */
}
.svg-icon use {
  stroke: currentColor;
  fill: currentColor;
}
.panels {
  display: flex;
  gap: 0.1rem;
}
.panel {
  flex: 1;
  background: linear-gradient(
    135deg,
    var(--panel-bg-start),
    var(--panel-bg-end)
  );
  padding: 1rem;
  border-radius: 8px;
  transition: transform 0.3s;
  border: 2px solid transparent;
  background-clip: padding-box;
}
.panel:hover {
  transform: none;
  border-image: linear-gradient(45deg, var(--accent-color), var(--header-bg)) 1;
}
#source-textarea {
  overflow-y: auto;
}
.target-display {
  overflow-y: auto;
}
#source-textarea,
.target-display {
  width: 100%;
  min-height: 300px;
  padding: 1rem 2rem 2rem 0.9rem;
  border: 1px solid var(--border-color);
  border-radius: 4px;
  background: var(--input-bg, #fff);
  color: var(--text-color);
  resize: none;
  font-size: 19px;
  transition: 0.3s;
}
.target-display {
  min-height: 150px;
  position: relative;
}
#source-textarea:focus,
.target-display:focus {
  outline: 2px solid var(--accent-color);
  box-shadow: var(--glow);
}
.target-display:empty::before {
  content: attr(data-placeholder);
  color: #777;
}
.counter-label {
  position: absolute;
  bottom: 0.6rem;
  right: 12px;
  background: rgba(255, 255, 255, 0.9);
  padding: 0.2rem 0.5rem;
  font-size: 0.9rem;
  color: var(--text-color);
  border-radius: 3px;
  z-index: 10;
  pointer-events: none;
  white-space: nowrap;
}
.panels .panel:last-of-type .counter-label {
  bottom: 0.3rem;
  right: 9px;
}
.custom-content {
  background: var(--panel-bg-start);
  color: var(--text-color);
  padding: 18px;
  line-height: 2;
  text-align: justify;
}
.custom-content ul {
  list-style: none;
  margin: 1em 0;
  padding-left: 0;
}
.custom-content ul li {
  margin: 0.5em 0;
  padding-left: 1.5em;
  line-height: 1.4;
}
.custom-content ul li::before {
  content: "•";
  position: absolute;
  left: 0;
  top: 0.2em;
  font-size: 1.2em;
  color: var(--accent-color);
}
.panel-footer {
  display: flex;
  gap: 9rem;
  margin-top: 0.1rem;
}
.panel-footer span {
  display: inline-flex;
  align-items: center;
  cursor: pointer;
  opacity: 1 !important;
}
/* Footer icons draw via <use stroke/fill: currentColor>, so the visible color
   comes from `color`, not `stroke`. Set a strong dark color for clarity. */
.panel-footer .svg-icon,
.panel-footer svg,
.refresh-icon svg {
  width: 24px;
  height: 24px;
  color: #1a1a1a !important;
  stroke: #1a1a1a !important;
  stroke-width: 2.4;
  opacity: 1 !important;
  transition: color 0.3s, stroke 0.3s, transform 0.2s;
}
.panel-footer .svg-icon use {
  stroke: #1a1a1a !important;
  fill: none !important;
}
.panel-footer span:hover .svg-icon,
.panel-footer span:hover svg {
  color: #16a34a !important;
  stroke: #16a34a !important;
  transform: scale(1.2) translateY(-2px);
}
.panel-footer span:hover .svg-icon use {
  stroke: #16a34a !important;
}
/* TTS top bar: language select + Dinle button side by side */
.tts-top-bar {
  display: flex;
  gap: 0;
  width: 100%;
  border-radius: 0;
  margin-bottom: 0;
}
.tts-top-bar .tts-lang-select {
  flex: 1;
  min-width: 0;
}
.tts-top-bar .btn-listen {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--header-bg);
  color: #fff;
  border: none;
  font-weight: 600;
  font-size: 17px;
  cursor: pointer;
  transition: 0.3s;
  padding: 12px 16px;
  white-space: nowrap;
  position: static;
  width: auto;
  border-radius: 0;
}
.tts-top-bar .btn-listen:hover {
  filter: brightness(1.15);
  box-shadow: var(--glow);
}
.tts-top-bar .btn-listen.tts-disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
/* Make the custom dropdown trigger fill the bar height */
.tts-top-bar .cld-trigger {
  border: none;
  border-radius: 0;
  height: 100%;
  min-height: 46px;
  background: var(--header-bg);
  color: #fff;
  font-size: 16px;
}
.tts-top-bar .cld-trigger:hover {
  border-color: transparent;
}
.tts-top-bar .cld-trigger.open {
  border-color: transparent;
  box-shadow: none;
}
.tts-top-bar .cld-trigger .cld-arrow {
  color: rgba(255,255,255,0.7);
}
.tts-top-bar .cld-trigger.open .cld-arrow {
  color: #fff;
}
.tts-top-bar .cld-trigger .cld-label {
  color: #fff;
}
/* TTS page textarea needs no top padding for button */
.text-to-speech-page #source-textarea {
  min-height: 330px;
  padding-top: 1rem !important;
  padding-bottom: 2.5rem !important;
  white-space: pre-wrap;
}
.text-to-speech-page .counter-label {
  bottom: 2.2rem;
}
.tts-panel-footer {
  display: flex;
  justify-content: space-between;
  margin-top: -4px;
}
#cont {
  left: 0;
  background: rgba(0, 0, 0, 0.8);
  z-index: 9999;
  overflow: hidden;
}
.zoom-overlay {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;
  box-sizing: border-box;
}
.span_text {
  font-size: clamp(96px, 8vw, 160px);
  max-width: 90vw;
  max-height: 80vh;
  line-height: 1.2;
  color: #fff;
  text-align: center;
  white-space: pre-wrap;
  overflow: auto;
  word-wrap: break-word;
}
#closebtn {
  position: absolute;
  top: 10px;
  right: 10px;
  cursor: pointer;
  font-size: 23px;
}
.site-footer {
  text-align: center;
  padding: 1.2rem 1rem;
  background: var(--footer-bg);
  color: rgba(255,255,255,.7);
  border-top: none;
  font-size: 0.9rem;
}
@media (max-width: 411px) {
  .panel-footer svg,
  .refresh-icon svg {
    width: 16px;
    height: 16px;
  }
}
@media (max-width: 1024px) {
  .nav-menu a:hover {
    box-shadow: var(--glow);
  }
  .menu-icon {
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    align-items: center;
    width: 44px;
    height: 38px;
    background: #375e97;
    border: none;
    padding: 6px;
    cursor: pointer;
    z-index: 1002;
  }
  .menu-icon span {
    display: block;
    width: 26px;
    height: 3px;
    background-color: #fff;
    border-radius: 2px;
  }
  .site-header {
    position: relative;
    z-index: 1001;
  }
  .main-navigation {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: var(--nav-bg);
    z-index: 1000;
  }
  .main-navigation.open-menu {
    display: flex !important;
    flex-direction: column;
    align-items: flex-start;
  }
  .nav-menu {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
    padding: 0;
    gap: 0;
  }
  .nav-menu a {
    display: block;
    width: 100%;
    padding: 0.75rem 1rem;
    box-sizing: border-box;
    text-align: left;
  }
  .nav-menu a:hover {
    background: var(--accent-color);
    color: #fff;
  }
  .panels {
    flex-direction: column;
  }
  #source-textarea,
  .ads-mobile-container,
  .lang-row,
  .panel,
  .panels,
  .smart-banner-1,
  .smart-banner-2,
  .smart-banner-3,
  .target-display,
  .translate-page-title,
  .translate-page-wrapper {
    margin: 0 !important;
    padding: 0 !important;
    gap: 0 !important;
  }
  #source-textarea,
  .target-display {
    padding: 16px !important;
    margin-top: -8px !important;
    min-height: 200px;
  }
  .target-display {
    margin-top: 3px !important;
  }
  .lang-row select {
    height: 40px;
    padding: 0 0.75rem;
    margin: 0;
    line-height: normal;
  }
  .header-inner {
    padding: 0 1rem 0 0.5rem;
  }
  .translate-page-title {
    display: none;
  }
  .translate-page-wrapper {
    padding: 0;
    margin: 0 auto;
    width: 100%;
  }
  .lang-row {
    justify-content: flex-start;
  }
  .panel {
    width: 100%;
    margin: 0;
  }
  .panel-footer,
  .tts-panel-footer {
    justify-content: space-between;
    gap: 0;
    padding: 0 0.9rem;
  }
  .target-panel {
    display: flex;
    flex-direction: column;
  }
  .target-panel #target_display {
    order: 2;
  }
  .target-panel .panel-footer {
    margin-bottom: 8px;
    order: 1;
  }
  #source-textarea,
  .panel,
  .panel:hover,
  .target-display {
    transform: none !important;
    transition: none !important;
    animation: none !important;
  }
  .panel-footer,
  .panel.source-panel,
  .panel.target-panel,
  .smart-banner-1,
  .smart-banner-2,
  .smart-banner-3,
  .tts-panel-footer {
    background: #fff;
  }
  /* TTS page: top bar and textarea mobile overrides */
  .text-to-speech-page .tts-panel.creative-wrapper {
    margin: 0 !important;
    padding: 0 !important;
    border-radius: 0;
  }
  .text-to-speech-page .input-group {
    margin: 0;
    padding: 0;
    border-radius: 0;
  }
  .text-to-speech-page #source-textarea {
    padding: 16px !important;
    margin-top: 0 !important;
    min-height: 280px;
    border-radius: 0;
    border-left: none;
    border-right: none;
  }
  .text-to-speech-page .counter-label {
    bottom: 2.2rem;
  }
  .tts-top-bar {
    margin: 0;
    border-radius: 0;
  }
  .tts-top-bar .btn-listen {
    font-size: 15px;
    padding: 10px 12px;
  }
  .tts-top-bar .cld-trigger {
    font-size: 14px;
    padding: 6px 10px;
  }
}
.smart-banner-1,
.smart-banner-2,
.smart-banner-3 {
  width: 100%;
  margin: 0;
  padding: 0;
}
.smart-banner-1 {
  min-height: 50px;
}
@media (min-width: 412px) {
  .panel-footer svg,
  .refresh-icon svg {
    width: 19px;
    height: 19px;
  }
  .smart-banner-1 {
    min-height: 60px;
  }
}
@media (min-width: 768px) {
  .smart-banner-1 {
    min-height: 90px;
  }
}
@media (min-width: 1024px) {
  .smart-banner-1 {
    min-height: 100px;
  }
}
.smart-banner-2 {
  min-height: 100px;
}
.smart-banner-3 {
  min-height: 300px;
}
/* Responsive textarea heights: simplified */
@media (max-width: 359px) {
  #source-textarea,
  .target-display {
    min-height: 170px;
  }
}
@media (min-width: 360px) and (max-width: 413px) {
  #source-textarea,
  .target-display {
    min-height: 225px;
  }
}
@media (min-width: 414px) and (max-width: 767px) {
  #source-textarea,
  .target-display {
    min-height: 240px;
  }
}
@media (min-width: 768px) and (max-width: 1024px) {
  #source-textarea,
  .target-display {
    min-height: 340px;
  }
}
@media (min-width: 1025px) {
  #source-textarea,
  .target-display {
    height: 320px;
    min-height: 320px !important;
  }
  .panels {
    flex-direction: row;
    gap: 15px;
  }
}
/* Animasyonlar kaldirildi: performans optimizasyonu */
.content-area .entry-content ul {
  list-style-position: outside;
  list-style-type: disc;
  margin: 1.5rem 0;
  padding-inline-start: 1.5rem;
}
.content-area .entry-content ul li {
  margin-bottom: 0.75rem;
}
.content-area .entry-content h2 {
  margin-top: 2rem;
  margin-bottom: 1rem;
}
.report-fab {
  align-items: center;
  background: var(--accent-color, #5b8cff);
  backdrop-filter: saturate(140%) blur(6px);
  border: 2px solid rgba(255, 255, 255, 0.9);
  border-radius: 999px;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.25);
  color: #fff;
  cursor: pointer;
  display: inline-flex;
  font: 700 14px/1 system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  position: fixed;
  right: 16px;
  bottom: calc(16px + env(safe-area-inset-bottom));
  transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
  z-index: 999999;
}
.report-fab:hover {
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.3);
  transform: translateY(-6px);
}
.report-fab:active {
  transform: translateY(0) scale(0.98);
}
.report-fab svg {
  fill: none;
  height: 18px;
  stroke: currentColor;
  width: 18px;
}
.report-fab:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 2px;
}
@media (max-width: 480px) {
  .report-fab span {
    display: none;
  }
  .report-fab {
    padding: 0.8rem;
  }
}
.report-modal[hidden] {
  display: none;
}
.report-modal {
  animation: report-fade 0.18s ease-out;
  backdrop-filter: blur(2px);
  background: rgba(0, 0, 0, 0.45);
  display: grid;
  inset: 0;
  padding: 1rem;
  place-items: center;
  position: fixed;
  z-index: 10000;
}
.report-dialog {
  animation: report-pop 0.18s ease-out;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 14px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
  color: #111;
  max-height: 80vh;
  overflow: auto;
  padding: 1rem;
  width: min(560px, calc(100% - 2rem));
}
.report-h {
  margin: 0 0 0.5rem;
}
.report-row {
  margin: 0.6rem 0;
}
.report-row label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.3rem;
}
.report-row textarea,
.report-row input {
  background: inherit;
  border: 1px solid rgba(0, 0, 0, 0.15);
  border-radius: 10px;
  color: inherit;
  padding: 0.6rem 0.7rem;
  width: 100%;
}
.report-row textarea:focus,
.report-row input:focus {
  box-shadow: 0 0 0 3px
    color-mix(in oklab, var(--accent-color, #5b8cff) 25%, transparent);
  outline: 2px solid var(--accent-color, #5b8cff);
}
.report-foot {
  display: flex;
  gap: 0.5rem;
  justify-content: flex-end;
  margin-top: 1rem;
}
.btn-primary,
.btn-secondary {
  border: 1px solid transparent;
  border-radius: 999px;
  cursor: pointer;
  padding: 0.55rem 1rem;
  transition: transform 0.12s ease, background-color 0.12s ease,
    border-color 0.12s ease, color 0.12s ease;
}
.btn-primary {
  background: var(--accent-color, #5b8cff);
  color: #fff;
}
.btn-primary:hover {
  filter: brightness(1.05);
}
.btn-primary:active {
  transform: scale(0.98);
}
.btn-secondary {
  background: transparent;
  border-color: currentColor;
  color: inherit;
}
.btn-secondary:hover {
  background: rgba(0, 0, 0, 0.06);
}
.btn-secondary:active {
  transform: scale(0.98);
}
@keyframes report-fade {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
@keyframes report-pop {
  from {
    opacity: 0;
    transform: translateY(6px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}
@media (prefers-reduced-motion: reduce) {
  .report-fab,
  .btn-primary,
  .btn-secondary,
  .report-modal,
  .report-dialog {
    animation: none;
    transition: none;
  }
}
@media (max-width: 480px) {
  .report-row input,
  .report-row textarea {
    font-size: 16px !important;
  }
}
@supports (height: 100dvh) {
  .report-dialog {
    max-height: 80dvh;
  }
}
.share-dock {
  z-index: 9999;
}
.share-btn::after {
  content: none !important;
}
.share-btn svg {
  display: block;
  fill: #fff;
}
.sb-facebook {
  background: #1877f2;
}
.sb-x {
  background: #000;
}
.sb-linkedin {
  background: #0a66c2;
}
.sb-whatsapp {
  background: #25d366;
}
@media (min-width: 1024px) {
  .share-dock {
    --s: 60px;
    --gap: 1.1rem;
    position: fixed;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: var(--gap);
  }
  .share-item {
    position: relative;
  }
  .share-btn {
    width: var(--s);
    height: var(--s);
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 14px;
    overflow: hidden;
    font-size: 0;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.32),
      inset 0 0 0 1px rgba(255, 255, 255, 0.12);
    transition: width 0.22s, transform 0.2s, filter 0.2s, box-shadow 0.2s;
  }
  .share-btn svg {
    width: 28px;
    height: 28px;
    flex: 0 0 auto;
  }
  .share-btn::before {
    content: "Paylaş";
    color: #fff;
    font: 700 15px/1 system-ui;
    opacity: 0;
    max-width: 0;
    margin-left: 10px;
    white-space: nowrap;
    transform: translateX(8px);
    transition: max-width 0.22s, opacity 0.2s, transform 0.2s;
  }
  .share-item:hover > .share-btn {
    width: calc(var(--s) + 96px);
    transform: translateX(6px);
    justify-content: flex-start;
    gap: 12px;
  }
  .share-item:hover > .share-btn::before {
    opacity: 1;
    max-width: 96px;
    transform: none;
  }
}
@media (max-width: 1023.98px) {
  .share-dock {
    --h: 58px;
    position: fixed;
    left: 0;
    right: 0;
    bottom: env(safe-area-inset-bottom);
    width: 100%;
    transform: none;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    padding: 0 12px;
    z-index: 9999;
  }
  .share-item {
    position: static;
  }
  .share-btn {
    height: var(--h);
    border-radius: 14px;
    display: grid;
    place-items: center;
  }
  .share-btn svg {
    width: 24px;
    height: 24px;
  }
  body {
    padding-bottom: 0;
  }
  .share-dock {
    transition: transform 0.3s ease;
  }
  .share-dock.dock-hidden {
    transform: translateY(calc(100% + 20px));
  }
  .report-fab {
    right: 12px !important;
    bottom: calc(96px + env(safe-area-inset-bottom)) !important;
  }
}
@media print {
  .share-dock {
    display: none;
  }
}
.share-item .share-flyout {
  display: none !important;
}



/* Custom language dropdown */
select.cld-hidden,
.lang-select select.cld-hidden,
.tts-lang-select select.cld-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  border: 0 !important;
  padding: 0 !important;
  margin: -1px !important;
}
.lang-select,
.tts-lang-select {
  position: relative;
}
.cld-trigger {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 8px 12px;
  border: 1px solid var(--border-color, #ccc);
  border-radius: 4px;
  background: #fff;
  cursor: pointer;
  font-size: 16px;
  color: var(--text-color, #1a1a1a);
  user-select: none;
  white-space: nowrap;
  overflow: hidden;
  transition: border-color 0.2s;
}
.cld-trigger:hover { border-color: #888; }
.cld-trigger.open { border-color: #08f; box-shadow: 0 0 0 2px rgba(0, 136, 255, 0.2); }
.cld-trigger .cld-flag { display: flex; align-items: center; flex-shrink: 0; width: 22px; height: 16px; }
.cld-trigger .cld-label { flex: 1; overflow: hidden; text-overflow: ellipsis; }
.cld-trigger .cld-arrow { margin-left: auto; flex-shrink: 0; font-size: 10px; color: #999; transition: transform 0.2s; }
.cld-trigger.open .cld-arrow { transform: rotate(180deg); color: #08f; }
.cld-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  width: 100%;
  min-width: 240px;
  background: #fff;
  border: 1px solid var(--border-color, #ccc);
  border-radius: 8px;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.3);
  z-index: 5000;
  overflow: hidden;
}
.cld-dropdown.show { display: block; }
.cld-search { padding: 10px; border-bottom: 1px solid #eee; }
.cld-search input {
  width: 100%;
  border: 1px solid var(--border-color, #ccc);
  border-radius: 6px;
  padding: 8px 12px;
  font-size: 14px;
  outline: none;
  background: #f8f8f8;
  color: var(--text-color, #1a1a1a);
  transition: border-color 0.15s;
}
.cld-search input:focus { border-color: #08f; }
.cld-search input::placeholder { color: #999; }
.cld-section-label { font-size: 11px; font-weight: 600; color: #777; padding: 8px 14px 4px; text-transform: uppercase; letter-spacing: 0.5px; }
.cld-list { overflow-y: auto; max-height: 300px; overscroll-behavior: contain; }
.cld-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9px 14px;
  cursor: pointer;
  font-size: 14px;
  color: var(--text-color, #1a1a1a);
  transition: background 0.06s;
}
.cld-item:hover { background: #f0f4ff; }
.cld-item.active { background: rgba(0, 136, 255, 0.12); color: #0066cc; font-weight: 600; }
.cld-item .cld-flag { display: flex; align-items: center; justify-content: center; width: 26px; flex-shrink: 0; }
.cld-item .cld-code { font-size: 11px; color: #999; margin-left: auto; font-family: monospace; }
.cld-star{cursor:pointer;font-size:18px;color:#555;flex-shrink:0;padding:0 2px 0 8px;transition:color .15s,transform .15s;line-height:1}
.cld-star:hover{color:#f7f01b;transform:scale(1.25)}
.cld-star.is-fav{color:#f7f01b}
.cld-empty { padding: 24px 16px; text-align: center; font-size: 14px; color: #777; }
.lang-row { overflow: visible !important; }
@media (max-width: 767px) {
  .cld-trigger { padding: 8px 10px; font-size: 14px; }
  .cld-trigger .cld-flag { width: 20px; height: 14px; }
  .cld-dropdown { min-width: 200px; }
  .cld-list { max-height: 250px; }
  .cld-item { padding: 8px 12px; font-size: 13px; }
  .cld-search input { padding: 7px 10px; }
  body.page-template-page-text-to-speech .panel-footer { gap: 26%; }
}

/* ── Post-translation ad container (mobile + base) ─────────── */
#ad-post-translate,
#ad-post-translate-src {
  overflow: hidden;
}
/* Desktop ad containers */
.ads-desktop-container { width: 100%; margin: 0; }
.ads-desktop { width: 100%; }
/* Mobile ad containers */
.ads-mobile-container { width: 100%; margin: 0; padding: 0; }
/* ── Footer Dil Linkleri ── */
.footer-langs {
  max-width: 1200px;
  margin: 0 auto 14px;
  padding: 14px 1rem 0;
}
.footer-langs-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
}
.lang-pair {
  display: flex;
  align-items: center;
  background: #fff;
  border: 1px solid #d0d5dd;
  border-radius: 8px;
  overflow: hidden;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.lang-pair:hover {
  border-color: #98a2b3;
  box-shadow: 0 1px 4px rgba(0,0,0,.08);
}
.lang-pair .lang-link {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  color: #344054;
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: color 0.15s;
}
.lang-pair .lang-link:hover {
  color: #1d2939;
}
.lang-pair .lang-link .fi {
  flex-shrink: 0;
  width: 1.25em;
  border-radius: 2px;
  box-shadow: 0 0 0 0.5px rgba(0,0,0,.12);
}
.lang-pair .lang-arrow {
  color: #667085;
  font-size: 0.78rem;
  margin: 0 1px;
}
.lang-pair .lang-swap {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  min-width: 36px;
  height: 100%;
  padding: 8px 0;
  background: none;
  border: none;
  border-left: 1px solid #d0d5dd;
  cursor: pointer;
  color: #667085;
  font-size: 1rem;
  transition: background 0.15s, color 0.15s;
}
.lang-pair .lang-swap:hover {
  background: #f2f4f7;
  color: #344054;
}
.lang-pair .lang-swap svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
@media (max-width: 1024px) {
  .footer-langs-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}
@media (max-width: 768px) {
  .footer-langs-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-langs-grid .lang-pair:nth-child(n+15) {
    display: none;
  }
  .lang-pair .lang-link {
    font-size: 0.75rem;
    padding: 6px 8px;
  }
}

/* =========================================================
 *  Equal panel heights + post-translate ad
 *  On load both visible boxes share the same min-height. The ad box is
 *  styled inline by JS (ft.js model), so only minimal rules are needed.
 * ========================================================= */
@media (min-width: 1025px) {
  /* On load: both visible boxes share the same base height */
  #source-textarea,
  #target-text,
  .target-display {
    min-height: 360px !important;
    box-sizing: border-box !important;
  }
}

/* Post-translate ad containers */
#ad-post-translate,
#ad-post-translate-src {
  width: 100%;
}
#ad-post-translate ins.adsbygoogle,
#ad-post-translate-src ins.adsbygoogle {
  width: 100%;
}

/* When an ad is inside a box, that box must grow to fit it (no clipping) */
.target-display:has(#ad-post-translate),
#target-text:has(#ad-post-translate) {
  height: auto !important;
  max-height: none !important;
  min-height: 0 !important;
  overflow: visible !important;
}
.input-wrapper:has(#ad-post-translate-src) {
  height: auto !important;
  max-height: none !important;
  overflow: visible !important;
}
/* Mobile ad needs a real height or AdSense leaves it empty */
#ad-post-translate .adsbygoogle,
#ad-post-translate-src .adsbygoogle {
  display: block;
  min-height: 100px;
}