@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800;900&family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&display=swap');

:root {
  --bg-base: #030305;
  --bg-surface: #0a0a0f;
  --bg-surface-elevated: #111116;
  --bg-card: rgba(18, 18, 24, 0.6);
  --bg-card-hover: rgba(24, 24, 30, 0.8);
  
  --primary: #E1306C;
  --primary-glow: rgba(225, 48, 108, 0.3);
  --primary-soft: rgba(225, 48, 108, 0.1);
  
  --secondary: #8B5CF6;
  --secondary-glow: rgba(139, 92, 246, 0.3);
  
  --accent-cyan: #06B6D4;
  --accent-amber: #F59E0B;
  --accent-emerald: #10B981;

  --border-light: rgba(255, 255, 255, 0.05);
  --border-medium: rgba(255, 255, 255, 0.1);
  --border-strong: rgba(255, 255, 255, 0.2);

  --text-pure: #ffffff;
  --text-strong: #f1f5f9;
  --text-muted: #94a3b8;
  --text-dim: #64748b;

  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Plus Jakarta Sans', sans-serif;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 32px;
  
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-smooth: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  background-color: var(--bg-base);
  color: var(--text-pure);
  font-family: var(--font-body);
  line-height: 1.6;
  overflow-x: visible;
  -webkit-font-smoothing: antialiased;
}

/* Background Effects */
body::before {
  content: '';
  position: fixed;
  top: -20%; right: -10%;
  width: 50vw; height: 50vw;
  background: radial-gradient(circle, var(--primary-glow) 0%, transparent 60%);
  filter: blur(100px);
  z-index: -1;
  pointer-events: none;
}
body::after {
  content: '';
  position: fixed;
  bottom: -20%; left: -10%;
  width: 50vw; height: 50vw;
  background: radial-gradient(circle, var(--secondary-glow) 0%, transparent 60%);
  filter: blur(100px);
  z-index: -1;
  pointer-events: none;
}

/* Scrollbar */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--bg-surface); }
::-webkit-scrollbar-thumb { background: var(--border-medium); border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: var(--primary); }

/* LAYOUT */
.app-container {
  display: flex;
  height: 100vh;
  overflow: hidden;
}

/* SIDEBAR */
.sidebar {
  width: 280px;
  background: rgba(10, 10, 15, 0.7);
  backdrop-filter: blur(20px);
  border-right: 1px solid var(--border-light);
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  transition: var(--transition-smooth);
  z-index: 1000;
}
.sidebar-header {
  padding: 32px 24px;
  display: flex;
  align-items: center;
  gap: 14px;
}
.logo-box {
  width: 44px; height: 44px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 24px var(--primary-glow);
}
.brand-title {
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.03em;
}
.brand-title span { color: var(--primary); }

.nav-area {
  flex: 1; overflow-y: auto; padding: 0 16px 24px;
}
.nav-group-title {
  padding: 24px 16px 8px;
  font-size: 11px; font-weight: 800; color: var(--text-dim);
  text-transform: uppercase; letter-spacing: 0.15em;
}
.nav-btn {
  display: flex; align-items: center; gap: 14px;
  padding: 12px 16px;
  border-radius: var(--radius-md);
  color: var(--text-muted);
  font-size: 14px; font-weight: 600;
  cursor: pointer;
  transition: var(--transition-fast);
  border: 1px solid transparent;
  user-select: none;
  margin-bottom: 4px;
}
.nav-btn svg { width: 20px; height: 20px; stroke: currentColor; stroke-width: 2.2; }
.nav-btn:hover { color: var(--text-strong); background: var(--border-light); }
.nav-btn.active {
  color: var(--text-pure);
  background: var(--primary-soft);
  border-color: rgba(225, 48, 108, 0.2);
  box-shadow: inset 0 2px 12px rgba(225, 48, 108, 0.05);
}
.nav-btn.active svg { stroke: var(--primary); filter: drop-shadow(0 0 6px var(--primary-glow)); }

/* MAIN CONTENT */
.main-area {
  flex: 1; 
  display: flex; flex-direction: column;
  position: relative;
}
.top-nav {
  height: 80px; padding: 0 40px;
  display: flex; align-items: center; justify-content: space-between;
  background: linear-gradient(to bottom, var(--bg-base) 0%, transparent 100%);
  z-index: 10;
}
.view-area {
  flex: 1; overflow-y: auto; overflow-x: visible; padding: 0 40px 60px;
  scroll-behavior: smooth;
}

