/* ==========================================================================
   PROVE ID - SLIDE 12 / ÖLÇÜLEBİLİR DEĞERLENDİRME
   Operasyonel ölçek (sol) + NIST biyometrik doğruluk (sağ)
   ========================================================================== */

@property --ev-angle {
    syntax: "<angle>";
    initial-value: 0deg;
    inherits: false;
}

.eval-slide h1 br { display: none; }
.eval-slide h1 em { margin-left: 0; }

.ev-grid {
    display: grid;
    grid-template-columns: 0.92fr 1.28fr;
    gap: 20px;
    align-items: stretch;
}

/* ---------- Giriş animasyonları (slayt her açıldığında yeniden oynar) ---------- */
.ev-enter {
    animation: ev-rise 0.9s var(--px-ease) both;
    animation-delay: var(--d, 0s);
}

@keyframes ev-rise {
    from { opacity: 0; transform: translateY(22px) scale(0.98); filter: blur(6px); }
    to { opacity: 1; transform: none; filter: none; }
}

/* ---------- Panel ---------- */
.ev-panel {
    position: relative;
    border-radius: 26px;
    padding: 22px 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    background: linear-gradient(150deg, rgba(30,22,88,0.78), rgba(12,9,42,0.88));
    border: 1px solid var(--px-border-2);
    box-shadow: 0 24px 60px -24px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.05);
    isolation: isolate;
}

.ev-panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    min-height: 40px;
}

.ev-kicker {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--px-cyan);
}

.ev-kicker svg {
    width: 30px;
    height: 30px;
    padding: 6px;
    border-radius: 9px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    background: rgba(34,211,230,0.12);
    border: 1px solid rgba(34,211,230,0.3);
}

/* NIST paneli: çevresinde dolaşan ışık */
.ev-nist {
    background:
        radial-gradient(circle at 88% 0%, rgba(34,211,230,0.14), transparent 45%),
        linear-gradient(150deg, rgba(24, 40, 96, 0.85), rgba(12,9,42,0.92));
    border-color: rgba(34,211,230,0.28);
}

.ev-nist::before {
    content: "";
    position: absolute;
    inset: -1px;
    border-radius: inherit;
    padding: 1.5px;
    background: conic-gradient(from var(--ev-angle), transparent 0 72%, rgba(34,211,230,0.9) 84%, #ffffff 87%, transparent 92%);
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    animation: ev-orbit 7s linear infinite;
    pointer-events: none;
    z-index: 1;
}

@keyframes ev-orbit { to { --ev-angle: 360deg; } }

.ev-nist-logo img { height: 40px; width: auto; display: block; }
.ev-nist-logo .nist-light { display: none; }

.ev-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 11px;
    font-weight: 750;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--px-cyan);
    background: rgba(34,211,230,0.1);
    border: 1px solid rgba(34,211,230,0.3);
    padding: 6px 12px;
    border-radius: 999px;
}

.ev-tag i {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--px-green);
    box-shadow: 0 0 10px var(--px-green);
    animation: ev-blink 1.6s ease-in-out infinite alternate;
}

@keyframes ev-blink { from { opacity: 0.35; } to { opacity: 1; } }

/* ---------- Sol: büyük rakamlar ---------- */
.ev-heroes {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.ev-hero {
    position: relative;
    overflow: hidden;
    border-radius: 20px;
    padding: 18px 20px 18px;
    background: linear-gradient(160deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.015));
    border: 1px solid var(--px-border-2);
    transition: transform 0.5s var(--px-ease), border-color 0.4s, box-shadow 0.5s;
}

.ev-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(105deg, transparent 35%, rgba(255, 255, 255, 0.14) 50%, transparent 65%);
    transform: translateX(-120%);
    animation: ev-sheen 6s ease-in-out infinite;
    animation-delay: calc(var(--d, 0s) + 1.2s);
    pointer-events: none;
}

@keyframes ev-sheen {
    0%, 70% { transform: translateX(-120%); }
    90%, 100% { transform: translateX(120%); }
}

.ev-hero:hover {
    transform: translateY(-5px);
    border-color: color-mix(in srgb, var(--ac) 55%, transparent);
    box-shadow: 0 22px 46px -22px color-mix(in srgb, var(--ac) 70%, transparent);
}

.ev-hero-ico {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    color: var(--ac);
    background: color-mix(in srgb, var(--ac) 14%, transparent);
    border: 1px solid color-mix(in srgb, var(--ac) 35%, transparent);
}

