@import url("kku-chart-panel-maximize.css");

.kampus-ortak-yazar-section {

    margin-bottom: 1.5rem;

}



.kampus-ortak-yazar-toolbar {

    margin: 0 0 1rem;

}



.pyg-network-toolbar {

    margin: 0 0 1rem;

}



/* —— Arama kartı —— */

.pyg-network-search {

    display: flex;

    flex-direction: column;

    gap: 0.75rem;

    padding: 0.85rem 1rem 1rem;

    border-radius: 16px;

    border: 1px solid rgba(0, 51, 102, 0.1);

    background:

        linear-gradient(145deg, rgba(255, 255, 255, 0.98) 0%, rgba(248, 250, 252, 0.96) 100%);

    box-shadow:

        0 1px 2px rgba(15, 23, 42, 0.04),

        0 8px 24px rgba(15, 23, 42, 0.06);

}



.pyg-network-search__label {

    display: flex;

    align-items: center;

    gap: 0.75rem;

    margin: 0;

    cursor: pointer;

    user-select: none;

}



.pyg-network-search__label-icon {

    flex: 0 0 auto;

    width: 2.5rem;

    height: 2.5rem;

    border-radius: 12px;

    display: inline-flex;

    align-items: center;

    justify-content: center;

    font-size: 1rem;

    color: #047857;

    background: linear-gradient(145deg, rgba(55, 200, 154, 0.22) 0%, rgba(59, 130, 246, 0.1) 100%);

    border: 1px solid rgba(55, 200, 154, 0.28);

    box-shadow: 0 2px 8px rgba(55, 200, 154, 0.12);

}



.pyg-network-search__label-copy {

    display: flex;

    flex-direction: column;

    gap: 0.12rem;

    min-width: 0;

}



.pyg-network-search__label-title {

    font-size: 0.9375rem;

    font-weight: 700;

    color: #0f172a;

    letter-spacing: -0.01em;

}



.pyg-network-search__label-hint {

    font-size: 0.75rem;

    font-weight: 500;

    color: #64748b;

}



.pyg-network-filter-combobox {

    position: relative;

    flex: 1 1 auto;

    width: 100%;

    min-width: 0;

}



.pyg-network-filter-icon {

    position: absolute;

    left: 0.95rem;

    top: 50%;

    transform: translateY(-50%);

    z-index: 2;

    pointer-events: none;

    display: inline-flex;

    align-items: center;

    justify-content: center;

    width: 1.15rem;

    height: 1.15rem;

    font-size: 0.82rem;

    color: #64748b;

    transition: color 0.2s ease;

}



.pyg-network-filter-combobox .pyg-network-filter-input {

    width: 100%;

    min-height: 2.75rem;

    padding: 0.65rem 2.75rem 0.65rem 2.65rem;

    border-radius: 14px;

    border: 1px solid rgba(0, 51, 102, 0.14);

    background: #fff;

    color: #0f172a;

    font-size: 0.9375rem;

    font-weight: 500;

    line-height: 1.35;

    box-shadow: inset 0 1px 2px rgba(15, 23, 42, 0.04);

    transition:

        border-color 0.2s ease,

        box-shadow 0.2s ease,

        background-color 0.2s ease;

    -webkit-appearance: none;

    appearance: none;

}



.pyg-network-filter-combobox .pyg-network-filter-input::placeholder {

    color: #94a3b8;

    font-weight: 450;

}



.pyg-network-filter-combobox .pyg-network-filter-input:hover {

    border-color: rgba(55, 200, 154, 0.35);

    background: #fff;

}



.pyg-network-filter-combobox .pyg-network-filter-input:focus {

    border-color: rgba(55, 200, 154, 0.72);

    box-shadow:

        0 0 0 3px rgba(55, 200, 154, 0.18),

        inset 0 1px 2px rgba(15, 23, 42, 0.03);

    outline: none;

    background: #fff;

}



.pyg-network-filter-combobox:focus-within .pyg-network-filter-icon {

    color: #059669;

}



/* Eski ayrık etiket (geriye dönük) */

.kampus-ortak-yazar-toolbar .pyg-network-filter-label,

