/* KodXP kitiket theme — rules the engine injects from JS (or that we need for SSR) */

/* Desktop / mobile header variants: the engine renders one by JS width; we render both. */
@media (max-width: 991px) {
  .topSectionDesign.desktopDesign { display: none !important; }
  .kx-desktop-only { display: none !important; }
}
@media (min-width: 992px) {
  .topSectionDesign.mobileDesign { display: none !important; }
  .kx-mobile-only { display: none !important; }
}

/* Mobile header rows (engine layout) */
.topSectionDesign.mobileDesign .flex.row1,
.topSectionDesign.mobileDesign .flex.row2 { width: 100%; }
.topSectionDesign.mobileDesign .row2 .leftWrapper,
.topSectionDesign.mobileDesign .row2 .rightWrapper { display: flex; align-items: center; }
.topSectionDesign.mobileDesign .row2 .rightWrapper { margin-left: auto; }
.topSectionDesign.mobileDesign .toggleMenu { background: none; border: 0; cursor: pointer; padding: 0; line-height: 1; }
.topSectionDesign.mobileDesign .topMenuMobileWrapper .menuWrapper .menuItem,
.topSectionDesign.mobileDesign .topMenuMobileWrapper .menuWrapper .dropdown { display: block; }
.topSectionDesign.mobileDesign .topMenuMobileWrapper .dropdown .dropdownContentWrapper { position: static; visibility: visible; display: none; }
.topSectionDesign.mobileDesign .topMenuMobileWrapper .dropdown.open .dropdownContentWrapper { display: block; }
.topSectionDesign.mobileDesign .topMenuMobileWrapper .dropdown .dropdownContent { box-shadow: none; transform: none; white-space: normal; }

/* Text editor content (engine emits these per text section) */
.editorContent img { height: auto; max-width: 100%; }
.editorContent .youtube-embed-container { width: 100%; position: relative; padding-bottom: 56.25%; }
.editorContent .youtube-embed-container iframe,
.editorContent iframe.ql-video { top: 0; left: 0; width: 100%; height: 100%; border: none; position: absolute; }
.editorContent iframe.ql-video:not(.youtube-embed) { width: 100%; position: relative; aspect-ratio: 16 / 9; }

/* Slider: before slick initialises, only the first slide is visible (no layout shift). */
.reactSlider:not(.slick-initialized) > div:not(:first-child) { display: none; }
.reactSlider .prevArrow, .reactSlider .nextArrow { position: absolute; }
.reactSlider .openModal { text-decoration: none; }
.reactSlider .openModal .icon { color: #fff; }

/* Photo gallery modal links */
.photosWrapper .photos .photo .arContent.openModal { display: block; }

/* Contents grid links */
.contentsSection .postsWrapper .posts .post .postPhoto { display: block; }
.contentsSection .postsWrapper .posts .post .textField1 a,
.contentsSection .postsWrapper .posts .post .textField2 a { text-decoration: none; }

/* Map (keyless Google Maps embed) */
.mapSection .kx-map { position: relative; overflow: hidden; }
.mapSection .kx-map iframe { position: absolute; inset: 0; }
.mapSection .kx-directions { position: absolute; left: 10px; bottom: 10px; z-index: 1; background: #fff; color: #1a73e8; font-size: 14px; padding: 6px 10px; border-radius: 3px; box-shadow: 0 1px 4px rgba(0,0,0,.3); text-decoration: none; }
.mapSection .kx-directions:hover { text-decoration: underline; }

/* Forms */
.formSection .form fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.formSection .formItem { display: block; width: 100%; box-sizing: border-box; border-style: solid; outline: none; font: inherit; }
.formSection .formItem.is-invalid { border-style: solid; }
.formSection .formIsSent { padding: 15px; }
.searchSection .formItem { display: block; width: 100%; box-sizing: border-box; border-style: solid; outline: none; font: inherit; }

/* Floating widget buttons: icon centred like the engine */
.widget-button { text-decoration: none; display: inline-flex; align-items: center; justify-content: center; }
.widget-button i { display: inline-block; text-align: center; }

/* Logo fallback text */
.logoWrapper .logoText { font-weight: bold; font-size: 20px; white-space: nowrap; }

/* Search results summary */
.kx-search-summary { text-align: center; }

/* KodXP credit icon in the footer (links to kodxp.com) — always pinned to the right, vertically centred */
.bottomSectionDesign .bottomMenuWrapper { position: relative; }
.bottomSectionDesign .kx-credit { position: absolute; right: 0; top: 50%; transform: translateY(-50%); line-height: 0; }
.bottomSectionDesign .kx-credit a { display: inline-block; color: #25bec8; opacity: .85; transition: opacity .2s; line-height: 0; }
.bottomSectionDesign .kx-credit a:hover { opacity: 1; }
.bottomSectionDesign .kx-credit svg { width: .85em; height: 1.18em; display: block; }
.bottomSectionDesign.kx-footer-fallback { padding: 20px 0; }
.bottomSectionDesign.kx-footer-fallback .kx-credit { position: static; transform: none; text-align: right; }

/* Language switcher (multi-language sites) */
.topSectionDesign .kx-langs { display: table-cell; vertical-align: middle; }
.topSectionDesign .kx-langs .dtc { white-space: nowrap; }
.kx-langs .kx-lang { color: inherit; text-decoration: none; font-size: 13px; opacity: .6; margin-left: 10px; }
.kx-langs .kx-lang:first-child { margin-left: 16px; }
.kx-langs .kx-lang.active { opacity: 1; font-weight: bold; text-decoration: underline; }

/* İletişim formu görsel CAPTCHA alanı (resources/views/partials/contact-captcha.blade.php) */
.formSection .kx-captcha { display: block; }
.formSection .kx-captcha__label { display: block; margin-bottom: 6px; font-size: .9em; opacity: .85; }
.formSection .kx-captcha__row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.formSection .kx-captcha__img { height: 48px; width: auto; border-radius: 8px; background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.12); }
.formSection .kx-captcha__refresh { border: 0; background: transparent; cursor: pointer; padding: 6px; line-height: 0; color: inherit; opacity: .65; border-radius: 6px; }
.formSection .kx-captcha__refresh:hover { opacity: 1; }
.formSection .kx-captcha__row .kx-captcha__input { flex: 1 1 140px; width: auto; min-width: 0; }
.formSection .kx-captcha__error { margin: 6px 0 0; font-size: .85em; color: #c62828; }
