/* ============================================================
   Phillip Intelligence sayfasına özel stiller
   (Views/Solutions/PhillipIntelligence.cshtml — başka sayfada yüklenmez)
   Sohbet, emir kartı ve yetki ekranı maketleri Phillip Intelligence
   lacivertiyle (#233876) çizilir.
   ============================================================ */

/* ---------- Hero ---------- */
.pi-hero-logo {
    width: 340px;
    max-width: 100%;
    height: auto;
}

.pi-built-by {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 6px 16px 6px 6px;
    border-radius: 30px;
    background: #fff;
    border: 1px solid #e4e9f2;
    box-shadow: 0 6px 18px rgba(13, 18, 56, .08);
    font-size: 13px;
    font-weight: 600;
    color: #232323;
}

.pi-built-by img {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    object-fit: contain;
    background: #fff;
}

/* ---------- Video kutuları ---------- */
.pi-video-frame {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    background: #0d1238;
    box-shadow: 0 24px 60px rgba(13, 18, 56, .18);
}

.pi-video-frame video {
    display: block;
    width: 100%;
    height: auto;
}

.pi-video-frame-portrait {
    max-width: 360px;
    margin: 0 auto;
    border-radius: 22px;
}

/* ---------- Marka tasarımlı oynatıcı (js/phillip-intelligence.js) ---------- */
.pi-player video { cursor: pointer; }

/* Minimal oynatıcı: küçük yarı saydam oynat düğmesi, kutusuz alt çubuk */
.pi-play-big {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 54px;
    height: 54px;
    margin: -27px 0 0 -27px;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, .92);
    color: #233876;
    font-size: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 0 0 3px;
    box-shadow: 0 4px 14px rgba(13, 18, 56, .16);
    transition: transform .2s ease, opacity .2s ease;
    z-index: 2;
}

.pi-play-big:hover { transform: scale(1.06); }

.pi-player.is-playing .pi-play-big {
    opacity: 0;
    pointer-events: none;
}

.pi-controls {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 22px 12px 8px;
    background: linear-gradient(to top, rgba(13, 18, 56, .55), rgba(13, 18, 56, 0));
    color: #fff;
    opacity: 0;
    pointer-events: none;
    transition: opacity .25s ease;
    z-index: 3;
}

/* Başlamamış videoda yalnızca oynat düğmesi; başladıktan sonra
   duraklatıldığında veya fare hareket ettiğinde çubuk görünür */
.pi-player.is-started.is-active .pi-controls,
.pi-player.is-started:not(.is-playing) .pi-controls,
.pi-player.is-started:focus-within .pi-controls {
    opacity: 1;
    pointer-events: auto;
}

.pi-ctl {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    border: 0;
    border-radius: 6px;
    background: transparent;
    color: #fff;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    opacity: .85;
    transition: opacity .15s ease;
}

.pi-ctl:hover,
.pi-ctl:focus-visible { opacity: 1; }

.pi-progress {
    position: relative;
    flex: 1;
    min-width: 40px;
    height: 3px;
    margin: 0 4px;
    border-radius: 3px;
    background: rgba(255, 255, 255, .3);
    cursor: pointer;
    touch-action: none;
}

.pi-progress::before {
    /* tıklama alanını büyütür */
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: -10px;
    bottom: -10px;
}

.pi-progress-fill {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 0;
    border-radius: 3px;
    background: #fff;
}

.pi-time {
    flex-shrink: 0;
    font-size: 11px;
    font-variant-numeric: tabular-nums;
    color: rgba(255, 255, 255, .85);
    white-space: nowrap;
}

.pi-play-big:focus-visible,
.pi-ctl:focus-visible,
.pi-progress:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 2px;
}

