@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;600;700&display=swap');

/* --- 1. TEMEL AYARLAR VE DEĞİŞKENLER --- */
:root {
    --bg-color: #101119;
    --surface-color: #1c1c2b;
    --primary-color: #a855f7;
    --accent-color: #2dd4bf;
    --pink-color: #f472b6;
    --orange-color: #fb923c;
    --text-color: #e0e0e0;
    --text-muted: #94a3b8;
    --live-color: #4ade80;
    --border-color: rgba(255, 255, 255, 0.1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
    position: relative;
    overflow-x: hidden;
}

/* --- 2. ARKA PLAN EFEKTLERİ --- */
.background-container { position: fixed; top: 0; left: 0; width: 100%; height: 100%; z-index: -1; }
.blob { position: absolute; border-radius: 50%; filter: blur(120px); opacity: 0.4; will-change: transform; animation-play-state: paused; }
.live-background .blob { animation-play-state: running; }
.blob1 { width: 400px; height: 400px; background: var(--primary-color); top: -100px; left: -100px; animation: move1 25s infinite alternate; }
.blob2 { width: 500px; height: 500px; background: var(--accent-color); bottom: -150px; right: -150px; animation: move2 30s infinite alternate; }
.blob3 { width: 300px; height: 300px; background: var(--pink-color); top: 50%; right: -150px; animation: move3 28s infinite alternate; }
.blob4 { width: 350px; height: 350px; background: var(--orange-color); bottom: 50%; left: -100px; animation: move4 22s infinite alternate; }
@keyframes move1 { from { transform: translate(0, 0) scale(1) rotate(0deg); } to { transform: translate(20vw, 30vh) scale(1.2) rotate(180deg); } }
@keyframes move2 { from { transform: translate(0, 0) scale(1.2) rotate(0deg); } to { transform: translate(-30vw, -20vh) scale(0.8) rotate(-180deg); } }
@keyframes move3 { from { transform: translate(0, 0) scale(0.8) rotate(0deg); } to { transform: translate(-20vw, -30vh) scale(1.1) rotate(180deg); } }
@keyframes move4 { from { transform: translate(0, 0) scale(1.1) rotate(0deg); } to { transform: translate(30vw, 20vh) scale(0.9) rotate(-180deg); } }

.music-note { position: absolute; font-size: 28px; color: var(--accent-color); user-select: none; pointer-events: none; animation: float-away 3s ease-out forwards; z-index: 9999; text-shadow: 0 0 8px rgba(45, 212, 191, 0.7); }
@keyframes float-away { from { opacity: 1; transform: translateY(0) scale(1); } to { opacity: 0; transform: translateY(-100px) scale(0.5) rotate(20deg); } }

/* --- 3. ANA YAPI VE BAŞLIK --- */
.main-container { width: 100%; max-width: 960px; text-align: center; background: rgba(16, 17, 25, 0.5); padding: 40px; border-radius: 24px; backdrop-filter: blur(15px); -webkit-backdrop-filter: blur(15px); border: 1px solid var(--border-color); box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4); z-index: 1; animation: fadeIn 1s ease-out; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
header h1 { font-size: 3em; font-weight: 700; margin-bottom: 8px; background: linear-gradient(45deg, var(--text-color), var(--accent-color)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
header p { font-size: 1.1em; color: var(--text-muted); margin-bottom: 30px; }

/* --- 4. İSTATİSTİK MODÜLLERİ --- */
.stats-bar { display: grid; grid-template-columns: repeat(2, 1fr); gap: 15px; padding: 15px 0; margin-bottom: 40px; border-top: 1px solid var(--border-color); border-bottom: 1px solid var(--border-color); }
.stat-item { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.stat-value { font-size: 1.5em; font-weight: 600; color: var(--text-color); }
.stat-item .stat-value img { height: 24px; filter: none; }
.stat-label { font-size: 0.75em; color: var(--text-muted); text-transform: uppercase; letter-spacing: 1px; }

.recent-activity { margin-bottom: 30px; opacity: 0; transform: translateY(10px); transition: opacity 0.5s ease, transform 0.5s ease; }
.recent-activity.visible { opacity: 1; transform: translateY(0); }
.recent-activity h3 { font-size: 0.9em; text-transform: uppercase; color: var(--text-muted); margin-bottom: 15px; text-align: left; padding-left: 5px; letter-spacing: 1px; }
.recent-songs-scroller { display: flex; gap: 15px; overflow-x: auto; padding-bottom: 15px; scrollbar-width: thin; scrollbar-color: var(--primary-color) var(--surface-color); }
.recent-songs-scroller::-webkit-scrollbar { height: 8px; }
.recent-songs-scroller::-webkit-scrollbar-track { background: rgba(0,0,0,0.2); border-radius: 4px; }
.recent-songs-scroller::-webkit-scrollbar-thumb { background-color: var(--primary-color); border-radius: 4px; }

.recent-song { position: relative; flex-shrink: 0; border-radius: 12px; overflow: hidden; }
.recent-song::before { content: ''; position: absolute; top: 50%; left: 50%; width: 200%; height: 200%; background: conic-gradient(transparent, var(--accent-color), var(--primary-color), transparent 20%); transform: translate(-50%, -50%); animation: rotate-border 4s linear infinite; opacity: 0; transition: opacity 0.4s ease; z-index: 1; }
.recent-song:hover::before { opacity: 1; }
.recent-song img { width: 80px; height: 80px; border-radius: 12px; display: block; position: relative; z-index: 2; border: 1px solid var(--border-color); }

/* DÜZELTME: EKSİK OLAN TOOLTIP STİLLERİ GERİ EKLENDİ */
.song-tooltip { visibility: hidden; opacity: 0; position: absolute; bottom: 110%; left: 50%; transform: translateX(-50%); background-color: #1c1c2b; color: #fff; text-align: center; padding: 8px 12px; border-radius: 6px; z-index: 3; width: max-content; max-width: 200px; font-size: 0.9em; transition: opacity 0.3s, visibility 0.3s; pointer-events: none; box-shadow: 0 4px 15px rgba(0,0,0,0.3); }
.song-tooltip .tooltip-title { font-weight: 600; display: block; margin-bottom: 2px; }
.song-tooltip .tooltip-artist { font-size: 0.9em; opacity: 0.8; }
.recent-song:hover .song-tooltip { visibility: visible; opacity: 1; }

#new-songs-module { margin-top: 40px; }

/* --- 5. NAVİGASYON KARTLARI --- */
.navigation-grid { display: grid; grid-template-columns: 1fr; gap: 20px; }
.nav-card { background: var(--surface-color); padding: 25px; border-radius: 16px; text-decoration: none; color: var(--text-color); border: 1px solid var(--border-color); text-align: left; position: relative; overflow: hidden; transition: all 0.3s ease; }
.nav-card::before { content: ''; position: absolute; top: 50%; left: 50%; width: 200%; height: 200%; background: conic-gradient(transparent, var(--accent-color), var(--primary-color), transparent 30%); transform: translate(-50%, -50%); animation: rotate-border 4s linear infinite; opacity: 0; transition: opacity 0.4s ease; }
.nav-card:hover::before { opacity: 1; }
.nav-card .card-icon, .nav-card .card-content { position: relative; z-index: 2; }
.nav-card::after { content: ''; position: absolute; inset: 1px; background: var(--surface-color); border-radius: 15px; z-index: 1; }
@keyframes rotate-border { from { transform: translate(-50%, -50%) rotate(0deg); } to { transform: translate(-50%, -50%) rotate(360deg); } }
.card-icon { font-size: 1.5em; margin-bottom: 15px; display: block; }
.card-content h2 { font-size: 1.4em; margin: 0 0 8px 0; display: flex; align-items: center; gap: 8px; font-weight: 600; }
.card-content p { font-size: 0.9em; color: var(--text-muted); line-height: 1.5; }
.live-indicator { width: 8px; height: 8px; background-color: var(--live-color); border-radius: 50%; animation: pulse 1.5s infinite; display: none; }
.live.nav-card { border-color: transparent; }
.live.nav-card::before { opacity: 1; background: conic-gradient(transparent, var(--live-color), transparent 30%); }
.live .live-indicator { display: inline-block; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 var(--live-color); } 70% { box-shadow: 0 0 0 8px rgba(74, 222, 128, 0); } 100% { box-shadow: 0 0 0 0 rgba(74, 222, 128, 0); } }

/* --- 6. DİL BUTONLARI --- */
.language-switcher { position: absolute; top: 20px; right: 30px; display: flex; gap: 10px; z-index: 100; }
.lang-btn { background-color: rgba(255, 255, 255, 0.1); border: 1px solid rgba(255, 255, 255, 0.2); color: var(--text-color); padding: 8px 12px; border-radius: 8px; font-family: 'Poppins', sans-serif; font-weight: 600; cursor: pointer; transition: all 0.2s ease; }
.lang-btn:hover { background-color: rgba(255, 255, 255, 0.2); border-color: var(--accent-color); }
.lang-btn.active { background-color: var(--accent-color); color: var(--bg-color); border-color: var(--accent-color); }

/* --- 7. RESPONSIVE TASARIM --- */
@media (min-width: 768px) {
    .stats-bar { grid-template-columns: repeat(4, 1fr); }
    .navigation-grid { grid-template-columns: repeat(3, 1fr); }
}
/* --- 8. SOSYAL MEDYA LİNKLERİ (FOOTER) --- */

.social-links {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 25px;
}

.social-links a img {
    height: 28px; /* İkonların yüksekliği */
    opacity: 0.7;
    filter: grayscale(20%); /* Hafif soluk bir başlangıç */
    transition: all 0.3s ease;
}

.social-links a:hover img {
    opacity: 1;
    filter: grayscale(0%) drop-shadow(0 0 8px var(--accent-color)); /* Vurgu rengiyle parlama */
    transform: scale(1.1); /* Hafifçe büyüme */
}

/* Ana kutu: Sayı grubunu ve etiketi dikey olarak hizalar */
.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center; /* İçerikleri yatayda ortalar */
  font-family: sans-serif; /* Görseldeki gibi bir font */
  color: white;
}

/* Sayıları yan yana getiren sarmalayıcı */
.stat-value-container {
  display: flex;
  align-items: baseline; /* Farklı boyuttaki yazıların alt çizgilerini hizalar, çok şık durur */
}

/* İlk sayı (416) için stil */
#total-purchased {
  font-size: 24px; /* Daha büyük boyut */
  font-weight: bold;
}

/* İkinci sayı (/486) için stil. Mevcut class'ını kullanıyoruz. */
#owned-songs-ratio {
  font-size: 24px; /* Daha küçük boyut */
  font-weight: bold;
  margin-left: 4px; /* Sayılar arasına hafif boşluk */
}

/* Alt etiket için stil */
.stat-label {
  margin-top: 8px; /* Üst kısımla arasına boşluk */
  font-size: 14px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #c0c0c0; /* Hafif soluk renk */
}