.panel {
  display: none;
  animation: fadeUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
.panel.active { display: block; }

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

.animate-fade-up {
  animation: fadeUp 0.5s ease forwards;
}

.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }
.delay-4 { animation-delay: 0.4s; }
.delay-5 { animation-delay: 0.5s; }

/* HEADER & TYPOGRAPHY */
.page-header { margin-bottom: 40px; }
.headline {
  display: flex; align-items: center; gap: 16px; margin-bottom: 12px;
}
.headline svg { width: 36px; height: 36px; stroke: var(--primary); }
.headline h1 { 
  font-family: var(--font-heading); font-size: 38px; font-weight: 800; 
  letter-spacing: -0.02em; 
  background: linear-gradient(to right, #fff, #a5b4fc);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
.subtitle { color: var(--text-muted); font-size: 16px; max-width: 600px; }

/* GRID & CARDS */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.card {
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  padding: 32px;
  box-shadow: 0 16px 40px rgba(0,0,0,0.2);
  display: flex; flex-direction: column;
}

/* FORM ELEMENTS */
.form-group { margin-bottom: 24px; }
.form-label { 
  display: block; font-size: 13px; font-weight: 700; color: var(--text-strong); 
  margin-bottom: 10px; text-transform: uppercase; letter-spacing: 0.05em;
}

.input-field {
  width: 100%; height: 56px; padding: 0 20px;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-md);
  color: var(--text-pure); font-family: var(--font-body); font-size: 15px;
  transition: var(--transition-fast);
}
.input-area {
  width: 100%; min-height: 120px; padding: 16px 20px;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-md);
  color: var(--text-pure); font-family: var(--font-body); font-size: 15px;
  transition: var(--transition-fast); resize: vertical;
}
.input-field:focus, .input-area:focus {
  background: rgba(225,48,108,0.03);
  box-shadow: 0 0 0 4px var(--primary-soft);
}

.input-row {
  display: flex;
  gap: 12px;
  align-items: center;
}

.btn-fetch {
  height: 56px;
  padding: 0 20px;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-md);
  color: var(--accent-cyan);
  cursor: pointer;
  transition: var(--transition-fast);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 13px;
  font-weight: 700;
  gap: 8px;
}

.btn-fetch:hover {
  background: var(--primary-soft);
  border-color: var(--primary);
  color: var(--text-pure);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px var(--primary-glow);
}

.btn-fetch svg {
  width: 18px;
  height: 18px;
}

.btn-fetch.loading {
  opacity: 0.6;
  pointer-events: none;
}

.btn-fetch.loading svg {
  animation: rotate 1s linear infinite;
}

@keyframes rotate {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* ADVANCED SELECTOR (PILLS) */
.pill-group { display: flex; flex-wrap: wrap; gap: 10px; }
.pill {
  padding: 10px 18px;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-medium);
  border-radius: 40px; cursor: pointer;
  font-size: 14px; font-weight: 600; color: var(--text-muted);
  transition: var(--transition-fast); user-select: none;
}
.pill:hover { border-color: var(--border-strong); color: var(--text-pure); }
.pill.active {
  background: var(--primary-soft); color: var(--primary);
  border-color: var(--primary);
  box-shadow: 0 4px 12px var(--primary-glow);
}

/* BUTTONS */
.btn {
  height: 56px; padding: 0 28px;
  border-radius: var(--radius-md); font-family: var(--font-body);
  font-size: 16px; font-weight: 700;
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  cursor: pointer; transition: var(--transition-fast); border: none;
}
.btn-primary {
  background: linear-gradient(135deg, var(--primary), #b01a4e);
  color: white; box-shadow: 0 10px 24px var(--primary-glow);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 32px rgba(225, 48, 108, 0.4);
}
.btn-full { width: 100%; }

.btn.loading {
  color: transparent !important;
  pointer-events: none;
  position: relative;
}

.btn.loading::after {
  content: "";
  position: absolute;
  width: 20px;
  height: 20px;
  top: 50%;
  left: 50%;
  margin: -10px 0 0 -10px;
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

/* RESULTS AND SKELETONS */
.result-box {
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-lg);
  padding: 24px;
}

/* SKELETON LOADER ANIMATION */
.skeleton-wrap { display: flex; flex-direction: column; gap: 16px; padding: 24px 0; }
.skeleton-line {
  height: 16px; background: var(--border-medium);
  border-radius: 8px;
  position: relative; overflow: hidden;
}
.skeleton-line::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.08), transparent);
  animation: shimmer 1.5s infinite;
}
@keyframes shimmer { 100% { transform: translateX(100%); } }
.sk-title { width: 40%; height: 24px; margin-bottom: 12px; }
.sk-text { width: 100%; }
.sk-text-short { width: 70%; }
.sk-circle { width: 80px; height: 80px; border-radius: 50%; }

