/* ==========================================================================
   NOBU'I (UCHIHA NUBUI) - ARTLINE RP KARAKTER ARŞİVİ STİL DOSYASI
   Tema: Cyberpunk-Anime / Uchiha / Raiton (Mavi) & Katon (Kızıl) & Koyu Mor
   ========================================================================== */

:root {
  /* Ana Renk Paleti */
  --bg-deep: #070410;
  --bg-purple-dark: #110826;
  --bg-night-blue: #091128;
  --glass-bg: rgba(15, 10, 34, 0.72);
  --glass-bg-strong: rgba(12, 8, 28, 0.88);
  --glass-slot-empty: rgba(18, 12, 38, 0.48);
  --glass-slot-active: rgba(34, 12, 42, 0.82);

  /* Neon Vurgu Renkleri */
  --neon-red: #ff1e42;
  --neon-red-soft: rgba(255, 30, 66, 0.38);
  --neon-red-glow: 0 0 18px rgba(255, 30, 66, 0.55), 0 0 36px rgba(255, 30, 66, 0.22);

  --neon-blue: #00d4ff;
  --neon-blue-soft: rgba(0, 212, 255, 0.38);
  --neon-blue-glow: 0 0 18px rgba(0, 212, 255, 0.55), 0 0 36px rgba(0, 212, 255, 0.22);

  --neon-purple: #9d4edd;
  --neon-sakura: #ff85b3;
  --neon-gold: #ffb703;

  /* Metin Renkleri */
  --text-main: #f3f4f8;
  --text-secondary: #cbd5e1;
  --text-muted: #8b87a8;

  /* Font Aileleri */
  --font-display: 'Cinzel', serif;
  --font-body: 'Poppins', sans-serif;

  /* Geçişler */
  --transition-fast: 0.22s cubic-bezier(0.22, 1, 0.36, 1);
  --transition-smooth: 0.38s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ==========================================================================
   SIFIRLAMA VE TEMEL SAYFA AYARLARI
   ========================================================================== */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  background-color: var(--bg-deep);
  color: var(--text-main);
  font-family: var(--font-body);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
}

/* İnce Cyberpunk Scrollbar Tasarımı */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: rgba(8, 5, 18, 0.9);
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--neon-red), var(--neon-purple), var(--neon-blue));
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--neon-red);
}

/* ==========================================================================
   ARKA PLAN ŞABLON GÖRSELİ VE PARTİKÜL KATMANLARI
   ========================================================================== */
.bg-template-layer {
  position: fixed;
  inset: 0;
  z-index: -3;
  overflow: hidden;
  background: radial-gradient(circle at 30% 35%, #1c0d3d 0%, #090516 65%, #04020a 100%);
}

.bg-template-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  opacity: 0.28;
  filter: saturate(1.25) contrast(1.1) blur(3px);
  transform: scale(1.04);
}

.bg-overlay-vignette {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 25% 45%, rgba(0, 212, 255, 0.09) 0%, transparent 45%),
    radial-gradient(circle at 75% 40%, rgba(255, 30, 66, 0.11) 0%, transparent 50%),
    linear-gradient(180deg, rgba(6, 3, 15, 0.78) 0%, rgba(10, 6, 24, 0.62) 45%, rgba(6, 3, 15, 0.94) 100%);
}

.bg-cyber-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(157, 78, 221, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(157, 78, 221, 0.05) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(circle at 50% 50%, black 30%, transparent 85%);
}

#particleCanvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  pointer-events: none;
}

/* Dekoratif Japonca Kanji Watermarklar */
.kanji-watermark {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  writing-mode: vertical-rl;
  font-family: var(--font-display);
  font-size: 1.65rem;
  letter-spacing: 0.5rem;
  color: rgba(255, 255, 255, 0.04);
  pointer-events: none;
  z-index: -1;
  user-select: none;
}

.kanji-left {
  left: 12px;
}

.kanji-right {
  right: 12px;
}

/* ==========================================================================
   ÜST BAŞLIK & NAVİGASYON BARI (HEADER HUD)
   ========================================================================== */
.top-hud-bar {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 2.2rem;
  background: rgba(9, 5, 22, 0.82);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(255, 30, 66, 0.28);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.6);
}

.top-hud-bar::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--neon-blue), var(--neon-red), transparent);
}

.hud-brand {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.uchiha-crest {
  width: 44px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  filter: drop-shadow(0 0 10px rgba(255, 30, 66, 0.6));
  transition: transform var(--transition-smooth);
}

.uchiha-crest:hover {
  transform: scale(1.08) rotate(-4deg);
}

.uchiha-svg {
  width: 100%;
  height: 100%;
}

.brand-titles {
  display: flex;
  flex-direction: column;
}

.server-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  color: var(--neon-blue);
  text-transform: uppercase;
}

.pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--neon-red);
  box-shadow: 0 0 10px var(--neon-red);
  animation: pulseDot 1.8s infinite ease-in-out;
}

@keyframes pulseDot {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.45); opacity: 0.55; }
}

.main-character-title {
  font-family: var(--font-display);
  font-size: 1.55rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: #ffffff;
  text-shadow: 0 0 16px rgba(0, 212, 255, 0.45), 0 0 28px rgba(255, 30, 66, 0.35);
}

.alias-tag {
  font-size: 0.95rem;
  color: var(--neon-red);
  font-weight: 700;
  letter-spacing: 0.08em;
}

.hud-nav {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  flex-wrap: wrap;
}

.hud-nav-link {
  text-decoration: none;
  color: var(--text-secondary);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.48rem 0.95rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(20, 12, 42, 0.55);
  clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px);
  transition: all var(--transition-fast);
}