.ev-hero-ico svg {
    width: 22px;
    height: 22px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.ev-hero-ico i {
    position: absolute;
    inset: -1px;
    border-radius: 14px;
    border: 1px solid var(--ac);
    opacity: 0;
    animation: ev-ripple 3.2s ease-out infinite;
}

.ev-hero-ico i + i { animation-delay: 1.6s; }

@keyframes ev-ripple {
    0% { transform: scale(1); opacity: 0.7; }
    100% { transform: scale(1.9); opacity: 0; }
}

.ev-hero-val {
    font-family: var(--px-font-display);
    font-weight: 800;
    font-size: clamp(48px, 4.3vw, 72px);
    line-height: 1;
    letter-spacing: -0.045em;
    font-variant-numeric: tabular-nums;
    margin-top: 6px;
    background: linear-gradient(120deg, #ffffff 30%, var(--ac));
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
}

.ev-hero-val small { font-size: 0.55em; margin-left: 2px; letter-spacing: -0.02em; }

.ev-hero-lbl {
    margin-top: 10px;
    font-size: 16px;
    font-weight: 650;
    color: var(--px-text);
}

/* ---------- Sol: halka göstergeler ---------- */
.ev-kpis {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    flex: 1;
}

.ev-kpi {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 2px;
    padding: 16px 10px 14px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.035);
    border: 1px solid var(--px-border);
    transition: transform 0.5s var(--px-ease), border-color 0.4s, background 0.4s;
}

.ev-kpi:hover {
    transform: translateY(-5px);
    border-color: rgba(179,166,255,0.4);
    background: rgba(122,102,255,0.08);
}

.ev-kpi strong {
    margin-top: 10px;
    font-size: 15px;
    font-weight: 700;
    color: var(--px-text);
}

.ev-kpi small {
    font-size: 11.5px;
    line-height: 1.35;
    color: var(--px-muted);
}

.ev-ring {
    --size: clamp(82px, 7vw, 108px);
    position: relative;
    width: var(--size);
    height: var(--size);
    display: grid;
    place-items: center;
    flex: none;
}

.ev-ring svg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
    overflow: visible;
}

.ev-ring circle { fill: none; stroke-width: 7; }
.ev-ring .trk { stroke: rgba(255, 255, 255, 0.08); }

.ev-ring .val {
    stroke: var(--ac, var(--px-cyan));
    stroke-linecap: round;
    stroke-dasharray: 100;
    stroke-dashoffset: calc(100 - var(--p));
    filter: drop-shadow(0 0 6px var(--ac, var(--px-cyan)));
    animation: ev-draw 1.8s var(--px-ease) both, ev-glow 3s ease-in-out infinite alternate;
    animation-delay: calc(var(--d, 0s) + 0.25s), 2s;
}

@keyframes ev-draw { from { stroke-dashoffset: 100; } }
@keyframes ev-glow {
    from { filter: drop-shadow(0 0 3px var(--ac, var(--px-cyan))); }
    to { filter: drop-shadow(0 0 11px var(--ac, var(--px-cyan))); }
}

.ev-ring > b {
    position: relative;
    font-family: var(--px-font-display);
    font-size: clamp(22px, 1.9vw, 30px);
    font-weight: 800;
    letter-spacing: -0.04em;
    font-variant-numeric: tabular-nums;
    color: var(--px-text);
}

/* Kronometre */
.ev-watch svg { transform: none; }
.ev-watch .trk { stroke-width: 5; }
.ev-watch .ticks { stroke: var(--px-muted); stroke-width: 3; stroke-linecap: round; opacity: 0.7; }
.ev-watch .arc {
    fill: none;
    stroke: var(--ac);
    stroke-width: 5;
    stroke-linecap: round;
    filter: drop-shadow(0 0 6px var(--ac));
}
.ev-watch .hand {
    stroke: var(--ac);
    stroke-width: 4;
    stroke-linecap: round;
    transform-origin: 50px 50px;
    animation: ev-tick 6s steps(60) infinite;
}
.ev-watch .hub { fill: var(--px-text); stroke: none; }

@keyframes ev-tick { to { transform: rotate(360deg); } }

/* ---------- Sağ: biyometrik kartlar ---------- */
.ev-bios {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    flex: 1;
}

.ev-bio {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 18px 20px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--px-border-2);
    transition: transform 0.5s var(--px-ease), border-color 0.4s, box-shadow 0.5s;
}

.ev-bio:hover {
    transform: translateY(-5px);
    border-color: color-mix(in srgb, var(--ac) 50%, transparent);
    box-shadow: 0 24px 50px -24px color-mix(in srgb, var(--ac) 65%, transparent);
}

.ev-bio-head {
    display: flex;
    align-items: center;
    gap: 12px;
}

.ev-bio h3 {
    margin: 0;
    font-size: 19px;
    line-height: 1.15;
    letter-spacing: -0.02em;
    color: var(--px-text);
}

.ev-bio-head small {
    font-size: 11px;
    color: var(--px-muted);
}

