/* ============================================================
   RateTheWork Info Page Layout — .info-* / .wp-*
   Prototip kaynağı: webapp/assets/app.css (1232-1256 · 1301-1306)

   Paylaşılan okuma-sayfası düzeni. Whitepaper ilk tüketicisi;
   status (TECH-6012) ve iletişim (TECH-5889) aynı katmanı kullanır,
   legal / press / careers de kullanacak
   (TECH-5896 · epic TECH-5882). Sayfa başına tekrar YAZILMAZ.

   KATMANLAMA (TECH-5868): tümü `@layer components` içinde.
   Katmansız olsalardı — specificity'den BAĞIMSIZ olarak —
   markup'taki Tailwind utility'lerini ezerlerdi.

   TOKEN EŞLEMESİ: prototipin ham `--text-3` / `--accent` /
   `--primary-bg` değişkenleri yerine Blazor'ın light+dark
   aware `--ds-*` token'ları (tokens.css) kullanılır.
   ============================================================ */

@layer components {

/* ---- Sayfa iskeleti ----
   Prototipin `.info-page` kabuğu (min-height/flex/bg) TAŞINMADI: MainLayout
   bu iskeleti zaten kuruyor, dolayısıyla tüketicisi hiç olmayacaktı. */

/* Prototipte navbar floating olduğu için `.info-main` 128px üst boşluk verir.
   Bizde MainLayout non-DarkHero route'larda <main>'e zaten `lg:pt-20` (80px) /
   `pt-16` (64px) uygular — burada yalnız FARK eklenir, yoksa boşluk ikiye katlanır. */
.info-main {
    flex: 1;
    padding: 48px 24px 60px;
}

.info-wrap {
    max-width: 1120px;
    margin: 0 auto;
}

.info-wrap--narrow {
    max-width: 920px;
}

/* ---- Sayfa başlığı bloğu (kicker + başlık + alt metin) ----
   Prototip: app.css 1236-1244. Whitepaper koyu `.wp-hero` kartını kullanır;
   bu açık varyant status/press/careers içindir. Prototipin `--center`
   varyantı tüketicisi olmadığı için taşınmadı (rules/no-garbage-code.md). */
.info-hero {
    position: relative;
    max-width: 680px;
    margin-bottom: 42px;
    padding-top: 18px;
}

.info-hero::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 44px;
    height: 3px;
    background: linear-gradient(90deg, var(--ds-accent), transparent);
}

.info-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 13px;
    border-radius: 9999px;
    border: 1px solid var(--ds-border);
    background: var(--ds-bg-elevated);
    font-family: 'JetBrains Mono', ui-monospace, monospace;
    font-size: 10.5px;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--ds-text-muted);
}

.info-kicker::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--ds-accent);
    box-shadow: 0 0 0 3px var(--ds-accent-subtle);
    animation: infoPulse 2.4s ease-in-out infinite;
}

@keyframes infoPulse {
    0%, 100% { box-shadow: 0 0 0 3px var(--ds-accent-subtle); }
    50%      { box-shadow: 0 0 0 6px transparent; }
}

.info-title {
    font-size: clamp(34px, 4.5vw, 52px);
    font-weight: 700;
    letter-spacing: -0.04em;
    line-height: 1.02;
    margin: 16px 0 14px;
    color: var(--ds-text-primary);
    text-wrap: balance;
}

.info-sub {
    font-size: 16px;
    line-height: 1.6;
    color: var(--ds-text-muted);
    max-width: 620px;
}

/* ---- Bölüm başlığı (mono eyebrow + saç teli çizgi) ---- */
.info-section {
    margin-top: 52px;
}

.info-section__h {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: 'JetBrains Mono', ui-monospace, monospace;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--ds-text-muted);
    margin-bottom: 18px;
}

.info-section__h::after {
    content: "";
    height: 1px;
    flex: 1;
    background: var(--ds-border);
}

/* ---- Özellik kartları (3 sütun) ---- */
.info-grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.info-feat {
    padding: 22px;
}

.info-feat__ic {
    width: 46px;
    height: 46px;
    border-radius: 13px;
    background: var(--ds-accent-subtle);
    display: grid;
    place-items: center;
    margin-bottom: 14px;
    transition: transform .35s cubic-bezier(0.34, 1.56, 0.64, 1),
                box-shadow .35s cubic-bezier(0.22, 1, 0.36, 1);
}

.info-feat:hover .info-feat__ic {
    transform: scale(1.06) rotate(-4deg);
    box-shadow: 0 8px 20px rgba(52, 82, 227, 0.18);
}

.info-feat__t {
    font-weight: 700;
    font-size: 15.5px;
    letter-spacing: -0.01em;
    margin-bottom: 5px;
    color: var(--ds-text-primary);
}

.info-feat__d {
    font-size: 13.5px;
    line-height: 1.55;
    color: var(--ds-text-muted);
}