.hud-nav-link:hover,
.hud-nav-link.active {
  color: #fff;
  border-color: var(--neon-red);
  box-shadow: var(--neon-red-glow);
  background: rgba(255, 30, 66, 0.16);
}

.hud-action-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  cursor: pointer;
  color: var(--text-main);
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 500;
  padding: 0.48rem 0.95rem;
  background: linear-gradient(135deg, rgba(157, 78, 221, 0.25), rgba(0, 212, 255, 0.18));
  border: 1px solid rgba(0, 212, 255, 0.45);
  clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px);
  transition: all var(--transition-fast);
}

.hud-action-btn:hover {
  border-color: var(--neon-blue);
  box-shadow: var(--neon-blue-glow);
  transform: translateY(-1px);
}

/* ==========================================================================
   ANA ŞABLON İSKELETİ VE CYBERPUNK-ANIME PANEL TASARIMI
   ========================================================================== */
.archive-wrapper {
  max-width: 1640px;
  margin: 0 auto;
  padding: 1.6rem 2rem 3rem;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.template-master-grid {
  display: grid;
  grid-template-columns: minmax(480px, 5.2fr) minmax(540px, 6.8fr);
  gap: 1.8rem;
  align-items: stretch;
}

/* Köşeli Glassmorphism Panel */
.cyber-panel {
  position: relative;
  background: var(--glass-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(157, 78, 221, 0.28);
  box-shadow:
    0 18px 50px rgba(0, 0, 0, 0.65),
    inset 0 0 28px rgba(157, 78, 221, 0.08);
  padding: 1.5rem;
  border-radius: 4px;
  overflow: hidden;
}

/* Anime / Cyberpunk Köşe Braketleri */
.panel-corner {
  position: absolute;
  width: 16px;
  height: 16px;
  pointer-events: none;
  z-index: 4;
}

.corner-tl {
  top: 0;
  left: 0;
  border-top: 2px solid var(--neon-blue);
  border-left: 2px solid var(--neon-blue);
  box-shadow: -2px -2px 10px rgba(0, 212, 255, 0.45);
}

.corner-tr {
  top: 0;
  right: 0;
  border-top: 2px solid var(--neon-red);
  border-right: 2px solid var(--neon-red);
  box-shadow: 2px -2px 10px rgba(255, 30, 66, 0.45);
}

.corner-bl {
  bottom: 0;
  left: 0;
  border-bottom: 2px solid var(--neon-red);
  border-left: 2px solid var(--neon-red);
  box-shadow: -2px 2px 10px rgba(255, 30, 66, 0.45);
}

.corner-br {
  bottom: 0;
  right: 0;
  border-bottom: 2px solid var(--neon-blue);
  border-right: 2px solid var(--neon-blue);
  box-shadow: 2px 2px 10px rgba(0, 212, 255, 0.45);
}

/* Panel Üst Başlığı */
.panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 1rem;
  margin-bottom: 1.25rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  position: relative;
}

.panel-header::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 140px;
  height: 2px;
  background: linear-gradient(90deg, var(--neon-red), var(--neon-blue));
}

.panel-kicker {
  display: block;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.24em;
  color: var(--neon-blue);
  text-transform: uppercase;
}

.panel-title {
  font-family: var(--font-display);
  font-size: 1.38rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: #ffffff;
  text-shadow: 0 0 12px rgba(255, 30, 66, 0.4);
}

.active-gear-counter,
.timeline-count-badge,
.power-tier-badge {
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.38rem 0.85rem;
  background: rgba(255, 30, 66, 0.16);
  border: 1px solid rgba(255, 30, 66, 0.55);
  color: #ffd6de;
  box-shadow: 0 0 14px rgba(255, 30, 66, 0.25);
  clip-path: polygon(6px 0, 100% 0, 100% calc(100% - 6px), calc(100% - 6px) 100%, 0 100%, 0 6px);
  white-space: nowrap;
}

/* ==========================================================================
   SOL BÖLÜM: KARAKTER VİTRİNİ & DİNAMİK EKİPMAN KUTUCUKLARI
   ========================================================================== */
