/* ============================================================
   CINEVERSE — Kişi Detay Sayfası CSS
   Bağımlılık: core.css
   ============================================================ */

/* ── Filmografi sekme animasyonu ────────────────────────── */
.cv-credits-section [data-credit-type] {
  transition: opacity .25s, transform .25s;
}
.cv-credits-section [data-credit-type].cv-hidden {
  display: none;
}

/* ── Bio collapse ────────────────────────────────────────── */
.cv-bio-text[data-cv-collapsible]:not(.is-expanded) {
  max-height: 160px;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to bottom, #000 60%, transparent);
  mask-image: linear-gradient(to bottom, #000 60%, transparent);
}
.cv-bio-toggle {
  background: none;
  border: none;
  cursor: pointer;
  margin-top: 8px;
  color: var(--amber);
  font-size: 13px;
  font-weight: 600;
  padding: 0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.cv-bio-toggle::after {
  content: '▼';
  font-size: 10px;
  transition: transform .2s;
}
.cv-bio-toggle.is-expanded::after {
  transform: rotate(180deg);
}

/* ── Sosyal linkler ─────────────────────────────────────── */
.cv-person-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}
.cv-follower-count {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-mute);
}

/* ── Responsive ─────────────────────────────────────────── */
@media (max-width: 768px) {
  .cv-person-hero-grid {
    grid-template-columns: 1fr;
  }
  .cv-person-portrait {
    display: flex;
    justify-content: center;
  }
  .cv-person-photo {
    max-width: 200px;
  }
  .cv-credits-tabs {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
}

/* ============================================================
   CINEVERSE — KİŞİ DETAY GÜNCELLEMESİ (Mockup v2)
   ============================================================ */

/* HERO */
.cv-person-hero {
  position: relative;
  overflow: hidden;
  padding: 0;
  min-height: 600px;
}
.cv-person-hero-backdrop {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center 20%;
  filter: blur(60px) saturate(1.2);
  transform: scale(1.1);
  opacity: 0.15;
}
.cv-person-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, var(--bg) 0%, rgba(7,8,12,0.5) 60%, transparent 100%);
}
.cv-person-hero-grid {
  position: relative;
  z-index: 2;
  padding: 60px 0;
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 48px;
  align-items: center;
}
.cv-person-portrait-wrap {
  position: relative;
  width: 280px;
  aspect-ratio: 3/4;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 32px 80px rgba(0,0,0,0.8);
  flex-shrink: 0;
}
.cv-person-portrait {
  width: 100%; height: 100%;
  background: linear-gradient(155deg, var(--bg-3), var(--bg-2));
  background-size: cover;
  background-position: center top;
}
.cv-portrait-tag {
  position: absolute;
  bottom: 16px; left: 16px; right: 16px;
  background: rgba(0,0,0,0.5);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 10px;
  padding: 10px 14px;
  font-family: var(--font-mono);
  font-size: 10px;
  color: rgba(255,255,255,0.8);
  letter-spacing: 1px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.cv-portrait-live {
  color: var(--crimson);
  display: flex;
  align-items: center;
  gap: 6px;
}
.cv-portrait-live::before {
  content: '';
  width: 6px; height: 6px;
  background: var(--crimson);
  border-radius: 50%;
  animation: cv-pulse 1.5s infinite;
}

/* KİŞİ BİLGİ */
.cv-person-info { display: flex; flex-direction: column; gap: 0; }
.cv-person-breadcrumb {
  display: flex; align-items: center; gap: 8px;
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-mute);
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.cv-person-breadcrumb a { color: var(--text-mute); }
.cv-person-breadcrumb a:hover { color: var(--amber); }
.cv-person-breadcrumb i { font-size: 8px; }

.cv-person-role-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  background: rgba(230,57,70,0.1);
  border: 1px solid rgba(230,57,70,0.3);
  border-radius: 20px;
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--crimson);
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 14px;
  width: fit-content;
}

.cv-person-name {
  font-family: var(--font-display);
  font-size: clamp(42px, 5.5vw, 90px);
  line-height: 0.92;
  letter-spacing: -1px;
  margin-bottom: 10px;
  word-break: break-word;
  overflow-wrap: break-word;
}
.cv-person-name em {
  font-family: var(--font-italic);
  font-style: italic;
  font-weight: 300;
  color: var(--amber);
  display: block;
  font-size: 0.78em;
}