.ev-bio-ico {
    position: relative;
    overflow: hidden;
    width: 46px;
    height: 46px;
    flex: none;
    display: grid;
    place-items: center;
    border-radius: 14px;
    color: var(--ac);
    background: color-mix(in srgb, var(--ac) 13%, transparent);
    border: 1px solid color-mix(in srgb, var(--ac) 35%, transparent);
}

.ev-bio-ico svg {
    width: 26px;
    height: 26px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.ev-face .scan {
    position: absolute;
    left: 6px;
    right: 6px;
    height: 2px;
    top: 8px;
    border-radius: 2px;
    background: var(--ac);
    box-shadow: 0 0 10px 2px var(--ac);
    animation: ev-scan 2.6s ease-in-out infinite;
}

@keyframes ev-scan {
    0%, 100% { top: 8px; opacity: 0.2; }
    50% { top: 36px; opacity: 1; }
}

.ev-live .pulse {
    stroke-width: 2;
    stroke-dasharray: 34 66;
    animation: ev-ecg 1.8s linear infinite;
    filter: drop-shadow(0 0 3px var(--ac));
}

@keyframes ev-ecg { from { stroke-dashoffset: 100; } to { stroke-dashoffset: 0; } }

.ev-bio-main {
    display: flex;
    align-items: center;
    gap: 18px;
}

.ev-ring--lg { --size: clamp(110px, 9vw, 140px); }
.ev-ring--lg circle { stroke-width: 6; }
.ev-ring--lg > b {
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: clamp(22px, 1.75vw, 28px);
}
.ev-ring--lg > b small {
    font-family: var(--px-font);
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #ffad53;
    margin-top: 3px;
}

.ev-rates {
    margin: 0;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-width: 0;
}

.ev-rates > div {
    padding-left: 12px;
    border-left: 2px solid var(--px-border-2);
}

.ev-rates dt {
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.06em;
    color: var(--px-text);
}

.ev-rates dt small {
    font-weight: 500;
    letter-spacing: 0;
    color: var(--px-muted);
    font-size: 11.5px;
    margin-left: 4px;
}

.ev-rates dd {
    margin: 2px 0 0;
    font-family: var(--px-font-display);
    font-size: clamp(22px, 1.8vw, 30px);
    font-weight: 800;
    letter-spacing: -0.035em;
    font-variant-numeric: tabular-nums;
    line-height: 1.1;
}

.ev-rates dd.cyan { color: var(--px-cyan); text-shadow: 0 0 18px rgba(34,211,230,0.35); }
.ev-rates dd.green { color: var(--px-green); text-shadow: 0 0 18px rgba(46, 230, 166, 0.3); }

.ev-success { margin-top: auto; }

.ev-success > div:first-child {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 7px;
}

.ev-success span { font-size: 12px; color: var(--px-muted); font-weight: 600; }
.ev-success b {
    font-family: var(--px-font-display);
    font-size: 17px;
    font-weight: 800;
    color: var(--px-green);
    font-variant-numeric: tabular-nums;
}

.ev-bar {
    height: 8px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    overflow: hidden;
}

.ev-bar i {
    display: block;
    height: 100%;
    width: calc(var(--p) * 1%);
    border-radius: inherit;
    background: linear-gradient(90deg, #1a9f73, var(--px-green), #b8ffe5);
    background-size: 200% 100%;
    box-shadow: 0 0 14px rgba(46, 230, 166, 0.55);
    transform-origin: left;
    animation: ev-fill 1.8s var(--px-ease) both, ev-flow 2.5s linear infinite;
    animation-delay: calc(var(--d, 0s) + 0.5s), 0s;
}

@keyframes ev-fill { from { transform: scaleX(0); } }
@keyframes ev-flow { to { background-position: -200% 0; } }

.ev-legend {
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 11.5px;
    color: var(--px-muted);
}

.ev-legend svg {
    width: 14px;
    height: 14px;
    flex: none;
    fill: none;
    stroke: var(--px-green);
    stroke-width: 2.4;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* Animasyon duraklatıldığında içerik görünür kalsın */
body.motion-paused .eval-slide .ev-enter,
body.motion-paused .eval-slide .ev-ring .val,
body.motion-paused .eval-slide .ev-bar i {
    animation: none !important;
}

/* ==========================================================================
   AÇIK TEMA
   ========================================================================== */
html[data-theme="light"] .ev-panel {
    background: linear-gradient(150deg, #ffffff, #f2f5ff);
    border-color: rgba(24,18,78,0.1);
    box-shadow: 0 24px 50px -30px rgba(59,44,201,0.35);
}

html[data-theme="light"] .ev-nist {
    background: radial-gradient(circle at 88% 0%, rgba(81,65,240,0.08), transparent 45%), linear-gradient(150deg, #ffffff, #eef3ff);
    border-color: rgba(59,44,201,0.2);
}

html[data-theme="light"] .ev-nist::before {
    background: conic-gradient(from var(--ev-angle), transparent 0 72%, rgba(81,65,240,0.8) 84%, #22d3e6 87%, transparent 92%);
}

html[data-theme="light"] .ev-nist-logo .nist-dark { display: none; }
html[data-theme="light"] .ev-nist-logo .nist-light { display: block; }

html[data-theme="light"] .ev-kicker,
html[data-theme="light"] .ev-tag { color: #3b2cc9; }
html[data-theme="light"] .ev-kicker svg,
html[data-theme="light"] .ev-tag { background: #f0eeff; border-color: rgba(59,44,201,0.25); }

html[data-theme="light"] .ev-hero,
html[data-theme="light"] .ev-kpi,
html[data-theme="light"] .ev-bio {
    background: #ffffff;
    border-color: rgba(24,18,78,0.1);
    box-shadow: 0 10px 26px -20px rgba(24,18,78,0.4);
}

html[data-theme="light"] .ev-kpi:hover { background: #f5f8ff; }
html[data-theme="light"] .ev-hero::after { background: linear-gradient(105deg, transparent 35%, rgba(81,65,240,0.08) 50%, transparent 65%); }

html[data-theme="light"] .ev-hero:nth-child(1) { --ac: #0899ad !important; }
html[data-theme="light"] .ev-hero:nth-child(2) { --ac: #0e9f6e !important; }
html[data-theme="light"] .ev-hero-val { background-image: linear-gradient(120deg, #0e0b2e 35%, var(--ac)); }

html[data-theme="light"] .ev-ring .trk { stroke: rgba(24,18,78,0.08); }
html[data-theme="light"] .ev-kpi:nth-child(1) .ev-ring { --ac: #0e9f6e !important; }
html[data-theme="light"] .ev-kpi:nth-child(2) .ev-ring { --ac: #0899ad !important; }
html[data-theme="light"] .ev-kpi:nth-child(3) .ev-ring { --ac: #5141f0 !important; }
html[data-theme="light"] .ev-bio:nth-child(1) { --ac: #0899ad !important; }
html[data-theme="light"] .ev-bio:nth-child(2) { --ac: #0e9f6e !important; }
html[data-theme="light"] .ev-ring--lg > b small { color: #c46a00; }

html[data-theme="light"] .ev-rates dd.cyan { color: #0a7fb0; text-shadow: none; }
html[data-theme="light"] .ev-rates dd.green { color: #0b8a5f; text-shadow: none; }
html[data-theme="light"] .ev-success b { color: #0b8a5f; }
html[data-theme="light"] .ev-bar { background: rgba(24,18,78,0.08); }
html[data-theme="light"] .ev-bar i { box-shadow: 0 0 10px rgba(14, 159, 110, 0.35); }
html[data-theme="light"] .ev-legend svg { stroke: #0b8a5f; }

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (min-width: 761px) and (max-height: 790px) {
    .ev-grid { gap: 14px; }
    .ev-panel { padding: 16px 18px; gap: 12px; }
    .ev-hero { padding: 14px 16px; }
    .ev-hero-val { font-size: 46px; }
    .ev-hero-lbl { font-size: 14px; margin-top: 6px; }
    .ev-hero-ico { width: 38px; height: 38px; top: 12px; right: 12px; }
    .ev-ring { --size: 78px; }
    .ev-ring--lg { --size: 104px; }
    .ev-kpi { padding: 12px 8px; }
    .ev-kpi strong { margin-top: 6px; font-size: 14px; }
    .ev-bio { padding: 14px 16px; gap: 12px; }
    .ev-nist-logo img { height: 32px; }
}

@media (max-width: 1100px) and (min-width: 761px) {
    .ev-grid { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
    .ev-grid { grid-template-columns: 1fr; gap: 14px; }
    .ev-panel { padding: 16px; border-radius: 20px; }
    .ev-panel-head { flex-wrap: wrap; }
    .ev-heroes { gap: 10px; }
    .ev-hero { padding: 14px; }
    .ev-hero-val { font-size: 44px; }
    .ev-hero-ico { width: 34px; height: 34px; }
    .ev-hero-lbl { font-size: 14px; }
    .ev-kpis { gap: 8px; }
    .ev-ring { --size: 74px; }
    .ev-ring > b { font-size: 20px; }
    .ev-kpi strong { font-size: 13px; }
    .ev-kpi small { font-size: 10.5px; }
    .ev-bios { grid-template-columns: 1fr; }
    .ev-ring--lg { --size: 112px; }
    .ev-legend { align-items: flex-start; }
}

@media print {
    .ev-enter, .ev-ring .val, .ev-bar i { animation: none !important; }
}

.ev-grid > *, .ev-heroes > *, .ev-kpis > *, .ev-bios > * { min-width: 0; }
