/* ==========================================================================
   Akademik Bilgi Sistemi — Design Tokens & Shared Layout
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,400;9..144,500;9..144,600;9..144,700&family=Manrope:wght@400;500;600;700;800&family=IBM+Plex+Mono:wght@400;500;600&family=Source+Sans+3:wght@400;500;600;700&display=swap');

:root {
  /* --- Color: maroon family (brand) --- */
  --maroon-900: #4C0E27;
  --maroon-700: #7C1938;
  --maroon-600: #8F2143;
  --maroon-400: #B85374;
  --maroon-100: #F6E9EE;

  /* --- Color: neutrals --- */
  --ink-900: #221F24;
  --ink-600: #524D56;
  --ink-400: #8C8792;
  --ink-200: #DAD6DD;
  --paper: #F4F3F5;
  --paper-dim: #ECEAEE;
  --white: #FFFFFF;

  /* --- Color: category accents (scholarly output types) --- */
  --acc-amber: #BD8A2E;
  --acc-azure: #33698F;
  --acc-violet: #6B4E9E;
  --acc-sage: #4C8266;
  --acc-teal: #288079;
  --acc-plum: #8A3C61;
  --acc-slate: #525C74;
  --acc-coral: #B9553E;
  --acc-black: #000000;

  /* --- Type --- */
  --font-display: 'Fraunces', ui-serif, Georgia, serif;
  --font-body: 'Manrope', ui-sans-serif, system-ui, sans-serif;
  --font-mono: 'IBM Plex Mono', ui-monospace, monospace;
  --font-meta: 'Source Sans 3', 'Segoe UI', ui-sans-serif, system-ui, sans-serif;

  /* --- Elevation / shape --- */
  --radius-lg: 20px;
  --radius-md: 14px;
  --radius-sm: 9px;
  --shadow-card: 0 1px 2px rgba(76, 14, 39, .04), 0 10px 30px -12px rgba(76, 14, 39, .14);
  --shadow-pop: 0 6px 20px -6px rgba(76, 14, 39, .22);

  --sidebar-w: 272px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font-body);
  background: var(--paper);
  color: var(--ink-900);
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
img { display: block; max-width: 100%; }

::selection { background: var(--maroon-100); color: var(--maroon-900); }

:focus-visible {
  outline: 2.5px solid var(--maroon-600);
  outline-offset: 2px;
  border-radius: 4px;
}

/* ==========================================================================
   App shell & Navigation
   ========================================================================== */

.app {
  display: flex;
  min-height: 100vh;
}

/* ---------- Sidebar ---------- */
.sidebar {
  width: var(--sidebar-w);
  flex-shrink: 0;
  background: var(--white);
  border-right: 1px solid var(--ink-200);
  display: flex;
  flex-direction: column;
  padding: 20px 18px 28px;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
}
.sidebar-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 26px;
}
.home-btn {
  width: 38px; height: 38px;
  border-radius: 11px;
  background: var(--paper);
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--ink-200);
  color: var(--maroon-700);
  transition: background .15s ease, transform .15s ease;
}
.home-btn:hover { background: var(--maroon-100); }
.collapse-btn {
  width: 30px; height: 30px;
  border-radius: 8px;
  border: none; background: transparent;
  color: var(--ink-400);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
}
.collapse-btn:hover { color: var(--maroon-700); }

.brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 6px 6px 22px;
  border-bottom: 1px solid var(--ink-200);
  margin-bottom: 18px;
  text-decoration: none;
  color: inherit;
}
.brand.twin-brand {
  border-bottom: none;
  margin: 0;
  padding: 10px 8px 6px;
}
.crest {
  width: 90px; height: 90px;
  border-radius: 50%;
  border: 2px solid #b80610;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 10px;
  position: relative;
  overflow: hidden;
  background: #fff;
}
.crest svg { width: 40px; height: 40px; }
.crest img { width: 72px; height: 72px; object-fit: contain; display: block; }
.twin-brand .crest {
  width: 72px; height: 72px;
  margin-bottom: 8px;
}
.twin-brand .crest img { width: 56px; height: 56px; }
.twin-brand .brand-name {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.25;
  color: var(--ink-900);
}
.crest-year {
  position: absolute;
  bottom: -9px;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: .05em;
  background: var(--white);
  color: var(--maroon-700);
  padding: 1px 6px;
  border-radius: 20px;
  border: 1px solid var(--maroon-100);
}
.brand-name {
  font-family: var(--font-display);
  font-size: 14.5px;
  font-weight: 600;
  line-height: 1.3;
  color: var(--ink-900);
}

.user-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 16px 8px 20px;
  border-bottom: 1px solid var(--ink-200);
  margin-bottom: 10px;
}
.user-title {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .06em;
  color: var(--maroon-600);
  text-transform: uppercase;
}
.user-name {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 600;
  margin-top: 3px;
  color: var(--ink-900);
}

.nav {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding-top: 8px;
}
.nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 10px;
  color: var(--ink-600);
  font-size: 14px;
  font-weight: 500;
  position: relative;
  border-left: 3px solid transparent;
  transition: background .15s ease, color .15s ease;
}
.nav-item svg { width: 18px; height: 18px; flex-shrink: 0; opacity: .85; }
.nav-item i {
  width: 20px;
  text-align: center;
  margin-right: 10px;
  font-size: 15px;
}
.nav-item:hover { background: var(--paper-dim); color: var(--ink-900); }
.nav-item.active {
  background: var(--maroon-100);
  color: var(--maroon-700);
  border-left-color: var(--maroon-700);
  font-weight: 700;
}
.nav-item.active svg { opacity: 1; }