.cv-person-tagline {
  font-family: var(--font-italic);
  font-style: italic;
  font-size: 18px;
  color: var(--text-dim);
  max-width: 560px;
  margin-bottom: 24px;
  line-height: 1.5;
}

.cv-person-hero-stats {
  display: flex;
  gap: 28px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}
.cv-person-stat {
  display: flex;
  flex-direction: column;
  padding: 8px 24px 8px 0;
  border-right: 1px solid var(--border);
}
.cv-person-stat:last-child { border: none; padding-right: 0; }
.cv-person-stat .num {
  font-family: var(--font-display);
  font-size: 32px;
  line-height: 1;
  letter-spacing: 1px;
  color: var(--amber);
}
.cv-person-stat .label {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-mute);
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-top: 4px;
}

.cv-person-hero-meta {
  display: flex; gap: 20px; flex-wrap: wrap;
  color: var(--text-dim); font-size: 13px;
  margin-bottom: 24px;
}
.cv-person-hero-meta span { display: flex; align-items: center; gap: 8px; }
.cv-person-hero-meta i { color: var(--text-mute); font-size: 11px; }

/* TABS */
.cv-person-tabs {
  display: flex;
  border-bottom: 1px solid var(--border);
  overflow-x: auto;
  scrollbar-width: none;
  margin-bottom: 32px;
}
.cv-person-tabs::-webkit-scrollbar { display: none; }
.cv-person-tab {
  background: none; border: none;
  color: var(--text-dim);
  padding: 14px 18px;
  font-family: var(--font-sans); font-size: 13px; font-weight: 500;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  display: flex; align-items: center; gap: 8px;
  white-space: nowrap;
  margin-bottom: -1px;
  transition: all 0.15s;
}
.cv-person-tab:hover { color: var(--text); }
.cv-person-tab.active { color: var(--amber); border-bottom-color: var(--amber); }
.cv-person-tab .cv-tab-count {
  background: var(--bg-3); color: var(--text-mute);
  padding: 2px 7px; border-radius: 10px;
  font-size: 10px; font-family: var(--font-mono);
}
.cv-person-tab.active .cv-tab-count { background: rgba(245,130,10,0.15); color: var(--amber); }

/* ROLLER GALERİSİ */
.cv-roles-gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.cv-role-card {
  position: relative;
  aspect-ratio: 3/4;
  border-radius: 14px;
  overflow: hidden;
  cursor: pointer;
  border: 1px solid var(--border);
  transition: transform 0.3s;
}
.cv-role-card:hover { transform: translateY(-6px); }
.cv-role-card::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 30%, rgba(0,0,0,0.95) 100%);
  z-index: 2;
}
.cv-role-bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
}
.cv-role-content {
  position: absolute; inset: 0;
  z-index: 3; padding: 18px;
  display: flex; flex-direction: column; justify-content: flex-end;
}
.cv-role-lead-tag {
  position: absolute;
  top: 12px; left: 12px;
  background: rgba(245,130,10,0.9);
  color: #fff;
  padding: 3px 8px;
  border-radius: 4px;
  font-family: var(--font-mono);
  font-size: 9px; letter-spacing: 0.5px; font-weight: 700;
  z-index: 4;
}
.cv-role-char {
  font-family: var(--font-display);
  font-size: 22px; letter-spacing: 1px; line-height: 1;
  margin-bottom: 4px; color: white;
}
.cv-role-film {
  font-family: var(--font-italic);
  font-style: italic; font-size: 12px;
  color: var(--text-dim); margin-bottom: 8px;
}
.cv-role-footer {
  display: flex; align-items: center; justify-content: space-between;
  font-size: 10px; font-family: var(--font-mono); color: var(--text-mute);
}
.cv-role-footer .score { color: var(--imdb); display: flex; align-items: center; gap: 4px; }

