/*
 * Liderlik Carki — #wtg-leadershipwheel kapsamli stiller.
 *
 * Marka: koyu #223b40, aksan turuncu #ff7e33. Durum + marka renkleri DUZ CSS ile verilir
 * (Tailwind purge arbitrary renkleri atabilir); yerlesim tw- utility ile. valuesjourney.css
 * ile ayni gorsel dil.
 */

#wtg-leadershipwheel {
    --lw-brand: #223b40;
    --lw-accent: #ff7e33;
    --lw-text: #374151;
    --lw-muted: #6b7280;
    --lw-border: #e5e7eb;
    color: var(--lw-text);
}

/* ── Kartlar / tipografi ─────────────────────────────────────────────────── */
#wtg-leadershipwheel .lw-card {
    background: #fff;
    border: 1px solid var(--lw-border);
    border-radius: 14px;
    padding: 20px;
    box-shadow: 0 1px 2px rgba(16, 24, 40, 0.04);
}
#wtg-leadershipwheel .lw-info {
    background: #f7fafa;
    border: 1px solid #dbe7e7;
    border-left: 4px solid var(--lw-accent);
    border-radius: 12px;
    padding: 16px 18px;
}
#wtg-leadershipwheel .lw-title {
    color: var(--lw-brand);
    font-weight: 700;
    line-height: 1.25;
}
#wtg-leadershipwheel .lw-desc {
    color: var(--lw-muted);
    line-height: 1.6;
}
#wtg-leadershipwheel .lw-chip {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: #fff7ea;
    color: var(--lw-accent);
    font-size: 12px;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 999px;
}
#wtg-leadershipwheel .lw-icon-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border-radius: 16px;
    background: #fff7ea;
    color: var(--lw-accent);
}

/* ── Ilerleme cubugu ─────────────────────────────────────────────────────── */
#wtg-leadershipwheel .lw-step-counter {
    display: inline-block;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    color: var(--lw-accent);
}
#wtg-leadershipwheel .lw-step-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--lw-brand);
}
#wtg-leadershipwheel .lw-progress-track {
    height: 8px;
    border-radius: 999px;
    background: #eef2f2;
    overflow: hidden;
}
#wtg-leadershipwheel .lw-progress-fill {
    height: 100%;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--lw-accent), #ff9a5c);
    transition: width 0.4s ease;
}
#wtg-leadershipwheel .lw-dots {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}
#wtg-leadershipwheel .lw-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #d7dede;
    transition: background 0.3s ease, transform 0.3s ease;
}
#wtg-leadershipwheel .lw-dot.is-done {
    background: var(--lw-accent);
}
#wtg-leadershipwheel .lw-dot.is-current {
    background: var(--lw-brand);
    transform: scale(1.35);
}

/* ── Adim gecis animasyonu (yazilarin yavas gelmesi) ─────────────────────── */
#wtg-leadershipwheel .lw-step {
    display: none;
}
#wtg-leadershipwheel .lw-step.is-active {
    display: block;
}
/* Base opacity:0 KULLANMA — animasyon calismazsa icerik gorunmez kalirdi. "both" fill-mode
 * ile guvenli: calmadan once/sonra dogru duruma oturur. */
#wtg-leadershipwheel .lw-step.is-active > * {
    animation: lw-rise 0.5s cubic-bezier(0.22, 1, 0.36, 1) both;
}
#wtg-leadershipwheel .lw-step.is-active > *:nth-child(1) { animation-delay: 0.02s; }
#wtg-leadershipwheel .lw-step.is-active > *:nth-child(2) { animation-delay: 0.10s; }
#wtg-leadershipwheel .lw-step.is-active > *:nth-child(3) { animation-delay: 0.18s; }
#wtg-leadershipwheel .lw-step.is-active > *:nth-child(4) { animation-delay: 0.26s; }
@keyframes lw-rise {
    from { opacity: 0; transform: translateY(10px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ── Butonlar ────────────────────────────────────────────────────────────── */
#wtg-leadershipwheel .lw-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
    padding: 10px 20px;
    border-radius: 10px;
    border: 1px solid transparent;
    cursor: pointer;
    transition: transform 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}
#wtg-leadershipwheel .lw-btn:hover { transform: translateY(-1px); }
#wtg-leadershipwheel .lw-btn-primary {
    background: var(--lw-brand);
    color: #fff;
}
#wtg-leadershipwheel .lw-btn-accent {
    background: var(--lw-accent);
    color: #fff;
}
#wtg-leadershipwheel .lw-btn-ghost {
    background: #fff;
    color: var(--lw-brand);
    border-color: var(--lw-border);
}
#wtg-leadershipwheel .lw-save-state {
    font-size: 12px;
    color: var(--lw-muted);
}