/* ---------- Main content ---------- */
.main {
  flex: 1;
  min-width: 0;
  position: relative;
  overflow: hidden;
}

.topbar {
  position: relative;
  padding: 34px 44px 26px;
  overflow: hidden;
 }
.constellation {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  z-index: 0;
  opacity: .55;
}
.topbar-row {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.eyebrow {
  font-family: var(--font-mono);
  font-size: 30px;
  letter-spacing: .10em;
  text-transform: uppercase;
  color: var(--maroon-600);
  margin: 15px 0 10px;
  font-weight:800;
}
.page-title {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 600;
  color: var(--ink-900);
  margin: 0;
}
.topbar-actions {
  display: flex;
  gap: 10px;
}
.icon-btn {
  width: 38px; height: 38px;
  border-radius: 10px;
  background: var(--white);
  border: 1px solid var(--ink-200);
  display: flex; align-items: center; justify-content: center;
  color: var(--maroon-700);
  cursor: pointer;
}
.icon-btn svg { width: 17px; height: 17px; }
.icon-btn:hover { background: var(--maroon-100); }
.icon-btn.filled { background: var(--maroon-700); color: var(--white); border-color: var(--maroon-700); }
.icon-btn.filled:hover { background: var(--maroon-600); }

.content {
  position: relative;
  z-index: 1;
  padding: 0 44px 60px;
}

.section-head {
  display: flex;
  align-items: baseline;
  gap: 14px;
  margin-bottom: 20px;
}
.section-title {
  font-family: var(--font-display);
  font-size: 21px;
  font-weight: 600;
  color: var(--ink-900);
  margin: 0;
  position: relative;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--ink-200);
  width: 100%;
}
.section-title::after {
  content: '';
  position: absolute;
  left: 0; bottom: 0;
  width: 34px; height: 3px;
  background: var(--maroon-700);
  border-radius: 3px;

}

.card {
  background: var(--white);
  border: 1px solid #b80610;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
}

/* ---------- Tabs & Components ---------- */
.tabs {
  display: flex;
  gap: 28px;
  border-bottom: 1px solid var(--ink-200);
  margin-bottom: 22px;
}
.tab {
  padding: 6px 2px 14px;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--ink-400);
  position: relative;
  cursor: pointer;
  user-select: none;
}
.tab.active { color: var(--maroon-700); }
.tab.active::after {
  content: '';
  position: absolute; left: 0; right: 0; bottom: -1px;
  height: 2.5px;
  background: var(--maroon-700);
  border-radius: 2px;
}

/* Public profil: eğitim / deneyim / yayınlar — aynı sekme görünümü (#b80610) */
.abis-profile-body .card > .tabs,
.abis-profile-body .card > .pub-tabs {
  display: flex;
  gap: 8px;
  padding: 26px 38px 0;
  flex-wrap: wrap;
  border-bottom: none;
  margin-bottom: 0;
}
.abis-profile-body .card > .tabs .tab,
.abis-profile-body .card > .pub-tabs .pub-tab {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 11px 11px 0 0;
  font-size: 14px;
  font-weight: 700;
  color: var(--ink-400);
  cursor: pointer;
  border-bottom: 3px solid transparent;
  transition: all 0.2s ease;
  position: relative;
  user-select: none;
  text-decoration: none;
}
.abis-profile-body .card > .tabs .tab.active,
.abis-profile-body .card > .pub-tabs .pub-tab.active {
  color: #b80610;
  border-bottom-color: #b80610;
  background: rgba(184, 6, 16, 0.08);
}
.abis-profile-body .card > .tabs .tab.active::after {
  display: none;
}
.tab .count {
  font-family: var(--font-mono);
  font-size: 11px;
  margin-left: 5px;
  color: inherit;
  opacity: .75;
}

.tab-pane { display: none; }
.tab-pane.active { display: block; }

.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border-radius: 100px;
  font-size: 12.5px;
  font-weight: 600;
  border: 1px solid var(--ink-200);
  color: var(--ink-600);
  background: var(--white);
  cursor: pointer;
  transition: all 0.15s ease;
}
.pill .count { font-family: var(--font-mono); opacity: .7; }
.pill.active {
  background: #b80610;
  color: var(--white);
  border-color: #b80610;
}
.pill.active .count {
  color: #fff;
  opacity: 1;
}