.pyg-network-filter-label {

    display: none;

}



.kampus-ortak-yazar-toolbar .pyg-network-filter-input {

    max-width: none;

    min-width: 0;

}



.pyg-network-filter-clear {

    position: absolute;

    top: 50%;

    right: 0.65rem;

    transform: translateY(-50%);

    width: 1.85rem;

    height: 1.85rem;

    padding: 0;

    border: 0;

    border-radius: 10px;

    background: rgba(100, 116, 139, 0.1);

    color: #64748b;

    cursor: pointer;

    display: inline-flex;

    align-items: center;

    justify-content: center;

    font-size: 0.75rem;

    transition: background 0.15s ease, color 0.15s ease, transform 0.12s ease;

    z-index: 2;

}



.pyg-network-filter-clear:hover {

    background: rgba(227, 6, 19, 0.12);

    color: #dc2626;

    transform: translateY(-50%) scale(1.04);

}



/* —— Öneri paneli —— */

.pyg-network-suggestions {

    position: absolute;

    z-index: 50;

    top: calc(100% + 6px);

    left: 0;

    right: 0;

    margin: 0;

    padding: 0.35rem 0 0.45rem;

    list-style: none;

    max-height: min(520px, 68vh);

    overflow-y: auto;

    border-radius: 14px;

    border: 1px solid rgba(0, 51, 102, 0.12);

    background: linear-gradient(165deg, #ffffff 0%, #f8fafc 100%);

    box-shadow:

        0 4px 6px rgba(15, 23, 42, 0.04),

        0 18px 40px rgba(15, 23, 42, 0.14);

    scrollbar-width: thin;

    scrollbar-color: #cbd5e1 transparent;

}



.pyg-network-suggestions__header {

    position: sticky;

    top: 0;

    z-index: 2;

    display: flex;

    flex-direction: column;

    gap: 0.15rem;

    padding: 0.55rem 1rem 0.65rem;

    margin-bottom: 0.15rem;

    border-bottom: 1px solid rgba(226, 232, 240, 0.95);

    background: linear-gradient(165deg, #ffffff 0%, #f8fafc 100%);

}



.pyg-network-suggestions__header-count {

    font-size: 0.72rem;

    font-weight: 700;

    letter-spacing: 0.06em;

    text-transform: uppercase;

    color: #003366;

}



.pyg-network-suggestions__header-hint {

    font-size: 0.75rem;

    color: #64748b;

}



.pyg-network-suggestions__empty {

    display: flex;

    align-items: center;

    justify-content: center;

    gap: 0.55rem;

    padding: 1.35rem 1rem;

    color: #64748b;

    font-size: 0.875rem;

}



.pyg-network-suggestions__empty i {

    opacity: 0.65;

}



.pyg-network-suggestions__item {

    display: flex;

    align-items: center;

    gap: 0.75rem;

    width: calc(100% - 0.7rem);

    margin: 0.15rem 0.35rem;

    padding: 0.55rem 0.65rem 0.55rem 0.55rem;

    border: 1px solid transparent;

    border-radius: 12px;

    background: transparent;

    text-align: left;

    cursor: pointer;

    color: #1e293b;

    transition: background 0.18s ease, border-color 0.18s ease, transform 0.12s ease;

}



.pyg-network-suggestions__item:hover,

.pyg-network-suggestions__item.is-active {

    background: linear-gradient(90deg, rgba(55, 200, 154, 0.14) 0%, rgba(59, 130, 246, 0.06) 100%);

    border-color: rgba(55, 200, 154, 0.28);

}



.pyg-network-suggestions__item.is-active {

    box-shadow: inset 3px 0 0 #37c89a;

}



.pyg-network-suggestions__avatar {

    flex: 0 0 auto;

    width: 40px;

    height: 40px;

    border-radius: 50%;

    display: inline-flex;

    align-items: center;

    justify-content: center;

    font-size: 0.78rem;

    font-weight: 700;

    letter-spacing: 0.02em;

    color: #fff;

    background: linear-gradient(145deg, #003366 0%, #2563eb 100%);

    box-shadow: 0 2px 8px rgba(0, 51, 102, 0.22);

}



.pyg-network-suggestions__avatar--photo {

    object-fit: cover;

    border: 2px solid #fff;

}



.pyg-network-suggestions__body {

    flex: 1 1 auto;

    min-width: 0;

    display: flex;

    flex-direction: column;

    gap: 0.12rem;

}



.pyg-network-suggestions__name {

    font-weight: 650;

    font-size: 0.875rem;

    line-height: 1.25;

    overflow: hidden;

    text-overflow: ellipsis;

    white-space: nowrap;

}



.pyg-network-suggestions__mark {

    background: rgba(227, 6, 19, 0.12);

    color: #b91c1c;

    border-radius: 3px;

    padding: 0 0.12em;

    font-weight: 800;

}



.pyg-network-suggestions__meta {

    font-size: 0.75rem;

    color: #64748b;

}



.pyg-network-suggestions__badge {

    flex: 0 0 auto;

    min-width: 1.75rem;

    padding: 0.2rem 0.45rem;

    border-radius: 999px;

    font-size: 0.72rem;

    font-weight: 700;

    text-align: center;

    color: #065f46;

    background: rgba(55, 200, 154, 0.18);

    border: 1px solid rgba(55, 200, 154, 0.35);

}



.pyg-network-suggestions__badge--muted {

    color: #64748b;

    background: rgba(100, 116, 139, 0.12);

    border-color: rgba(100, 116, 139, 0.2);

}



.pyg-network-suggestions__arrow {

    flex: 0 0 auto;

    font-size: 0.65rem;

    color: #94a3b8;

    opacity: 0;

    transform: translateX(-4px);

    transition: opacity 0.18s ease, transform 0.18s ease;

}



.pyg-network-suggestions__item:hover .pyg-network-suggestions__arrow,

.pyg-network-suggestions__item.is-active .pyg-network-suggestions__arrow {

    opacity: 1;

    transform: translateX(0);

    color: #37c89a;

}



/* —— Seçili yazar chip —— */

.pyg-network-focus-chip {

    display: inline-flex;

    align-items: center;

    gap: 0.45rem;

    width: 100%;

    max-width: 100%;

    margin: 0.35rem 0 0;

    padding: 0.5rem 0.55rem 0.5rem 0.65rem;

    border-radius: 12px;

    border: 1px solid rgba(55, 200, 154, 0.35);

    background: linear-gradient(90deg, rgba(55, 200, 154, 0.12) 0%, rgba(59, 130, 246, 0.06) 100%);

    font-size: 0.8125rem;

    color: #0f172a;

}



.pyg-network-focus-chip__icon {

    color: #059669;

    font-size: 0.85rem;

}



.pyg-network-focus-chip__text {

    flex: 1 1 auto;

    min-width: 0;

    overflow: hidden;

    text-overflow: ellipsis;

    white-space: nowrap;

}



.pyg-network-focus-chip__label {

    font-weight: 650;

}



.pyg-network-focus-chip__clear {

    flex: 0 0 auto;

    width: 1.65rem;

    height: 1.65rem;

    border: 0;

    border-radius: 50%;

    background: rgba(15, 23, 42, 0.06);

    color: #64748b;

    cursor: pointer;

    display: inline-flex;

    align-items: center;

    justify-content: center;

    transition: background 0.15s ease, color 0.15s ease;

}



.pyg-network-focus-chip__clear:hover {

    background: rgba(227, 6, 19, 0.12);

    color: #dc2626;

}



.kampus-ortak-yazar-chart-wrap {
    position: relative;
    min-height: 560px;
    border-radius: 14px;
    border: 1px solid rgba(0, 51, 102, 0.1);
    background: #fff;
    overflow: hidden;
}

.kampus-ortak-yazar-chart {
    width: 100%;
    height: min(70vh, 680px);
    min-height: 520px;
}



html[data-color-mode="dark"] .pyg-network-search {

    border-color: var(--kku-cm-border, #334155);

    background:

        linear-gradient(145deg, rgba(26, 36, 56, 0.98) 0%, rgba(15, 23, 42, 0.96) 100%);

    box-shadow:

        0 1px 2px rgba(0, 0, 0, 0.2),

        0 10px 28px rgba(0, 0, 0, 0.28);

}



html[data-color-mode="dark"] .pyg-network-search__label-title {

    color: var(--kku-cm-text, #e8edf5);

}



html[data-color-mode="dark"] .pyg-network-search__label-hint {

    color: var(--kku-cm-muted, #94a3b8);

}



html[data-color-mode="dark"] .pyg-network-search__label-icon {

    color: #6ee7b7;

    background: linear-gradient(145deg, rgba(55, 200, 154, 0.18) 0%, rgba(59, 130, 246, 0.12) 100%);

    border-color: rgba(55, 200, 154, 0.24);

    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.25);

}



html[data-color-mode="dark"] .pyg-network-filter-icon {

    color: var(--kku-cm-muted, #94a3b8);

}



html[data-color-mode="dark"] .pyg-network-filter-combobox:focus-within .pyg-network-filter-icon {

    color: #6ee7b7;

}



html[data-color-mode="dark"] .pyg-network-filter-combobox .pyg-network-filter-input {

    background-color: var(--kku-cm-surface-2, #1a2438);

    border-color: var(--kku-cm-border, #334155);

    color: var(--kku-cm-text, #e8edf5);

    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.18);

}



html[data-color-mode="dark"] .pyg-network-filter-combobox .pyg-network-filter-input::placeholder {

    color: var(--kku-cm-muted, #94a3b8);

    opacity: 0.9;

}



html[data-color-mode="dark"] .pyg-network-filter-combobox .pyg-network-filter-input:hover {

    border-color: rgba(55, 200, 154, 0.32);

    background-color: rgba(26, 36, 56, 0.98);

}



html[data-color-mode="dark"] .pyg-network-filter-combobox .pyg-network-filter-input:focus {

    border-color: rgba(55, 200, 154, 0.55);

    box-shadow:

        0 0 0 3px rgba(55, 200, 154, 0.16),

        inset 0 1px 2px rgba(0, 0, 0, 0.15);

    background-color: rgba(20, 28, 46, 0.98);

}



html[data-color-mode="dark"] .pyg-network-suggestions {

    background: linear-gradient(165deg, var(--kku-cm-surface, #1a2438) 0%, #0f172a 100%);

    border-color: var(--kku-cm-border, #334155);

    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);

}



html[data-color-mode="dark"] .pyg-network-suggestions__header {

    border-bottom-color: var(--kku-cm-border-soft, #334155);

    background: linear-gradient(165deg, var(--kku-cm-surface, #1a2438) 0%, #0f172a 100%);

}



html[data-color-mode="dark"] .pyg-network-filter-clear {

    background: rgba(255, 255, 255, 0.08);

    color: var(--kku-cm-muted, #94a3b8);

}



html[data-color-mode="dark"] .pyg-network-filter-clear:hover {

    background: rgba(248, 113, 113, 0.18);

    color: #fca5a5;

}



html[data-color-mode="dark"] .pyg-network-suggestions__header-count {

    color: #7dd3fc;

}



html[data-color-mode="dark"] .pyg-network-suggestions__header-hint,

html[data-color-mode="dark"] .pyg-network-suggestions__meta,

html[data-color-mode="dark"] .pyg-network-suggestions__empty {

    color: var(--kku-cm-muted, #94a3b8);

}



html[data-color-mode="dark"] .pyg-network-suggestions__item {

    color: var(--kku-cm-text, #e8edf5);

}



html[data-color-mode="dark"] .pyg-network-suggestions__item:hover,

html[data-color-mode="dark"] .pyg-network-suggestions__item.is-active {

    background: linear-gradient(90deg, rgba(55, 200, 154, 0.16) 0%, rgba(59, 130, 246, 0.08) 100%);

    border-color: rgba(55, 200, 154, 0.32);

}



html[data-color-mode="dark"] .pyg-network-suggestions__mark {

    background: rgba(248, 113, 113, 0.2);

    color: #fca5a5;

}



html[data-color-mode="dark"] .pyg-network-focus-chip {

    background: linear-gradient(90deg, rgba(55, 200, 154, 0.14) 0%, rgba(59, 130, 246, 0.08) 100%);

    border-color: rgba(55, 200, 154, 0.28);

    color: var(--kku-cm-text, #e8edf5);

}



html[data-color-mode="dark"] .pyg-network-focus-chip__clear {

    background: rgba(255, 255, 255, 0.08);

    color: var(--kku-cm-muted, #94a3b8);

}



html[data-color-mode="dark"] .kampus-ortak-yazar-chart-wrap {

    border-color: var(--kku-cm-border, #334155);

    background: var(--kku-cm-surface, #1a2438);

}



html[data-color-mode="dark"] .kampus-ortak-yazar-toolbar .pyg-network-filter-label {

    display: none;

}



@media (max-width: 575.98px) {

    .pyg-network-search {

        padding: 0.75rem 0.85rem 0.9rem;

    }

    .pyg-network-search__label-icon {

        width: 2.25rem;

        height: 2.25rem;

        font-size: 0.9rem;

    }

    .pyg-network-search__label-title {

        font-size: 0.875rem;

    }

    .pyg-network-filter-combobox .pyg-network-filter-input {

        min-height: 2.6rem;

        font-size: 0.875rem;

    }

}

/* —— Ortak yazar ağı yükleme katmanı (Excel aktarım benzeri) —— */
.kampus-ortak-yazar-load-overlay {
    position: absolute;
    inset: 0;
    z-index: 30;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.25rem;
    background: rgba(15, 23, 42, 0.42);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.28s ease;
}

.kampus-ortak-yazar-load-overlay.is-active {
    opacity: 1;
    pointer-events: auto;
}

.kampus-ortak-yazar-load-card {
    width: min(100%, 340px);
    padding: 1.35rem 1.25rem 1.2rem;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.65);
    background: linear-gradient(160deg, #ffffff 0%, #f8fafc 55%, #f1f5f9 100%);
    box-shadow: 0 22px 50px rgba(15, 23, 42, 0.22);
    text-align: center;
    transform: translateY(12px) scale(0.98);
    transition: transform 0.32s cubic-bezier(0.22, 1, 0.36, 1);
}

.kampus-ortak-yazar-load-overlay.is-active .kampus-ortak-yazar-load-card {
    transform: translateY(0) scale(1);
}

.kampus-ortak-yazar-load-icon {
    width: 4.25rem;
    height: 4.25rem;
    margin: 0 auto 0.85rem;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(145deg, #0ea5e9 0%, #0369a1 100%);
    color: #fff;
    font-size: 1.75rem;
    box-shadow: 0 10px 24px rgba(3, 105, 161, 0.35);
    animation: kampusOrtakLoadPulse 1.8s ease-in-out infinite;
}

@keyframes kampusOrtakLoadPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.04); }
}

.kampus-ortak-yazar-load-title {
    margin: 0 0 0.35rem;
    font-size: 1rem;
    font-weight: 700;
    color: #0f172a;
}

.kampus-ortak-yazar-load-sub {
    margin: 0 0 0.9rem;
    font-size: 0.875rem;
    color: #0369a1;
    font-weight: 600;
    min-height: 1.35em;
    word-break: break-word;
}

.kampus-ortak-yazar-load-progress {
    height: 6px;
    border-radius: 999px;
    background: #e2e8f0;
    overflow: hidden;
    margin-bottom: 0.65rem;
}

.kampus-ortak-yazar-load-progress-bar {
    height: 100%;
    width: 18%;
    border-radius: inherit;
    background: linear-gradient(90deg, #38bdf8, #0284c7, #0ea5e9);
    background-size: 200% 100%;
    transition: width 0.25s ease;
    animation: kampusOrtakLoadBar 1.4s linear infinite;
}

.kampus-ortak-yazar-load-progress-bar.is-determinate {
    animation: none;
    background: linear-gradient(90deg, #0284c7, #0ea5e9);
}

@keyframes kampusOrtakLoadBar {
    0% { background-position: 100% 0; }
    100% { background-position: -100% 0; }
}

.kampus-ortak-yazar-load-meta {
    margin: 0;
    font-size: 0.75rem;
    color: #64748b;
    min-height: 1.1em;
}

html[data-color-mode="dark"] .kampus-ortak-yazar-load-overlay {
    background: rgba(2, 6, 23, 0.62);
}

html[data-color-mode="dark"] .kampus-ortak-yazar-load-card {
    border-color: rgba(51, 65, 85, 0.9);
    background: linear-gradient(160deg, #1e293b 0%, #0f172a 100%);
    box-shadow: 0 22px 50px rgba(0, 0, 0, 0.45);
}

html[data-color-mode="dark"] .kampus-ortak-yazar-load-title {
    color: #f1f5f9;
}

html[data-color-mode="dark"] .kampus-ortak-yazar-load-sub {
    color: #7dd3fc;
}

html[data-color-mode="dark"] .kampus-ortak-yazar-load-progress {
    background: #334155;
}

html[data-color-mode="dark"] .kampus-ortak-yazar-load-meta {
    color: #94a3b8;
}

/* Yazar düğümü işlem seçimi */
.kampus-yazar-action-modal__dialog {
    width: min(460px, calc(100vw - 2rem));
}

.kampus-yazar-action-modal__body {
    padding: 1.1rem;
}

.kampus-yazar-action-modal__name {
    margin: 0;
    color: #0f172a;
    font-size: 1.05rem;
    font-weight: 750;
    text-align: center;
}

.kampus-yazar-action-modal__hint {
    margin: 0.3rem 0 1rem;
    color: #64748b;
    font-size: 0.85rem;
    text-align: center;
}

.kampus-yazar-action-modal__actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
}

.kampus-yazar-action-modal__button {
    display: flex;
    min-height: 112px;
    align-items: center;
    justify-content: center;
    gap: 0.7rem;
    padding: 0.9rem 0.75rem;
    border: 1px solid #dbe4ee;
    border-radius: 12px;
    background: #f8fafc;
    color: #1e293b;
    cursor: pointer;
    text-align: left;
    transition: border-color 0.16s ease, background 0.16s ease, transform 0.16s ease;
}

.kampus-yazar-action-modal__button:hover,
.kampus-yazar-action-modal__button:focus-visible {
    border-color: #0d9488;
    background: #f0fdfa;
    outline: none;
    transform: translateY(-1px);
}

.kampus-yazar-action-modal__button > i {
    flex: 0 0 auto;
    color: #0d9488;
    font-size: 1.35rem;
}

.kampus-yazar-action-modal__button span {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 0.25rem;
}

.kampus-yazar-action-modal__button strong {
    font-size: 0.9rem;
}

.kampus-yazar-action-modal__button small {
    color: #64748b;
    font-size: 0.75rem;
    line-height: 1.35;
}

.kampus-yazar-action-modal__button:disabled {
    cursor: not-allowed;
    opacity: 0.48;
    transform: none;
}

html[data-color-mode="dark"] .kampus-yazar-action-modal__name {
    color: var(--kku-cm-text, #f1f5f9);
}

html[data-color-mode="dark"] .kampus-yazar-action-modal__hint,
html[data-color-mode="dark"] .kampus-yazar-action-modal__button small {
    color: var(--kku-cm-text-muted, #94a3b8);
}

html[data-color-mode="dark"] .kampus-yazar-action-modal__button {
    border-color: var(--kku-cm-border, #334155);
    background: var(--kku-cm-surface-2, #1e293b);
    color: var(--kku-cm-text, #f1f5f9);
}

html[data-color-mode="dark"] .kampus-yazar-action-modal__button:hover,
html[data-color-mode="dark"] .kampus-yazar-action-modal__button:focus-visible {
    border-color: #37c89a;
    background: rgba(55, 200, 154, 0.1);
}

@media (max-width: 575.98px) {
    .kampus-yazar-action-modal__actions {
        grid-template-columns: 1fr;
    }

    .kampus-yazar-action-modal__button {
        min-height: 82px;
        justify-content: flex-start;
    }
}