/* ---- Whitepaper'a özel ---- */
.wp-hero {
    border-radius: 28px;
    padding: 46px 44px;
    color: #fff;
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(120% 130% at 100% 0%, rgba(52, 82, 227, 0.55), transparent 55%),
        linear-gradient(120deg, var(--ds-carbon-900), #112764 60%, var(--ds-cobalt-800));
}

.wp-abstract {
    font-size: 15px;
    line-height: 1.72;
    color: var(--ds-text-secondary);
}

.wp-body {
    font-size: 14.5px;
    line-height: 1.75;
    color: var(--ds-text-secondary);
}

.wp-body + .wp-body {
    margin-top: 14px;
}

/* İçindekiler — sayfa içi bölümlere gider (indirilecek PDF YOK) */
.wp-toc a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 13px 16px;
    border-bottom: 1px solid var(--ds-border);
    font-size: 14px;
    color: var(--ds-text-secondary);
    text-decoration: none;
}

.wp-toc a:last-child {
    border-bottom: none;
}

.wp-toc a:hover {
    color: var(--ds-accent);
}

.wp-num {
    font-family: 'JetBrains Mono', ui-monospace, monospace;
    font-weight: 700;
    color: var(--ds-text-muted);
    font-size: 13px;
}

/* Sticky navbar anchor hedefini örtmesin */
.wp-anchor {
    scroll-margin-top: 96px;
}

/* ---- Durum sayfasına özel (.st-*) ----
   Prototip: app.css 1278-1288.

   İKİ BİLİNÇLİ SAPMA:
   1. Prototipte 2 durum var (ok / deg); bizde 5 var — ölçüm alınamadığı
      durum ("bilinmiyor") ve yükleniyor, durum renklerinden AYRI bir nötr
      tonla temsil edilir. Kanıt yokluğunu yeşil/sarı ile boyamak, bu
      issue'nun kapattığı vacuous-truth hatasının görsel biçimidir.
   2. `.st-bars` / `.st-bar` TAŞINMADI. Prototipteki 60 bar
      `(x*9301+49297)%233280` LCG'siyle üretilir — uptime geçmişi entity'si
      yok. Sahte geçmiş, olmayan bir ölçümü varmış gibi gösterir. */
/* Durum mürekkebi tokens.css'in tema-farkındalıklı `--ds-*-ink` ailesinden
   gelir (TECH-6012) — burada YENİDEN TANIMLANMAZ. Durum rengi ZEMİNDE ve
   NOKTADA doygun ham token olarak kalır; kontrast yalnız metinde düzeltilir. */
.st-banner {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 22px 24px;
    border-radius: 20px;
    border: 1px solid var(--ds-border);
}

/* Zemin durum renginin %12'si; metin erişilebilir tondan gelir. */
.st-banner--ok {
    background: rgb(var(--ds-rgb-success) / 0.12);
    border-color: transparent;
    --st-ink: var(--ds-success-ink);
}

.st-banner--warn {
    background: rgb(var(--ds-rgb-warning) / 0.12);
    border-color: transparent;
    --st-ink: var(--ds-warning-ink);
}

.st-banner--down {
    background: rgb(var(--ds-rgb-error) / 0.12);
    border-color: transparent;
    --st-ink: var(--ds-error-ink);
}

/* Ölçüm yok (yükleniyor / bilinmiyor) — durum rengi TAŞIMAZ */
.st-banner--muted {
    background: var(--ds-bg-secondary);
    --st-ink: var(--ds-text-muted);
}

.st-banner__t {
    font-weight: 800;
    font-size: 16px;
    color: var(--st-ink);
}

.st-banner__d {
    font-size: 12.5px;
    color: var(--st-ink);
    opacity: 0.85;
}

.st-dot {
    width: 11px;
    height: 11px;
    border-radius: 50%;
    flex-shrink: 0;
    box-shadow: 0 0 0 4px color-mix(in srgb, currentColor 22%, transparent);
}

.st-dot--ok {
    background: var(--ds-success-ink);
    color: var(--ds-success-ink);
}

.st-dot--deg {
    background: var(--ds-warning-ink);
    color: var(--ds-warning-ink);
}

.st-dot--down {
    background: var(--ds-error-ink);
    color: var(--ds-error-ink);
}

.st-dot--muted {
    background: var(--ds-text-muted);
    color: var(--ds-text-muted);
}

.st-row {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 18px;
    border-bottom: 1px solid var(--ds-border);
}

.st-row:last-child {
    border-bottom: none;
}

.st-row__n {
    font-weight: 700;
    font-size: 14px;
    color: var(--ds-text-primary);
}

.st-row__s {
    font-size: 12px;
    font-weight: 700;
}

.st-row__s--ok   { color: var(--ds-success-ink); }
.st-row__s--deg  { color: var(--ds-warning-ink); }
.st-row__s--down { color: var(--ds-error-ink); }