.tag {
  display: inline-flex;
  align-items: center;
  padding: 3px 9px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 600;
  font-family: var(--font-mono);
  letter-spacing: .01em;
}
.tag.t-blue { background: #E7EFF6; color: var(--acc-azure); }
.tag.t-green { background: #EAF3ED; color: var(--acc-sage); }
.tag.t-gray { background: var(--paper-dim); color: var(--ink-600); }
.tag.t-purple { background: #F1EBF7; color: var(--acc-violet); }
.tag.t-amber { background: #F7EFDD; color: var(--acc-amber); }
.tag.t-rose { background: var(--maroon-100); color: var(--maroon-700); }
.tag.t-doi {
  background: #E8F1FB; color: #0B5CAB; text-decoration: none;
  font-weight: 600;
  max-width: 100%;
  word-break: break-all;
  white-space: normal;
  line-height: 1.35;
}
a.tag.t-doi:hover { background: #D4E6F8; color: #084a8a; }

/* ==========================================================================
   Page-Specific: Profil & Bilgiler
   ========================================================================== */

.profile-card {
  padding: 36px 38px;
  display: flex;
  gap: 32px;
  border-color: #b80610;
}

/* Atıf / grafik vb. beyaz paneller */
.abis-profile-body .profile-dash-card {
  border: 1px solid #b80610 !important;
}

.avatar {
  width: 280px;
  height: 280px;
  border-radius: 50%;
  flex-shrink: 0;
  color: var(--white);
  font-family: var(--font-display);
  font-size: 44px;
  font-weight: 600;
  background: linear-gradient(155deg, var(--maroon-700), var(--maroon-400));
  display: flex; align-items: center; justify-content: center;
  position: relative;
  overflow: visible;
  box-shadow:
    0 4px 10px rgba(34, 31, 36, 0.08),
    0 12px 28px rgba(34, 31, 36, 0.12);
}
.avatar img {
  width: 100%; height: 100%;
  object-fit: cover;
  border-radius: 50%;
  display: block;
}
.avatar::after {
  content: '';
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 1.5px dashed var(--maroon-100);
  pointer-events: none;
}

.id-body { flex: 1; min-width: 0; padding-top: 2px; margin-left: 50px; }
.id-role {
  font-family: var(--font-mono); font-size: 14px; letter-spacing: .1em; text-transform: uppercase; font-weight: 800;
  color: #b80610; margin: 0 0 4px;
}
.id-name { font-family: var(--font-display); font-size: 32px; font-weight: 800; margin: 0 0 18px; color: var(--ink-900); }
.id-row {
  display: flex;
  gap: 6px;
  align-items: baseline;
  margin-bottom: 6px;
  font-family: var(--font-body);
  font-size: 13.5px;
  font-weight: 500;
  letter-spacing: -0.025em;
  line-height: 1.35;
  color: #3f3a42;
}
.id-row b {
  color: #b80610;
  font-family: var(--font-body);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: -0.02em;
  flex-shrink: 0;
  white-space: nowrap;
}
.id-row span {
  font-family: var(--font-body);
  font-weight: 500;
  letter-spacing: -0.025em;
  color: #3f3a42;
}
.id-row a { color: var(--acc-azure); font-weight: 600; }
.id-links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 32px; align-items: center; }
.id-links a.id-link,
.id-links span.id-link {
  width: 40px; height: 40px; border-radius: 10px; background: var(--paper);
  display: inline-flex; align-items: center; justify-content: center; color: var(--ink-600);
  border: 1px solid var(--ink-200); padding: 6px; box-sizing: border-box;
  transition: background .15s ease, border-color .15s ease, transform .15s ease;
}
.id-link-logo { width: 22px; height: 22px; object-fit: contain; display: block; }
.id-links a.id-link:hover {
  background: #fff; border-color: var(--maroon-300, #d4a5a5);
  transform: translateY(-1px);
}
.id-cv-actions {
  margin-top: 14px;
}
.id-cv-download {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid #b80610;
  color: #b80610;
  background: transparent;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  line-height: 1.2;
  transition: background .15s ease, color .15s ease;
}
.id-cv-download:hover {
  background: #b80610;
  color: #fff;
}
.id-cv-download i { font-size: 15px; }

/* Orbit Metric Badges */
.orbit-grid {
  display: grid; grid-template-columns: repeat(8, 1fr); gap: 14px; margin-top: 26px;
}
.orbit {
  background: var(--white); border: 1px solid var(--ink-200); border-radius: var(--radius-md);
  padding: 20px 10px 16px; text-align: center; box-shadow: var(--shadow-card);
  transition: transform .15s ease, box-shadow .15s ease;
}
.orbit:hover { transform: translateY(-3px); box-shadow: var(--shadow-pop); }
.orbit-ring {
  width: 56px; height: 56px; border-radius: 50%; margin: 0 auto 10px;
  display: flex; align-items: center; justify-content: center;
  position: relative;
}
.orbit-ring svg.bg-ring { position: absolute; inset: 0; width: 56px; height: 56px; }
.orbit-ring svg.icon { width: 22px; height: 22px; position: relative; z-index: 1; }
.orbit-count { font-family: var(--font-display); font-size: 22px; font-weight: 700; color: var(--ink-900); line-height: 1; }
.orbit-label { font-family: var(--font-mono); font-size: 10.5px; color: var(--ink-400); text-transform: uppercase; letter-spacing: .04em; margin-top: 5px; }

/* Stat Tiles */
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 16px; }
.stat-tile {
  background: var(--white); border: 1px solid var(--ink-200); border-left: 3px solid var(--maroon-700);
  border-radius: var(--radius-sm); padding: 16px 18px; display: flex; align-items: center; justify-content: space-between;
  box-shadow: var(--shadow-card);
}
.stat-tile .label { font-size: 11.5px; color: var(--ink-400); font-weight: 600; line-height: 1.4; text-transform: uppercase; letter-spacing: .02em; }
.stat-tile .value { font-family: var(--font-mono); font-size: 22px; font-weight: 600; color: var(--ink-900); }
.stat-tile svg, .stat-tile i { font-size: 15px; color: var(--maroon-400); width: 15px; height: 15px; }

/* Yayınlar */
.pub-tab .n {
  font-family: var(--font-mono); font-size: 11px; padding: 1px 7px; border-radius: 100px; background: var(--paper-dim); color: var(--ink-500);
}
.abis-profile-body .card > .pub-tabs .pub-tab.active .n { background: #b80610; color: #fff; }

.filter-row { display: flex; gap: 9px; flex-wrap: wrap; padding: 20px 38px 4px; }

.pub-list { padding: 18px 38px 30px; }
.pub-item { display: flex; gap: 18px; padding: 22px 0; border-bottom: 1px solid var(--ink-200); }
.pub-item:last-child { border-bottom: none; }
.pub-num {
  width: 30px; height: 30px; border-radius: 50%; background: #fde8ea; color: #b80610;
  font-family: var(--font-mono); font-weight: 700; font-size: 12.5px; display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; margin-top: 2px;
}
.pub-body { flex: 1; min-width: 0; }
.pub-authors { font-size: 13px; font-weight: 700; color: var(--ink-900); margin: 0; }
.pub-authors .year { color: var(--maroon-600); font-family: var(--font-mono); font-weight: 600; }
.pub-title { font-size: 15.5px; font-weight: 700; color: var(--ink-900); margin: 0 0 3px; }
.tag.t-quartile { background: #fde8ea; color: #b80610; }
.pub-item--duyuru { align-items: center; gap: 0; }
.pub-date-badge {
  flex-shrink: 0;
  width: 62px;
  padding-right: 18px;
  margin-right: 18px;
  border-right: 2px dotted var(--ink-900);
  text-align: center;
}
.pub-date-day {
  display: block;
  font-family: var(--font-display);
  font-size: 2.25rem;
  font-weight: 800;
  line-height: 1;
  color: #b80610;
}
.pub-date-mon {
  display: block;
  margin-top: 2px;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: #b80610;
}
.pub-title--link {
  background: none;
  border: none;
  padding: 0;
  text-align: left;
  cursor: pointer;
  font: inherit;
  color: inherit;
}
.pub-title--link:hover { color: var(--maroon-700); text-decoration: underline; }
.pub-body--doc .pub-doc-desc {
  font-size: 13.5px;
  color: var(--ink-600);
  margin: 0 0 8px;
  line-height: 1.5;
}
.pub-doc-url {
  display: block;
  font-size: 13px;
  color: var(--acc-azure);
  word-break: break-all;
  text-decoration: underline;
}
.pub-doc-url:hover { color: var(--maroon-700); }
.pub-ann-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.pub-ann-modal[hidden] { display: none !important; }
.pub-ann-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.55);
}
.pub-ann-modal__dialog {
  position: relative;
  z-index: 1;
  width: min(560px, 100%);
  max-height: min(80vh, 640px);
  overflow: auto;
  background: var(--white);
  border-radius: 14px;
  padding: 28px 32px 24px;
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.18);
}
.pub-ann-modal__close {
  position: absolute;
  top: 12px;
  right: 14px;
  border: none;
  background: transparent;
  font-size: 1.75rem;
  line-height: 1;
  color: var(--ink-400);
  cursor: pointer;
}
.pub-ann-modal__title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--ink-900);
  margin: 0 32px 16px 0;
  padding-right: 8px;
}
.pub-ann-modal__body {
  font-size: 14px;
  line-height: 1.65;
  color: var(--ink-700);
  white-space: pre-wrap;
}
.pub-venue { font-size: 13px; color: var(--ink-600); font-style: italic; }
.pub-venue a { display: inline-flex; margin-left: 4px; color: var(--acc-azure); vertical-align: -2px; }
.pub-venue a svg { width: 12px; height: 12px; }
.pub-field { font-size: 12px; color: var(--ink-400); margin-top: 6px; }
.pub-tags { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 10px; }
.pub-badge {
  width: 30px; height: 30px; border-radius: 50%; flex-shrink: 0; margin-top: 2px;
  background: conic-gradient(var(--acc-amber) 0 25%, var(--acc-azure) 25% 50%, var(--acc-sage) 50% 75%, var(--acc-plum) 75% 100%);
}