.left-character-panel {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.character-equipment-stage {
  display: grid;
  grid-template-columns: 1fr minmax(210px, 260px) 1fr;
  gap: 0.9rem;
  align-items: center;
  margin: 0.35rem 0 1.2rem;
  position: relative;
}

.equipment-column {
  display: flex;
  flex-direction: column;
  gap: 1.05rem;
  z-index: 3;
}

/* Ekipman Slot Kutucuğu (Şablon Boş/Dolu Kutular) */
.equipment-slot-card {
  position: relative;
  min-height: 110px;
  padding: 0.8rem 0.9rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: var(--glass-slot-empty);
  border: 1px solid rgba(157, 78, 221, 0.32);
  clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
  cursor: pointer;
  transition: all var(--transition-smooth);
  user-select: none;
}

/* Karakter Görseline Uzanan HUD Bağlantı Çizgileri */
.equipment-col-left .equipment-slot-card::after {
  content: '';
  position: absolute;
  top: 50%;
  right: -14px;
  width: 14px;
  height: 2px;
  background: rgba(157, 78, 221, 0.45);
  transition: background var(--transition-fast), box-shadow var(--transition-fast);
}

.equipment-col-right .equipment-slot-card::before {
  content: '';
  position: absolute;
  top: 50%;
  left: -14px;
  width: 14px;
  height: 2px;
  background: rgba(157, 78, 221, 0.45);
  transition: background var(--transition-fast), box-shadow var(--transition-fast);
}

/* Boş Slot Tasarımı */
.equipment-slot-card.is-empty {
  border-style: dashed;
  border-color: rgba(148, 163, 184, 0.25);
  opacity: 0.78;
}

.equipment-slot-card.is-empty:hover {
  opacity: 1;
  border-style: solid;
  border-color: rgba(0, 212, 255, 0.55);
  box-shadow: 0 0 18px rgba(0, 212, 255, 0.22);
  transform: translateY(-2px);
}

/* Dolu / Aktif Ekipman Slotu (Örn: T1 Kıyafet) */
.equipment-slot-card.is-active {
  background: linear-gradient(135deg, rgba(42, 11, 36, 0.9), rgba(14, 18, 48, 0.92));
  border: 1px solid var(--neon-red);
  box-shadow:
    0 0 20px rgba(255, 30, 66, 0.38),
    inset 0 0 18px rgba(255, 30, 66, 0.16);
  animation: activeSlotPulse 3s infinite ease-in-out;
}

@keyframes activeSlotPulse {
  0%, 100% {
    box-shadow: 0 0 18px rgba(255, 30, 66, 0.35), inset 0 0 16px rgba(255, 30, 66, 0.14);
  }
  50% {
    box-shadow: 0 0 28px rgba(255, 30, 66, 0.65), 0 0 42px rgba(0, 212, 255, 0.25), inset 0 0 22px rgba(255, 30, 66, 0.26);
  }
}

.equipment-slot-card.is-active:hover {
  transform: translateY(-3px) scale(1.02);
  border-color: #ff5c77;
}

.equipment-col-left .equipment-slot-card.is-active::after,
.equipment-col-right .equipment-slot-card.is-active::before {
  background: var(--neon-red);
  box-shadow: 0 0 10px var(--neon-red);
}

.slot-top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.4rem;
}

.slot-category-label {
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.equipment-slot-card.is-active .slot-category-label {
  color: var(--neon-blue);
}

.slot-tier-pill {
  font-family: var(--font-display);
  font-size: 0.68rem;
  font-weight: 800;
  padding: 0.12rem 0.48rem;
  border-radius: 2px;
  letter-spacing: 0.08em;
}

.slot-tier-pill.tier-active {
  background: linear-gradient(135deg, var(--neon-red), #b8001f);
  color: #ffffff;
  box-shadow: 0 0 12px rgba(255, 30, 66, 0.7);
}

.slot-tier-pill.tier-empty {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-muted);
}

.slot-main-body {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin: 0.45rem 0;
}

.slot-icon-box {
  width: 38px;
  height: 38px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  clip-path: polygon(6px 0, 100% 0, 100% calc(100% - 6px), calc(100% - 6px) 100%, 0 100%, 0 6px);
}

.equipment-slot-card.is-active .slot-icon-box {
  background: rgba(255, 30, 66, 0.2);
  border-color: rgba(255, 30, 66, 0.65);
  box-shadow: 0 0 14px rgba(255, 30, 66, 0.4);
}

.slot-item-titles {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.slot-item-name {
  font-family: var(--font-display);
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text-muted);
  line-height: 1.25;
}

.equipment-slot-card.is-active .slot-item-name {
  color: #ffffff;
  text-shadow: 0 0 12px rgba(255, 30, 66, 0.85), 0 0 22px rgba(0, 212, 255, 0.45);
}

.slot-item-sub {
  font-size: 0.71rem;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.equipment-slot-card.is-active .slot-item-sub {
  color: #ffd0d9;
}

.slot-footer-hint {
  font-size: 0.63rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(148, 163, 184, 0.55);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.equipment-slot-card.is-active .slot-footer-hint {
  color: var(--neon-blue);
}

/* Merkezdeki Uchiha Nubui Karakter Çerçevesi */
.character-visual-frame {
  position: relative;
  height: 410px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.chakra-aura {
  position: absolute;
  inset: 12px;
  border-radius: 12px;
  pointer-events: none;
  z-index: 0;
  filter: blur(22px);
  opacity: 0.65;
  animation: auraBreath 4s infinite alternate ease-in-out;
}

.aura-raiton {
  background: radial-gradient(circle at 25% 50%, rgba(0, 212, 255, 0.55), transparent 65%);
}

.aura-katon {
  background: radial-gradient(circle at 75% 50%, rgba(255, 30, 66, 0.55), transparent 65%);
  animation-delay: 2s;
}

@keyframes auraBreath {
  0% { transform: scale(0.95); opacity: 0.45; }
  100% { transform: scale(1.06); opacity: 0.82; }
}

.character-portrait-box {
  position: relative;
  width: 100%;
  height: 100%;
  border: 1px solid rgba(255, 30, 66, 0.45);
  background: #080412;
  clip-path: polygon(16px 0, 100% 0, 100% calc(100% - 16px), calc(100% - 16px) 100%, 0 100%, 0 16px);
  box-shadow:
    0 0 28px rgba(0, 0, 0, 0.85),
    0 0 20px rgba(0, 212, 255, 0.22),
    0 0 20px rgba(255, 30, 66, 0.22);
  overflow: hidden;
  z-index: 1;
}

.character-stage-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* bg.jpg içindeki Uchiha Nubui tam merkezde olduğu için karakteri ideal kadrajlar */
  object-position: 50% 65%;
  transform: scale(1.18);
  transition: transform 0.6s ease;
}

.character-portrait-box:hover .character-stage-img {
  transform: scale(1.24);
}

.portrait-scanline {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    transparent 50%,
    rgba(0, 212, 255, 0.04) 51%,
    transparent 52%
  );
  background-size: 100% 6px;
  pointer-events: none;
}

.portrait-bottom-fade {
  position: absolute;
  inset: auto 0 0 0;
  height: 38%;
  background: linear-gradient(to top, rgba(7, 4, 16, 0.95) 8%, transparent 100%);
  pointer-events: none;
}

.character-floating-badge {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.32rem 0.85rem;
  background: rgba(10, 6, 24, 0.88);
  border: 1px solid rgba(255, 30, 66, 0.6);
  box-shadow: 0 0 14px rgba(255, 30, 66, 0.4);
  white-space: nowrap;
  clip-path: polygon(6px 0, 100% 0, 100% calc(100% - 6px), calc(100% - 6px) 100%, 0 100%, 0 6px);
}

.sharingan-mini-icon {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--neon-red);
  box-shadow: 0 0 8px var(--neon-red);
}

.char-rank-text {
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: #fff;
  text-transform: uppercase;
}

/* Aktif Ekipman Durum Çubuğu */
.equipment-status-bar {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.75rem 1rem;
  background: rgba(18, 10, 38, 0.78);
  border-left: 3px solid var(--neon-red);
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  border-right: 1px solid rgba(255, 255, 255, 0.07);
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  margin-bottom: 1rem;
}

.status-bar-indicator {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--neon-blue);
  box-shadow: 0 0 12px var(--neon-blue);
  flex-shrink: 0;
}