/* RESULT SVG RADAR INFO */
.radar-container {
  display: flex; align-items: center; justify-content: center;
  position: relative; width: 180px; height: 180px; margin: 0 auto 24px;
}
.score-value {
  position: absolute;
  font-family: var(--font-heading); font-size: 42px; font-weight: 800;
  text-shadow: 0 0 20px var(--primary-glow);
}

/* BADGES */
.badge {
  padding: 6px 12px; border-radius: 8px; font-size: 11px; font-weight: 800;
  text-transform: uppercase; letter-spacing: 0.1em;
}
.badge-purple { background: rgba(139,92,246,0.15); color: #c4b5fd; }
.badge-pink { background: rgba(225,48,108,0.15); color: #f9a8d4; }
.badge-cyan { background: rgba(6,182,212,0.15); color: #67e8f9; }

/* TIMELINE UI */
.timeline { display: flex; flex-direction: column; gap: 16px; margin-top: 16px; }
.tl-item {
  display: flex; gap: 16px;
  background: var(--bg-surface-elevated); border: 1px solid var(--border-medium);
  padding: 16px; border-radius: var(--radius-md);
}
.tl-time {
  width: 60px; font-family: var(--font-heading); font-size: 14px; font-weight: 800;
  color: var(--primary); display: flex; flex-direction: column; align-items: center;
}
.tl-content { flex: 1; }
.tl-title { font-size: 15px; font-weight: 700; color: var(--text-pure); margin-bottom: 4px; }
.tl-desc { font-size: 14px; color: var(--text-muted); line-height: 1.5; }

/* TOAST */
#toast-container { position: fixed; bottom: 40px; right: 40px; z-index: 2000; display: flex; flex-direction: column; gap: 12px; }
.toast {
  background: var(--bg-surface-elevated); border: 1px solid var(--border-strong);
  padding: 16px 24px; border-radius: var(--radius-md); box-shadow: 0 20px 40px rgba(0,0,0,0.5);
  font-size: 14px; font-weight: 600; color: white;
  animation: toastIn 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
@keyframes toastIn { from { opacity: 0; transform: translateX(50px); } to { opacity: 1; transform: translateX(0); } }

/* --- V8 MODAL & PARSER --- */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(10px);
  z-index: 3000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s var(--transition-smooth);
}
.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}
.modal-content {
  width: 90%;
  max-width: 800px;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-xl);
  padding: 40px;
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.8);
  transform: scale(0.9);
  transition: transform 0.4s var(--transition-smooth);
}
.modal-overlay.active .modal-content {
  transform: scale(1);
}
.modal-header {
  margin-bottom: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.modal-title {
  font-family: var(--font-heading);
  font-size: 24px;
  font-weight: 800;
  color: var(--text-pure);
}
.modal-close {
  background: var(--border-light);
  border-radius: 50%;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text-muted);
}
.modal-body {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.source-area {
  width: 100%;
  height: 250px;
  background: rgba(0,0,0,0.3);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-md);
  color: var(--accent-cyan);
  font-family: monospace;
  font-size: 12px;
  padding: 16px;
  resize: none;
}
.source-area:focus {
  border-color: var(--accent-cyan);
  outline: none;
}
.parser-steps {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.6;
}
.parser-steps b {
  color: var(--text-pure);
}

/* ============================================================
   MOBILE RESPONSIVE — TAM MOBİL UYUM
   ============================================================ */

/* Mobile overlay (sidebar açıkken arka plan karartma) */
.m-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(4px);
  z-index: 999;
  opacity: 0;
  transition: opacity 0.3s ease;
  cursor: pointer;
}
.m-overlay.active {
  opacity: 1;
}

/* Hamburger menu butonu */
.m-toggle {
  display: none;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-md);
  width: 44px; height: 44px;
  align-items: center; justify-content: center;
  cursor: pointer;
  color: var(--text-pure);
  flex-shrink: 0;
  transition: var(--transition-fast);
}
.m-toggle:hover {
  background: var(--primary-soft);
  border-color: var(--primary);
  color: var(--primary);
}

