/*
 * JustRitmo gelistirme durumu sayfasi (/status). Yalnizca acik tema.
 * Renkler logodaki mor-pembe-mavi gecisten; ilerleme cubuklari pembe -> mavi.
 * Kati CSP: satir ici stil yok, cubuk genislikleri status.js'de CSSOM ile verilir.
 */

@font-face {
  font-family: "Roboto"; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url("/assets/fonts/roboto-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Roboto"; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url("/assets/fonts/roboto-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  color-scheme: light;
  --bg: #f6f4fd;
  --surface: rgba(255, 255, 255, .86);
  --line: #e8e3f6;
  --ink: #1d1747;
  --ink-2: #4a4672;
  --ink-3: #6a6690;
  --violet: #6d3ae6;
  --violet-soft: #efe9fe;
  --pink: #e8338a;
  --pink-soft: #fde8f2;
  --blue: #3b82f6;
  --blue-soft: #e5efff;
  --green: #12a37a;
  --green-ink: #0b7d5d;
  --green-soft: #e3f8f0;
  --green-line: #a8e8d2;
  --track: #ece9f4;
  --bar: linear-gradient(90deg, #f05aa2 0%, #b77ef0 55%, #5b9cf8 100%);
  --shadow: 0 1px 2px rgba(45, 30, 110, .05), 0 12px 32px -18px rgba(45, 30, 110, .22);
  --ease: cubic-bezier(.16, 1, .3, 1);
  --font: "Roboto", "Segoe UI", system-ui, -apple-system, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100vh; min-height: 100dvh;
  font: 400 15px/1.5 var(--font); color: var(--ink); background: var(--bg);
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
[hidden] { display: none !important; }
img, svg { display: block; }
h1, h2, p, ol { margin: 0; }
ol { padding: 0; list-style: none; }
button { font: inherit; color: inherit; cursor: pointer; }
:focus-visible { outline: 2px solid var(--violet); outline-offset: 3px; border-radius: 6px; }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.icon { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* ------------------------------------------------------------ arka plan */

.bg { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.bg__blob { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .55; animation: drift 18s ease-in-out infinite alternate; }
.bg__blob--a { width: 520px; height: 420px; top: -180px; left: -160px; background: #cfe0ff; }
.bg__blob--b { width: 560px; height: 480px; right: -200px; bottom: -200px; background: #ffd3ea; animation-duration: 22s; }
.bg__blob--c { width: 420px; height: 380px; right: 10%; top: 30%; background: #e6dcff; opacity: .4; animation-duration: 26s; }
@keyframes drift { to { transform: translate(60px, 40px) scale(1.08); } }

/* ------------------------------------------------------------ sayfa */

.page { width: min(852px, 100% - 32px); margin: 0 auto; padding: 18px 0 40px; display: grid; gap: 22px; }

.head { display: grid; gap: 4px; }
.head__logo { justify-self: start; border-radius: 8px; }
.head__logo img { width: auto; height: 34px; }
.head__title { position: relative; padding-bottom: 14px; font-size: clamp(24px, 4.4vw, 32px); font-weight: 700; line-height: 1.2; letter-spacing: -.02em; text-wrap: balance; }
.head__title::after {
  content: ""; position: absolute; left: 0; bottom: 0; width: 62px; height: 4px; border-radius: 4px;
  background: linear-gradient(90deg, var(--pink), #c04ee0);
  transform-origin: left; animation: grow-x .9s .35s var(--ease) both;
}

.banner {
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 16px;
  padding: 18px 22px; border: 1px solid var(--green-line); border-radius: 14px;
  background: linear-gradient(100deg, #e9faf3, #f1fbfa 60%, #f3f8ff); box-shadow: var(--shadow);
}
.banner__icon {
  position: relative; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  background: var(--green-soft); color: #fff;
}
.banner__icon::before { content: ""; position: absolute; inset: 9px; border-radius: 50%; background: var(--green); }
.banner__icon::after { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--green); opacity: 0; animation: ping 2.6s 1.2s ease-out infinite; }
.banner__icon .icon { position: relative; z-index: 1; width: 16px; height: 16px; stroke-width: 2.6; }
@keyframes ping { 0% { transform: scale(.75); opacity: .5; } 80%, 100% { transform: scale(1.3); opacity: 0; } }
.banner__title { font-size: 19px; font-weight: 700; color: var(--green-ink); line-height: 1.3; }
.banner__message { margin-top: 4px; font-size: 14px; color: var(--ink-2); }
.banner__message:empty { display: none; }
.banner__date { display: flex; align-items: center; gap: 12px; padding-left: 22px; border-left: 1px solid var(--green-line); color: var(--ink); }
.banner__label { font-size: 12.5px; color: var(--ink-2); }
.banner__value { font-size: 15px; font-weight: 700; white-space: nowrap; font-variant-numeric: tabular-nums; }

.card { overflow: hidden; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); box-shadow: var(--shadow); backdrop-filter: blur(10px); }
.card__head { display: flex; align-items: center; gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.card__head--tint { background: linear-gradient(90deg, rgba(239, 233, 254, .7), rgba(255, 255, 255, 0)); }
.card__icon { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 9px; background: var(--violet-soft); color: var(--violet); }
.card__title { font-size: 19px; font-weight: 700; letter-spacing: -.01em; }

.pill {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  height: 26px; padding: 0 12px; border-radius: 999px; font-size: 13px; font-weight: 600; white-space: nowrap;
}
.pill .icon { width: 15px; height: 15px; }
.pill--month { margin-left: auto; background: var(--violet-soft); color: var(--ink); }

/* ------------------------------------------------------------ asamalar */

.phases { padding: 0 18px; }
.phase {
  display: grid; grid-template-columns: 22px minmax(150px, 1.25fr) 104px minmax(120px, 1.6fr) 44px minmax(170px, 1.5fr);
  align-items: center; gap: 16px; padding: 13px 0; border-bottom: 1px solid var(--line);
}
.phase:last-child { border-bottom: 0; }
.phase__dot { display: grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; }
.phase__dot .icon { width: 12px; height: 12px; stroke-width: 3; color: #fff; }
.phase__name { font-size: 15px; font-weight: 700; line-height: 1.3; overflow-wrap: anywhere; }
.phase__mods { font-size: 13px; color: var(--ink-3); }
.phase .pill { width: 100%; }
.phase__track { height: 9px; border-radius: 9px; background: var(--track); overflow: hidden; }
.phase__fill {
  /* gecis tum ray boyunca: background-size status.js'de 100/yuzde olarak verilir */
  height: 100%; width: 0; border-radius: inherit; background: var(--bar) left / 100% 100% no-repeat;
  transition: width 1.3s var(--ease);
}
.phase__pct { font-size: 14px; font-weight: 700; text-align: right; font-variant-numeric: tabular-nums; }
.phase__note { padding-left: 18px; border-left: 1px solid var(--line); font-size: 13px; line-height: 1.45; color: var(--ink-2); overflow-wrap: anywhere; }
.phase__note:empty { visibility: hidden; }

.stage--done .phase__dot { background: var(--green); }
.stage--developing .phase__dot { background: var(--pink); }
.stage--testing .phase__dot { background: #6aa6f8; }
.stage--preparing .phase__dot { background: #c8a2f5; }
.stage--planned .phase__dot { background: #cbc6f2; }
.stage--developing .pill { background: var(--pink-soft); color: #c4176c; }
.stage--testing .pill { background: var(--blue-soft); color: #1d5fc9; }
.stage--preparing .pill { background: var(--violet-soft); color: #5a2bc7; }
.stage--planned .pill { background: #eeecfb; color: #4d47a8; }
.stage--done .pill { background: var(--green-soft); color: var(--green-ink); }

/* ------------------------------------------------------------ gecmis dugmesi */

.more { display: flex; justify-content: center; }
.more__btn {
  display: inline-flex; align-items: center; gap: 10px; height: 44px; padding: 0 22px;
  border: 1px solid #cdbdf6; border-radius: 10px; background: var(--violet-soft);
  color: #3f2a95; font-size: 15px; font-weight: 700;
  transition: transform .2s var(--ease), box-shadow .2s ease, background-color .2s ease;
}
.more__btn:hover { background: #e6dcfe; box-shadow: 0 8px 20px -10px rgba(109, 58, 230, .5); transform: translateY(-1px); }
.more__btn:active { transform: scale(.98); }
.more__btn .icon { transition: transform .5s var(--ease); }
.more__btn[aria-expanded="true"] .icon { transform: rotate(-360deg); }

/* ------------------------------------------------------------ zaman cizelgesi */

.timeline { position: relative; padding: 14px 22px 18px 50px; }
.timeline::before { content: ""; position: absolute; left: 34px; top: 24px; bottom: 30px; width: 2px; border-radius: 2px; background: linear-gradient(#f3a7cb, #cdbdf6); }
.tl { position: relative; display: flex; align-items: center; flex-wrap: wrap; gap: 6px 22px; padding: 6px 0; }
.tl::before { content: ""; position: absolute; left: -20px; top: 50%; width: 10px; height: 10px; margin-top: -5px; border-radius: 50%; background: #c8b4f3; box-shadow: 0 0 0 3px #fff; }
.tl:first-child::before { background: var(--pink); }
.tl:first-child::after { content: ""; position: absolute; left: -20px; top: 50%; width: 10px; height: 10px; margin-top: -5px; border-radius: 50%; background: var(--pink); animation: ping 2.4s 1.5s ease-out infinite; }
.tl__date { display: inline-flex; align-items: center; height: 26px; padding: 0 12px; border-radius: 8px; background: #f6eef8; font-size: 13px; font-weight: 700; white-space: nowrap; font-variant-numeric: tabular-nums; }
.tl:first-child .tl__date { background: var(--pink-soft); }
.tl__body { flex: 1 1 260px; font-size: 14.5px; color: var(--ink); overflow-wrap: anywhere; }
.tl.is-old { display: none; }
.timeline.is-open .tl.is-old { display: flex; animation: rise .5s var(--ease) both; }

.empty { padding: 26px 18px; text-align: center; color: var(--ink-3); font-size: 14px; }
.error { padding: 12px 16px; border-radius: 10px; background: #fdecef; color: #9e1f4a; font-size: 14px; text-align: center; }

.foot { position: relative; display: grid; place-items: center; padding-top: 6px; text-align: center; font-size: 13px; color: var(--ink-3); }
.foot::before { content: ""; position: absolute; top: 18px; left: 6%; right: 6%; height: 1px; background: linear-gradient(90deg, var(--line) 0 12%, transparent 12% 88%, var(--line) 88%); }
.foot p { max-width: 560px; }

/* ------------------------------------------------------------ giris hareketleri */

.reveal { animation: rise .7s var(--ease) both; }
.reveal:nth-child(2) { animation-delay: .06s; }
.reveal:nth-child(3) { animation-delay: .12s; }
.reveal:nth-child(4) { animation-delay: .18s; }
.reveal:nth-child(5) { animation-delay: .24s; }
.reveal:nth-child(6) { animation-delay: .3s; }
.phase, .tl:not(.is-old) { animation: rise .6s var(--ease) both; animation-delay: var(--d, 0s); }
@keyframes rise { from { opacity: 0; transform: translateY(12px); } }
@keyframes grow-x { from { transform: scaleX(0); } }

/* ------------------------------------------------------------ dar ekranlar */

@media (max-width: 820px) {
  .phase { grid-template-columns: 22px minmax(0, 1fr) auto; grid-template-areas: "dot name pill" ". bar bar" ". note note"; gap: 8px 12px; }
  .phase__dot { grid-area: dot; align-self: start; margin-top: 2px; }
  .phase > div:nth-child(2) { grid-area: name; }
  .phase .pill { grid-area: pill; width: auto; align-self: start; }
  .phase__bar { grid-area: bar; display: grid; grid-template-columns: minmax(0, 1fr) 44px; align-items: center; gap: 12px; }
  .phase__note { grid-area: note; padding-left: 0; border-left: 0; }
}
@media (min-width: 821px) {
  .phase__bar { display: contents; }
}
@media (max-width: 640px) {
  .page { gap: 16px; padding-top: 14px; }
  .banner { grid-template-columns: auto minmax(0, 1fr); padding: 16px; }
  .banner__date { grid-column: 1 / -1; padding: 12px 0 0; border-left: 0; border-top: 1px solid var(--green-line); }
  .banner__title { font-size: 17px; }
  .card__head { padding: 12px 14px; }
  .card__title { font-size: 17px; }
  .phases { padding: 0 14px; }
  .timeline { padding: 12px 14px 16px 40px; }
  .timeline::before { left: 24px; }
  .tl::before, .tl:first-child::after { left: -21px; }
  .more__btn { width: 100%; justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; animation-delay: 0s !important; transition-duration: .01ms !important; }
}
