/* 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; }

/* Tabbed pages (tabs-index / tabs-item templates) and page documents */
.kxTabsSection { padding: 10px 0 50px; }
.kxTabsSection .container { box-sizing: border-box; padding: 0; }
.kxTabsIntro { margin-bottom: 25px; }
.kxTabList { display: flex; flex-wrap: wrap; gap: 6px; border-bottom: 2px solid rgba(127, 127, 127, .25); margin-bottom: 25px; }
.kxTab { position: relative; display: inline-block; padding: 12px 20px; margin-bottom: -2px; border-bottom: 3px solid transparent; color: inherit; opacity: .75; font-weight: 600; text-decoration: none; transition: color .15s, border-color .15s, background-color .15s; border-radius: 6px 6px 0 0; }
.kxTab:hover { opacity: 1; color: var(--kx-accent, #0f766e); background: rgba(127, 127, 127, .08); }
.kxTab.active { opacity: 1; color: var(--kx-accent, #0f766e); border-bottom-color: var(--kx-accent, #0f766e); }
.kxTab:focus-visible { outline: 2px solid var(--kx-accent, #0f766e); outline-offset: 2px; }
.kxTabPanel[hidden] { display: none; }
.kxTabPanel > * + * { margin-top: 25px; }
.kxTabEmpty { opacity: .7; font-style: italic; }
.kxTabPhotos { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 10px; }
.kxTabPhotos a { display: block; aspect-ratio: 4 / 3; overflow: hidden; border-radius: 8px; }
.kxTabPhotos img { width: 100%; height: 100%; object-fit: cover; display: block; }
.kxDocuments { margin-bottom: 25px; }
.kxDocumentsTitle { font-size: 18px; margin: 0 0 12px; }
.kxDocumentList { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 10px; }
.kxDocument { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid #e5e7eb; border-radius: 10px; background: #fff; color: #1f2937; text-decoration: none; transition: border-color .15s, box-shadow .15s; }
.kxDocument:hover { border-color: var(--kx-accent, #0f766e); box-shadow: 0 4px 14px rgba(0, 0, 0, .06); }
.kxDocumentIcon { flex: none; display: flex; align-items: center; justify-content: center; width: 42px; height: 42px; border-radius: 8px; background: #fef2f2; color: #dc2626; }
.kxDocumentText { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.kxDocumentName { font-weight: 600; overflow-wrap: anywhere; }
.kxDocumentMeta { font-size: 13px; color: #6b7280; }
.kxDocumentAction { flex: none; font-size: 13px; font-weight: 600; color: var(--kx-accent, #0f766e); }
@media (max-width: 991px) {
  /* Same side padding as the kitiket text sections on mobile */
  .kxTabsSection .container { padding: 0 30px; }
}
@media (max-width: 767px) {
  /* Wrapped chips instead of an underline row: every tab stays visible */
  .kxTabList { gap: 8px; border-bottom: 0; }
  .kxTab { padding: 8px 14px; margin: 0; border: 1px solid rgba(127, 127, 127, .4); border-radius: 999px; font-size: 14px; }
  .kxTab.active { color: #fff; background: var(--kx-accent, #0f766e); border-color: var(--kx-accent, #0f766e); }
  .kxDocumentList { grid-template-columns: 1fr; }
}