/* ——— Breakpoint: Tablet altı (≤ 1024px) ——— */
@media (max-width: 1024px) {
  .view-area { padding: 0 24px 40px; }
  .top-nav { padding: 0 24px; height: 68px; }
  .headline h1 { font-size: 28px; }
  .grid-2 { grid-template-columns: 1fr; }
}

/* ——— Breakpoint: Mobil (≤ 768px) ——— */
@media (max-width: 768px) {
  /* Sidebar: off-canvas */
  .sidebar {
    position: fixed;
    top: 0; left: 0; bottom: 0;
    width: 280px;
    transform: translateX(-100%);
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 1000;
    box-shadow: 8px 0 40px rgba(0,0,0,0.6);
  }
  .sidebar.open {
    transform: translateX(0);
  }
  .m-overlay {
    display: block;
    pointer-events: none;
  }
  .m-overlay.active {
    pointer-events: auto;
  }
  .m-toggle {
    display: flex;
  }

  /* Main area tam genişlik */
  .main-area {
    width: 100%;
  }
  .top-nav {
    height: 60px;
    padding: 0 16px;
  }
  .view-area {
    padding: 0 16px 60px;
  }
  .page-header {
    margin-bottom: 24px;
  }
  .headline h1 {
    font-size: 22px;
    letter-spacing: -0.01em;
  }
  .headline svg {
    width: 26px; height: 26px;
  }
  .subtitle {
    font-size: 14px;
  }

  /* Cards */
  .card {
    padding: 20px;
    border-radius: var(--radius-lg);
  }
  .grid-2 {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  /* Buttons */
  .btn {
    height: 48px;
    font-size: 14px;
    padding: 0 20px;
  }
  .btn-fetch {
    height: 48px;
    padding: 0 14px;
  }
  .input-field {
    height: 48px;
    font-size: 14px;
  }

  /* Profil önizleyici */
  #preview-result .card {
    padding: 20px;
  }
  #preview-result [style*="display:flex;gap:28px"] {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  #preview-result [style*="display:flex;gap:20px;flex-wrap"] {
    justify-content: center;
  }
  #preview-posts {
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 3px !important;
  }

  /* Toast */
  #toast-container {
    bottom: 20px; right: 16px; left: 16px;
  }
  .toast {
    padding: 12px 16px;
    font-size: 13px;
  }

  /* Modal */
  .modal-content {
    padding: 24px;
    border-radius: var(--radius-lg);
  }
  .modal-title {
    font-size: 18px;
  }

  /* Pill groups */
  .pill {
    padding: 8px 14px;
    font-size: 13px;
  }

  /* Sidebar header küçük */
  .sidebar-header {
    padding: 24px 20px;
  }
  .brand-title {
    font-size: 18px;
  }
}

/* ——— Breakpoint: Küçük Mobil (≤ 400px) ——— */
@media (max-width: 400px) {
  .headline h1 { font-size: 19px; }
  .view-area { padding: 0 12px 48px; }
  .card { padding: 16px; }
  #preview-posts {
    grid-template-columns: repeat(2, 1fr) !important;
  }
  .sidebar { width: 260px; }
}

/* ============================================================
   PREMIUM UI ENHANCEMENTS
   ============================================================ */

/* Sidebar nav-btn için glow efekti */
.nav-btn.active {
  position: relative;
}
.nav-btn.active::before {
  content: '';
  position: absolute;
  left: 0; top: 20%; bottom: 20%;
  width: 3px;
  background: var(--primary);
  border-radius: 0 4px 4px 0;
  box-shadow: 0 0 10px var(--primary-glow);
}

/* Card hover efekti */
.card {
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.card:hover {
  border-color: var(--border-medium);
}

/* Profil önizleyici — stat kutucuğu premium görünüm */
.pv-stat-card {
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  text-align: center;
  min-width: 90px;
  transition: var(--transition-fast);
  cursor: pointer;
}
.pv-stat-card:hover {
  border-color: var(--primary);
  background: var(--primary-soft);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.4);
}

/* Post kartları hover efekti daha smooth */
#preview-posts > div {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
#preview-posts > div:hover {
  transform: scale(1.02);
  box-shadow: 0 8px 24px rgba(0,0,0,0.5);
  z-index: 2;
}

