/* KRC Dijital — site teması */
:root {
  --accent: #E3262E;
  --accent-rgb: 227 38 46;
  --ink: #16181A;
  --ease: cubic-bezier(.2, .7, .2, 1);
  color-scheme: dark;
}
* { -webkit-tap-highlight-color: transparent; }
html { background: #0d1210; scroll-behavior: smooth; }
html.no-scroll, html.no-scroll body { overflow: hidden; }
body { margin: 0; min-height: 100vh; background: transparent; color: #fff; font-family: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', sans-serif; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
img { transition: opacity .45s var(--ease); }
img:not(.is-ld) { opacity: 0; }
img.is-broken { opacity: 0 !important; }

/* Geniş ekranda ve tablette kenarlarda sahnenin bulanık devamı */
#krc-backdrop { position: fixed; inset: 0; z-index: -1; overflow: hidden; background: #0d1210; }
#krc-backdrop img { position: absolute; inset: -10%; width: 120%; height: 120%; object-fit: cover; filter: blur(70px) saturate(1.4) brightness(.5); }

#app { margin: 0 auto; position: relative; }
.app-loading { min-height: 100vh; display: flex; align-items: center; justify-content: center; }
.boot { display: flex; align-items: center; justify-content: center; }
.boot-logo { background: var(--accent); border-radius: 14px; padding: 6px 14px; font-weight: 800; font-size: 28px; animation: boot 1.2s var(--ease) infinite alternate; }
@keyframes boot { from { opacity: .55; transform: scale(.96); } to { opacity: 1; transform: scale(1); } }
.nos { max-width: 720px; margin: 40px auto; padding: 24px; line-height: 1.6; }
.nos a { text-decoration: underline; }

/* Erişilebilirlik */
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: fixed; left: 12px; top: -60px; z-index: 1000; padding: 10px 16px; border-radius: 12px; background: #fff; color: var(--ink); font-weight: 800; transition: top .2s; }
.skip:focus { top: 12px; }
:focus { outline: none; }
:focus-visible { outline: 3px solid #fff; outline-offset: 3px; box-shadow: 0 0 0 6px rgb(var(--accent-rgb) / .55); border-radius: 12px; }
.glass-input:focus-visible, .glass-field:focus-visible { outline: 2px solid #fff; outline-offset: 0; box-shadow: 0 0 0 5px rgb(var(--accent-rgb) / .45); }

/* Etkileşim durumları */
.hv, .sb, .chip, .tile, .store, .btn-accent, .nav-l, .cd, .m-row, .lb-btn { transition: background .2s, transform .25s var(--ease), box-shadow .25s, opacity .2s, border-color .2s; }
.hv:hover { background: rgba(255,255,255,.16) !important; }
.sb:hover { background: rgba(255,255,255,.14); }
.chip:hover { filter: brightness(1.08); }
.chip:active, .store:active, .btn-accent:active, .tile:active, .lb-btn:active { transform: scale(.97); }
.nav-l:hover { opacity: .8; }
.store:hover { transform: translateY(-2px); box-shadow: 0 14px 28px rgba(0,0,0,.28) !important; }
.btn-accent:hover { filter: brightness(1.08); transform: translateY(-1px); }
.btn-accent[disabled] { opacity: .65; cursor: progress; transform: none; }
.tile:hover { transform: translateY(-3px); }
.cd:hover { transform: translateY(-5px); box-shadow: 0 22px 50px rgba(0,0,0,.32) !important; }
.cd:hover .cd-arrow { background: rgba(255,255,255,.95) !important; }
.cd:hover .cd-arrow svg { stroke: var(--ink); }
.cd .cd-cover { transition: transform .8s var(--ease), opacity .45s; }
.cd:hover .cd-cover { transform: scale(1.06); }
.m-row:active { opacity: .7; }
.sh { transition: transform .3s var(--ease); }
.sh:hover { transform: translateY(-6px); }
.hs { scrollbar-width: none; }
.hs::-webkit-scrollbar { display: none; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; letter-spacing: .16em; color: rgba(255,255,255,.88); }
.eyebrow::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 12px rgb(var(--accent-rgb) / .9); }

/* Form elemanları (cam) */
.glass-input::placeholder, .glass-field::placeholder { color: rgba(255,255,255,.72); }
.glass-input::-webkit-search-cancel-button { filter: invert(1); }
.field { display: flex; flex-direction: column; gap: 7px; }
.field label { font-size: 13px; font-weight: 700; letter-spacing: .02em; color: rgba(255,255,255,.9); }
.glass-field { width: 100%; box-sizing: border-box; min-height: 52px; padding: 14px 16px; border-radius: 16px; border: 1px solid rgba(255,255,255,.34); background: rgba(255,255,255,.12); color: #fff; font-size: 16px; backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); transition: border-color .2s, background .2s; }
.glass-field:hover { background: rgba(255,255,255,.16); }
textarea.glass-field { resize: vertical; min-height: 140px; line-height: 1.55; }
.glass-field[aria-invalid="true"] { border-color: #FF8A90; background: rgba(227,38,46,.14); }
.glass-select { appearance: none; -webkit-appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 38px; }
.glass-select option { background: #1b1f24; color: #fff; }
.field-err { min-height: 16px; font-size: 12.5px; font-weight: 600; color: #FFB3B7; }
.field-err:empty { min-height: 0; }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; line-height: 1.5; cursor: pointer; }
.check input { width: 20px; height: 20px; margin-top: 1px; accent-color: var(--accent); flex-shrink: 0; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-alert { padding: 12px 14px; border-radius: 14px; background: rgba(227,38,46,.22); border: 1px solid rgba(255,138,144,.6); font-size: 14px; font-weight: 600; }

/* Mobil menü */
.m-menu-scrim { position: fixed; inset: 0; z-index: 90; background: rgba(0,0,0,.35); backdrop-filter: blur(4px); animation: fade .25s var(--ease); }
.m-menu { position: fixed; z-index: 91; top: 10px; left: 10px; right: 10px; max-height: calc(100vh - 20px); overflow-y: auto; box-sizing: border-box; padding: 16px; border-radius: 26px; display: flex; flex-direction: column; animation: drop .32s var(--ease); }
.m-link { display: flex; align-items: center; justify-content: space-between; height: 56px; padding: 0 16px; margin-bottom: 6px; border-radius: 18px; background: rgba(255,255,255,.08); font-size: 17px; font-weight: 700; }
.m-link.on { background: rgba(255,255,255,.9); color: var(--ink); }
@keyframes drop { from { opacity: 0; transform: translateY(-14px) scale(.98); } to { opacity: 1; transform: none; } }

/* Galeri büyütme */
.lightbox { position: fixed; inset: 0; z-index: 100; background: rgba(10,12,16,.6); backdrop-filter: blur(30px) saturate(1.4); -webkit-backdrop-filter: blur(30px) saturate(1.4); display: flex; align-items: center; justify-content: center; gap: 60px; animation: fade .25s var(--ease); }
.lightbox-m { gap: 0; }
.lb-btn { width: 60px; height: 60px; border-radius: 50%; color: #fff; display: flex; align-items: center; justify-content: center; cursor: pointer; }
.lb-close { position: absolute; top: 34px; right: 40px; }

/* Bildirim */
.toast { position: fixed; left: 50%; bottom: 26px; z-index: 200; transform: translate(-50%, 30px); opacity: 0; pointer-events: none; padding: 14px 20px; border-radius: 18px; background: rgba(18,21,26,.9); border: 1px solid rgba(255,255,255,.25); backdrop-filter: blur(20px); color: #fff; font-weight: 700; font-size: 15px; box-shadow: 0 20px 40px rgba(0,0,0,.35); transition: transform .35s var(--ease), opacity .35s; }
.toast.show { transform: translate(-50%, 0); opacity: 1; }
.toast.err { border-color: #FF8A90; }

/* Animasyonlar */
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes rise { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }
@keyframes pop { from { opacity: 0; transform: scale(.92); } to { opacity: 1; transform: none; } }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
@keyframes kenburns { from { transform: scale(1); } to { transform: scale(1.06); } }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(255,255,255,.45); } 70% { box-shadow: 0 0 0 16px rgba(255,255,255,0); } 100% { box-shadow: 0 0 0 0 rgba(255,255,255,0); } }
@keyframes phones { from { opacity: 0; transform: translateY(40px) scale(.97); } to { opacity: 1; transform: none; } }
.fx-fade { animation: fade .8s var(--ease) both; }
.fx-in { animation: rise .7s var(--ease) both; }
.fx-pop { animation: pop .4s var(--ease) both; }
.fx-phones { animation: phones .9s var(--ease) both; }
.fx-float { width: 280px; height: 580px; animation: float 6s ease-in-out infinite; }
.fx-d1 { animation-delay: -2s; }
.fx-d2 { animation-delay: -4s; }
.fx-kenburns { animation: kenburns 24s ease-in-out infinite alternate; }
.play-pulse { animation: pulse 2.4s infinite; }
.video-card img { transition: transform .8s var(--ease); }
.video-card:hover img { transform: scale(1.05); }
/* Kaydırdıkça belirme (destekleyen tarayıcılarda, JS gerektirmez) */
@supports (animation-timeline: view()) {
  .fx-reveal, .fx-up { animation: rise linear both; animation-timeline: view(); animation-range: entry 0% entry 55%; }
}

/* Cam efekti (backdrop-filter) desteklenmiyorsa okunabilirlik için koyu zemin */
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  [style*="backdrop-filter"] { background-color: rgba(20,24,28,.82) !important; }
}

/* Hareket azaltma tercihi */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  img:not(.is-ld) { opacity: 1; }
}

/* Tanıtım videosu */
.video-card video.bgvid { transform: scale(1.02); transition: transform .8s var(--ease); background: #000; }
.video-card:hover video.bgvid { transform: scale(1.07); }
.vc-btn { display: block; }
.vc-btn:hover .play-pulse { background: rgb(var(--accent-rgb) / .9) !important; border-color: #fff !important; transform: scale(1.06); }
.play-pulse { transition: background .25s, transform .25s var(--ease); }
.vbox { flex-direction: column; gap: 0; background: rgba(6,8,10,.82); }
.vbox-stage { width: min(1100px, 92vw); display: flex; flex-direction: column; gap: 12px; }
.vbox-video { width: 100%; max-height: 78vh; border-radius: 22px; background: #000; box-shadow: 0 30px 80px rgba(0,0,0,.6); outline: none; }
.vbox-bar { display: flex; align-items: center; gap: 12px; padding: 0 6px; }
html[data-mode="mobile"] .vbox-stage { width: 94vw; }
html[data-mode="mobile"] .lb-close { top: 14px; right: 14px; }
/* Uzun istatistik başlıkları kesilmesin: 6 karakterden uzunsa küçülür ve gerekirse iki satıra iner */
.st-b[data-l="1"] { font-size: 13px !important; line-height: 1.05; letter-spacing: -.02em !important; white-space: normal !important; overflow-wrap: break-word; }

/* Açık (beyaz cam) üst menü ve ana sayfa vitrini */
.glass-input.lt::placeholder { color: #6B7079; }
.glass-input.lt::-webkit-search-cancel-button { filter: none; }
.glass-input.lt:focus-visible { outline: 2px solid var(--accent); box-shadow: 0 0 0 5px rgb(var(--accent-rgb) / .2); }
.page.lite { --hdr-ink: #FFFFFF; }
.ph-slot { position: absolute; padding: 0; border: 0; background: none; cursor: pointer; transition: transform 1s var(--ease), filter 1s var(--ease), opacity .7s var(--ease); will-change: transform; }
.ph-bob { width: 280px; height: 580px; animation: float 6s ease-in-out infinite; }
.chip-f { animation: float 7s ease-in-out infinite; }
.chip-f.d1 { animation-delay: -1.6s; } .chip-f.d2 { animation-delay: -3.1s; } .chip-f.d3 { animation-delay: -4.4s; } .chip-f.d4 { animation-delay: -5.5s; }
.pod-glow { animation: podglow 3.2s ease-in-out infinite; }
@keyframes podglow { 0%, 100% { opacity: .75; } 50% { opacity: 1; } }
.svc { transition: transform .3s var(--ease), background .25s, border-color .25s; }
.svc:hover { transform: translateY(-5px); background: rgba(255,255,255,.14) !important; border-color: rgba(255,255,255,.4) !important; }
.svc:hover .svc-go { background: var(--accent) !important; color: #FFFFFF !important; }
.dot-b { transition: width .4s var(--ease), background .3s; }
@media (prefers-reduced-motion: reduce) { .ph-bob, .chip-f, .pod-glow { animation: none; } .ph-slot { transition: none; } }

/* Premium cam: kartların üzerinden geçen ışık süzmesi */
.svc { overflow: hidden; }
.svc::after { content: ''; position: absolute; top: 0; left: -80%; width: 55%; height: 100%; background: linear-gradient(105deg, transparent, rgba(255,255,255,.22), transparent); transform: skewX(-18deg); transition: left .8s var(--ease); pointer-events: none; }
.svc:hover::after { left: 130%; }
@media (prefers-reduced-motion: reduce) { .svc::after { display: none; } }