/* Tam ekranda çerçeve siyah zemin, video ortalanır */
.pi-player.is-fullscreen {
    max-width: none;
    border-radius: 0;
    background: #000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pi-player.is-fullscreen video {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.pi-player.is-fullscreen .pi-controls { padding: 40px 24px 16px; }

@media (max-width: 575px) {
    .pi-time { display: none; }
}

/* ---------- Kurulum videosu platform sekmeleri ---------- */
.pi-tabs {
    display: inline-flex;
    gap: 4px;
    margin-bottom: 18px;
    padding: 4px;
    border-radius: 30px;
    background: #f1f3f8;
}

.pi-tab {
    padding: 7px 22px;
    border: 0;
    border-radius: 30px;
    background: transparent;
    color: #717580;
    font-size: 14px;
    font-weight: 600;
    transition: background .2s ease, color .2s ease, box-shadow .2s ease;
}

.pi-tab:hover { color: #233876; }

.pi-tab.active {
    background: #fff;
    color: #233876;
    box-shadow: 0 2px 8px rgba(13, 18, 56, .08);
}

.pi-video-caption {
    margin-top: 14px;
    font-size: 15px;
    font-weight: 700;
    color: #232323;
}

.pi-video-caption span {
    display: block;
    font-size: 13px;
    font-weight: 400;
    color: #717580;
}

/* ---------- CQ imza şeridi ----------
   Tek kart; hücreler arası 1px boşluk kenarlık rengiyle ince çizgi olur */
.pi-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1px;
    margin: 0;
    border: 1px solid #e4e9f2;
    border-radius: 16px;
    background: #e4e9f2;
    overflow: hidden;
}

.pi-stat {
    padding: 26px 16px;
    background: #fff;
    text-align: center;
}

.pi-stat dt {
    font-size: 32px;
    line-height: 1.1;
    font-weight: 800;
    color: #233876;
    letter-spacing: -1px;
}

.pi-stat dd {
    margin: 8px 0 0;
    font-size: 14px;
    line-height: 1.35;
    font-weight: 600;
    color: #232323;
}

.pi-stat dd small {
    display: block;
    margin-top: 2px;
    font-size: 12px;
    font-weight: 400;
    color: #717580;
}

@media (max-width: 767px) {
    .pi-stats { grid-template-columns: repeat(2, 1fr); }
    .pi-stat { padding: 20px 12px; }
    .pi-stat dt { font-size: 26px; }
}

/* ---------- Zaman çizelgesi ---------- */
.pi-timeline {
    position: relative;
    margin: 0;
    padding: 0 0 0 28px;
    list-style: none;
}

.pi-timeline::before {
    content: "";
    position: absolute;
    left: 7px;
    top: 6px;
    bottom: 6px;
    width: 2px;
    background: #e4e9f2;
}

.pi-timeline li {
    position: relative;
    padding-bottom: 26px;
}

.pi-timeline li:last-child { padding-bottom: 0; }

.pi-timeline li::before {
    content: "";
    position: absolute;
    left: -26px;
    top: 6px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #c9d2e3;
}

.pi-timeline li.is-current::before {
    left: -28px;
    top: 4px;
    width: 16px;
    height: 16px;
    background: #233876;
    box-shadow: 0 0 0 6px rgba(35, 56, 118, .14);
}

.pi-timeline-date {
    display: block;
    font-size: 13px;
    color: #717580;
}

.pi-timeline-name {
    display: block;
    font-size: 18px;
    font-weight: 700;
    color: #232323;
}

.pi-timeline li.is-current .pi-timeline-name {
    font-size: 22px;
    color: #233876;
}

.pi-source {
    margin-top: 20px;
    font-size: 11px;
    color: #a3a8b3;
}

/* ---------- Sohbet ve emir kartı maketi ---------- */
.pi-chat {
    background: #fff;
    border: 1px solid #e4e9f2;
    border-radius: 18px;
    box-shadow: 0 24px 60px rgba(13, 18, 56, .12);
    padding: 22px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    text-align: left;
    color: #232323;
}

.pi-bubble {
    align-self: flex-end;
    max-width: 80%;
    padding: 10px 16px;
    border-radius: 18px;
    background: #eef1f6;
    font-size: 14px;
}

.pi-connected {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: #a3a8b3;
}

.pi-connected b,
.pi-card-brand b {
    color: #233876;
    font-weight: 800;
    letter-spacing: -.5px;
}

.pi-reply {
    font-size: 14px;
    font-weight: 600;
}

.pi-card {
    border: 1px solid #e4e9f2;
    border-radius: 12px;
    overflow: hidden;
}

.pi-card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 10px 14px;
    border-bottom: 1px solid #edf0f6;
    font-size: 11px;
    color: #a3a8b3;
}

.pi-card-brand {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 600;
    color: #232323;
}

.pi-card-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1fr 1.3fr;
    gap: 8px;
    padding: 14px;
    font-size: 13px;
}

.pi-card-grid small {
    display: block;
    font-size: 10px;
    color: #a3a8b3;
}

.pi-card-grid strong { font-weight: 700; }

.pi-side-buy {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 6px;
    background: #e6f4ec;
    color: #2f7a4f;
    font-size: 11px;
    font-weight: 700;
}

.pi-card-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 10px 14px;
    background: #fdf6e3;
    font-size: 12px;
    color: #9a6412;
    font-weight: 600;
}

.pi-approve {
    padding: 6px 16px;
    border-radius: 8px;
    background: #233876;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
}

.pi-sample {
    font-size: 10px;
    color: #a3a8b3;
    text-align: right;
}

/* ---------- Adımlar ---------- */
.pi-steps {
    margin: 0;
    padding: 0;
    list-style: none;
    counter-reset: pi-step;
}

.pi-steps li {
    position: relative;
    padding: 0 0 26px 62px;
    counter-increment: pi-step;
}

.pi-steps li:last-child { padding-bottom: 0; }

.pi-steps li::before {
    content: counter(pi-step);
    position: absolute;
    left: 0;
    top: 0;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #233876;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 17px;
}

.pi-steps strong {
    display: block;
    font-size: 18px;
    color: #232323;
    margin-bottom: 4px;
}