/* ── Blok kartlari (puan dagitimi) ───────────────────────────────────────── */
#wtg-leadershipwheel .lw-block-card {
    background: #fff;
    border: 1px solid var(--lw-border);
    border-radius: 14px;
    padding: 18px 20px;
    margin-bottom: 20px;
}
#wtg-leadershipwheel .lw-block-head {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
}
#wtg-leadershipwheel .lw-block-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 9px;
    background: #fff7ea;
    color: var(--lw-accent);
    font-weight: 700;
    font-size: 14px;
    flex-shrink: 0;
}
#wtg-leadershipwheel .lw-block-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--lw-brand);
}
#wtg-leadershipwheel .lw-sentence-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 0;
    border-top: 1px solid #f1f4f4;
}
#wtg-leadershipwheel .lw-sentence-text {
    flex: 1;
    min-width: 0;
    font-size: 14px;
    line-height: 1.45;
    color: var(--lw-text);
}
#wtg-leadershipwheel .lw-stepper {
    display: inline-flex;
    align-items: center;
    gap: 0;
    flex-shrink: 0;
    border: 1px solid var(--lw-border);
    border-radius: 10px;
    overflow: hidden;
    background: #fff;
}
#wtg-leadershipwheel .lw-stepper-btn {
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #f7fafa;
    color: var(--lw-brand);
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    border: none;
    user-select: none;
    transition: background 0.15s ease;
}
#wtg-leadershipwheel .lw-stepper-btn:hover { background: #eef2f2; }
#wtg-leadershipwheel .lw-stepper-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}
#wtg-leadershipwheel .lw-stepper-val {
    width: 40px;
    text-align: center;
    font-size: 15px;
    font-weight: 700;
    color: var(--lw-brand);
}
#wtg-leadershipwheel .lw-block-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 14px;
    padding-top: 12px;
    border-top: 2px solid #f1f4f4;
}
#wtg-leadershipwheel .lw-block-total {
    font-size: 14px;
    font-weight: 700;
    color: var(--lw-brand);
}
#wtg-leadershipwheel .lw-block-remaining {
    font-size: 13px;
    font-weight: 600;
    padding: 3px 12px;
    border-radius: 999px;
}
#wtg-leadershipwheel .lw-block-remaining.is-ok {
    background: #e7f6ec;
    color: #1a7f43;
}
#wtg-leadershipwheel .lw-block-remaining.is-pending {
    background: #fff4e5;
    color: #b25e12;
}
#wtg-leadershipwheel .lw-block-remaining.is-over {
    background: #fdeaea;
    color: #b42318;
}
#wtg-leadershipwheel .lw-block-card.is-invalid {
    border-color: #f0b4ae;
    box-shadow: 0 0 0 3px rgba(244, 63, 40, 0.08);
}

/* ── Ornek puanlama (giris) ──────────────────────────────────────────────── */
#wtg-leadershipwheel .lw-example-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 0;
    border-top: 1px solid #f1f4f4;
    font-size: 13px;
}
#wtg-leadershipwheel .lw-example-row:first-child { border-top: none; }
#wtg-leadershipwheel .lw-example-text {
    flex: 1;
    min-width: 0;
    color: var(--lw-text);
}
#wtg-leadershipwheel .lw-example-score {
    flex-shrink: 0;
    width: 30px;
    height: 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: var(--lw-brand);
    color: #fff;
    font-weight: 700;
    font-size: 13px;
}

/* ── Sonuc: cark enerjileri (pusula + arketip kartlari) ──────────────────── */
/* Pusula HER sonucta aynidir; degisen tek sey kullaniciya cikan enerjinin yanmasidir.
   Kart rengi article uzerinde --lw-arch-color olarak inline gelir (katalogdan). */
