/* ==========================================================================
   Omnitral — iş akışları bölümleri (paralel ajan · otomasyon · worktree)
   ========================================================================== */

.wk-page {
    background: #000;
}

.wk-section {
    padding: clamp(64px, 8vw, 112px) clamp(20px, 4vw, 40px);
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.wk-section:first-of-type {
    border-top: 0;
}

.wk-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: clamp(36px, 6vw, 84px);
    align-items: center;
    max-width: 1240px;
    margin-inline: auto;
}

.wk-grid > * {
    min-width: 0;
}

.wk-win {
    max-width: 100%;
}

.wk-body2,
.wk-body3,
.wk-diff,
.wk-git {
    min-width: 0;
}

.wk-copy {
    display: grid;
    gap: 16px;
    max-width: 480px;
}

.wk-copy h2 {
    font-size: clamp(1.9rem, 3.6vw, 2.7rem);
    letter-spacing: -0.035em;
}

.wk-points {
    margin: 4px 0 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 9px;
}

.wk-points li {
    display: grid;
    grid-template-columns: 14px 1fr;
    gap: 10px;
    color: #9a9a9a;
    font-size: 13.5px;
}

.wk-points li::before {
    content: "—";
    font-family: var(--font-mono);
    font-size: 11px;
    color: #9a9a9a;
}

/* Görünürlük animasyonu */

.reveal {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 620ms ease, transform 620ms ease;
}

.reveal.in {
    opacity: 1;
    transform: none;
}

/* Pencere */

.wk-win {
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 12px;
    background: #0a0a0a;
    box-shadow: 0 40px 120px rgba(0, 0, 0, 0.85);
    overflow: hidden;
}

.wk-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    height: 34px;
    padding: 0 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    background: #0c0c0c;
}