/* ---- İletişim sayfasına özel (.contact-*) ----
   Prototip: webapp/contact.html sayfa içi <style> bloğu.

   Sayfanın düzeni (ızgara oranları, iki sütunlu form) Tailwind utility'leriyle
   markup'ta ifade edilir — buraya YALNIZ utility'lerle karşılanamayan iki şey
   iner: haritanın sabit yüksekliği ve TEMA-FARKINDALIKLI filtresi.

   Prototipteki `filter:grayscale(20%)` sabiti taşınmadı: Google'ın açık tema
   döşemeleri koyu temada göz alıyor. Renkleri ters çevirip tonu geri döndürmek
   (invert + hue-rotate) haritayı tema ile aynı tarafa geçirir — açık temada
   filtre UYGULANMAZ, çünkü orada döşeme zaten doğru tonda. */
.contact-map {
    height: 240px;
    border-top: 1px solid var(--ds-border);
}

.contact-map iframe {
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
}

.dark .contact-map iframe {
    filter: invert(0.9) hue-rotate(180deg) saturate(0.8) brightness(0.95);
}

/* ---- Basın sayfasına özel (.press-*) ----
   Prototip: webapp/press.html (TECH-6011).

   Prototipin hero CTA'sı, dört sütunlu FACTS şeridi, `.press-asset` üçlüsü
   ve palet şeridi buraya iner. Ölçüler prototipin kendi değerleridir
   (26px/800 mono künye, 46px logo, 30px renk kutusu, 640px kırılım).

   FACTS'in DEĞERLERİ taşınmadı, yalnız BİÇİMİ taşındı: prototipteki
   "48.2K+" / "38K+" uydurma sayılardır ve gerçek karşılıkları
   api/statistics/platform'dan gelir (bkz. Press.razor). Sayı gelmezse
   öğe hiç render edilmez — 0 basmak yanlış rakam yayımlamaktır. */
.press-cta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin-top: 18px;
}

/* Prototip: info-grid-3 üzerine `repeat(4,1fr)` ile bindirilmiş künye şeridi */
.press-facts {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
    margin-bottom: 22px;
}

.press-fact {
    padding: 18px 20px;
}

.press-fact__n {
    font-family: 'JetBrains Mono', ui-monospace, monospace;
    font-size: 26px;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--ds-text-primary);
    line-height: 1.1;
}

.press-fact__l {
    margin-top: 6px;
    font-size: 12.5px;
    color: var(--ds-text-muted);
}

/* Marka varlığı kartı — üstte logo önizlemesi, altta ad + indirme */
.press-asset {
    padding: 0;
    overflow: hidden;
}

/* Önizleme zeminleri prototipin SABİT değerleridir, tema token'ı değil:
   gösterilen şey varlığın KENDİSİdir, sayfanın teması değil. Beyaz (negatif)
   logo yalnız koyu zeminde okunur, o yüzden açık temada da koyu kalır. */
.press-asset__view {
    display: grid;
    place-items: center;
    padding: 26px;
    background: #FAFAF9;
}

.press-asset__view--dark {
    background: #0D0C0B;
}

.press-asset__view img {
    height: 46px;
    width: auto;
    max-width: 100%;
}

.press-asset__bar {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 13px 16px;
    border-top: 1px solid var(--ds-border);
    font-size: 13px;
}

.press-asset__bar strong {
    flex: 1;
    min-width: 0;
    font-weight: 700;
    color: var(--ds-text-primary);
}

/* Marka paleti — prototipte marka varlıklarının ALTINDA yatay şerit.
   Kutunun rengi ile yazılan hex AYNI değerden gelir (`--press-swatch`),
   böylece ilan edilen renk ile gösterilen renk ayrışamaz. */
.press-swatches {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 14px;
}

.press-swatch {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
}

.press-swatch__chip {
    flex: none;
    width: 30px;
    height: 30px;
    border-radius: 9px;
    border: 1px solid var(--ds-border);
    background: var(--press-swatch);
}

.press-swatch__n {
    font-weight: 700;
    font-size: 13px;
    color: var(--ds-text-primary);
}

.press-swatch__hex {
    margin-top: 1px;
    font-family: 'JetBrains Mono', ui-monospace, monospace;
    font-size: 11.5px;
    text-transform: uppercase;
    color: var(--ds-text-muted);
}

/* prototip: press.html sayfa içi <style> — künye şeridi dar ekranda ikişerli */
@media (max-width: 640px) {
    .press-facts {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 560px) {
    .press-cta {
        flex-direction: column;
        align-items: stretch;
    }
}

@media (max-width: 880px) {
    /* mobil: MainLayout `pt-16` (64px) + 40px = prototipin 104px'i */
    .info-main {
        padding: 40px 18px 48px;
    }

    .info-grid-3 {
        grid-template-columns: 1fr;
    }

    /* prototip app.css:1256 */
    .info-title {
        font-size: 30px;
    }

    .wp-hero {
        padding: 34px 24px;
        border-radius: 20px;
    }
}

/* Sonsuz döngülü kicker nabzı hareket duyarlılığında durur — sayfanın geri
   kalanı `motion-safe:` utility'leriyle aynı sözü zaten veriyor. */
@media (prefers-reduced-motion: reduce) {
    .info-kicker::before {
        animation: none;
    }
}

} /* @layer components */
