/* ==========================================================================
   PROVE ID - SLIDE 16 / KANITLANMIŞ GÜVEN
   Üst: Mevcut kapsam + süreci devam eden sertifika kartları
   Alt: proveid.io altbilgisindeki ikonlu kayan güven bandı
   ========================================================================== */

.ct-grid {
    display: grid;
    grid-template-columns: 5fr 3fr;
    gap: 16px;
}

.ct-panel {
    --c: var(--px-green);
    position: relative;
    padding: 18px 18px 18px;
    border-radius: 24px;
    background:
        radial-gradient(120% 80% at 0% 0%, color-mix(in srgb, var(--c) 9%, transparent), transparent 60%),
        linear-gradient(150deg, rgba(30,22,88,0.78), rgba(12,9,42,0.9));
    border: 1px solid color-mix(in srgb, var(--c) 22%, rgba(255, 255, 255, 0.08));
    box-shadow: 0 24px 60px -28px rgba(0, 0, 0, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.05);
    animation: ct-rise 0.8s var(--px-ease) both;
}

.ct-panel--pending { --c: var(--px-orange); animation-delay: 0.12s; }

@keyframes ct-rise {
    from { opacity: 0; transform: translateY(20px); filter: blur(6px); }
    to { opacity: 1; transform: none; filter: none; }
}

.ct-head {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 2px 4px 16px 6px;
}

.ct-head h3 {
    margin: 0;
    font-size: 15px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--c);
}

.ct-dot {
    position: relative;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--c);
    box-shadow: 0 0 12px var(--c);
}

.ct-dot::after {
    content: "";
    position: absolute;
    inset: -5px;
    border-radius: 50%;
    border: 1.5px solid var(--c);
    animation: ct-ping 2.2s ease-out infinite;
}

@keyframes ct-ping { 0% { transform: scale(0.5); opacity: 1; } 100% { transform: scale(1.45); opacity: 0; } }

.ct-count {
    margin-left: auto;
    min-width: 28px;
    height: 28px;
    display: grid;
    place-items: center;
    border-radius: 9px;
    font-family: var(--px-font-display);
    font-size: 14px;
    font-weight: 800;
    color: var(--c);
    background: color-mix(in srgb, var(--c) 12%, transparent);
    border: 1px solid color-mix(in srgb, var(--c) 35%, transparent);
}

.ct-panel { display: flex; flex-direction: column; }

.ct-cards {
    flex: 1;
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: 1fr;
    gap: 12px;
}

/* ---------- Kart ---------- */
.ct-card {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 26px 10px 18px;
    border-radius: 18px;
    background: linear-gradient(170deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.015));
    border: 1px solid rgba(255, 255, 255, 0.09);
    transition: transform 0.5s var(--px-ease), border-color 0.4s, box-shadow 0.5s;
    animation: ct-rise 0.8s var(--px-ease) both;
    animation-delay: calc(0.2s + var(--i) * 70ms);
}

.ct-card:hover {
    transform: translateY(-6px);
    border-color: color-mix(in srgb, var(--c) 60%, transparent);
    box-shadow: 0 22px 44px -22px color-mix(in srgb, var(--c) 75%, transparent);
}

.ct-orb {
    position: relative;
    width: 94px;
    height: 94px;
    display: grid;
    place-items: center;
    margin-bottom: 14px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.015) 70%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    animation: ct-spot 8s ease-in-out infinite;
    animation-delay: calc(var(--i) * 1s);
}

/* Amblemler sırayla tek tek parlar (8 kart × 1 sn) */
@keyframes ct-spot {
    0%, 14%, 100% { box-shadow: 0 0 0 0 transparent; border-color: rgba(255, 255, 255, 0.08); }
    5% { box-shadow: 0 0 34px -2px color-mix(in srgb, var(--c) 70%, transparent); border-color: color-mix(in srgb, var(--c) 70%, transparent); }
}

.ct-ring {
    position: absolute;
    inset: -7px;
    border-radius: 50%;
    border: 1.5px dashed color-mix(in srgb, var(--c) 45%, transparent);
    animation: ct-turn 28s linear infinite;
}

.ct-card:nth-child(even) .ct-ring { animation-direction: reverse; }

@keyframes ct-turn { to { transform: rotate(360deg); } }

.ct-emblem {
    width: 50px;
    height: 50px;
    filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.45));
    transition: transform 0.5s var(--px-ease);
}

.ct-emblem--nist { width: 66px; height: 26px; color: #fff; }

.ct-card:hover .ct-emblem { transform: scale(1.1); }

.ct-card b {
    font-family: var(--px-font-display);
    font-size: 18px;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--px-text);
    line-height: 1.2;
}

.ct-card small {
    margin-top: 4px;
    font-size: 12px;
    line-height: 1.35;
    color: var(--px-muted);
    margin-bottom: 12px;
}

.ct-state {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: auto;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--c);
    background: color-mix(in srgb, var(--c) 12%, transparent);
    border: 1px solid color-mix(in srgb, var(--c) 32%, transparent);
}

.ct-state svg {
    width: 12px;
    height: 12px;
    fill: none;
    stroke: currentColor;
    stroke-width: 3.2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.ct-spin {
    width: 11px;
    height: 11px;
    border-radius: 50%;
    border: 2px solid color-mix(in srgb, var(--c) 30%, transparent);
    border-top-color: var(--c);
    animation: ct-turn 0.9s linear infinite;
}

.ct-progress {
    width: 70%;
    height: 4px;
    margin-top: 10px;
    flex: none;
    border-radius: 999px;
    overflow: hidden;
    background: color-mix(in srgb, var(--c) 14%, transparent);
}

.ct-progress i {
    display: block;
    width: 40%;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, transparent, var(--c), transparent);
    animation: ct-indet 2s ease-in-out infinite;
}