.wk-win-title {
    font-family: var(--font-mono);
    font-size: 10px;
    letter-spacing: 0.06em;
    color: #8a8a8a;
    margin-inline: auto;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.wk-live {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: var(--font-mono);
    font-size: 9px;
    letter-spacing: 0.08em;
    color: #9a9a9a;
    text-transform: uppercase;
}

.live-dot {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 0 8px rgba(255, 255, 255, 0.7);
    animation: livePulse 1.6s ease-in-out infinite;
}

@keyframes livePulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

/* Paralel: liste + sohbet */

.wk-body2 {
    display: grid;
    grid-template-columns: 248px minmax(0, 1fr);
    min-height: 424px;
}

.wk-list-col {
    border-right: 1px solid rgba(255, 255, 255, 0.08);
    background: #080808;
    padding: 8px 6px;
    overflow: auto;
}

.wk-group {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 8px 5px;
    font-family: var(--font-mono);
    font-size: 8.5px;
    letter-spacing: 0.14em;
    color: #9a9a9a;
}

.badge-num {
    color: #9a9a9a;
}

.wk-item {
    display: grid;
    grid-template-columns: 16px minmax(0, 1fr);
    gap: 7px;
    width: 100%;
    padding: 6px 8px;
    border: 0;
    border-radius: 6px;
    background: transparent;
    color: #c4c4c4;
    font-family: inherit;
    text-align: left;
    cursor: pointer;
    transition: background-color 150ms ease, color 150ms ease;
}

.wk-item:hover {
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
}

.wk-item.is-active {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
}

.wk-item-main {
    display: grid;
    gap: 3px;
    min-width: 0;
}

.wk-ico {
    font-size: 11px;
    color: #9a9a9a;
    line-height: 1.4;
}

.wk-ico.is-spin {
    animation: spin 2.4s linear infinite;
    display: inline-block;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.wk-check {
    display: grid;
    place-items: center;
    width: 15px;
    height: 15px;
    border-radius: 0;
    border: 0;
    background: transparent;
    font-size: 10px;
    color: #cfcfcf;
}

.wk-name {
    font-size: 11.5px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.wk-state {
    font-family: var(--font-mono);
    font-size: 9px;
    color: #9a9a9a;
}

.ellipsis::after {
    content: "…";
    animation: livePulse 1.2s ease-in-out infinite;
}

.wk-progress {
    display: block;
    width: 64px;
    height: 1.5px;
    margin-top: 5px;
    opacity: 0.55;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    overflow: hidden;
}

.wk-progress i {
    display: block;
    height: 100%;
    width: 20%;
    background: rgba(255, 255, 255, 0.7);
    animation: prog 2.8s ease-in-out infinite;
}

@keyframes prog {
    0% { width: 8%; }
    50% { width: 86%; }
    100% { width: 8%; }
}

.wk-diff {
    font-family: var(--font-mono);
    font-size: 9.5px;
    color: #9a9a9a;
    display: flex;
    gap: 6px;
}

.wk-diff b {
    color: #dcdcdc;
    font-weight: 500;
}

.wk-diff em {
    font-style: normal;
}

.wk-time {
    margin-left: auto;
    color: #9a9a9a;
}

/* Sohbet */

.wk-chat {
    display: flex;
    flex-direction: column;
    padding: 14px 16px;
    min-width: 0;
}

.wk-chat-head {
    font-family: var(--font-mono);
    font-size: 11.5px;
    color: #d6d6d6;
}

.wk-chat-head b {
    font-weight: 500;
}

.chev {
    color: #9a9a9a;
    margin-right: 4px;
}

.wk-meta {
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin-top: 9px;
    font-size: 10.5px;
    color: #8a8a8a;
}

.wk-meta b {
    color: #d6d6d6;
    font-weight: 500;
}

.wk-task {
    margin-top: 14px;
    font-size: 11.5px;
    color: #d6d6d6;
}

.wk-msg {
    margin-top: 10px;
    font-size: 11.5px;
    line-height: 1.75;
    color: #cfcfcf;
    white-space: pre-wrap;
    min-height: 74px;
}

.wk-msg .cursor {
    display: inline-block;
    width: 6px;
    height: 12px;
    background: #fff;
    margin-left: 2px;
    vertical-align: -1px;
    animation: blink 1s steps(2, start) infinite;
}

@keyframes blink {
    50% { opacity: 0; }
}

.wk-reads {
    margin-top: 10px;
    display: grid;
    gap: 2px;
    font-family: var(--font-mono);
    font-size: 10px;
    color: #9a9a9a;
}

.wk-result {
    margin-top: 10px;
    font-size: 11px;
    color: #e2e2e2;
    line-height: 1.7;
    border-left: 2px solid rgba(255, 255, 255, 0.4);
    padding-left: 9px;
    display: grid;
    gap: 1px;
}

.wk-result:empty {
    display: none;
}

.wk-input {
    margin-top: auto;
    padding-top: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.07);
    display: flex;
    align-items: center;
    gap: 7px;
    font-family: var(--font-mono);
    font-size: 10.5px;
    color: #9a9a9a;
}

.wk-placeholder {
    color: #9a9a9a;
}

.caret {
    width: 1px;
    height: 12px;
    background: #fff;
    animation: blink 1.1s steps(2, start) infinite;
}

/* Otomasyonlar */

.wk-auto {
    width: 100%;
    border-collapse: collapse;
    font-size: 11.5px;
}

.wk-auto th {
    text-align: left;
    font-family: var(--font-mono);
    font-size: 8.5px;
    letter-spacing: 0.14em;
    color: #9a9a9a;
    font-weight: 500;
    padding: 10px 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.wk-auto td {
    padding: 10px 14px;
    color: #b4b4b4;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.wk-auto tr {
    cursor: pointer;
    transition: background-color 150ms ease;
}

.wk-auto tbody tr:hover {
    background: rgba(255, 255, 255, 0.04);
}

.wk-auto tbody tr.is-active {
    background: rgba(255, 255, 255, 0.06);
}

.wk-auto tbody tr.is-active td:first-child {
    color: #fff;
}

.wk-auto td:last-child {
    font-family: var(--font-mono);
    font-size: 9.5px;
    color: #8a8a8a;
}

.run-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #fff;
    font-family: var(--font-mono);
    font-size: 9.5px;
}

.wk-log {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    background: #070707;
    padding: 12px 14px;
    min-height: 96px;
    display: grid;
    gap: 3px;
    align-content: start;
}

.wk-log-title {
    font-family: var(--font-mono);
    font-size: 8.5px;
    letter-spacing: 0.14em;
    color: #9a9a9a;
    margin-bottom: 4px;
}

.wk-log-line {
    font-family: var(--font-mono);
    font-size: 10px;
    color: #b0b0b0;
    animation: logIn 320ms ease both;
}

.wk-log-line .arrow {
    color: #9a9a9a;
    margin-right: 5px;
}

@keyframes logIn {
    from { opacity: 0; transform: translateY(3px); }
    to { opacity: 1; transform: none; }
}

/* Worktree */

.wk-view-toggle {
    display: flex;
    gap: 2px;
    margin-left: auto;
}

.vt {
    height: 24px;
    padding: 0 9px;
    border: 0;
    border-radius: 5px;
    background: transparent;
    color: #8a8a8a;
    font-family: var(--font-mono);
    font-size: 9.5px;
    cursor: pointer;
}

.vt:hover {
    background: rgba(255, 255, 255, 0.06);
    color: #d6d6d6;
}

.vt.is-active {
    background: #fff;
    color: #000;
}

.wk-body3 {
    display: grid;
    grid-template-columns: 186px minmax(0, 1fr);
    min-height: 360px;
}

.wk-git {
    border-right: 1px solid rgba(255, 255, 255, 0.08);
    background: #080808;
    padding: 8px 6px;
    display: grid;
    align-content: start;
    gap: 1px;
}

.wk-git-row {
    display: flex;
    align-items: center;
    gap: 8px;
    height: 28px;
    padding: 0 8px;
    border: 0;
    border-radius: 5px;
    background: transparent;
    color: #a2a2a2;
    font-family: inherit;
    font-size: 11.5px;
    text-align: left;
    cursor: pointer;
}

.wk-git-row:hover {
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
}

.wk-git-row.is-active {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
}

.wk-git-row .count {
    margin-left: auto;
    font-family: var(--font-mono);
    font-size: 9px;
    color: #9a9a9a;
}

.wk-box {
    display: grid;
    place-items: center;
    width: 13px;
    height: 13px;
    margin-left: auto;
    border-radius: 3px;
    border: 1px solid rgba(255, 255, 255, 0.4);
    font-size: 8px;
    color: #fff;
}

.wk-box.is-off {
    border-color: rgba(255, 255, 255, 0.16);
    color: transparent;
}

.wk-file {
    display: flex;
    align-items: center;
    gap: 6px;
    width: 100%;
    padding: 4px 8px;
    border: 0;
    border-radius: 4px;
    background: transparent;
    color: #b4b4b4;
    font-family: inherit;
    font-size: 10.5px;
    text-align: left;
    cursor: pointer;
}

.wk-file:hover {
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
}

.wk-file.is-active {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
}

.wk-file .f-diff {
    margin-left: auto;
    display: flex;
    gap: 5px;
}

.wk-diff {
    display: block;
    overflow: auto;
    max-height: 420px;
    padding: 10px 0;
}

.wk-diff .dl {
    display: grid;
    grid-template-columns: 34px 34px minmax(0, 1fr);
    font-family: var(--font-mono);
    font-size: 10px;
    line-height: 1.75;
    color: #c4c4c4;
    white-space: pre;
}

.wk-diff .dl .ln {
    text-align: right;
    padding-right: 8px;
    color: #9a9a9a;
    user-select: none;
}

.wk-diff .dl .code {
    padding-left: 8px;
    border-left: 1px solid rgba(255, 255, 255, 0.06);
    overflow: hidden;
    text-overflow: ellipsis;
}

.wk-diff .dl.add {
    background: rgba(74, 222, 128, 0.09);
}

.wk-diff .dl.del {
    background: rgba(248, 113, 113, 0.09);
}

.wk-diff .dl.add .code::before {
    content: "+ ";
    color: #86efac;
}

.wk-diff .dl.del .code::before {
    content: "− ";
    color: #fca5a5;
}

.wk-diff .dl.hunk .code {
    color: #9a9a9a;
    background: rgba(255, 255, 255, 0.03);
}

.wk-diff .t {
    color: #e2e2e2;
}

.wk-diff .a {
    color: #a8b8ff;
}

.wk-diff .s {
    color: #9fd8b0;
}

/* Yan yana görünüm */

.wk-diff.is-side {
    display: grid;
    grid-template-columns: 1fr 1fr;
}

.wk-diff.is-side .side {
    overflow: auto;
    border-left: 1px solid rgba(255, 255, 255, 0.07);
}

.wk-diff.is-side .side:first-child {
    border-left: 0;
}

.wk-diff.is-side .dl {
    grid-template-columns: 30px minmax(0, 1fr);
}

.wk-diff.is-side .dl .ln {
    color: #9a9a9a;
}

/* Duyarlı */

@media (max-width: 980px) {
    .wk-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .wk-grid > * {
    min-width: 0;
}

.wk-win {
    max-width: 100%;
}

.wk-body2,
.wk-body3,
.wk-diff,
.wk-git {
    min-width: 0;
}

.wk-copy {
        max-width: 620px;
    }

    .wk-body2,
    .wk-body3 {
        grid-template-columns: 1fr;
    }

    .wk-list-col {
        max-height: 240px;
        border-right: 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    }

    .wk-git {
        border-right: 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    }

    .wk-chat {
        min-height: 300px;
    }
}

@media (max-width: 620px) {
    .demo-header-links {
        gap: 12px;
        font-size: 12px;
    }

    .demo-header-links a:first-child {
        display: none;
    }

    .wk-auto th:nth-child(2),
    .wk-auto td:nth-child(2) {
        display: none;
    }

    .wk-diff.is-side {
        grid-template-columns: 1fr;
    }
}

@media (prefers-reduced-motion: reduce) {
    .reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }

    .wk-ico.is-spin,
    .wk-progress i,
    .ellipsis::after,
    .live-dot,
    .caret,
    .wk-msg .cursor {
        animation: none;
    }
}