/* Highlights scroll */
#preview-highlights {
  scrollbar-width: thin;
  scrollbar-color: var(--border-medium) transparent;
}
#preview-highlights::-webkit-scrollbar { height: 4px; }
#preview-highlights::-webkit-scrollbar-thumb { background: var(--border-medium); border-radius: 4px; }

/* Btn secondary stili */
.btn-secondary {
  background: var(--bg-surface-elevated);
  color: var(--text-strong);
  border: 1px solid var(--border-medium);
}
.btn-secondary:hover {
  background: var(--border-light);
  border-color: var(--border-strong);
  transform: translateY(-1px);
}

/* Input focus glow */
.input-field:focus, .input-area:focus {
  border-color: var(--primary);
  outline: none;
}

/* Yükleme animasyonu için spinner */
@keyframes spin { to { transform: rotate(360deg); } }
.loading-spinner {
  width: 20px; height: 20px;
  border: 2px solid var(--border-medium);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

/* Top nav premium */
.top-nav {
  border-bottom: 1px solid var(--border-light);
  background: linear-gradient(to bottom, rgba(3,3,5,0.95) 0%, rgba(3,3,5,0) 100%);
}

#preview-username { letter-spacing: 0.02em; }

/* Post modal mobile */
@media (max-width: 768px) {
  #post-detail-modal > div {
    max-width: 100% !important;
    border-radius: var(--radius-lg) !important;
  }
}

/* ══════════════════════════════════════
   NEW PROFILE PREVIEWER PREMIUM UI
   ══════════════════════════════════════ */