/* Cark USTTE, yazilar ALTTA. Puanlar carkin kendi dilimlerinde durur; ayri puan tablosu YOK. */
#wtg-leadershipwheel .lw-energy-compass {
    padding: 20px 16px 16px;
    margin-bottom: 18px;
    border: 1px solid var(--lw-border);
    border-radius: 14px;
    background: #fff;
    text-align: center;
}
#wtg-leadershipwheel .lw-compass svg {
    display: block;
    width: 100%;
    max-width: 420px;
    height: auto;
    margin: 0 auto;
}
#wtg-leadershipwheel .lw-compass-name {
    font-size: 13.5px;
    font-weight: 700;
    letter-spacing: 0.01em;
}
#wtg-leadershipwheel .lw-compass-dir {
    font-size: 9.5px;
    font-weight: 600;
    letter-spacing: 0.18em;
}
#wtg-leadershipwheel .lw-compass-score {
    font-size: 17px;
    font-weight: 700;
}
#wtg-leadershipwheel .lw-compass-note {
    max-width: 470px;
    margin: 14px auto 0;
    font-size: 12px;
    line-height: 1.55;
    color: var(--lw-muted);
}

#wtg-leadershipwheel .lw-energy-cards {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
#wtg-leadershipwheel .lw-arch {
    padding: 14px 16px;
    border: 1px solid var(--lw-border);
    border-left: 4px solid var(--lw-arch-color);
    border-radius: 12px;
    background: #fff;
}
/* Kullaniciya cikan enerji: tam cerceve + govde golgesi. Rozet ayrica "size cikan bu" der. */
#wtg-leadershipwheel .lw-arch.is-top {
    padding: 13px 15px;
    border: 2px solid var(--lw-arch-color);
    border-left-width: 6px;
    box-shadow: 0 8px 22px rgba(34, 59, 64, 0.10);
}
#wtg-leadershipwheel .lw-arch-head {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 4px 9px;
    margin-bottom: 11px;
}
#wtg-leadershipwheel .lw-arch-name {
    margin: 0;
    font-size: 17px;
    font-weight: 700;
    line-height: 1.2;
    color: var(--lw-arch-color);
}
#wtg-leadershipwheel .lw-arch-meta {
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--lw-muted);
}
#wtg-leadershipwheel .lw-arch-badge {
    padding: 3px 9px;
    border-radius: 999px;
    background: var(--lw-arch-color);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.03em;
    white-space: nowrap;
}
#wtg-leadershipwheel .lw-arch-score {
    margin-left: auto;
    font-size: 15px;
    font-weight: 700;
    color: var(--lw-brand);
}
/* Puan araligi yorumu — kaldirilan puan tablosunun tasidigi bilgi burada yasar. */
#wtg-leadershipwheel .lw-arch-band {
    margin: -4px 0 11px;
    font-size: 11.5px;
    color: var(--lw-muted);
}
/* Etiket sutunu en uzun etiketi ("Zarar verdigi an") TEK SATIRDA tutacak kadar genis. */
#wtg-leadershipwheel .lw-arch-rows {
    display: grid;
    grid-template-columns: 128px 1fr;
    gap: 7px 14px;
    margin: 0;
}
#wtg-leadershipwheel .lw-arch-dt {
    padding-top: 2px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.09em;
    text-transform: uppercase;
    color: var(--lw-muted);
}
#wtg-leadershipwheel .lw-arch-dd {
    margin: 0;
    font-size: 13.5px;
    line-height: 1.5;
    color: var(--lw-text);
}
/* Dar ekranda etiket kendi satirina cikar; iki sutun sigmiyor. */
@media (max-width: 479px) {
    #wtg-leadershipwheel .lw-arch-rows {
        grid-template-columns: 1fr;
        gap: 2px;
    }
    #wtg-leadershipwheel .lw-arch-dd {
        margin-bottom: 9px;
    }
    #wtg-leadershipwheel .lw-arch-dd:last-child {
        margin-bottom: 0;
    }
}


@media (prefers-reduced-motion: reduce) {
    #wtg-leadershipwheel .lw-step.is-active > *,
    #wtg-leadershipwheel .lw-progress-fill {
        animation: none !important;
        transition: none !important;
    }
}