.status-bar-content {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.status-bar-label {
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: var(--neon-blue);
}

.status-bar-text {
  font-size: 0.82rem;
  color: var(--text-main);
}

/* Karakter Mini Kimlik Özeti */
.char-quick-meta {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.65rem;
}

.meta-chip {
  background: rgba(14, 9, 30, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 0.6rem 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  clip-path: polygon(6px 0, 100% 0, 100% calc(100% - 6px), calc(100% - 6px) 100%, 0 100%, 0 6px);
}

.meta-label {
  font-size: 0.63rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  color: var(--text-muted);
}

.meta-value {
  font-size: 0.8rem;
  font-weight: 600;
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  flex-wrap: wrap;
}

.dormant-tag {
  font-size: 0.68rem;
  font-weight: 500;
  color: #94a3b8;
  background: rgba(255, 255, 255, 0.06);
  border: 1px dashed rgba(255, 255, 255, 0.2);
  padding: 0.06rem 0.4rem;
  border-radius: 3px;
}

.secret-tag {
  font-size: 0.66rem;
  font-weight: 600;
  color: var(--neon-red);
  background: rgba(255, 30, 66, 0.14);
  border: 1px solid rgba(255, 30, 66, 0.45);
  padding: 0.06rem 0.4rem;
  border-radius: 3px;
}

.focus-tag {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--neon-blue);
  background: rgba(0, 212, 255, 0.14);
  border: 1px solid rgba(0, 212, 255, 0.45);
  padding: 0.06rem 0.42rem;
  border-radius: 3px;
}

.el-tag {
  font-size: 0.72rem;
  padding: 0.1rem 0.42rem;
  border-radius: 3px;
  font-weight: 600;
}

.el-raiton {
  background: rgba(0, 212, 255, 0.16);
  color: var(--neon-blue);
  border: 1px solid rgba(0, 212, 255, 0.4);
}

.el-katon {
  background: rgba(255, 30, 66, 0.16);
  color: #ff6b84;
  border: 1px solid rgba(255, 30, 66, 0.4);
}

/* ==========================================================================
   SAĞ BÖLÜM: OTOMATİK KARAKTER GELİŞİMİ (TIMELINE) SİSTEMİ
   Şablon Görseldeki Sollu-Sağlı (Fotoğraf | Metin / Metin | Fotoğraf) Yapı
   ========================================================================== */
.right-timeline-panel {
  display: flex;
  flex-direction: column;
}

.timeline-controls {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.search-box input {
  background: rgba(10, 6, 24, 0.85);
  border: 1px solid rgba(157, 78, 221, 0.4);
  color: var(--text-main);
  font-family: var(--font-body);
  font-size: 0.8rem;
  padding: 0.42rem 0.85rem;
  width: 200px;
  outline: none;
  clip-path: polygon(6px 0, 100% 0, 100% calc(100% - 6px), calc(100% - 6px) 100%, 0 100%, 0 6px);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.search-box input:focus {
  border-color: var(--neon-blue);
  box-shadow: 0 0 14px rgba(0, 212, 255, 0.3);
}

.timeline-scroll-container {
  position: relative;
  max-height: 590px;
  overflow-y: auto;
  padding: 0.6rem 0.6rem 0.6rem 0.2rem;
}

/* Ortadaki Dikey Zaman Tüneli Ekseni */
.timeline-axis-line {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 2px;
  background: linear-gradient(
    180deg,
    var(--neon-blue),
    var(--neon-red),
    var(--neon-purple),
    var(--neon-blue)
  );
  box-shadow: 0 0 12px rgba(255, 30, 66, 0.5);
  z-index: 1;
}

.timeline-entries-wrapper {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
  position: relative;
  z-index: 2;
}

/* Her Bir Gelişim Satırı: Sol Kutu | Orta Düğüm | Sağ Kutu */
.timeline-row {
  display: grid;
  grid-template-columns: 1fr 42px 1fr;
  align-items: stretch;
  gap: 0.65rem;
  opacity: 0;
  transform: translateY(16px);
  animation: fadeUpTimeline 0.5s forwards ease-out;
}

@keyframes fadeUpTimeline {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Çift Sayılı Satırlarda Görsel ve Metin Kutularının Yer Değiştirmesi (Sollu-Sağlı Şablon) */
.timeline-row.is-reversed .timeline-media-box {
  order: 3;
}

.timeline-row.is-reversed .timeline-node-col {
  order: 2;
}

.timeline-row.is-reversed .timeline-text-box {
  order: 1;
}

/* Ortadaki Sharingan / Chakra Düğümü */
.timeline-node-col {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.timeline-node-dot {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #120824;
  border: 2px solid var(--neon-red);
  box-shadow: 0 0 14px var(--neon-red), inset 0 0 8px rgba(255, 30, 66, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 800;
  color: #ffffff;
  z-index: 2;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.timeline-row:hover .timeline-node-dot {
  transform: scale(1.18);
  border-color: var(--neon-blue);
  box-shadow: 0 0 18px var(--neon-blue);
}

/* Görsel Önizleme Kutusu */
.timeline-media-box {
  position: relative;
  min-height: 195px;
  background: var(--glass-bg-strong);
  border: 1px solid rgba(0, 212, 255, 0.35);
  clip-path: polygon(12px 0, 100% 0, 100% calc(100% - 12px), calc(100% - 12px) 100%, 0 100%, 0 12px);
  overflow: hidden;
  cursor: pointer;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.55);
  transition: all var(--transition-smooth);
}

.timeline-media-box:hover {
  border-color: var(--neon-blue);
  box-shadow: var(--neon-blue-glow);
  transform: translateY(-3px);
}

.timeline-thumb-img {
  width: 100%;
  height: 100%;
  min-height: 195px;
  max-height: 240px;
  object-fit: cover;
  display: block;
  transition: transform 0.55s cubic-bezier(0.16, 1, 0.3, 1), filter 0.35s ease;
}

.timeline-media-box:hover .timeline-thumb-img {
  transform: scale(1.09);
  filter: contrast(1.08) brightness(1.06);
}

.media-hover-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(8, 4, 20, 0.88) 0%, rgba(8, 4, 20, 0.2) 55%, transparent 100%);
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  padding: 0.75rem 0.9rem;
  opacity: 0.88;
  transition: opacity var(--transition-fast);
}

.timeline-media-box:hover .media-hover-overlay {
  opacity: 1;
}

.zoom-cta-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.28rem 0.65rem;
  background: rgba(0, 212, 255, 0.22);
  border: 1px solid rgba(0, 212, 255, 0.65);
  color: #ffffff;
  backdrop-filter: blur(6px);
  clip-path: polygon(5px 0, 100% 0, 100% calc(100% - 5px), calc(100% - 5px) 100%, 0 100%, 0 5px);
}

.media-step-tag {
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--neon-sakura);
}

/* Metin ve Başlık Kutusu */
.timeline-text-box {
  background: var(--glass-bg-strong);
  border: 1px solid rgba(255, 30, 66, 0.35);
  padding: 1.1rem 1.2rem;
  clip-path: polygon(12px 0, 100% 0, 100% calc(100% - 12px), calc(100% - 12px) 100%, 0 100%, 0 12px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 0.65rem;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.55);
  transition: all var(--transition-smooth);
}

.timeline-text-box:hover {
  border-color: var(--neon-red);
  box-shadow: var(--neon-red-glow);
  transform: translateY(-3px);
}

.timeline-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.timeline-day-badge {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--neon-red);
  background: rgba(255, 30, 66, 0.14);
  border: 1px solid rgba(255, 30, 66, 0.4);
  padding: 0.16rem 0.55rem;
}

.timeline-date-text {
  font-size: 0.72rem;
  color: var(--text-muted);
}

.timeline-entry-title {
  font-family: var(--font-display);
  font-size: 1.06rem;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: 0.04em;
  line-height: 1.35;
}

.timeline-entry-desc {
  font-size: 0.83rem;
  color: var(--text-secondary);
  line-height: 1.68;
  white-space: pre-line;
  max-height: 220px;
  overflow-y: auto;
  padding-right: 0.5rem;
  margin-top: 0.45rem;
}

.timeline-read-more-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: 0.5rem;
  padding: 0.32rem 0.72rem;
  background: rgba(0, 212, 255, 0.14);
  border: 1px solid rgba(0, 212, 255, 0.45);
  color: var(--neon-blue);
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  cursor: pointer;
  clip-path: polygon(5px 0, 100% 0, 100% calc(100% - 5px), calc(100% - 5px) 100%, 0 100%, 0 5px);
  transition: all var(--transition-fast);
}