.pv-main-container {
  display: flex; flex-direction: column; gap: 20px;
  animation: fadeUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.pv-header-premium {
  background: linear-gradient(145deg, rgba(15,15,22,0.8), rgba(10,10,15,0.95));
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  padding: 40px;
  display: flex; gap: 40px; align-items: center;
  position: relative; overflow: hidden;
}

.pv-header-premium::before {
  content: ''; position: absolute; top: -50%; left: -50%;
  width: 200%; height: 200%;
  background: radial-gradient(circle, var(--primary-soft) 0%, transparent 70%);
  opacity: 0.15; pointer-events: none;
}

.pv-avatar-box {
  position: relative; flex-shrink: 0;
  width: 120px; height: 120px;
}

.pv-ring {
  width: 100%; height: 100%; border-radius: 50%;
  padding: 4px; background: var(--border-medium);
  transition: var(--transition-smooth);
}

.pv-ring.has-story {
  background: conic-gradient(from 0deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888, #f09433);
  animation: rotateGlow 4s linear infinite;
}

@keyframes rotateGlow {
  0% { filter: drop-shadow(0 0 5px var(--primary-glow)); }
  50% { filter: drop-shadow(0 0 15px var(--primary-glow)); }
  100% { filter: drop-shadow(0 0 5px var(--primary-glow)); }
}

.pv-avatar-img {
  width: 100%; height: 100%; border-radius: 50%;
  object-fit: cover; border: 4px solid var(--bg-base);
  background: var(--bg-surface-elevated);
}

.pv-verified-badge {
  position: absolute; bottom: 8px; right: 8px;
  width: 28px; height: 28px; background: #3b82f6;
  border-radius: 50%; border: 3px solid var(--bg-base);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

.pv-info-content { flex: 1; min-width: 280px; }

.pv-name-row { display: flex; align-items: center; gap: 12px; margin-bottom: 6px; }
.pv-fullname { font-size: 26px; font-weight: 800; color: var(--text-pure); font-family: var(--font-heading); }
.pv-private-label {
  font-size: 10px; font-weight: 800; color: var(--accent-amber);
  background: rgba(245, 158, 11, 0.1); border: 1px solid rgba(245, 158, 11, 0.2);
  padding: 4px 10px; border-radius: 20px; text-transform: uppercase; letter-spacing: 0.1em;
}

.pv-username-row { font-size: 16px; color: var(--text-muted); font-weight: 600; margin-bottom: 16px; }
.pv-bio-text { font-size: 14.5px; color: var(--text-strong); line-height: 1.7; margin-bottom: 12px; }
.pv-link { color: var(--primary); font-weight: 700; text-decoration: none; font-size: 14px; transition: 0.2s; }
.pv-link:hover { color: var(--text-pure); text-decoration: underline; }

.pv-stats-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 10px; }
.pv-stat-card {
  background: rgba(255,255,255,0.03); border: 1px solid var(--border-light);
  border-radius: var(--radius-md); padding: 16px; text-align: center;
  transition: transform 0.2s, background 0.2s;
}
.pv-stat-card:hover { transform: translateY(-4px); background: rgba(255,255,255,0.06); border-color: var(--border-medium); }
.pv-stat-val { font-size: 24px; font-weight: 900; font-family: var(--font-heading); line-height: 1.2; }
.pv-stat-lbl { font-size: 10px; font-weight: 700; color: var(--text-dim); text-transform: uppercase; letter-spacing: 0.1em; margin-top: 4px; }

.pv-highlights-card { padding: 24px; gap: 20px; }
.pv-highlights-tray { display: flex; gap: 24px; overflow-x: auto; padding: 4px 4px 12px; scroll-behavior: smooth; }
.pv-highlights-tray::-webkit-scrollbar { height: 4px; }
.pv-tray-item { display: flex; flex-direction: column; align-items: center; gap: 10px; cursor: pointer; flex-shrink: 0; }
.pv-tray-circle {
  width: 72px; height: 72px; border-radius: 50%; padding: 2px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  transition: transform 0.2s;
}
.pv-tray-item:hover .pv-tray-circle { transform: scale(1.08); }
.pv-tray-img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; border: 3px solid var(--bg-base); background: var(--bg-surface-elevated); }
.pv-tray-label { font-size: 11px; font-weight: 700; color: var(--text-muted); max-width: 80px; text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.pv-posts-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 24px; border-bottom: 1px solid var(--border-light); padding-bottom: 16px; }
.pv-posts-grid { display: grid; gap: 4px; }
.pv-post-item { position: relative; aspect-ratio: 1; border-radius: 4px; overflow: hidden; cursor: pointer; background: var(--bg-surface-elevated); }
.pv-post-overlay {
  position: absolute; inset: 0; background: rgba(0,0,0,0.5);
  display: flex; align-items: center; justify-content: center; gap: 20px;
  opacity: 0; transition: opacity 0.2s;
}
.pv-post-item:hover .pv-post-overlay { opacity: 1; }
.pv-post-stat { display: flex; align-items: center; gap: 6px; color: #fff; font-weight: 800; font-size: 14px; }
.pv-post-img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; }
.pv-post-item:hover .pv-post-img { transform: scale(1.1); }
.pv-post-type-icon { position: absolute; top: 10px; right: 10px; filter: drop-shadow(0 2px 4px rgba(0,0,0,0.5)); }

@media (max-width: 1100px) {
  .pv-header-premium { flex-direction: column; text-align: center; padding: 40px 24px; }
  .pv-name-row { justify-content: center; flex-direction: column; }
  .pv-stats-grid { width: 100%; }
}

/* USER LIST MODAL */
.pv-user-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 400px;
  overflow-y: auto;
  padding-right: 4px;
}
.pv-user-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  transition: var(--transition-fast);
  cursor: pointer;
  text-decoration: none;
}
.pv-user-item:hover {
  background: rgba(255,255,255,0.05);
  border-color: var(--border-medium);
  transform: translateX(4px);
}
.pv-user-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--border-medium);
  background: var(--bg-surface-elevated);
}
.pv-user-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.pv-user-uname {
  font-size: 14px;
  font-weight: 800;
  color: var(--text-pure);
}
.pv-user-fname {
  font-size: 12px;
  color: var(--text-muted);
}

/* ══════════════════════════════════════════
   PROFİL PREVIEW ANİMASYONLARI
   ══════════════════════════════════════════ */