/* Servis adresi her zaman tek satırda; dar ekranda kendi içinde kayar */
.pi-steps code {
    display: inline-block;
    max-width: 100%;
    overflow-x: auto;
    vertical-align: middle;
    white-space: nowrap;
    padding: 2px 8px;
    border-radius: 6px;
    background: #eef3fb;
    color: #233876;
    font-size: 13px;
}

/* ---------- Yetki paneli maketi ---------- */
.pi-panel {
    display: flex;
    flex-direction: column;
    gap: 12px;
    text-align: left;
    color: #232323;
}

.pi-panel-box {
    padding: 18px 20px;
    border-radius: 14px;
    background: #fff;
    border: 1px solid #e4e9f2;
    box-shadow: 0 10px 28px rgba(13, 18, 56, .06);
}

.pi-panel-title {
    font-size: 14px;
    font-weight: 700;
}

.pi-switch {
    width: 42px;
    height: 24px;
    flex-shrink: 0;
    border-radius: 30px;
    background: #2f9e5b;
    position: relative;
}

.pi-switch::after {
    content: "";
    position: absolute;
    right: 3px;
    top: 3px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #fff;
}

.pi-limit {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 7px 0;
    border-bottom: 1px solid #f0f2f7;
    font-size: 13px;
}

.pi-limit:last-of-type { border-bottom: 0; }
.pi-limit span { color: #717580; }
.pi-limit strong { font-weight: 700; }

.pi-meter {
    height: 6px;
    margin-top: 8px;
    border-radius: 6px;
    background: #edf0f6;
    overflow: hidden;
}

.pi-meter i {
    display: block;
    height: 100%;
    width: 52%;
    border-radius: 6px;
    background: #233876;
}

.pi-panel-stop {
    background: #fdf1f1;
    border-color: #f3d3d3;
}

.pi-panel-stop .pi-panel-title { color: #a83a3a; }

.pi-stop-btn {
    padding: 6px 16px;
    border-radius: 8px;
    background: #c94a4a;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
}

/* ---------- Mimari akış ---------- */
.pi-flow {
    display: flex;
    align-items: stretch;
    justify-content: center;
    gap: 0;
    flex-wrap: nowrap;
}

.pi-flow-node {
    flex: 1;
    min-width: 0;
    padding: 22px 16px;
    border-radius: 14px;
    background: #fff;
    border: 1px solid #e4e9f2;
    text-align: center;
    box-shadow: 0 10px 28px rgba(13, 18, 56, .06);
}

.pi-flow-node i {
    display: block;
    font-size: 26px;
    color: #4368b1;
    margin-bottom: 8px;
}

.pi-flow-node strong {
    display: block;
    font-size: 15px;
    color: #232323;
    line-height: 1.3;
}

.pi-flow-node span {
    display: block;
    margin-top: 4px;
    font-size: 12px;
    line-height: 1.4;
    color: #717580;
}

.pi-flow-node.is-core {
    background: #233876;
    border-color: #233876;
}

.pi-flow-node.is-core i,
.pi-flow-node.is-core strong { color: #fff; }
.pi-flow-node.is-core span { color: #c9d2e3; }

.pi-flow-arrow {
    display: flex;
    align-items: center;
    padding: 0 8px;
    color: #a3a8b3;
    font-size: 20px;
}

.pi-ledger {
    margin-top: 18px;
    padding: 16px 20px;
    border-radius: 14px;
    border: 1px dashed #b9c5dd;
    background: #f7f9fc;
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: 14px;
    color: #232323;
}

.pi-ledger i {
    font-size: 24px;
    color: #233876;
}

.pi-hash {
    font-family: Consolas, Menlo, monospace;
    font-size: 12px;
    color: #717580;
    word-break: break-all;
}

@media (max-width: 991px) {
    .pi-flow { flex-direction: column; }
    .pi-flow-arrow {
        justify-content: center;
        padding: 6px 0;
        transform: rotate(90deg);
    }
}

/* ---------- Platform kartları ---------- */
.pi-platform {
    height: 100%;
    padding: 30px 26px;
    border-radius: 14px;
    background: #fff;
    border: 1px solid #e4e9f2;
    transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.pi-platform:hover {
    border-color: #4368b1;
    box-shadow: 0 12px 28px rgba(13, 18, 56, .10);
    transform: translateY(-3px);
}

.pi-platform-tag {
    display: inline-block;
    margin-bottom: 12px;
    padding: 3px 12px;
    border-radius: 30px;
    background: #eef1f6;
    color: #717580;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
}

.pi-platform-tag.is-recommended {
    background: #e6f4ec;
    color: #2f7a4f;
}

.pi-disclaimer {
    font-size: 12px;
    line-height: 1.6;
    color: #a3a8b3;
}

@media (max-width: 575px) {
    .pi-chat { padding: 16px; }
    .pi-card-grid {
        grid-template-columns: 1fr 1fr 1fr;
    }
    .pi-card-grid .pi-hide-xs { display: none; }
    .pi-steps li { padding-left: 48px; }
    .pi-steps li::before { width: 36px; height: 36px; font-size: 15px; }
    .pi-steps code { font-size: 10px; padding: 2px 6px; }
}
