/* Vizyon Hafriyat — dinamik siteye eklenen bileşenler.
   style.css (özgün tasarım) değiştirilmez; buradaki kurallar aynı tokenları ve bileşen dilini kullanır. */

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.hp { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.opt { font-weight: 400; color: var(--muted); }
.dark-form .opt { color: var(--muted-dark); }

/* ---------- Form durumları ---------- */
.field input[aria-invalid="true"], .field select[aria-invalid="true"], .field textarea[aria-invalid="true"] { border-color: #c2410c; box-shadow: inset 0 0 0 1px #c2410c; }
.check input[aria-invalid="true"] { outline: 2px solid #c2410c; outline-offset: 2px; }
.field-error { margin: 6px 0 0; font-size: 13.5px; font-weight: 600; color: #b23a0b; }
.dark-form .field-error, .ticket .field-error { color: #ffb38a; }
.form-error { margin: 0; padding: 12px 14px; border-left: 4px solid #c2410c; background: #fdf0e8; color: #7c2d12; font-size: 15px; font-weight: 600; }
.dark-form .form-error, .ticket .form-error { background: rgba(194,65,12,.18); color: #ffd4bd; }
.btn.is-loading { position: relative; color: transparent !important; pointer-events: none; }
.btn.is-loading svg { opacity: 0; }
.btn.is-loading::after { content: ""; position: absolute; left: 50%; top: 50%; width: 20px; height: 20px; margin: -10px 0 0 -10px; border-radius: 50%;
  border: 2.5px solid var(--ink); border-right-color: transparent; animation: vh-spin .7s linear infinite; }
.btn-k.is-loading::after { border-color: var(--white); border-right-color: transparent; }
@keyframes vh-spin { to { transform: rotate(360deg); } }

.form-result { display: grid; grid-template-columns: auto 1fr; gap: 18px; align-items: start; padding: 24px; background: var(--white); border: 1px solid var(--line); border-left: 6px solid var(--yellow); }
.form-result:focus { outline: 3px solid var(--yellow); outline-offset: 3px; }
.form-result-ic { display: grid; place-items: center; width: 44px; height: 44px; background: var(--yellow); color: var(--ink); border-radius: 2px; }
.form-result-ic svg { width: 24px; height: 24px; }
.form-result .h { font-size: 22px; margin: 4px 0 8px; }
.form-result p { margin: 0 0 14px; color: var(--muted); }
.form-result-ref b { color: var(--ink); font-variant-numeric: tabular-nums; letter-spacing: .02em; }
.contact .form-result, .ticket .form-result { background: var(--ink-2); border-color: var(--ink-line); color: var(--white); }
.contact .form-result p, .ticket .form-result p { color: var(--muted-dark); }
.contact .form-result-ref b, .ticket .form-result-ref b { color: var(--yellow); }

/* Planlayıcı: "sizi arayalım" mini formu (ticket koyu zeminde) */
.ticket-callback { margin-top: 14px; padding-top: 16px; border-top: 1px dashed rgba(255,255,255,.2); }
.ticket-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.ticket-form-row .btn { grid-column: 1 / -1; justify-content: center; }
.ticket-form .field input { background: var(--ink-2); border-color: var(--ink-line); color: var(--white); min-height: 48px; }
.ticket-form .field input:focus { border-color: var(--yellow); box-shadow: inset 0 0 0 1px var(--yellow); }
.ticket-form .field input::placeholder { color: var(--muted-dark); }
.ticket .form-result { grid-template-columns: 1fr; padding: 18px; }
.ticket .form-result-ic { display: none; }
@media (max-width: 560px) { .ticket-form-row { grid-template-columns: 1fr; } }

/* ---------- Önizleme şeridi ---------- */
.preview-bar { position: sticky; top: 0; z-index: 90; padding: 10px var(--gut); background: var(--yellow); color: var(--ink); font-weight: 700; font-size: 14px; text-align: center; }

/* ---------- Çerez tercihleri ---------- */
.cc { position: fixed; left: 0; right: 0; bottom: 0; z-index: 95; padding: 16px; pointer-events: none; }
.cc[hidden] { display: none; }
.cc-box { pointer-events: auto; max-width: 760px; margin: 0 auto; background: var(--ink); color: var(--white); border-top: 4px solid var(--yellow); padding: 24px 26px 22px; box-shadow: 0 18px 60px rgba(0,0,0,.35); border-radius: 2px; }
.cc-title { font-size: 22px; margin-bottom: 8px; }
.cc-text { margin: 0 0 16px; color: #d9d5ca; font-size: 15.5px; line-height: 1.55; }
.cc-text a { color: var(--yellow); }
.cc-prefs { display: grid; gap: 10px; margin: 0 0 16px; }
.cc-opt { display: grid; grid-template-columns: auto 1fr; gap: 12px; padding: 12px 14px; border: 1px solid var(--ink-line); border-radius: 2px; cursor: pointer; }
.cc-opt input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--yellow); }
.cc-opt b { display: block; }
.cc-opt small { color: var(--muted-dark); font-size: 13.5px; }
.cc-acts { display: flex; flex-wrap: wrap; gap: 8px; }
.cc-acts .btn { min-height: 48px; padding: 0 18px; font-size: 15px; }
.cc-acts .btn-k { background: var(--ink-2); border-color: var(--ink-line); }
.cc-acts .btn-o { color: var(--white); }
@media (max-width: 700px) { .cc { padding: 0; } .cc-box { border-radius: 0; padding: 20px 18px calc(18px + env(safe-area-inset-bottom)); } .cc-acts .btn { flex: 1 1 100%; justify-content: center; } }
html.menu-open .cc { display: none; }
@media (max-width: 960px) { .cc { bottom: 64px; } }

/* ---------- Olay testi paneli (yalnızca yöneticiye) ---------- */
.vh-debug { position: fixed; left: 12px; bottom: 12px; z-index: 99; width: min(360px, calc(100vw - 24px)); max-height: 46vh; overflow: auto; background: #0e0e0c; color: #e9e6dd;
  font: 12px/1.45 ui-monospace, SFMono-Regular, Menlo, monospace; padding: 12px 14px; border: 1px solid var(--yellow); border-radius: 2px; }
.vh-debug b { color: var(--yellow); display: block; margin-bottom: 4px; font-size: 13px; }
.vh-debug small { display: block; color: #a9a597; }
.vh-debug ol { margin: 8px 0 0; padding: 0; list-style: none; }
.vh-debug li { padding: 6px 0; border-top: 1px solid #2a2a25; }
.vh-debug time { color: #a9a597; }
.vh-debug code { display: block; color: #9ae6b4; word-break: break-all; }

/* ---------- Alt bilgi sosyal ---------- */
.footer .social { display: flex; gap: 8px; margin-top: 18px; }
.footer .social a { display: grid; place-items: center; width: 40px; height: 40px; border: 1px solid var(--ink-line); color: var(--white); border-radius: 2px; transition: background .18s, color .18s; }
.footer .social a:hover { background: var(--yellow); color: var(--ink); border-color: var(--yellow); }
.footer .social svg { width: 18px; height: 18px; }

/* ---------- Hizmet satırı başlık bağlantısı ve detay ---------- */
.svc-link { color: inherit; text-decoration: none; background-image: linear-gradient(var(--yellow), var(--yellow)); background-size: 0 3px; background-repeat: no-repeat; background-position: 0 100%; transition: background-size .25s ease; }
.svc-link:hover, .svc-link:focus-visible { background-size: 100% 3px; }
.svc-detail { display: grid; grid-template-columns: 7fr 4fr; gap: clamp(32px, 5vw, 80px); align-items: start; }
.svc-aside { position: sticky; top: calc(var(--bar-h, 72px) + 32px); background: var(--white); border: 1px solid var(--line); padding: 28px; }
.svc-aside-acts { display: grid; gap: 10px; margin-top: 28px; }
.svc-aside-acts .btn { justify-content: center; }
.svc-list-compact .svc-item { grid-template-columns: 56px 1fr; }
@media (max-width: 960px) { .svc-detail { grid-template-columns: 1fr; } .svc-aside { position: static; } }

/* ---------- Zengin metin ---------- */
.prose-wrap { max-width: 860px; }
.prose { font-size: 18px; line-height: 1.7; color: var(--ink); }
.prose > :first-child { margin-top: 0; }
.prose h2 { font-size: clamp(26px, 2.6vw, 36px); margin: 1.6em 0 .5em; }
.prose h3 { font-size: clamp(21px, 2vw, 26px); margin: 1.4em 0 .4em; }
.prose p, .prose ul, .prose ol { margin: 0 0 1.1em; }
.prose a { color: inherit; text-decoration-color: var(--yellow); text-decoration-thickness: 3px; text-underline-offset: 3px; }
.prose blockquote { margin: 1.4em 0; padding: 4px 0 4px 22px; border-left: 4px solid var(--yellow); font-size: 1.1em; color: var(--muted); }
.prose img { margin: 1.4em 0; }
.prose ul li::marker { color: var(--yellow-deep); }
.prose table { width: 100%; border-collapse: collapse; margin: 1.4em 0; font-size: 16px; }
.prose th, .prose td { border: 1px solid var(--line); padding: 10px 12px; text-align: left; }
.prose .tag { display: block; margin-bottom: 18px; color: var(--muted); }

/* ---------- Blog ---------- */
.blog-bar { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; align-items: center; margin-bottom: 36px; }
.blog-bar .arc-filters a { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px; border: 1px solid var(--line); background: var(--white); font-weight: 600; font-size: 15px; text-decoration: none; border-radius: 2px; }
.blog-bar .arc-filters a span { font-size: 12px; font-weight: 700; color: var(--muted); background: var(--paper-2); padding: 2px 7px; border-radius: 2px; }
.blog-bar .arc-filters a[aria-current="page"] { background: var(--ink); color: var(--white); border-color: var(--ink); }
.blog-bar .arc-filters a[aria-current="page"] span { background: var(--yellow); color: var(--ink); }
.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.post-card { display: grid; grid-template-rows: auto 1fr; background: var(--white); border: 1px solid var(--line); text-decoration: none; color: inherit; border-radius: 2px; transition: border-color .2s, transform .2s; }
.post-card:hover { border-color: var(--ink); transform: translateY(-2px); }
.post-media { aspect-ratio: 16 / 10; background: var(--paper-2); overflow: hidden; }
.post-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.post-card:hover .post-media img { transform: scale(1.04); }
.post-body { display: grid; gap: 10px; align-content: start; padding: 20px 22px 22px; }
.post-meta { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; font-size: 13px; color: var(--muted); }
.post-meta .arc-cat { background: var(--yellow); color: var(--ink); padding: 3px 8px; font-weight: 700; font-size: 12px; letter-spacing: .04em; text-transform: uppercase; }
.post-title { font-weight: 800; font-size: 22px; line-height: 1.15; font-stretch: 112%; font-variation-settings: "wdth" 112; }
.post-excerpt { color: var(--muted); font-size: 15.5px; }
.post-go { display: inline-flex; gap: 8px; align-items: center; font-weight: 700; font-size: 15px; margin-top: 6px; }
.post-go svg { width: 18px; height: 18px; }
.post-h1 { font-size: clamp(36px, 5vw, 72px); max-width: 20ch; }
.post-headmeta { font-weight: 600; }
.post-cta { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 18px; align-items: center; margin-top: 56px; padding: 26px; background: var(--ink); color: var(--white); border-left: 6px solid var(--yellow); }
.post-cta p { margin: 0; }
.pager { display: flex; justify-content: center; align-items: center; gap: 18px; margin-top: 48px; font-weight: 700; }
.pager a { text-decoration: none; border-bottom: 2px solid var(--yellow); padding-bottom: 3px; }
.pager-off { color: var(--muted); opacity: .6; }
@media (max-width: 1040px) { .post-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .post-grid { grid-template-columns: 1fr; } }

/* ---------- Arama ---------- */
.site-search { display: flex; min-width: min(360px, 100%); }
.site-search input { flex: 1; min-height: 48px; padding: 0 14px; border: 1px solid var(--line); border-right: 0; background: var(--white); border-radius: 2px 0 0 2px; font-size: 16px; }
.site-search input:focus { outline: 0; border-color: var(--ink); }
.site-search button { display: grid; place-items: center; width: 52px; border: 0; background: var(--ink); color: var(--yellow); cursor: pointer; border-radius: 0 2px 2px 0; }
.site-search button svg { width: 20px; height: 20px; }
.site-search-lg { margin-top: 28px; max-width: 640px; }
.site-search-lg input { min-height: 60px; font-size: 18px; border: 0; }
.site-search-lg .btn { width: auto; padding: 0 22px; border-radius: 0 2px 2px 0; }
.search-results { list-style: none; margin: 24px 0 0; padding: 0; display: grid; gap: 10px; }
.search-results a { display: grid; gap: 6px; padding: 18px 20px; background: var(--white); border: 1px solid var(--line); text-decoration: none; border-radius: 2px; }
.search-results a:hover { border-color: var(--ink); }
.search-results .arc-cat { justify-self: start; background: var(--paper-2); padding: 2px 8px; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; }
.search-results b { font-size: 19px; }
.search-results span:last-child { color: var(--muted); font-size: 15px; }

/* ---------- Boş durum ---------- */
.empty-state { padding: clamp(32px, 5vw, 64px); background: var(--white); border: 1px dashed var(--line); text-align: center; display: grid; gap: 12px; justify-items: center; }
.empty-state .h { font-size: 24px; }
.empty-state p { margin: 0; color: var(--muted); max-width: 50ch; }

/* ---------- Bakım / hata ---------- */
body.maint { background: var(--ink); color: var(--white); min-height: 100vh; display: grid; place-items: center; }
.maint-main { max-width: 640px; padding: 48px var(--gut); display: grid; gap: 22px; justify-items: start; }
.maint-main .lead { color: #d9d5ca; }
.maint-main .acts { display: flex; flex-wrap: wrap; gap: 10px; }

/* 3D modeli olmayan makinede fotoğraf gösterilir */
.feature.no-3d .feature-fallback { opacity: 1; }