/* Deneyim & Eğitim */
.exp-card, .edu-card { padding: 6px 38px 34px; }
.exp-list, .edu-list { position: relative; }
.exp-list::before, .edu-list::before {
  content: ''; position: absolute; left: 78px; top: 10px; bottom: 10px; width: 1.5px; background: var(--ink-200);
}
.exp-row, .edu-row { display: flex; gap: 26px; padding: 26px 0; position: relative; }
.exp-row:first-child, .edu-row:first-child { padding-top: 30px; }
.exp-year, .edu-year {
  width: 78px; flex-shrink: 0; font-family: var(--font-mono); font-size: 12px; font-weight: 600;
  color: var(--maroon-600); padding-top: 4px; text-align: right; padding-right: 22px; position: relative; line-height: 1.4;
}
.exp-year::after, .edu-year::after {
  content: ''; position: absolute; right: -5.5px; top: 9px; width: 11px; height: 11px; border-radius: 50%;
  background: var(--white); border: 2.5px solid var(--maroon-700);
}
.exp-row.current .exp-year::after { background: var(--maroon-700); box-shadow: 0 0 0 4px var(--maroon-100); }
.exp-body { flex: 1; padding-bottom: 2px; display: flex; align-items: flex-start; gap: 16px; flex-wrap: wrap; }
.exp-role-wrap { flex: 1; min-width: 260px; }
.exp-role { font-family: var(--font-display); font-size: 18px; font-weight: 700; color: var(--ink-900); margin: 0 0 4px; display: flex; align-items: center; gap: 10px; }
.exp-dept { font-size: 13.5px; color: var(--ink-600); line-height: 1.5; }
.exp-status {
  font-family: var(--font-mono); font-size: 10.5px; font-weight: 700; padding: 3px 10px; border-radius: 100px;
  background: #EAF3ED; color: var(--acc-sage); white-space: nowrap; margin-top: 3px;
}

