/* Herkese açık site hareket katmanı. Tüm kurallar html.motion sınıfına bağlıdır: JS çalışmazsa bu sınıf
   hiç eklenmez ve sayfa olduğu gibi (animasyonsuz) görünür. motion.js ile birlikte çalışır. */

/* Sayfa açılışında yumuşak giriş */
@keyframes m-page-in { from { opacity: 0; } to { opacity: 1; } }
html.motion body { animation: m-page-in .5s ease-out both; }

/* Kaydırma ilerleme çubuğu */
.m-progress { position: fixed; left: 0; top: 0; height: 3px; width: 100%; z-index: 2000; transform-origin: 0 50%;
  transform: scaleX(0); background: linear-gradient(90deg, #e8899a, #a41e35, #5a0f1f); pointer-events: none; }

/* Yüzen "hap" menü */
html .navbar-odtu {
  top: 10px; margin: 10px 16px 0; border-radius: 22px; border-bottom: 0 !important;
  transition: transform .45s cubic-bezier(.2, .8, .2, 1), box-shadow .3s ease;
}
html.motion .navbar-odtu.m-hidden { transform: translateY(-140%); }
html.motion .navbar-odtu.m-stuck { box-shadow: 0 16px 40px -14px rgba(11, 14, 29, .75); }
@media (max-width: 1199.98px) { html .navbar-odtu { margin: 8px 10px 0; border-radius: 18px; } }

/* Kaydırınca beliren öğeler */
html.motion .m-reveal { opacity: 0; transform: translate3d(0, 34px, 0) scale(.985); will-change: opacity, transform; }
html.motion .m-reveal.m-in {
  opacity: 1; transform: none;
  transition: opacity .8s cubic-bezier(.2, .8, .2, 1), transform .9s cubic-bezier(.2, .8, .2, 1);
  transition-delay: var(--m-delay, 0ms);
}
html.motion .m-reveal.m-done { will-change: auto; transition-delay: 0ms; }

/* Kelime kelime başlık açılışı */
html.motion .m-words .m-w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .08em; }
html.motion .m-words .m-w > span { display: inline-block; transform: translateY(110%); }
html.motion .m-words.m-in .m-w > span {
  transform: none; transition: transform .9s cubic-bezier(.2, .8, .2, 1); transition-delay: calc(var(--i) * 70ms + 150ms);
}

/* Hero: yüzen cam şekiller */
.hero-odtu { position: relative; overflow: hidden; isolation: isolate; }
.m-shapes { position: absolute; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.m-shape {
  position: absolute; border-radius: 34%; will-change: transform;
  background: linear-gradient(140deg, rgba(255, 255, 255, .26), rgba(255, 255, 255, .04) 60%);
  border: 1px solid rgba(255, 255, 255, .35);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .06), 0 30px 60px -30px rgba(0, 0, 0, .55);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.m-shape.s1 { width: 300px; height: 300px; left: -70px; top: 12%; --r: -18deg; }
.m-shape.s2 { width: 200px; height: 200px; right: 6%; top: -50px; --r: 24deg; border-radius: 40%; }
.m-shape.s3 { width: 340px; height: 340px; right: -90px; bottom: -110px; --r: 12deg;
  background: linear-gradient(140deg, rgba(255, 120, 140, .35), rgba(255, 120, 140, .04) 60%); }
.m-shape.s4 { width: 120px; height: 120px; left: 22%; bottom: 8%; --r: 35deg; border-radius: 38%; }
.m-shape { transform: translate3d(var(--px, 0), var(--py, 0), 0) rotate(var(--r, 0deg)); animation: m-float 9s ease-in-out infinite; }
.m-shape.s2 { animation-duration: 11s; animation-delay: -3s; }
.m-shape.s3 { animation-duration: 13s; animation-delay: -6s; }
.m-shape.s4 { animation-duration: 8s; animation-delay: -2s; }
@keyframes m-float {
  0%, 100% { margin-top: 0; }
  50% { margin-top: -22px; }
}
@media (max-width: 767px) { .m-shape.s1, .m-shape.s3 { opacity: .55; } .m-shape.s4 { display: none; } }

/* Kartlarda üst çizgi parlaması (imleç takibi effects.css'te) */
html.motion .feature-card { transition: transform .35s cubic-bezier(.2, .8, .2, 1), box-shadow .35s ease; }

/* Dallar/halkalar hover */
html.motion .btn { transition: transform .25s cubic-bezier(.2, .8, .2, 1), box-shadow .25s ease, background-color .2s ease; }
html.motion .btn:hover { transform: translateY(-2px); }

/* Hareketi azalt: hiçbir animasyon çalışmasın */
@media (prefers-reduced-motion: reduce) {
  html.motion body { animation: none; }
  html.motion .m-reveal, html.motion .m-words .m-w > span { opacity: 1 !important; transform: none !important; transition: none !important; }
  .m-shape { animation: none; }
  .m-progress { display: none; }
  html.motion .navbar-odtu.m-hidden { transform: none; }
}

/* ===== v2: Nodenza tarzı açık pastel hero + beyaz "hap" menü (yalnızca açık temada) ===== */
html:not([data-theme="dark"]) .navbar-odtu {
  background: #fff; box-shadow: 0 10px 30px -14px rgba(22, 27, 51, .28); border: 1px solid rgba(22, 27, 51, .05);
}
html:not([data-theme="dark"]) .navbar-odtu .nav-link,
html:not([data-theme="dark"]) .navbar-odtu .navbar-brand { color: #161b33 !important; }
html:not([data-theme="dark"]) .navbar-odtu .nav-link:hover { color: #a41e35 !important; background: rgba(164, 30, 53, .07); }
html:not([data-theme="dark"]) .navbar-odtu .nav-link.active { color: #fff !important; background: #a41e35; }
html:not([data-theme="dark"]) .navbar-odtu .navbar-toggler { border-color: rgba(22, 27, 51, .25); }
html:not([data-theme="dark"]) .navbar-odtu .navbar-toggler-icon { filter: invert(1) brightness(.2); }
html:not([data-theme="dark"]) .navbar-odtu .btn-outline-light { color: #161b33; border-color: rgba(22, 27, 51, .22); background: transparent; }
html:not([data-theme="dark"]) .navbar-odtu .btn-outline-light:hover { background: rgba(22, 27, 51, .06); color: #161b33; }
html:not([data-theme="dark"]) .navbar-odtu .btn-light { background: #161b33; color: #fff; border-color: #161b33; }
html:not([data-theme="dark"]) .navbar-odtu .btn-light:hover { background: #a41e35; border-color: #a41e35; color: #fff; }

html:not([data-theme="dark"]) .hero-odtu {
  background:
    radial-gradient(900px 480px at 78% 10%, rgba(255, 255, 255, .85), transparent 60%),
    radial-gradient(700px 420px at 8% 90%, rgba(164, 30, 53, .10), transparent 60%),
    linear-gradient(180deg, #f8e6ea 0%, #fbf0ef 55%, #f7f2ef 100%);
  background-blend-mode: normal; color: #161b33; box-shadow: none; min-height: calc(100vh - 150px); margin-top: -8px;
}
html:not([data-theme="dark"]) .hero-odtu::before { display: none; }
html:not([data-theme="dark"]) .hero-odtu h1 {
  color: #4a0d1e; font-size: clamp(2.6rem, 7vw, 5.6rem); line-height: 1.02; font-weight: 700; letter-spacing: -.045em; text-shadow: none; margin-bottom: 1.4rem !important;
}
html:not([data-theme="dark"]) .hero-odtu .lead { color: #2b2f45; font-size: clamp(1rem, 1.6vw, 1.3rem); max-width: 46ch; margin-left: auto; margin-right: auto; }
html:not([data-theme="dark"]) .hero-odtu .btn { border-radius: 14px; padding: .95rem 1.7rem; font-weight: 600; box-shadow: 0 12px 28px -14px rgba(22, 27, 51, .4); }
html:not([data-theme="dark"]) .hero-odtu .btn-light { background: #fff; color: #4a0d1e !important; border: 0; }
html:not([data-theme="dark"]) .hero-odtu .btn-light::after { content: " \2197"; }
html:not([data-theme="dark"]) .hero-odtu .btn-outline-light { color: #161b33; border: 1px solid rgba(22, 27, 51, .3); background: transparent; box-shadow: none; }
html:not([data-theme="dark"]) .hero-odtu .btn-outline-light:hover { background: rgba(22, 27, 51, .07); color: #161b33; }

/* Cam plakalar: büyük, kalın kenarlı, iki tonlu */
html:not([data-theme="dark"]) .m-shape {
  border-radius: 26%; -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px);
  border: 2px solid rgba(255, 255, 255, .7);
  box-shadow: inset -10px -12px 28px rgba(255, 255, 255, .25), inset 6px 8px 22px rgba(74, 13, 30, .18), 0 40px 70px -34px rgba(22, 27, 51, .55);
}
html:not([data-theme="dark"]) .m-shape.s1 { width: 520px; height: 520px; left: -190px; top: 14%;
  background: linear-gradient(150deg, rgba(222, 128, 146, .55), rgba(255, 205, 212, .38)); }
html:not([data-theme="dark"]) .m-shape.s2 { width: 360px; height: 360px; right: 12%; top: -170px;
  background: linear-gradient(150deg, rgba(150, 32, 54, .9), rgba(74, 13, 30, .92)); border-color: rgba(255, 170, 184, .65); }
html:not([data-theme="dark"]) .m-shape.s3 { width: 560px; height: 560px; right: -200px; bottom: -260px;
  background: linear-gradient(150deg, rgba(120, 24, 44, .9), rgba(43, 11, 19, .95)); border-color: rgba(255, 170, 184, .55); }
html:not([data-theme="dark"]) .m-shape.s4 { width: 150px; height: 150px; left: 24%; bottom: 7%;
  background: linear-gradient(150deg, rgba(164, 30, 53, .45), rgba(164, 30, 53, .15)); border-color: rgba(255, 255, 255, .8); }

/* ===== Kart efektleri (cards.js) ===== */
.feature-card.m-flip { padding: 0 !important; background: transparent !important; border: 0 !important; box-shadow: none !important;
  perspective: 1400px; min-height: 230px; overflow: visible; }
.feature-card.m-flip::after, .feature-card.m-flip::before { display: none !important; }
.m-flip-inner { position: relative; width: 100%; height: 100%; min-height: inherit; transform-style: preserve-3d;
  transition: transform .8s cubic-bezier(.2, .8, .2, 1); }
.feature-card.m-flip:hover .m-flip-inner, .feature-card.m-flip.is-flipped .m-flip-inner, .feature-card.m-flip:focus-visible .m-flip-inner { transform: rotateY(180deg); }
.feature-card.m-flip:focus-visible { outline: 3px solid rgba(164, 30, 53, .4); outline-offset: 6px; border-radius: 1.25rem; }

.m-face { position: absolute; inset: 0; border-radius: 1.25rem; padding: 1.75rem; backface-visibility: hidden; -webkit-backface-visibility: hidden;
  display: flex; flex-direction: column; justify-content: center; overflow: hidden; }
.m-front { background: #fff; box-shadow: 0 1px 2px rgba(28, 25, 23, .04), 0 14px 34px -16px rgba(28, 25, 23, .22); border: 1px solid rgba(28, 25, 23, .05); }
.m-front > i.bi { font-size: 2.4rem !important; margin-bottom: 1rem; background: linear-gradient(135deg, #c94a5c, #8f1a2e); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.m-front h3, .m-front h2, .m-front h4, .m-front h5 { font-weight: 700; letter-spacing: -.02em; }
.m-hint { margin-top: auto; padding-top: 1rem; font-size: .75rem; color: #a8a29e; display: flex; align-items: center; gap: .4rem; }
.m-back { transform: rotateY(180deg); color: #fff;
  background: radial-gradient(400px 220px at 100% 0%, rgba(255, 160, 175, .3), transparent 60%), linear-gradient(150deg, #a41e35, #5a0f1f 70%, #2b0b13);
  box-shadow: 0 24px 50px -20px rgba(74, 13, 30, .7); }
.m-back .m-back-title { color: #fff; font-size: 1.05rem; opacity: .85; margin-bottom: .6rem; font-weight: 600; }
.m-back p { color: rgba(255, 255, 255, .95) !important; font-size: 1.02rem; line-height: 1.55; margin: 0; }
html[data-theme="dark"] .m-front { background: #1f2430; border-color: rgba(255, 255, 255, .06); }

/* Branş halkaları: dönünce arka yüz */
.branch-circle-item { perspective: 700px; }
.branch-icon-badge.m-spin { transform-style: preserve-3d; transition: transform .7s cubic-bezier(.2, .8, .2, 1), box-shadow .3s ease; position: relative; }
.branch-icon-badge.m-spin > *:not(.m-badge-back) { backface-visibility: hidden; -webkit-backface-visibility: hidden; }
.branch-circle-item:hover .branch-icon-badge.m-spin, .branch-circle-item:focus-visible .branch-icon-badge.m-spin { transform: rotateY(180deg); }
.m-badge-back { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .3rem;
  transform: rotateY(180deg); backface-visibility: hidden; -webkit-backface-visibility: hidden; font-weight: 700; font-size: .8rem; color: #fff; border-radius: 50%; }
.m-badge-back i { font-size: 1.6rem; }

/* Görselli kartlar: imleci izleyen eğilme */
.feature-card.m-tilt { transition: transform .25s ease-out, box-shadow .3s ease; transform-style: preserve-3d; }
a.d-block.h-100:hover > .feature-card.m-tilt.m-in, a.d-block.h-100:hover > .feature-card.m-tilt:not(.m-reveal) {
  transform: perspective(900px) rotateX(var(--tx, 0deg)) rotateY(var(--ty, 0deg)) translateY(-4px); box-shadow: 0 26px 50px -22px rgba(28, 25, 23, .4); }

@media (prefers-reduced-motion: reduce) { .m-flip-inner, .branch-icon-badge.m-spin, .feature-card.m-tilt { transition: none; } }

/* ===== Kompakt sayfa başlığı bandı (hero'su olmayan sayfalar) ===== */
.hero-odtu.m-page-hero { min-height: 250px !important; padding: 3.2rem 0 2.6rem !important; margin-top: -8px; margin-bottom: 1.5rem; }
html:not([data-theme="dark"]) .hero-odtu.m-page-hero h1 { font-size: clamp(2rem, 5.2vw, 3.8rem); margin-bottom: 0 !important; }
.m-eyebrow { display: inline-block; margin-bottom: .9rem; padding: .3rem .9rem; border-radius: 999px; font-size: .78rem; font-weight: 700; letter-spacing: .1em;
  text-transform: uppercase; color: #a41e35; background: rgba(255, 255, 255, .75); border: 1px solid rgba(164, 30, 53, .18); backdrop-filter: blur(6px); }
.hero-odtu.m-page-hero + * { margin-top: 0; }
@media (max-width: 767px) { .hero-odtu.m-page-hero { min-height: 190px !important; padding: 2.2rem 0 1.8rem !important; } }

/* ===== Logo amblemli hero: metin sola, cam logo sağa (yalnızca geniş ekran) ===== */
@media (min-width: 992px) {
  .hero-odtu.m-emblem .container { text-align: left !important; }
  .hero-odtu.m-emblem .container > * { max-width: 52%; }
  .hero-odtu.m-emblem .lead { margin-left: 0 !important; margin-right: 0 !important; }
  html:not([data-theme="dark"]) .hero-odtu.m-emblem h1 { font-size: clamp(2.6rem, 4.8vw, 4.6rem); }
}

/* ===== Branşlar sayfası kartları: dönen kart (cards.js 2b) ===== */
a.m-flip-link { position: relative; perspective: 1400px; min-height: 260px; }
a.m-flip-link > .m-flip-inner { min-height: 260px; }
a.m-flip-link:hover > .m-flip-inner, a.m-flip-link:focus-visible > .m-flip-inner { transform: rotateY(180deg); }
.m-front-raw { padding: 0 !important; overflow: visible; position: absolute; inset: 0; display: flex; backface-visibility: hidden; -webkit-backface-visibility: hidden; border-radius: 1.25rem; }
.m-front-raw > .feature-card { flex: 1 1 auto; width: 100%; }
.m-back .m-branch-name { font-size: 1.35rem; font-weight: 800; letter-spacing: -.02em; opacity: 1; margin-bottom: .7rem; }
.m-back .m-go { margin-top: 1.1rem; font-weight: 700; font-size: .95rem; color: #ffd5dc; }
a.m-flip-link .m-back p { font-size: .95rem; }


/* ===== Koyu tema: yapı/tipografi aynı kalır (renkler koyu temanın kendi paletinden) ===== */
html[data-theme="dark"] .hero-odtu h1 { font-size: clamp(2.6rem, 7vw, 5.6rem); line-height: 1.02; letter-spacing: -.045em; }
html[data-theme="dark"] .hero-odtu.m-page-hero h1 { font-size: clamp(2rem, 5.2vw, 3.8rem); margin-bottom: 0 !important; }
html[data-theme="dark"] .m-eyebrow { color: #ffd5dc; background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .2); }
