/* Personel detay — akademik analiz widget yığını (anasayfa partial’ları) */
.personel-detail-analytics {
    border: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.personel-detail-analytics-title {
    font-weight: 600;
    color: #1e293b;
}

.personel-detail-analytics-stack .trend-analysis-container {
    margin-bottom: 2.25rem;
}

.personel-detail-analytics-stack .trend-analysis-container:last-child {
    margin-bottom: 0;
}

@media (max-width: 767.98px) {
    .personel-detail-analytics-stack .trend-title-text {
        font-size: 1rem;
        white-space: normal;
        overflow: visible;
        text-overflow: unset;
        word-break: break-word;
        line-height: 1.3;
    }
}

/* YÖK Akademik viewAuthorGraphs benzeri kompakt yazar grafikleri */
.personel-yazar-grafikleri {
    margin-bottom: 2.25rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px dashed rgba(0, 51, 102, 0.12);
}

.personel-yazar-grafikleri-head {
    align-items: flex-start;
    gap: 1rem;
}

.personel-yazar-grafikleri-yok-link-wrap {
    flex-shrink: 0;
}

.personel-yazar-grafikleri-yok-link {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.45rem 0.85rem;
    border-radius: 999px;
    border: 1px solid rgba(0, 51, 102, 0.18);
    background: #f8fafc;
    color: var(--kku-brand-2, #003366);
    font-size: 0.82rem;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.15s ease, border-color 0.15s ease;
}

.personel-yazar-grafikleri-yok-link:hover {
    background: #eef4ff;
    border-color: rgba(0, 51, 102, 0.35);
    color: #001a33;
}

.personel-yazar-grafikleri-yok-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2rem;
    padding: 0.1rem 0.35rem;
    border-radius: 4px;
    background: linear-gradient(135deg, var(--kku-brand, #dc2626), #991b1b);
    color: #fff;
    font-size: 0.65rem;
    font-weight: 800;
    letter-spacing: 0.04em;
}

.personel-yazar-grafikleri-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem 1.15rem;
}

.personel-yazar-grafikleri-panel {
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 12px;
    padding: 0.85rem 0.95rem 0.75rem;
    min-height: 280px;
    position: relative;
}

.personel-yazar-grafikleri-panel--wide {
    grid-column: 1 / -1;
}

.personel-yazar-grafikleri-panel--network {
    grid-column: 1 / -1;
    min-height: 420px;
}

.personel-yazar-grafikleri-panel-title {
    margin: 0 0 0.35rem;
    font-size: 0.92rem;
    font-weight: 600;
    color: #1e293b;
}

.personel-yazar-grafikleri-panel-title i {
    color: var(--kku-brand-2, #003366);
    margin-right: 0.35rem;
}

.personel-yazar-grafikleri-network-hint {
    margin: 0 0 0.5rem;
    font-size: 0.78rem;
    color: #64748b;
}

.personel-yazar-grafikleri-chart {
    width: 100%;
    height: 240px;
}

.personel-yazar-grafikleri-chart--wide {
    height: 260px;
}

.personel-yazar-grafikleri-chart--network {
    height: 380px;
    border-radius: 10px;
    background:
        radial-gradient(circle at 50% 46%, rgba(55, 200, 154, 0.07) 0%, rgba(55, 200, 154, 0) 58%),
        radial-gradient(circle at 50% 46%, rgba(0, 51, 102, 0.04) 0%, rgba(0, 51, 102, 0) 72%);
}

/* Ortak yazar arama — kampus-ortak-yazar-agi.css (.pyg-network-search) */

.pyg-network-toolbar {
    margin-bottom: 0.75rem;
}

.pyg-ortak-yayin-modal[hidden] {
    display: none !important;
}

.pyg-ortak-yayin-modal {
    position: fixed;
    inset: 0;
    z-index: 10170;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.25rem;
    box-sizing: border-box;
    overflow: hidden;
}

.pyg-ortak-yayin-modal__backdrop {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.55);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.pyg-ortak-yayin-modal__dialog {
    position: relative;
    z-index: 1;
    width: min(640px, calc(100vw - 2.5rem));
    max-height: min(85vh, 720px);
    min-height: 0;
    display: flex;
    flex-direction: column;
    background: #ffffff;
    border-radius: 14px;
    border: 1px solid rgba(0, 51, 102, 0.12);
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.28);
    overflow: hidden;
}

.pyg-ortak-yayin-modal__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.85rem 1rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    background: linear-gradient(90deg, #6f1418 0%, #b42828 42%, #1e3d62 88%, #1a2942 100%);
    color: #fff;
    flex-shrink: 0;
}

.pyg-ortak-yayin-modal__title {
    margin: 0;
    font-size: 0.95rem;
    font-weight: 700;
    line-height: 1.35;
}

.pyg-ortak-yayin-modal__close {
    width: 2rem;
    height: 2rem;
    border: none;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    font-size: 1.35rem;
    line-height: 1;
    cursor: pointer;
    flex-shrink: 0;
}

.pyg-ortak-yayin-modal__close:hover {
    background: rgba(255, 255, 255, 0.22);
}

.pyg-ortak-yayin-modal__list {
    flex: 1 1 auto;
    min-height: 0;
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: 0.35rem 0;
}

.pyg-ortak-yayin-modal__empty {
    margin: 0.75rem 1rem;
    color: #64748b;
    font-size: 0.9rem;
}

.pyg-ortak-yayin-modal__item {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.75rem 1rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    color: inherit;
    text-decoration: none;
    transition: background 0.15s ease;
}

.pyg-ortak-yayin-modal__item:hover {
    background: rgba(0, 51, 102, 0.05);
    color: inherit;
    text-decoration: none;
}

.pyg-ortak-yayin-modal__item-title {
    flex: 1 1 auto;
    min-width: 0;
    font-size: 0.92rem;
    font-weight: 600;
    color: #1e293b;
    line-height: 1.35;
    word-break: break-word;
}

.pyg-ortak-yayin-modal__item-meta {
    flex-shrink: 0;
    font-size: 0.78rem;
    color: #64748b;
    white-space: nowrap;
}

.pyg-ortak-yayin-modal__item-arrow {
    flex-shrink: 0;
    color: #94a3b8;
    font-size: 0.75rem;
}

body.pyg-ortak-yayin-modal-open {
    overflow: hidden;
}

@media (max-width: 991.98px) {
    .personel-yazar-grafikleri-grid {
        grid-template-columns: 1fr;
    }

    .personel-yazar-grafikleri-panel--wide,
    .personel-yazar-grafikleri-panel--network {
        grid-column: 1;
    }
}