/* FİLMOGRAFİ TABLOSU */
.cv-filmo-table {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
}
.cv-filmo-row {
  display: grid;
  grid-template-columns: 64px 48px 1fr 1fr 88px 88px 48px;
  gap: 14px;
  padding: 14px 20px;
  align-items: center;
  border-bottom: 1px solid var(--border);
  transition: background 0.15s;
  cursor: pointer;
  font-size: 13px;
}
.cv-filmo-row:last-child { border-bottom: none; }
.cv-filmo-row:hover { background: rgba(255,255,255,0.02); }
.cv-filmo-row.cv-filmo-header {
  background: var(--bg-3);
  font-family: var(--font-mono);
  font-size: 10px; color: var(--text-mute);
  letter-spacing: 1px; text-transform: uppercase;
  cursor: default;
}
.cv-filmo-row.cv-filmo-header:hover { background: var(--bg-3); }
.cv-fr-year { font-family: var(--font-display); font-size: 18px; letter-spacing: 1px; color: var(--amber); }
.cv-fr-poster { width: 40px; height: 60px; border-radius: 5px; background: var(--bg-3); background-size: cover; background-position: center; }
.cv-fr-title { font-weight: 600; }
.cv-fr-char { color: var(--text-dim); font-style: italic; font-size: 12px; }
.cv-fr-imdb { font-family: var(--font-mono); font-size: 12px; color: var(--imdb); font-weight: 600; display: flex; align-items: center; gap: 5px; }
.cv-fr-type {
  font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.5px;
  padding: 3px 7px; background: var(--bg-3); border: 1px solid var(--border);
  border-radius: 4px; text-align: center; font-weight: 600; color: var(--text-mute);
}
.cv-fr-type.lead { color: var(--amber); border-color: rgba(245,130,10,0.3); background: rgba(245,130,10,0.08); }
.cv-fr-type.sup  { color: var(--violet); border-color: rgba(167,139,250,0.3); }