.edu-body { flex: 1; padding-bottom: 2px; }
.edu-degree { font-family: var(--font-display); font-size: 17px; font-weight: 700; color: var(--ink-900); margin: 0 0 4px; text-transform: uppercase; }
.edu-inst { font-size: 13.5px; color: var(--ink-600); margin: 0 0 4px; text-transform: uppercase; }
.edu-inst span { color: var(--ink-400); }
.edu-thesis { font-size: 13px; color: var(--ink-700); margin: 0 0 2px; line-height: 1.45; text-transform: none; }
.edu-thesis span { color: var(--ink-500); font-weight: 600; }
.edu-badge {
  display: inline-block; margin-top: 8px; font-family: var(--font-mono); font-size: 10.5px;
  padding: 2px 9px; border-radius: 100px; background: var(--maroon-100); color: var(--maroon-700); font-weight: 700;
}

/* Yabancı Diller */
.lang-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; padding: 6px 38px 34px; }
.lang-tile {
  border: 1px solid var(--ink-200); border-radius: var(--radius-md); padding: 20px; text-align: center;
  background: var(--paper);
}
.lang-tile .name { font-family: var(--font-display); font-weight: 700; font-size: 16px; margin-bottom: 8px; }
.lang-bar { height: 6px; border-radius: 4px; background: var(--ink-200); overflow: hidden; margin-bottom: 8px; }
.lang-bar span { display: block; height: 100%; background: var(--maroon-700); border-radius: 4px; }
.lang-level { font-family: var(--font-mono); font-size: 11px; color: var(--ink-400); }