.timeline-read-more-btn:hover {
  background: var(--neon-blue);
  color: #06030f;
  box-shadow: var(--neon-blue-glow);
}

.timeline-tags-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  flex-wrap: wrap;
  padding-top: 0.45rem;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.timeline-tags-left {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  flex-wrap: wrap;
}

.timeline-mini-tag {
  font-size: 0.68rem;
  font-weight: 500;
  padding: 0.12rem 0.5rem;
  background: rgba(157, 78, 221, 0.16);
  border: 1px solid rgba(157, 78, 221, 0.38);
  color: #e2c6ff;
  border-radius: 2px;
}

/* ==========================================================================
   ORTA BÖLÜM 1: KARAKTER ROL HİKAYESİ & KÜNYE (BIO / LORE)
   ========================================================================== */
.bio-layout-grid {
  display: grid;
  grid-template-columns: 310px 1fr;
  gap: 1.5rem;
  align-items: stretch;
}

.bio-id-card {
  background: rgba(10, 6, 24, 0.72);
  border: 1px solid rgba(255, 30, 66, 0.35);
  padding: 1.1rem;
  clip-path: polygon(12px 0, 100% 0, 100% calc(100% - 12px), calc(100% - 12px) 100%, 0 100%, 0 12px);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.bio-avatar-frame {
  width: 100%;
  height: 230px;
  border: 1px solid rgba(0, 212, 255, 0.4);
  overflow: hidden;
  background: #070410;
  clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
}

.bio-avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  transition: transform 0.5s ease;
}

