/* CloudCraft ortak hareket ayarlari.
   Sureler ve egriler tek yerde; yay degerleri js/cc-motion.js icinde (CCMotion.presets).
   Kural: sik kullanilan islemde hareket kisa ve sade, yalniz transform ve opacity. */
:root {
  --cc-ease-out: cubic-bezier(.23, 1, .32, 1);      /* giris, geri bildirim */
  --cc-ease-in-out: cubic-bezier(.77, 0, .175, 1);  /* ekranda yer degistirme */
  --cc-ease-drawer: cubic-bezier(.32, .72, 0, 1);   /* alt sayfa, cekmece */
  --cc-dur-press: 140ms;                            /* dugmeye basma */
  --cc-dur-fast: 180ms;                             /* ipucu, kucuk acilir */
  --cc-dur-base: 240ms;                             /* menu, sekme */
  --cc-dur-slow: 400ms;                             /* panel, sayfa */
}

/* Ekran okuyucuya acik, gorunmez metin */
.cc-sr {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* Kayan hap: grup icindeki aktif ogenin altinda durur (CCMotion.slidingPill) */
.cc-has-pill { position: relative; isolation: isolate; }
.cc-has-pill > .cc-pill {
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  z-index: -1;
  pointer-events: none;
  will-change: transform, width;
}

/* Rakam yuvarlama (CCMotion.rollText): her basamak kendi sutununda dikey kayar */
.cc-roll-col {
  position: relative;
  display: inline-block;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  clip-path: inset(0 -0.1em);
}
.cc-roll-ph { visibility: hidden; }
.cc-roll-strip {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  text-align: center;
  will-change: transform;
}
.cc-roll-strip > span { display: block; height: 1em; line-height: 1; }

/* Bolumlu secici: tek kutu icinde dugmeler, secili olanin altinda kayan hap.
   Kullanim: <div class="cc-seg" data-cc-pill="button"> ... <button class="active">.
   Betik yuklenmezse secili dugme kendi zeminini tasir. */
div.cc-seg {
  display: inline-flex;
  flex-direction: row;
  gap: 4px;
  padding: 4px;
  max-width: 100%;
  background: var(--cc-bg-elevated, #0f1d1d);
  border: 1px solid var(--cc-border, rgba(255, 255, 255, 0.06));
  border-radius: 12px;
}
.cc-seg > button {
  flex: 0 1 auto;
  max-width: none;
  padding: 10px 28px;
  background: transparent;
  border: 0;
  border-radius: 10px;
  box-shadow: none;
  color: var(--cc-text-muted, #8a9a9a);
  cursor: pointer;
  transition: color var(--cc-dur-fast) var(--cc-ease-out),
              transform var(--cc-dur-press) var(--cc-ease-out);
}
.cc-seg > button:hover { color: var(--cc-text, #e8eded); background: transparent; border: 0; }
.cc-seg > button.active { background: #00796b; color: #fff; box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3); }
.cc-seg > button.active .save-tag { color: rgba(255, 255, 255, 0.85); }
.cc-seg.cc-has-pill > button.active { background: transparent; box-shadow: none; }
.cc-seg > .cc-pill { background: #00796b; border-radius: 10px; box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3); }
.cc-seg > button:active { transform: scale(0.97); }
@media (max-width: 768px) {
  div.cc-seg { display: flex; width: 100%; }
  .cc-seg > button { flex: 1 1 0; padding: 10px 6px; font-size: 13px; }
}
@media (prefers-reduced-motion: reduce) {
  .cc-seg > button:active { transform: none; }
}