/* Kesikli Halka (Open Arc) Metrik Kartları */
.donut-metrics-container { width: 100%; padding: 20px 0; padding-left: 5px; }
.donut-metrics-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  align-items: flex-start;
  gap: 48px 56px;
  width: 100%;
  margin: 0;
}
.donut-card {
  position: relative;
  width: 136px; height: 136px;
  flex: 0 0 136px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; user-select: none;
}
.donut-ring {
  position: absolute; inset: 0;
  border-radius: 50%;
  border: 9px solid var(--c);
  border-top-color: transparent;
  transform: rotate(-45deg);
  filter: drop-shadow(0 6px 10px rgba(0, 0, 0, 0.45));
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.donut-badge {
  position: absolute; top: -2px; left: -2px;
  width: 42px; height: 42px;
  border-radius: 50%;
  background-color: var(--c);
  border: 3px solid #ffffff;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
  display: flex; align-items: center; justify-content: center;
  z-index: 3; color: #ffffff;
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.donut-badge i { font-size: 14px; color: currentColor; }
.donut-inner {
  position: relative; z-index: 2;
  width: 104px; height: 104px;
  border-radius: 50%; background: #ffffff;
  box-shadow: inset 0 2px 4px rgba(0,0,0,0.03), 0 4px 12px rgba(0,0,0,0.06);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 8px; text-align: center;
  transition: transform 0.35s ease;
}
.donut-label {
  font-size: 0.68rem; font-weight: 700; letter-spacing: 0.02em;
  color: var(--c); line-height: 1.15; margin-bottom: 2px; max-width: 90%;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.donut-card[data-category="tez"] .donut-label { font-size: calc(0.68rem - 1px); }
.donut-count { font-size: 1.65rem; font-weight: 800; color: var(--c); line-height: 1; letter-spacing: -0.02em; }

.donut-card:hover .donut-ring { transform: rotate(-35deg) scale(1.07); }
.donut-card:hover .donut-badge { transform: scale(1.15) rotate(-10deg); }
.donut-card:hover .donut-inner { transform: scale(1.02); }

@media (max-width: 640px) {
  .donut-metrics-container { padding-left: 0; }
  .donut-metrics-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    justify-items: center;
    gap: 32px 12px;
  }
}
@media (max-width: 360px) {
  .donut-card { width: 120px; height: 120px; flex-basis: 120px; }
  .donut-inner { width: 92px; height: 92px; }
  .donut-count { font-size: 1.45rem; }
}

/* Sürdürülebilir Kalkınma Amaçları (SKA) */
.sdg-section { margin-top: 0; padding: 0; background: transparent; }
.profile-dash-card .sdg-section { margin-top: 0; }
.sdg-empty {
  margin: 0;
  padding: 4px 0 8px;
  font-size: 14px;
  line-height: 1.55;
  color: var(--ink-500);
}
.sdg-title {
  font-size: 13px; font-weight: 600; color: #666;
  text-transform: uppercase; letter-spacing: 0.6px; margin-bottom: 12px;
}
.sdg-grid { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.sdg-badge {
  position: relative;
  width: 76px; height: 76px; border-radius: 10px; overflow: visible;
  display: inline-flex; align-items: center; justify-content: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease; cursor: pointer; background: transparent;
}
button.sdg-badge {
  border: 0;
  padding: 0;
  font: inherit;
  appearance: none;
  -webkit-appearance: none;
}
.sdg-badge:hover { transform: translateY(-4px) scale(1.04); box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2); }
.sdg-badge:focus-visible {
  outline: 2px solid #b80610;
  outline-offset: 3px;
}
.sdg-badge img { width: 100%; height: 100%; object-fit: cover; border-radius: 10px; display: block; }
.sdg-count {
  position: absolute; top: 0; right: -8px; transform: translateY(-50%);
  min-width: 20px; height: 18px; padding: 0 5px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 999px; background: #dc2626; border: 2px solid #fff;
  color: #fff; font-size: 11px; font-weight: 700; line-height: 1; z-index: 2;
}

.pub-item { align-items: flex-start; }
.pub-sdg-wrap { position: relative; flex-shrink: 0; margin-left: auto; align-self: flex-start; }
.pub-sdg-trigger {
  width: 34px; height: 34px; border: 0; padding: 0; background: transparent; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
}
.pub-sdg-trigger img { width: 30px; height: 30px; object-fit: contain; display: block; }
.pub-sdg-tip {
  display: none; position: absolute; right: 0; bottom: calc(100% + 10px);
  width: 220px; background: #fff; border: 1px solid #d8d5db; border-radius: 10px;
  box-shadow: 0 8px 24px rgba(34,31,36,.12); z-index: 20; overflow: hidden;
}
.pub-sdg-wrap:hover .pub-sdg-tip { display: block; }
.pub-sdg-tip-head {
  text-align: center; font-size: 12px; font-weight: 700; color: var(--ink-900);
  padding: 10px 12px; border-bottom: 1px solid #e8e5ea;
}
.pub-sdg-tip-body { padding: 12px; text-align: center; font-size: 12px; color: var(--ink-600); }
.pub-sdg-tip-grid { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.pub-sdg-tip-grid img { width: 40px; height: 40px; border-radius: 8px; object-fit: cover; }

.pub-courses-wrap {
  padding: 8px 0 12px;
  max-width: 100%;
  overflow-x: auto;
  overflow-y: visible;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
  background: var(--white, #fff);
}
.pub-courses-table {
  width: 100%; min-width: 640px; border-collapse: separate; border-spacing: 0; font-size: 14px;
  background: var(--white, #fff);
}
.pub-courses-table thead th {
  text-align: left; font-weight: 600; color: var(--ink-700, #475569);
  padding: 14px 16px; border-bottom: 1px solid var(--ink-200, #e2e8f0);
  background: var(--white, #fff); white-space: nowrap;
}
.pub-courses-table tbody td {
  padding: 14px 16px; border-bottom: 1px solid var(--ink-100, #f1f5f9);
  vertical-align: middle; color: var(--ink-800, #1e293b);
}
.pub-courses-table tbody tr:last-child td { border-bottom: 0; }
.pub-courses-table tbody tr:hover td { background: rgba(184, 6, 16, 0.03); }
.pub-courses-code { font-family: ui-monospace, monospace; font-size: 13px; white-space: nowrap; }
.pub-courses-name { font-weight: 500; min-width: 160px; }
.pub-courses-unit { min-width: 140px; color: var(--ink-600, #64748b); }
.pub-courses-th-ska { width: 1%; text-align: center; }
.pub-courses-ska { text-align: center; overflow: visible; position: relative; }
.pub-sdg-wrap--table {
  display: inline-flex; margin-left: 0; align-self: center; justify-content: center;
  z-index: 1;
}
.pub-courses-table tbody tr:has(.pub-sdg-wrap--table:hover) {
  position: relative;
  z-index: 40;
}
.pub-sdg-wrap--table:hover { z-index: 50; }
.pub-sdg-wrap--table .pub-sdg-tip {
  left: auto; right: 0; transform: none;
  bottom: auto; top: calc(100% + 8px);
  z-index: 60;
}

/* İletişim Kartı */
.contact-section { margin-top: 32px; }
.contact-card {
  background: var(--white, #ffffff);
  border: 1px solid #b80610;
  border-radius: var(--radius-md, 12px);
  padding: 24px 28px;
  box-shadow: var(--shadow-card, 0 1px 3px rgba(0,0,0,0.05));
}
.contact-list { display: flex; flex-direction: column; gap: 16px; margin-top: 18px; }
.contact-item { display: flex; align-items: center; gap: 16px; padding-bottom: 14px; border-bottom: 1px dashed var(--ink-200, #e2e8f0); }
.contact-item:last-child { padding-bottom: 0; border-bottom: none; }
.contact-icon-box {
  width: 42px; height: 42px; border-radius: 10px;
  background: #fef3f2; color: #b80610;
  display: flex; align-items: center; justify-content: center;
  font-size: 17px; flex-shrink: 0; transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}
.contact-item:hover .contact-icon-box { transform: translateY(-2px); background: #b80610; color: #ffffff; }
.contact-details { display: flex; flex-direction: column; }
.contact-label { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; color: var(--ink-400, #94a3b8); margin-bottom: 2px; }
.contact-value { font-size: 14px; font-weight: 600; color: var(--ink-900, #1e293b); word-break: break-word; }
.contact-value a { color: var(--ink-900, #1e293b); text-decoration: none; transition: color 0.2s; }
.contact-value a:hover { color: #b80610; }

/* Yıllık İstatistikler Grafik Alanı */
.chart-card {
  background: #ffffff;
  border: 1px solid var(--ink-200, #e2e8f0);
  border-radius: var(--radius-md, 16px);
  padding: 28px 32px;
  margin-top: 32px;
  box-shadow: var(--shadow-card, 0 1px 3px rgba(0,0,0,0.05));
}

.chart-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 20px;
}

.chart-title-group h3 {
  font-family: var(--font-display, inherit);
  font-size: 20px;
  font-weight: 700;
  color: #1e293b;
  margin: 0 0 6px 0;
}

.chart-title-group p {
  font-size: 13.5px;
  color: #94a3b8;
  margin: 0;
}

.chart-controls {
  display: flex;
  align-items: center;
  gap: 12px;
}
.chart-wrapper {
  position: relative;
  height: 380px;
  width: 100%;
  margin-top: 10px;
}

/* ---------- Responsive ---------- */
.foot-note { margin-top: 34px; font-size: 12px; color: var(--ink-400); font-family: var(--font-mono); }

@media (max-width: 1300px) {
  .orbit-grid { grid-template-columns: repeat(4, 1fr); }
}

@media (max-width: 1080px) {
  .content, .topbar { padding-left: 28px; padding-right: 28px; }
}

@media (max-width: 900px) {
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
  .profile-card { flex-direction: column; align-items: flex-start; }
  .id-body { margin-left: 0; margin-top: 20px; }
  .lang-grid { grid-template-columns: repeat(1, 1fr); }
}

@media (max-width: 880px) {
  .sidebar {
    position: fixed; z-index: 20; transform: translateX(-100%);
    transition: transform .2s ease; box-shadow: var(--shadow-pop);
  }
  .sidebar.open { transform: translateX(0); }
  .app { display: block; }
}

/* Admina shell ile birlikte: eski app/sidebar kurallarını etkisizleştir */
body:has(.twin-sidebar) {
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  overflow-x: hidden;
}
body:has(.twin-sidebar) .abis-profile-body {
  max-width: 100%;
  overflow-x: clip;
}
body:has(.twin-sidebar) .abis-profile-body > .content {
  padding-left: 0;
  padding-right: 0;
  padding-top: 1rem;
  max-width: 100%;
  box-sizing: border-box;
}
body:has(.twin-sidebar) .abis-profile-body > .content > .profile-card:first-child {
  margin-top: 0;
}
body:has(.twin-sidebar) .abis-profile-body .section-head {
  margin-top: 1.5rem;
}

/* Public profil: ikon raysız tek seviye menü */
body:has(.twin-sidebar.abis-flat-nav) .twin-sidebar.abis-flat-nav {
  --ts-purple: #b80610;
  --ts-purple-soft: #fef3f2;
}
body:has(.twin-sidebar.abis-flat-nav) .dashboard-main {
  margin-inline-start: var(--ts-panel-w, 248px) !important;
  margin-left: var(--ts-panel-w, 248px) !important;
}
body:has(.twin-sidebar.abis-flat-nav).twin-collapsed .dashboard-main {
  margin-inline-start: 0 !important;
  margin-left: 0 !important;
}
@media (max-width: 1199px) {
  body:has(.twin-sidebar.abis-flat-nav) .dashboard-main,
  body:has(.twin-sidebar.abis-flat-nav).twin-collapsed .dashboard-main {
    margin-inline-start: 0 !important;
    margin-left: 0 !important;
  }
}
body:has(.twin-sidebar.abis-flat-nav) .twin-menu {
  display: block;
}
body:has(.twin-sidebar.abis-flat-nav) .twin-menu > li + li {
  margin-top: 2px;
}

/* profil.css global ul reset twin-menu padding’ini bozmasın */
body:has(.twin-sidebar) .twin-menu {
  padding: 8px 10px 16px;
  margin: 0;
  list-style: none;
}
body:has(.twin-sidebar) .twin-menu > li {
  margin: 0;
  padding: 0;
}
body:has(.twin-sidebar) .twin-menu > li > a {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.collab-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.collab-badge {
  flex: 0 0 auto;
  border-radius: 999px;
  background: #f8e6e7;
  color: #b80610;
  font-size: 13px;
  font-weight: 700;
  padding: 6px 12px;
}
.collab-card {
  overflow: hidden;
  border-radius: var(--radius-lg);
  margin-bottom: 8px;
}
.collab-graph {
  min-height: 640px;
  width: 100%;
  background-color: #fff;
  background-image: none;
  border-radius: inherit;
}
.collab-graph .highcharts-point {
  cursor: pointer;
}
/* Child/center foto marker'ları kare kalmasın */
.collab-graph .highcharts-point image,
.collab-graph .highcharts-markers image {
  clip-path: circle(50%);
}
.collab-graph .highcharts-networkgraph-link {
  opacity: 0.85;
}
.vis-tooltip {
  font-family: Manrope, sans-serif;
  font-size: 12px;
  padding: 6px 8px;
  border-radius: 8px;
  border: 1px solid #e5e7eb;
  background: #fff;
  color: #221f24;
  box-shadow: 0 8px 24px rgba(34, 31, 36, 0.12);
}
.collab-modal[hidden] { display: none; }
.collab-modal {
  position: fixed;
  inset: 0;
  z-index: 80;
}
.collab-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(34, 31, 36, 0.45);
}
.collab-modal-panel {
  position: relative;
  z-index: 1;
  width: min(640px, calc(100% - 32px));
  max-height: min(72vh, 640px);
  margin: 10vh auto 0;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 24px 60px rgba(34, 31, 36, 0.2);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.collab-modal-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 18px 12px;
  border-bottom: 1px solid #eee;
}
.collab-modal-head h3 {
  margin: 0;
  font-size: 18px;
  line-height: 1.35;
  color: #221f24;
}
.collab-modal-x {
  border: 0;
  background: transparent;
  font-size: 28px;
  line-height: 1;
  color: #8c8792;
  cursor: pointer;
}
.collab-modal-body {
  overflow: auto;
  padding: 6px 0 10px;
}
.sdg-work-item {
  display: flex;
  gap: 12px;
  padding: 14px 18px;
  border-bottom: 1px solid #f1f1f3;
  align-items: flex-start;
}
.sdg-work-item:last-child { border-bottom: 0; }
.sdg-work-item .pub-body { flex: 1; min-width: 0; }
.sdg-work-item .pub-title { margin: 0 0 4px; font-size: 15px; }
.sdg-work-item .pub-authors { margin: 0; }
.sdg-work-item .pub-venue { margin: 4px 0 0; font-size: 13px; color: #6b6570; }
.dark .sdg-work-item { border-bottom-color: #3a3540; }
.dark .sdg-work-item .pub-venue { color: #b7b1bc; }
.collab-work {
  display: flex;
  gap: 12px;
  padding: 12px 18px;
  border-bottom: 1px solid #f1f1f3;
}
.collab-year {
  flex: 0 0 auto;
  border-radius: 999px;
  background: #f8e6e7;
  color: #b80610;
  font-size: 12px;
  font-weight: 700;
  height: 24px;
  padding: 0 8px;
  display: inline-flex;
  align-items: center;
}
.collab-work p {
  margin: 0;
  color: #221f24;
  font-size: 14px;
  line-height: 1.45;
}
.collab-profile {
  display: block;
  margin: 8px 18px 16px;
  color: #b80610;
  font-weight: 700;
  font-size: 14px;
}
@media (max-width: 720px) {
  .collab-graph { min-height: 520px; }
  .collab-head { align-items: flex-start; flex-direction: column; }
}
.dark .collab-graph {
  background-color: #1c191f;
  background-image: none;
}
.dark .collab-modal-panel { background: #2a2630; }
.dark .collab-modal-head { border-bottom-color: #3a3540; }
.dark .collab-modal-head h3,
.dark .collab-work p { color: #f4f3f5; }
.dark .collab-work { border-bottom-color: #3a3540; }

body:has(.twin-sidebar) .twin-panel__head {
  height: auto;
  min-height: 78px;
  padding: 14px 12px 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-bottom: 1px solid var(--ink-200, #e5e7eb);
}

/* Profil üst bar: dil seçici ve hızlı menü */
.abis-dd { position: relative; }
.abis-top-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 44px;
  padding: 0 14px;
  border: 1px solid #e5e5e5;
  border-radius: 9999px;
  background: #fff;
  color: #404040;
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  transition: border-color .15s ease, color .15s ease;
}
.abis-top-btn i { font-size: 18px; }
.abis-top-btn .abis-top-btn__caret { font-size: 12px; }
.abis-top-btn--icon { width: 44px; padding: 0; justify-content: center; }
.abis-top-btn:hover,
.abis-top-btn[aria-expanded="true"] { border-color: #b80610; color: #b80610; }
.abis-dd__menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 60;
  min-width: 200px;
  padding: 6px;
  background: #fff;
  border: 1px solid #e5e5e5;
  border-radius: 14px;
  box-shadow: 0 12px 32px rgba(34, 31, 36, .14);
}
.abis-dd__menu[hidden] { display: none; }
.abis-dd__menu > a,
.abis-dd__menu > button {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 10px 12px;
  border: 0;
  border-radius: 10px;
  background: none;
  color: #404040;
  font-size: 14px;
  font-weight: 500;
  text-align: start;
  text-decoration: none;
  cursor: pointer;
}
.abis-dd__menu > a i { font-size: 18px; }
.abis-dd__menu > a:hover,
.abis-dd__menu > button:hover { background: #fef3f2; color: #b80610; }
.dark .abis-top-btn,
.dark .abis-dd__menu { background: #3f3a45; border-color: #525252; color: #fff; }
.dark .abis-dd__menu > a,
.dark .abis-dd__menu > button { color: #fff; }
.dark .abis-dd__menu > a:hover,
.dark .abis-dd__menu > button:hover { background: rgba(184, 6, 16, .2); color: #fff; }

/* Google Translate arka planda çalışır; kendi şeridi, araç ipucu ve vurguları gizlenir */
.abis-gt-host {
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
body { top: 0 !important; }
iframe.skiptranslate,
.goog-te-banner-frame,
.goog-te-balloon-frame,
#goog-gt-tt,
.goog-tooltip,
.VIpgJd-ZVi9od-ORHb-OEVmcd,
.VIpgJd-ZVi9od-aZ2wEe-wOHMyf,
.VIpgJd-ZVi9od-aZ2wEe-OiiCO { display: none !important; }
.goog-text-highlight,
.VIpgJd-yAWNEb-VIpgJd-fmcmS-sn54Q {
  background: none !important;
  box-shadow: none !important;
}