.bio-avatar-frame:hover .bio-avatar-img {
  transform: scale(1.06);
}

.bio-id-meta {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.bio-meta-row {
  display: flex;
  flex-direction: column;
  padding: 0.42rem 0.65rem;
  background: rgba(255, 255, 255, 0.03);
  border-left: 2px solid var(--neon-red);
}

.bio-meta-row span {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--neon-blue);
}

.bio-meta-row strong {
  font-size: 0.82rem;
  color: #ffffff;
}

.bio-story-content {
  background: rgba(10, 6, 24, 0.58);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 1.35rem 1.5rem;
  clip-path: polygon(12px 0, 100% 0, 100% calc(100% - 12px), calc(100% - 12px) 100%, 0 100%, 0 12px);
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

.bio-quote-banner {
  font-family: var(--font-display);
  font-size: 0.96rem;
  font-weight: 600;
  color: #ffd6de;
  padding: 0.85rem 1.1rem;
  background: linear-gradient(90deg, rgba(255, 30, 66, 0.18), rgba(0, 212, 255, 0.08));
  border-left: 3px solid var(--neon-red);
  letter-spacing: 0.03em;
}

.bio-paragraphs {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.72;
}

/* ==========================================================================
   ORTA BÖLÜM 2: KARAKTER İLİŞKİLERİ & KLAN BAĞLARI (RELATIONSHIPS)
   ========================================================================== */
.relation-filter-tabs {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  flex-wrap: wrap;
}

.rel-filter-btn {
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.42rem 0.88rem;
  color: var(--text-secondary);
  background: rgba(16, 10, 34, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.12);
  clip-path: polygon(6px 0, 100% 0, 100% calc(100% - 6px), calc(100% - 6px) 100%, 0 100%, 0 6px);
  transition: all var(--transition-fast);
}

.rel-filter-btn:hover,
.rel-filter-btn.active {
  color: #ffffff;
  background: rgba(255, 30, 66, 0.22);
  border-color: var(--neon-red);
  box-shadow: var(--neon-red-glow);
}

.relations-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 1.15rem;
}

.relation-card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: rgba(12, 8, 28, 0.82);
  border: 1px solid rgba(157, 78, 221, 0.3);
  padding: 1rem;
  clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
  transition: all var(--transition-smooth);
  gap: 0.8rem;
}

.relation-card:hover {
  transform: translateY(-4px);
}

/* İlişki Türüne Göre Neon Çerçeveler */
.relation-card.rel-sensei {
  border-color: rgba(0, 212, 255, 0.6);
  background: linear-gradient(135deg, rgba(8, 24, 48, 0.88), rgba(16, 10, 36, 0.9));
  box-shadow: 0 0 20px rgba(0, 212, 255, 0.18);
}

.relation-card.rel-sensei:hover {
  box-shadow: var(--neon-blue-glow);
}

.relation-card.rel-friend {
  border-color: rgba(77, 182, 172, 0.55);
}

.relation-card.rel-uchiha {
  border-color: rgba(255, 30, 66, 0.38);
}

.relation-card.rel-uchiha:hover {
  border-color: var(--neon-red);
  box-shadow: var(--neon-red-glow);
}

.relation-card.rel-enemy {
  border-color: #ff1e42;
  background: linear-gradient(135deg, rgba(48, 8, 20, 0.9), rgba(16, 6, 18, 0.92));
  box-shadow: 0 0 22px rgba(255, 30, 66, 0.32);
}

.rel-card-top {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.rel-avatar-wrap {
  width: 68px;
  height: 68px;
  flex-shrink: 0;
  border-radius: 6px;
  overflow: hidden;
  background: #080412;
  border: 1px solid rgba(255, 255, 255, 0.18);
  position: relative;
}

.relation-card.rel-sensei .rel-avatar-wrap {
  border-color: var(--neon-blue);
  box-shadow: 0 0 12px rgba(0, 212, 255, 0.45);
}

.relation-card.rel-uchiha .rel-avatar-wrap {
  border-color: rgba(255, 30, 66, 0.65);
}

.relation-card.rel-enemy .rel-avatar-wrap {
  border-color: #ff1e42;
  box-shadow: 0 0 14px rgba(255, 30, 66, 0.65);
}

.rel-avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  transition: transform 0.4s ease;
}

.relation-card:hover .rel-avatar-img {
  transform: scale(1.1);
}

.rel-head-info {
  display: flex;
  flex-direction: column;
  gap: 0.18rem;
  min-width: 0;
}

.rel-role-badge {
  display: inline-block;
  align-self: flex-start;
  font-size: 0.63rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.1rem 0.48rem;
  border-radius: 2px;
}

.badge-sensei {
  background: rgba(0, 212, 255, 0.2);
  color: var(--neon-blue);
  border: 1px solid rgba(0, 212, 255, 0.55);
}

.badge-friend {
  background: rgba(77, 182, 172, 0.2);
  color: #64ffda;
  border: 1px solid rgba(77, 182, 172, 0.55);
}

.badge-uchiha {
  background: rgba(255, 30, 66, 0.18);
  color: #ff8da1;
  border: 1px solid rgba(255, 30, 66, 0.45);
}

.badge-enemy {
  background: rgba(255, 30, 66, 0.35);
  color: #ffffff;
  border: 1px solid #ff1e42;
  box-shadow: 0 0 10px rgba(255, 30, 66, 0.5);
}