/* CO-STARS */
.cv-costar-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
}
.cv-costar-card {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px 12px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
  color: var(--text);
  display: block;
}
.cv-costar-card:hover { border-color: var(--amber); transform: translateY(-3px); color: var(--text); }
.cv-costar-img {
  width: 64px; height: 64px;
  border-radius: 50%;
  background: var(--bg-3) center/cover;
  margin: 0 auto 10px;
  border: 2px solid var(--border);
  overflow: hidden;
}
.cv-costar-img img { width: 100%; height: 100%; object-fit: cover; }
.cv-costar-name { font-weight: 600; font-size: 12px; margin-bottom: 5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cv-costar-films {
  font-family: var(--font-mono); font-size: 10px; color: var(--amber);
  background: rgba(245,130,10,0.1); padding: 2px 7px; border-radius: 10px;
  display: inline-block; border: 1px solid rgba(245,130,10,0.2);
}

/* KARİYER GRAFİĞİ */
.cv-career-chart-card {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 28px;
}
.cv-career-chart {
  display: flex;
  align-items: flex-end;
  gap: 10px;
  height: 180px;
  margin-top: 20px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 10px;
}
.cv-career-bar {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  cursor: pointer;
}
.cv-career-bar-fill {
  width: 100%;
  background: linear-gradient(180deg, var(--amber), var(--crimson));
  border-radius: 4px 4px 0 0;
  min-height: 8px;
  position: relative;
  transition: opacity 0.15s;
}
.cv-career-bar:hover .cv-career-bar-fill { opacity: 0.8; }
.cv-career-bar-score {
  position: absolute;
  top: -22px; left: 50%; transform: translateX(-50%);
  font-family: var(--font-mono); font-size: 11px;
  color: var(--imdb); font-weight: 700;
  white-space: nowrap;
}
.cv-career-bar-year { font-family: var(--font-mono); font-size: 10px; color: var(--text-mute); letter-spacing: 0.5px; }

/* ÖDÜLLER */
.cv-awards-list { display: flex; flex-direction: column; gap: 10px; }
.cv-award-row {
  display: grid;
  grid-template-columns: 60px 1fr 180px 90px;
  gap: 16px;
  align-items: center;
  padding: 14px 18px;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 10px;
  cursor: pointer;
  transition: border-color 0.15s;
}
.cv-award-row:hover { border-color: var(--amber); }
.cv-award-row.win { background: linear-gradient(90deg, rgba(245,197,24,0.08), transparent 60%); border-color: rgba(245,197,24,0.2); }
.cv-award-year { font-family: var(--font-display); font-size: 24px; letter-spacing: 1px; color: var(--text-dim); }
.cv-award-name { font-weight: 600; font-size: 14px; margin-bottom: 2px; }
.cv-award-cat { font-size: 11px; color: var(--text-mute); font-family: var(--font-mono); letter-spacing: 0.5px; }
.cv-award-film { font-size: 13px; color: var(--text-dim); font-style: italic; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cv-award-pill {
  display: inline-flex; align-items: center;
  padding: 4px 10px; border-radius: 5px;
  font-size: 10px; font-family: var(--font-mono);
  letter-spacing: 0.5px; font-weight: 600;
  float: right;
}
.cv-award-pill.win { background: rgba(245,197,24,0.15); color: var(--imdb); border: 1px solid rgba(245,197,24,0.3); }
.cv-award-pill.nom { background: var(--bg-3); color: var(--text-dim); border: 1px solid var(--border); }

/* SIDEBAR */
.cv-person-main {
  padding: 40px 0 100px;
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 40px;
}
.cv-person-sidebar { display: flex; flex-direction: column; gap: 18px; position: sticky; top: 80px; align-self: flex-start; }
.cv-person-side-card {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 20px;
}
.cv-person-side-card h3 {
  font-family: var(--font-display);
  font-size: 18px; letter-spacing: 1.5px;
  margin-bottom: 16px;
  display: flex; align-items: center; justify-content: space-between;
}
.cv-person-side-card h3 .tag {
  font-family: var(--font-mono); font-size: 10px;
  color: var(--amber); font-weight: 400; letter-spacing: 1px;
}

.cv-data-row {
  display: flex; justify-content: space-between;
  padding: 10px 0; border-top: 1px solid var(--border); gap: 10px;
}
.cv-data-row:first-of-type { border: none; padding-top: 0; }
.cv-data-row .label {
  font-family: var(--font-mono); font-size: 10px;
  color: var(--text-mute); letter-spacing: 1px; text-transform: uppercase;
  flex-shrink: 0; width: 120px;
}
.cv-data-row .val { font-size: 13px; text-align: right; color: var(--text); }
.cv-data-row .val a { color: var(--text); border-bottom: 1px dashed var(--text-mute); text-decoration: none; }
.cv-data-row .val a:hover { color: var(--amber); border-color: var(--amber); }

.cv-social-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.cv-social-btn {
  padding: 12px; background: var(--bg-3); border: 1px solid var(--border);
  border-radius: 8px; color: var(--text-dim); display: flex;
  align-items: center; justify-content: center; font-size: 14px;
  transition: all 0.15s; text-decoration: none; cursor: pointer;
}
.cv-social-btn:hover { color: var(--amber); border-color: var(--amber); }

/* Responsive */
@media (max-width: 1200px) {
  .cv-person-main { grid-template-columns: 1fr; }
  .cv-person-sidebar { position: static; flex-direction: row; flex-wrap: wrap; }
  .cv-person-sidebar > * { flex: 1 1 280px; }
  .cv-roles-gallery { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  .cv-person-hero-grid { grid-template-columns: 1fr; padding: 40px 0; }
  .cv-person-portrait-wrap { width: 200px; margin: 0 auto; }
  .cv-filmo-row { grid-template-columns: 48px 40px 1fr 80px 50px; }
  .cv-filmo-row > :nth-child(4), .cv-filmo-row > :nth-child(7) { display: none; }
}
@media (max-width: 640px) {
  .cv-person-hero-grid { padding: 32px 0; }
  .cv-roles-gallery { grid-template-columns: 1fr; }
  .cv-gallery-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ── Galeri (film-detail CSS ile aynı) ── */
.cv-gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.cv-gallery-item {
  aspect-ratio: 4/3;
  border-radius: 10px;
  background: var(--bg-3) center/cover;
  cursor: pointer; transition: transform 0.2s;
  display: block;
  border: 1px solid var(--border);
}
.cv-gallery-item:hover { transform: scale(1.03); }

/* Sosyal buton boyutu */
.cv-social-btn {
  width: 46px; height: 46px;
  background: var(--bg-3); border: 1px solid var(--border);
  border-radius: 10px; color: var(--text-dim);
  display: flex; align-items: center; justify-content: center;
  font-size: 16px; transition: all .15s; text-decoration: none;
  cursor: pointer;
}
.cv-social-btn:hover { color: var(--amber); border-color: var(--amber); }
.cv-social-grid { display: flex; flex-wrap: wrap; gap: 8px; }