/* Skeleton — daha gelişmiş shimmer */
.skeleton-line::after {
  background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.06) 40%, rgba(255,255,255,0.12) 50%, rgba(255,255,255,0.06) 60%, transparent 100%);
  animation: shimmer 1.8s ease-in-out infinite;
}
@keyframes shimmer {
  0%   { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

/* Avatar giriş — fade + scale */
@keyframes avatarEnter {
  0%   { opacity: 0; transform: scale(0.7); filter: blur(8px); }
  60%  { opacity: 1; transform: scale(1.05); filter: blur(0); }
  100% { transform: scale(1); }
}
.pv-avatar-animate {
  animation: avatarEnter 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Profil bilgi alanı — fade + slide up */
@keyframes infoEnter {
  0%   { opacity: 0; transform: translateY(18px); }
  100% { opacity: 1; transform: translateY(0); }
}
.pv-info-animate {
  animation: infoEnter 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  animation-delay: 0.15s;
  opacity: 0;
}

/* Stat kartları — fade + slide up */
@keyframes statEnter {
  0%   { opacity: 0; transform: translateY(14px); }
  100% { opacity: 1; transform: translateY(0); }
}
.pv-stat-animate {
  animation: statEnter 0.45s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  opacity: 0;
}

/* Post kartları — stagger fade+scale */
@keyframes postEnter {
  0%   { opacity: 0; transform: scale(0.88); }
  100% { opacity: 1; transform: scale(1); }
}
.pv-post-item {
  opacity: 0;
}
.pv-post-item.post-visible {
  animation: postEnter 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Post hover — büyüme efekti */
.pv-post-item {
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.35s ease;
}
.pv-post-item:hover {
  transform: scale(1.04);
  box-shadow: 0 8px 30px rgba(0,0,0,0.5);
  z-index: 2;
}
.pv-post-img {
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}
.pv-post-item:hover .pv-post-img {
  transform: scale(1.12);
}
.pv-post-overlay {
  transition: opacity 0.3s ease;
  backdrop-filter: blur(2px);
}

/* Stat card hover — daha smooth */
.pv-stat-card {
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), background 0.3s ease, border-color 0.3s ease, box-shadow 0.35s ease;
}
.pv-stat-card:hover {
  transform: translateY(-6px) scale(1.02);
  background: rgba(255,255,255,0.07);
  border-color: var(--border-medium);
  box-shadow: 0 12px 30px rgba(0,0,0,0.3);
}

/* Result alanı giriş */
@keyframes resultEnter {
  0%   { opacity: 0; }
  100% { opacity: 1; }
}
#preview-result {
  animation: resultEnter 0.4s ease forwards;
}

/* Post modal responsive */
@media (max-width: 700px) {
  #post-detail-modal > div {
    flex-direction: column !important;
    max-height: 95vh;
    overflow-y: auto;
  }
  #post-detail-modal > div > div:first-child {
    flex: none !important;
    max-width: 100% !important;
    max-height: 50vw;
  }
}

@keyframes spin {
  to { transform: rotate(360deg); }
}
/* ─── BIO LINK PRO STYLES ─── */
@keyframes rainbow-move {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.rainbow-text {
  background: linear-gradient(270deg, #ff0080, #ff8c00, #ffe100, #00ff88, #00c8ff, #a855f7, #ff0080);
  background-size: 400% 400%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: rainbow-move 4s ease infinite;
}

.rainbow-tab {
  background: linear-gradient(270deg, #ff0080, #ff8c00, #ffe100, #00ff88, #00c8ff, #a855f7, #ff0080) !important;
  background-size: 400% 400% !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  background-clip: text !important;
  animation: rainbow-move 4s ease infinite !important;
  border-bottom: 2px solid transparent !important;
  position: relative;
}

.rainbow-tab::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(270deg, #ff0080, #ff8c00, #ffe100, #00ff88, #00c8ff, #a855f7, #ff0080);
  background-size: 400% 400%;
  animation: rainbow-move 4s ease infinite;
}

.biolink-tab-btn {
  position: relative;
  transition: all .2s;
}
.biolink-tab-btn:hover {
  color: var(--text-pure) !important;
}
.biolink-tab-btn.active {
  color: var(--primary) !important;
  border-bottom-color: var(--primary) !important;
}

.bl-theme-card:hover { opacity: .85; transform: scale(1.02); transition: all .15s; }
.active-theme { transform: scale(1.02); }
.bl-btn-style-card:hover { opacity: .85; }
.active-btnstyle { border-color: var(--primary) !important; }

.bl-link-item:hover { border-color: var(--border-strong) !important; }

@keyframes bl-fade-in {
  from { opacity:0; transform:translateY(8px); }
  to   { opacity:1; transform:translateY(0); }
}
.bl-fade-in { animation: bl-fade-in .4s ease forwards; }

/* Bio link page button hover */
.bio-page-btn {
  transition: transform .15s ease, opacity .15s ease, box-shadow .15s ease !important;
}
.bio-page-btn:hover {
  transform: scale(1.02) !important;
  opacity: .9 !important;
}

@keyframes float-particle {
  0%   { transform: translateY(0) rotate(0deg); opacity:.6; }
  100% { transform: translateY(-100vh) rotate(360deg); opacity:0; }
}