.rel-char-name {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.2;
}

.rel-char-sub {
  font-size: 0.72rem;
  color: var(--text-muted);
}

.rel-desc-text {
  font-size: 0.79rem;
  color: var(--text-secondary);
  line-height: 1.54;
}

.rel-footer-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 0.45rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 0.68rem;
  color: var(--text-muted);
}

/* ==========================================================================
   ALT BÖLÜM: DETAYLI STAT VE KLAN ÖZELLİKLERİ PANELİ
   ========================================================================== */
.rpg-matrix-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.matrix-column {
  background: rgba(10, 6, 24, 0.58);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 1.2rem;
  clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.matrix-subtitle {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding-bottom: 0.6rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.subtitle-accent {
  color: var(--neon-red);
}

/* Element Kartları (Raiton & Katon) */
.element-cards-stack {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.element-card {
  display: flex;
  align-items: flex-start;
  gap: 0.9rem;
  padding: 0.95rem;
  background: rgba(16, 11, 36, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.1);
  clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.element-card:hover {
  transform: translateX(4px);
}

.card-raiton {
  border-left: 3px solid var(--neon-blue);
}

.card-raiton:hover {
  box-shadow: 0 0 20px rgba(0, 212, 255, 0.25);
}

.card-katon {
  border-left: 3px solid var(--neon-red);
}

.card-katon:hover {
  box-shadow: 0 0 20px rgba(255, 30, 66, 0.25);
}

.element-icon-wrap {
  width: 52px;
  height: 52px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  border-radius: 6px;
  font-family: var(--font-display);
}

.card-raiton .element-icon-wrap {
  background: rgba(0, 212, 255, 0.14);
  border: 1px solid rgba(0, 212, 255, 0.45);
  color: var(--neon-blue);
}

.card-katon .element-icon-wrap {
  background: rgba(255, 30, 66, 0.14);
  border: 1px solid rgba(255, 30, 66, 0.45);
  color: var(--neon-red);
}

.element-kanji {
  font-size: 1.35rem;
  font-weight: 800;
  line-height: 1;
}

.element-bolt {
  font-size: 0.75rem;
  margin-top: 2px;
}

.element-info h4 {
  font-family: var(--font-display);
  font-size: 0.92rem;
  color: #ffffff;
}

.element-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 0.35rem;
}

.element-mastery-tag {
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.12rem 0.48rem;
  background: rgba(255, 255, 255, 0.07);
  color: var(--text-secondary);
}

.element-info p {
  font-size: 0.79rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* Uchiha Klanı & Sharingan Kutusu */
.clan-feature-box {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.clan-visual-header {
  display: flex;
  align-items: center;
  gap: 0.95rem;
  padding: 0.75rem;
  background: linear-gradient(135deg, rgba(255, 30, 66, 0.16), rgba(15, 10, 34, 0.8));
  border: 1px solid rgba(255, 30, 66, 0.4);
  clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px);
}

.sharingan-eye-container {
  width: 54px;
  height: 54px;
  flex-shrink: 0;
  filter: drop-shadow(0 0 12px rgba(255, 30, 66, 0.75));
}

.sharingan-svg {
  width: 100%;
  height: 100%;
  animation: sharinganSpin 14s linear infinite;
}

.clan-visual-header:hover .sharingan-svg {
  animation-duration: 3s;
}

@keyframes sharinganSpin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.clan-title-block h4 {
  font-family: var(--font-display);
  font-size: 1rem;
  color: #ffffff;
}

.clan-sub {
  font-size: 0.75rem;
  color: #ff8da1;
  font-weight: 500;
}

.clan-desc {
  font-size: 0.81rem;
  color: var(--text-secondary);
  line-height: 1.58;
}

.clan-perks-list {
  display: flex;
  flex-direction: column;
  gap: 0.48rem;
}

.perk-pill {
  font-size: 0.78rem;
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.07);
  padding: 0.45rem 0.7rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.perk-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--neon-red);
  box-shadow: 0 0 8px var(--neon-red);
  flex-shrink: 0;
}

/* RPG Stat Barları */
.stats-bars-wrapper {
  display: flex;
  flex-direction: column;
  gap: 0.82rem;
}

.stat-row-item {
  display: flex;
  flex-direction: column;
  gap: 0.28rem;
}

.stat-row-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.8rem;
}

.stat-name {
  font-weight: 600;
  color: var(--text-main);
}

.stat-rank-val {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--neon-blue);
  font-size: 0.78rem;
}

.stat-bar-track {
  width: 100%;
  height: 8px;
  background: rgba(255, 255, 255, 0.07);
  border-radius: 2px;
  overflow: hidden;
  position: relative;
}

.stat-bar-fill {
  height: 100%;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--neon-red), var(--neon-purple), var(--neon-blue));
  box-shadow: 0 0 12px rgba(0, 212, 255, 0.5);
  transition: width 1s cubic-bezier(0.22, 1, 0.36, 1);
}

/* ==========================================================================
   FLOATING TOOLTIP (EKİPMAN HOVER DETAY KUTUSU)
   ========================================================================== */
.cyber-tooltip {
  position: fixed;
  z-index: 100;
  width: 290px;
  pointer-events: none;
  background: rgba(10, 6, 24, 0.96);
  backdrop-filter: blur(16px);
  border: 1px solid var(--neon-red);
  box-shadow:
    0 16px 40px rgba(0, 0, 0, 0.85),
    0 0 22px rgba(255, 30, 66, 0.45);
  padding: 0.95rem 1.05rem;
  clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
  opacity: 0;
  transform: translateY(8px) scale(0.97);
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.cyber-tooltip.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.tooltip-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.35rem;
}

