/* Rueda · Moxen — OCB uyarlaması (tarih seçici: gün / ay / yıl silindirleri).
   Her şey .mx-rueda altında. Renkler sitenin token'larına bağlı (yedekli).
   --rd-fila, rueda.js içindeki ALTO_FILA ile aynı olmalı. */
.mx-rueda {
  --rd-ink: var(--ink, #0A0A12);
  --rd-ink2: var(--ink-2, #14141F);
  --rd-line: var(--line, #262636);
  --rd-bone: var(--bone, #F2EFE8);
  --rd-muted: var(--muted, #9B98A8);
  --rd-tenue: #686577;
  --rd-violet: var(--violet, #6B4BFF);
  --rd-violet-rgb: 107, 75, 255;
  --rd-violet-hi: #B1A2FF;
  --rd-plasma: var(--plasma, #FF5B2E);
  --rd-plasma-rgb: 255, 91, 46;
  --rd-focus: var(--ice, #3FE0FF);
  --rd-fila: 44px;
  --rd-curva: cubic-bezier(.22, 1, .36, 1);
  --rd-giro: 520ms;
  --rd-curva-giro: cubic-bezier(.34, 1.4, .64, 1);
  --rd-display: "Unbounded", system-ui, sans-serif;
  --rd-sans: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --rd-mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;
  container-type: inline-size;
  position: relative;
  display: block;
  width: 100%;
  color: var(--rd-bone);
  font-family: var(--rd-sans);
  -webkit-font-smoothing: antialiased;
}
.mx-rueda *, .mx-rueda *::before, .mx-rueda *::after { box-sizing: border-box; }
.mx-rueda p { margin: 0; }
.mx-rueda button { font: inherit; color: inherit; }

/* ── yerleşim: dar = okuma üstte, geniş = yan yana ───────────────── */
.mx-rueda .rd-escena { display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; align-items: center; }

/* ── büyük okuma ────────────────────────────────────────────────── */
.mx-rueda .rd-lectura { position: relative; min-width: 0; display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 16px; align-items: center; grid-template-areas: "sobre sobre" "gran mes" "gran semana" "gran chip"; }
.mx-rueda .rd-sobre { grid-area: sobre; display: inline-flex; align-items: center; gap: 10px; font: 500 11.5px/1 var(--rd-mono); letter-spacing: .17em; text-transform: uppercase; color: var(--rd-muted); }
.mx-rueda .rd-marca { width: 8px; height: 8px; border-radius: 2px; background: var(--rd-violet); box-shadow: 0 0 14px rgba(var(--rd-violet-rgb), .9); transform: rotate(45deg); }

/* gün: kilometre sayacı gibi dönen rakamlar; mor degrade, sıcak plazma ışıması */
.mx-rueda .rd-gran { grid-area: gran; display: flex; align-items: flex-start; height: 1em; margin: 8px 0 0 -.02em; font: 700 104px/1 var(--rd-display); letter-spacing: 0; font-variant-numeric: tabular-nums; filter: drop-shadow(0 18px 34px rgba(var(--rd-plasma-rgb), .28)) drop-shadow(0 0 18px rgba(var(--rd-violet-rgb), .25)); }
.mx-rueda .rd-c { position: relative; display: block; flex: none; width: .74em; height: 1em; overflow: hidden; text-align: center; }
.mx-rueda .rd-tira { display: block; transform: translateY(calc(var(--d, 0) * -10%)); transition: transform var(--rd-giro) var(--rd-curva-giro); will-change: transform; }
.mx-rueda .rd-tira > span { display: block; height: 1em; line-height: 1; color: transparent; background: linear-gradient(176deg, #FFFFFF 4%, var(--rd-violet-hi) 40%, var(--rd-violet) 78%, #FF8A5C 104%); -webkit-background-clip: text; background-clip: text; }

.mx-rueda .rd-t { display: inline-grid; vertical-align: baseline; }
.mx-rueda .rd-t-i { grid-area: 1 / 1; white-space: nowrap; will-change: transform, opacity; }
.mx-rueda .rd-mes { grid-area: mes; align-self: end; display: flex; flex-wrap: wrap; align-items: baseline; column-gap: .3em; font: 800 26px/1.12 var(--rd-sans); letter-spacing: -.03em; }
.mx-rueda .rd-anio { color: var(--rd-muted); font-weight: 500; font-variant-numeric: tabular-nums; }
.mx-rueda .rd-semana { grid-area: semana; font: 500 17px/1.35 var(--rd-sans); color: var(--rd-muted); }
.mx-rueda .rd-chip { grid-area: chip; justify-self: start; align-self: start; display: inline-flex; align-items: center; gap: 9px; margin-top: 8px; padding: 7px 13px 7px 11px; border-radius: 999px; font: 500 12px/1 var(--rd-mono); color: var(--rd-violet-hi); background: rgba(var(--rd-violet-rgb), .12); box-shadow: inset 0 0 0 1px rgba(var(--rd-violet-rgb), .45); transition: background-color .4s, color .4s, box-shadow .4s; }
.mx-rueda .rd-chip i { width: 7px; height: 7px; border-radius: 50%; background: currentColor; box-shadow: 0 0 10px currentColor; transition: transform .5s var(--rd-curva); }
.mx-rueda .rd-chip.is-pasada { color: var(--rd-muted); background: rgba(255, 255, 255, .04); box-shadow: inset 0 0 0 1px var(--rd-line); }
.mx-rueda .rd-chip.is-pasada i { box-shadow: none; opacity: .6; }
.mx-rueda .rd-chip.is-ok { color: #fff; background: var(--rd-violet); box-shadow: 0 10px 28px -8px rgba(var(--rd-violet-rgb), .8); }
.mx-rueda .rd-chip.is-ok i { background: #fff; box-shadow: none; transform: scale(1.25); }
.mx-rueda .rd-anuncio { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.mx-rueda.is-fijada .rd-gran { animation: mx-rd-pulso .7s var(--rd-curva); }
@keyframes mx-rd-pulso { 0% { transform: scale(1); } 30% { transform: scale(1.04); } 100% { transform: scale(1); } }

/* ── kart: üç silindir, mini takvim, buton ──────────────────────── */
.mx-rueda .rd-tarjeta { position: relative; min-width: 0; padding: 18px 16px 18px; border-radius: 26px; background: linear-gradient(180deg, rgba(28, 27, 42, .92), rgba(16, 16, 25, .96)); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .07), 0 0 0 1px var(--rd-line), 0 44px 70px -38px rgba(0, 0, 0, .8), 0 24px 70px -40px rgba(var(--rd-violet-rgb), .35); }
.mx-rueda .rd-etqs, .mx-rueda .rd-ruedas { display: grid; grid-template-columns: 1fr 1.6fr 1.05fr; }
.mx-rueda .rd-etqs span { text-align: center; font: 500 10.5px/1 var(--rd-mono); letter-spacing: .16em; text-transform: uppercase; color: var(--rd-tenue); padding-bottom: 8px; }
.mx-rueda .rd-ruedas { position: relative; height: 208px; -webkit-mask-image: linear-gradient(180deg, transparent, #000 20%, #000 80%, transparent); mask-image: linear-gradient(180deg, transparent, #000 20%, #000 80%, transparent); }
.mx-rueda .rd-banda { position: absolute; left: -8px; right: -8px; top: 50%; height: 50px; margin-top: -25px; border-radius: 15px; background: rgba(var(--rd-violet-rgb), .13); box-shadow: inset 0 0 0 1px rgba(var(--rd-violet-rgb), .5), inset 0 1px 0 rgba(255, 255, 255, .06); pointer-events: none; }
.mx-rueda .rd-banda.is-flash { animation: mx-rd-destello .9s var(--rd-curva); }
@keyframes mx-rd-destello {
  0% { transform: scale(1); background: rgba(107, 75, 255, .13); box-shadow: inset 0 0 0 1px rgba(107, 75, 255, .5), 0 0 0 0 rgba(107, 75, 255, .6); }
  18% { transform: scale(1.045, 1.1); background: rgba(107, 75, 255, .55); box-shadow: inset 0 0 0 1px rgba(177, 162, 255, .95), 0 0 36px 4px rgba(107, 75, 255, .6); }
  100% { transform: scale(1); background: rgba(107, 75, 255, .13); box-shadow: inset 0 0 0 1px rgba(107, 75, 255, .5), 0 0 0 26px rgba(107, 75, 255, 0); }
}
.mx-rueda .rd-rueda { position: relative; height: 100%; min-width: 0; outline: none; cursor: grab; touch-action: none; user-select: none; -webkit-user-select: none; -webkit-tap-highlight-color: transparent; border-radius: 14px; }
.mx-rueda .rd-rueda.is-arrastre { cursor: grabbing; }
.mx-rueda .rd-rueda:focus-visible { box-shadow: inset 0 0 0 2px var(--rd-focus); }
.mx-rueda .rd-vista { position: relative; height: 100%; perspective: 600px; perspective-origin: 50% 50%; overflow: hidden; border-radius: 14px; }
.mx-rueda .rd-cil { position: absolute; inset: 0; transform-style: preserve-3d; transform: translateZ(-118px); }
.mx-rueda .rd-it { position: absolute; left: 0; right: 0; top: 50%; height: var(--rd-fila); margin-top: calc(var(--rd-fila) / -2); display: grid; place-items: center; font: 600 20px/1 var(--rd-sans); letter-spacing: -.02em; color: var(--rd-muted); white-space: nowrap; opacity: 0; backface-visibility: hidden; will-change: transform, opacity; transition: color .18s; }
.mx-rueda [data-rueda-dia] .rd-it, .mx-rueda [data-rueda-anio] .rd-it { font: 500 21px/1 var(--rd-mono); letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.mx-rueda .rd-it.is-sel { color: #fff; }
.mx-rueda [data-rueda-mes] .rd-it.is-sel { font-weight: 800; }

/* ── mini takvim ────────────────────────────────────────────────── */
.mx-rueda .rd-cal { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--rd-line); }
.mx-rueda .rd-cal-cab { display: grid; grid-template-columns: 34px 1fr 34px; align-items: center; margin-bottom: 4px; }
.mx-rueda .rd-cal-tit { text-align: center; font: 700 14px/1 var(--rd-sans); letter-spacing: -.005em; }
.mx-rueda .rd-flecha { display: grid; place-items: center; width: 34px; height: 34px; padding: 0; border: 0; border-radius: 10px; background: transparent; color: var(--rd-muted); cursor: pointer; transition: background-color .2s, color .2s, transform .3s var(--rd-curva), opacity .2s; }
.mx-rueda .rd-flecha svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.mx-rueda .rd-flecha:active:not(:disabled) { transform: scale(.88); }
.mx-rueda .rd-flecha:disabled { opacity: .25; cursor: default; }
.mx-rueda .rd-flecha:focus-visible { outline: 2px solid var(--rd-focus); outline-offset: 1px; }
@media (hover: hover) { .mx-rueda .rd-flecha:hover:not(:disabled) { background: var(--rd-line); color: var(--rd-bone); } }
.mx-rueda .rd-cal-sem { display: grid; grid-template-columns: repeat(7, 1fr); height: 22px; align-items: center; text-align: center; font: 500 10px/1 var(--rd-mono); letter-spacing: .04em; color: var(--rd-muted); }
.mx-rueda .rd-cal-sem span:nth-child(n+6) { color: var(--rd-tenue); opacity: .7; }
.mx-rueda .rd-cal-cuerpo { position: relative; height: 180px; overflow: hidden; }
.mx-rueda .rd-grid { position: absolute; z-index: 2; inset: 0; display: grid; grid-template-columns: repeat(7, 1fr); grid-auto-rows: 30px; }
.mx-rueda .rd-dia { position: relative; z-index: 2; display: grid; place-items: center; padding: 0; border: 0; background: transparent; font: 500 12.5px/1 var(--rd-mono); color: var(--rd-bone); cursor: pointer; font-variant-numeric: tabular-nums; transition: color .25s; -webkit-tap-highlight-color: transparent; }
.mx-rueda .rd-dia.is-off { color: var(--rd-tenue); cursor: not-allowed; }
.mx-rueda .rd-dia.is-fuera { opacity: .35; }
.mx-rueda .rd-dia.is-hoy::before { content: ''; position: absolute; left: 50%; top: 50%; width: 28px; height: 28px; margin: -14px 0 0 -14px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .22); }
.mx-rueda .rd-dia.is-sel { color: #fff; font-weight: 700; }
.mx-rueda .rd-dia.is-sel.is-off { color: var(--rd-muted); font-weight: 500; }
.mx-rueda .rd-dia:focus-visible { outline: none; }
.mx-rueda .rd-dia:focus-visible::after { content: ''; position: absolute; left: 50%; top: 50%; width: 34px; height: 34px; margin: -17px 0 0 -17px; border-radius: 50%; box-shadow: 0 0 0 2px var(--rd-focus); }
@media (hover: hover) { .mx-rueda .rd-dia:not(.is-sel):not(.is-off):hover::before { content: ''; position: absolute; left: 50%; top: 50%; width: 28px; height: 28px; margin: -14px 0 0 -14px; border-radius: 50%; background: var(--rd-line); box-shadow: none; z-index: -1; } }
.mx-rueda .rd-cal-sel { position: absolute; left: 0; top: 0; z-index: 1; width: 28px; height: 28px; border-radius: 50%; background: radial-gradient(circle at 35% 25%, #D4CBFF, var(--rd-violet) 58%, #4528D8); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .45), 0 8px 18px -5px rgba(var(--rd-violet-rgb), .85); pointer-events: none; will-change: transform; transform: translate(-40px, 0); transition: background .25s, box-shadow .25s; }
.mx-rueda .rd-cal-sel.is-inval { background: transparent; box-shadow: inset 0 0 0 1.5px rgba(var(--rd-violet-rgb), .7); }

/* ── buton ──────────────────────────────────────────────────────── */
.mx-rueda .rd-fijar { position: relative; display: flex; align-items: center; justify-content: center; gap: 0; width: 100%; height: 54px; margin-top: 16px; padding: 0 20px; border: 0; border-radius: 999px; font: 700 15.5px/1 var(--rd-sans); letter-spacing: -.005em; color: #fff; background: linear-gradient(180deg, #8467FF, var(--rd-violet)); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .3), 0 16px 32px -14px rgba(var(--rd-violet-rgb), .95); cursor: pointer; transition: transform .4s var(--rd-curva), box-shadow .3s, background .3s, color .3s, gap .4s var(--rd-curva); }
.mx-rueda .rd-fijar:active:not(:disabled) { transform: scale(.975); }
.mx-rueda .rd-fijar:focus-visible { outline: 2px solid var(--rd-focus); outline-offset: 3px; }
@media (hover: hover) { .mx-rueda .rd-fijar:hover:not(:disabled) { transform: translateY(-2px); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35), 0 22px 40px -14px rgba(var(--rd-violet-rgb), 1); } }
.mx-rueda .rd-fijar:disabled { cursor: not-allowed; color: var(--rd-muted); background: rgba(255, 255, 255, .04); box-shadow: inset 0 0 0 1px var(--rd-line); }
.mx-rueda.is-fijada .rd-fijar:disabled { cursor: default; color: #fff; background: linear-gradient(180deg, #8467FF, var(--rd-violet)); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .3), 0 16px 32px -14px rgba(var(--rd-violet-rgb), .95); gap: 10px; }
.mx-rueda .rd-fijar-tic { width: 0; height: 22px; flex: none; fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 22; stroke-dashoffset: 22; overflow: hidden; transition: width .4s var(--rd-curva), stroke-dashoffset .45s .15s ease-out; }
.mx-rueda.is-fijada .rd-fijar-tic { width: 22px; stroke-dashoffset: 0; }

/* ── geniş kap: okuma solda, kart sağda ─────────────────────────── */
@container (min-width: 740px) {
  .mx-rueda .rd-escena { grid-template-columns: minmax(0, 1fr) minmax(0, 400px); gap: 40px; }
  .mx-rueda .rd-lectura { display: block; }
  .mx-rueda .rd-gran { margin: 18px 0 10px -.04em; font-size: clamp(120px, 20cqi, 190px); }
  .mx-rueda .rd-mes { font-size: 38px; }
  .mx-rueda .rd-semana { margin-top: 4px; font-size: 21px; }
  .mx-rueda .rd-chip { margin-top: 20px; font-size: 13px; padding: 9px 15px 9px 12px; }
  .mx-rueda .rd-tarjeta { padding: 22px 22px 22px; border-radius: 30px; }
  .mx-rueda .rd-ruedas { height: 232px; }
  .mx-rueda .rd-it { font-size: 21px; }
  .mx-rueda .rd-fijar { height: 56px; margin-top: 18px; }
}
@container (max-width: 359px) {
  .mx-rueda .rd-gran { font-size: 84px; }
  .mx-rueda .rd-mes { font-size: 22px; }
  .mx-rueda .rd-it { font-size: 17px; }
  .mx-rueda [data-rueda-dia] .rd-it, .mx-rueda [data-rueda-anio] .rd-it { font-size: 18px; }
}

/* ── hareket azaltma ───────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  .mx-rueda .rd-tira { transition-duration: .01s; }
  .mx-rueda .rd-banda.is-flash, .mx-rueda.is-fijada .rd-gran { animation: none; }
  .mx-rueda .rd-fijar, .mx-rueda .rd-fijar-tic, .mx-rueda .rd-chip, .mx-rueda .rd-chip i, .mx-rueda .rd-cal-sel { transition-duration: .01s; }
}