@keyframes ct-indet { from { transform: translateX(-110%); } to { transform: translateX(260%); } }

/* ---------- Alt kayan bant (proveid.io altbilgi bandı) ---------- */
.ct-ticker {
    position: relative;
    display: flex;
    align-items: center;
    height: 66px;
    margin-top: 16px;
    padding: 0 12px;
    border-radius: 16px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.025);
    border: 1px solid var(--px-border-2);
    animation: ct-rise 0.8s var(--px-ease) both;
    animation-delay: 0.5s;
}

.ct-tk-viewport {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    padding: 8px 0;
    mask-image: linear-gradient(90deg, transparent 0%, #000 4%, #000 96%, transparent 100%);
    -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 4%, #000 96%, transparent 100%);
}

.ct-tk-track {
    display: flex;
    align-items: center;
    width: max-content;
    will-change: transform;
    animation: ct-scroll 38s linear infinite;
}

.ct-ticker:hover .ct-tk-track { animation-play-state: paused; }

@keyframes ct-scroll { to { transform: translate3d(-50%, 0, 0); } }

.ct-tk-group {
    display: inline-flex;
    align-items: center;
    gap: 16px;
    padding-right: 16px;
    flex-shrink: 0;
    white-space: nowrap;
}

.ct-tk-badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 5px 12px;
    border-radius: 999px;
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.ct-tk-badge i { width: 6px; height: 6px; border-radius: 50%; background: currentColor; box-shadow: 0 0 6px currentColor; }
.ct-tk-badge--ok { color: var(--px-green); background: rgba(46, 230, 166, 0.12); border: 1px solid rgba(46, 230, 166, 0.4); }
.ct-tk-badge--pending { color: var(--px-orange); background: rgba(255, 165, 58, 0.12); border: 1px solid rgba(255, 165, 58, 0.4); }

.ct-tk-item {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 6px 13px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.09);
    transition: background 0.25s, border-color 0.25s, transform 0.25s var(--px-ease);
}

.ct-tk-item:hover {
    background: rgba(255, 255, 255, 0.09);
    border-color: rgba(179,166,255,0.7);
    transform: translateY(-1px);
}

.ct-tk-icon { width: 28px; height: 28px; flex-shrink: 0; filter: drop-shadow(0 2px 5px rgba(0, 0, 0, 0.35)); }
.ct-tk-icon--nist { width: 54px; height: 22px; color: #fff; }

.ct-tk-item strong { font-size: 13.5px; font-weight: 700; color: var(--px-text); letter-spacing: -0.01em; }
.ct-tk-item small { font-size: 11.5px; font-weight: 500; color: var(--px-muted); margin-left: 2px; }

.ct-tk-sep { color: var(--px-muted); opacity: 0.4; font-size: 13px; padding: 0 4px; }

/* ==========================================================================
   AÇIK TEMA
   ========================================================================== */
html[data-theme="light"] .ct-panel { --c: #0e9f6e; background: radial-gradient(120% 80% at 0% 0%, color-mix(in srgb, var(--c) 8%, transparent), transparent 60%), linear-gradient(150deg, #ffffff, #f3f6ff); box-shadow: 0 24px 50px -32px rgba(59,44,201,0.35); }
html[data-theme="light"] .ct-panel--pending { --c: #c46a00; }
html[data-theme="light"] .ct-card { background: #ffffff; border-color: rgba(24,18,78,0.09); box-shadow: 0 10px 24px -20px rgba(24,18,78,0.45); }
html[data-theme="light"] .ct-orb { background: radial-gradient(circle, #f4f7ff, #e9eefc 70%); border-color: rgba(24,18,78,0.08); }
html[data-theme="light"] .ct-emblem { filter: drop-shadow(0 4px 8px rgba(24,18,78,0.2)); }
html[data-theme="light"] .ct-emblem--nist,
html[data-theme="light"] .ct-tk-icon--nist { color: #0e0b2e; }
html[data-theme="light"] .ct-ticker { background: #ffffff; border-color: rgba(59,44,201,0.16); }
html[data-theme="light"] .ct-tk-item { background: #f7f6fe; border-color: rgba(59,44,201,0.14); }
html[data-theme="light"] .ct-tk-item:hover { background: #f0eeff; border-color: #3b2cc9; }
html[data-theme="light"] .ct-tk-badge--ok { color: #0b8a5f; background: #e8f8f1; border-color: rgba(14, 159, 110, 0.35); }
html[data-theme="light"] .ct-tk-badge--pending { color: #b35f00; background: #fff4e6; border-color: rgba(196, 106, 0, 0.35); }
html[data-theme="light"] .ct-tk-icon { filter: none; }

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (min-width: 761px) and (max-height: 790px) {
    .ct-panel { padding: 14px; }
    .ct-head { margin-bottom: 12px; }
    .ct-card { padding: 16px 8px 12px; }
    .ct-orb { width: 70px; height: 70px; margin-bottom: 10px; }
    .ct-emblem { width: 36px; height: 36px; }
    .ct-emblem--nist { width: 52px; height: 22px; }
    .ct-card b { font-size: 15px; }
    .ct-card small { font-size: 11px; }
    .ct-ticker { height: 58px; margin-top: 12px; }
}

@media (max-width: 1150px) {
    .ct-grid { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
    .ct-cards { grid-auto-flow: row; grid-template-columns: repeat(2, 1fr); }
    .ct-card small { min-height: 0; }
}

@media (prefers-reduced-motion: reduce) {
    .ct-panel, .ct-card, .ct-ticker { animation: none; }
}