.tooltip-slot-type {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: var(--neon-blue);
  text-transform: uppercase;
}

.tooltip-tier-badge {
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 800;
  padding: 0.1rem 0.5rem;
  background: var(--neon-red);
  color: #fff;
}

.tooltip-item-name {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 0.35rem;
}

.tooltip-item-desc {
  font-size: 0.78rem;
  color: var(--text-secondary);
  margin-bottom: 0.65rem;
  line-height: 1.48;
}

.tooltip-stats-list {
  display: flex;
  flex-direction: column;
  gap: 0.28rem;
  margin-bottom: 0.65rem;
  padding-top: 0.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.tooltip-stat-line {
  font-size: 0.75rem;
  color: #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.tooltip-stat-line strong {
  color: var(--neon-blue);
}

.tooltip-footer {
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #ff8da1;
}

/* ==========================================================================
   LIGHTBOX / MODAL (BÜYÜK GÖRSEL ÖNİZLEME EKRANI)
   ========================================================================== */
.lightbox-modal {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.28s ease;
}

.lightbox-modal.is-open {
  opacity: 1;
  pointer-events: auto;
}

.lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(5, 3, 12, 0.88);
  backdrop-filter: blur(12px);
}

.lightbox-content {
  position: relative;
  z-index: 2;
  max-width: 980px;
  width: 100%;
  background: rgba(12, 8, 28, 0.95);
  border: 1px solid rgba(0, 212, 255, 0.45);
  box-shadow: 0 25px 70px rgba(0, 0, 0, 0.9), 0 0 35px rgba(255, 30, 66, 0.3);
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.lightbox-close-btn {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 5;
  width: 36px;
  height: 36px;
  border: 1px solid rgba(255, 30, 66, 0.6);
  background: rgba(15, 8, 30, 0.9);
  color: #ffffff;
  font-size: 1rem;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.lightbox-close-btn:hover {
  background: var(--neon-red);
  box-shadow: var(--neon-red-glow);
}

.lightbox-image-stage {
  position: relative;
  width: 100%;
  max-height: 68vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #05030c;
  border: 1px solid rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

#lightboxImage {
  max-width: 100%;
  max-height: 66vh;
  object-fit: contain;
  display: block;
}

.lightbox-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 42px;
  height: 42px;
  background: rgba(10, 6, 24, 0.82);
  border: 1px solid rgba(0, 212, 255, 0.5);
  color: #ffffff;
  font-size: 1.6rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
}

.lightbox-nav-btn:hover {
  background: var(--neon-blue);
  color: #05030c;
  box-shadow: var(--neon-blue-glow);
}

.prev-btn { left: 12px; }
.next-btn { right: 12px; }

.lightbox-caption-box {
  padding: 0.4rem 0.25rem;
}

.lightbox-meta-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.35rem;
}

.lightbox-badge {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  padding: 0.15rem 0.6rem;
  background: rgba(255, 30, 66, 0.2);
  border: 1px solid var(--neon-red);
  color: #ffffff;
}

.lightbox-date {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.lightbox-title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: #ffffff;
  margin-bottom: 0.35rem;
}

.lightbox-desc {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.72;
  white-space: pre-line;
  max-height: 28vh;
  overflow-y: auto;
  padding-right: 0.5rem;
}

/* ==========================================================================
   ALT BİLGİ (FOOTER)
   ========================================================================== */
.archive-footer {
  text-align: center;
  padding: 1.4rem 1rem 2rem;
  font-size: 0.78rem;
  color: var(--text-muted);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  letter-spacing: 0.06em;
}

.archive-footer strong {
  color: #ffffff;
  font-family: var(--font-display);
}

/* ==========================================================================
   MOBİL VE TABLET UYUMLULUK (RESPONSIVE TASARIM)
   ========================================================================== */
@media (max-width: 1200px) {
  .template-master-grid {
    grid-template-columns: 1fr;
  }

  .timeline-scroll-container {
    max-height: none;
    overflow-y: visible;
  }

  .bio-layout-grid {
    grid-template-columns: 1fr;
  }

  .rpg-matrix-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .top-hud-bar {
    flex-direction: column;
    align-items: flex-start;
    padding: 0.85rem 1.1rem;
  }

  .hud-nav {
    width: 100%;
    justify-content: space-between;
  }

  .archive-wrapper {
    padding: 1rem 0.9rem 2.2rem;
  }

  .character-equipment-stage {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  /* Mobilde Önce Karakter Görseli, Altında Ekipman Kutucukları */
  .character-visual-frame {
    order: -1;
    height: 340px;
  }

  .equipment-column {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }

  .equipment-col-left .equipment-slot-card::after,
  .equipment-col-right .equipment-slot-card::before {
    display: none;
  }

  .char-quick-meta {
    grid-template-columns: 1fr;
  }

  /* Mobilde Zaman Tüneli Alt Alta Akar */
  .timeline-axis-line {
    left: 16px;
    transform: none;
  }

  .timeline-row,
  .timeline-row.is-reversed {
    grid-template-columns: 32px 1fr;
    gap: 0.75rem;
  }

  .timeline-row .timeline-node-col,
  .timeline-row.is-reversed .timeline-node-col {
    order: 1;
    grid-row: span 2;
    align-items: flex-start;
    padding-top: 0.5rem;
  }

  .timeline-row .timeline-media-box,
  .timeline-row.is-reversed .timeline-media-box {
    order: 2;
  }

  .timeline-row .timeline-text-box,
  .timeline-row.is-reversed .timeline-text-box {
    order: 3;
  }

  .kanji-watermark {
    display: none;
  }
}
