/* --- YAZI TİPİ VE CSS DEĞİŞKENLERİ --- */
@font-face {
    font-family: 'HeadingNowVariable';
    font-style: normal;
    font-stretch: normal;
    font-display: swap;
    src: url('../fonts/HeadingNowVariable.woff2') format('woff2');
}

:root {
    --bg-color: #121212;
    --card-color: #1a1a1a;
    --text-color: #dfdddd;
    --text-muted-color: #888;
    --accent-color: #9f5dff;
	--accent-color2: #ffdf00;
    --glow-color: rgba(159, 93, 255, 0.5);
	--glow-color2: rgba(255, 223, 0, 0.5); 
    /* YENİ ZORLUK RENKLERİ */
    --difficulty-easy: #4caf50;    /* 1-2 */
    --difficulty-medium: #2196f3;   /* 3-4 */
    --difficulty-hard: #9c27b0;     /* 5-6 (Mor) */
    --difficulty-expert: #ffeb3b;   /* 7 (Sarı) */
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    font-family: 'HeadingNowVariable', Arial, sans-serif;
    font-variation-settings: "wdth" 668, "wght" 500;
    background-color: var(--bg-color);
    color: var(--text-color);
    overflow-x: hidden;
    user-select: none;
}

body.modal-open {
    overflow: hidden;
}

h2, p {
    margin: 0;
    padding: 0;
}

a {
    text-decoration: none;
    color: inherit;
}

a:hover {
    color: var(--accent-color2);
    text-decoration: none;
}

/* Scrollbar */
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background-color: var(--accent-color2); border-radius: 10px; border: 2px solid var(--bg-color); }
::-webkit-scrollbar-thumb:hover { background-color: var(--glow-color2); }

/* --- BAŞLANGIÇ YÜKLEME EKRANI --- */
.page-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-color);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease;
}
.loader-spinner {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 4px solid rgba(255, 255, 255, 0.2);
    border-top-color: var(--accent-color2);
    animation: spin 1s linear infinite;
}

/* Container */
.container {
    max-width: 1500px;
    margin: 0 auto;
    padding: 0 55px;
}

/* Header */
.header {
    background-color: rgba(18, 18, 18, 0.7);
    color: white;
    padding: 10px 20px;
    width: 100%;
    z-index: 100;
    position: fixed;
    top: 0;
    backdrop-filter: blur(15px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.header .container { display: flex; justify-content: space-between; align-items: center; }
.header img { max-height: 45px; cursor: pointer; }
.search-wrapper { display: flex; align-items: center; }
.header input[type="search"] {
    padding: 8px 12px;
    border-radius: 8px;
    border: 1px solid #444;
    background-color: var(--card-color);
    color: white;
    outline: none;
    font: inherit;
    font-size: 14px;
    width: 250px;
    transition: all 0.3s ease;
}
.header input[type="search"]:focus { border-color: var(--accent-color2); box-shadow: 0 0 0 3px var(--glow-color2); }
.header .links a { color: white; padding: 6px 10px; border-radius: 6px; transition: background-color 0.2s ease, color 0.2s ease; }
.header .links a:hover { background-color: var(--accent-color); color: white; }

.header-info {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 10px 20px;
    background-color: rgba(18, 18, 18, 0.7); /* Şeffaflığı header ile aynı yaptık */
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    width: 100%;
    z-index: 100;
    position: fixed;
    top: 65px;
}
.header-info .container { display: flex; justify-content: space-between; align-items: center; width: 100%; }
.header-info-left, .header-info-right { display: flex; align-items: center; gap: 15px; /* Elemanlar arası boşluk */ }
.header-info-left span, .header-info-right span { font-size: 14px; color: #aaa; }
.track-info-separator { color: #555; } /* Ayırıcı çizgi rengi */


/* Content */
main {
    margin-top: 135px; /* Üstteki sabit elemanlar için boşluk */
}
.content {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 15px;
    padding: 15px;
}

/* --- KART STİLLERİ --- */
/* YENİ .jam-track KURALI */
.jam-track {
    display: flex;
    align-items: center;
    padding: 15px;
    margin: 0;
    border-radius: 35px; 
    cursor: pointer;
    position: relative;
    overflow: hidden;
    background-color: var(--card-color);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.1);
    min-height: 84px;
    
    /* YENİ: Geçiş (transition) güncellendi */
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.jam-track:hover {
    transform: scale(1.15); /* Üzerine gelince %5 büyüt */
    border-color: var(--accent-color2);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6), 0 0 25px var(--glow-color2); /* Gölgeyi de biraz daha belirgin yapalım */
    z-index: 10;
}

.jam-track img {
    width: 90px;
    height: 90px;
    border-radius: 20px;
    margin-right: 15px;
    flex-shrink: 0;
}
.jam-track > div:first-of-type {
    flex-grow: 1;
    min-width: 0;
    margin-right: 10px;
}
.jam-track h2 {
    font-size: 15px;
    line-height: 1.3;
    color: var(--text-color);
    margin: 0;
    font-variation-settings: "wght" 550, "wdth" 400;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
	
}
.jam-track p {

	font-size: 15px;
    line-height: 1.1;
    color: var(--text-muted-color);
    margin-bottom: 2px;
    font-variation-settings: "wght" 400, "wdth" 400;
    text-transform: uppercase;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
	
	
}

/* --- ETİKET STİLLERİ --- */
.label-container {
    position: static;
    flex-shrink: 0;
    display: flex;
    gap: 8px;
    z-index: 2;
}
.new-label, .featured-label {
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 10px;
    color: #000;
    box-shadow: 0 0 8px rgba(0,0,0,0.5);
    font-family: 'HeadingNowVariable', sans-serif;
    font-variation-settings: "wght" 600, "wdth" 400;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.new-label { background-color: #00BFFF; }
.featured-label { background-color: #FFD700; }

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
    z-index: 1000;
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.3s ease;
}
.modal.active { opacity: 1; }
.modal.active .modal-content {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
}
.modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    background-color: rgba(28, 28, 28, 0.85);
    border-radius: 25px;
    width: 90%;
    max-width: 550px;
    padding: 25px;
    cursor: auto;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    transform: translate(-50%, -50%) scale(0.95);
    opacity: 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
}
.modal-content::before { content: ''; position: absolute; top: 0; left: 0; right: 0; bottom: 0; background-image: var(--album-art-bg); background-size: cover; background-position: center; filter: blur(30px) brightness(0.4) saturate(1.2); transform: scale(1.2); z-index: -1; opacity: 0.7; }
.modal-close { position: absolute; top: 10px; right: 15px; font-size: 30px; color: #ccc; cursor: pointer; transition: color 0.2s; }
.modal-close:hover { color: white; }
.modal-header { display: flex; align-items: center; gap: 20px; }
.modal-header img { width: 100px; height: 100px; border-radius: 12px; flex-shrink: 0; }
.track-info { flex-grow: 1; } /* YENİ: Ses butonuna yer açmak için */
.track-info h2 { font-size: 24px; font-variation-settings: "wght" 600, "wdth" 400; }
.track-info p { font-size: 16px; color: #bbb; margin-top: 5px; font-variation-settings: "wght" 400, "wdth" 400; }
.modal-body { margin-top: 25px; }
#modalDetails { padding: 15px; border-radius: 10px; background-color: rgba(0, 0, 0, 0.4); margin-bottom: 15px; font-size: 14px; line-height: 1.6; }
#modalDetails p { margin-bottom: 5px; }
#modalDifficulties { display: grid; grid-template-columns: 1fr; gap: 12px; background-color: rgba(0, 0, 0, 0.4); padding: 15px; border-radius: 10px; }

/* --- YENİ SES BUTONU TASARIMI --- */
.mute-button {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: background-color 0.2s ease, transform 0.2s ease;
    flex-shrink: 0;
}
.mute-button:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}
.mute-button svg {
    width: 20px;
    height: 20px;
    fill: #fff;
}
.unmute-icon {
    display: none;
}

/* Zorluk Seviyeleri */
.difficulty { display: flex; align-items: center; }
.instrument-icon { width: 30px; height: 30px; background-image: url('../images/instrument-icons.png'); background-repeat: no-repeat; margin-right: 15px; flex-shrink: 0; }
.guitar { background-position: 0 0; } .drums { background-position: -30px 0; } .bass { background-position: -60px 0; } .vocals { background-position: -90px 0; } .plastic-guitar { background-position: -120px 0; } .plastic-drums { background-position: -150px 0; } .plastic-bass { background-position: -180px 0; }
.difficulty-bars { display: flex; gap: 4px; flex-grow: 1; height: 22px; background-color: rgba(255, 255, 255, 0.1); border-radius: 4px; padding: 4px; }
.difficulty-bar { flex: 1; height: 100%; background-color: transparent; border-radius: 2px; transition: background-color 0.3s ease; }

/* Filtreleme */
/* --- SABİT FİLTRE İÇİN YENİ VE DOĞRU STİL --- */
.filter-wrapper {
    position: sticky;
    top: 115px; /* header (65px) + header-info (50px) */
    z-index: 50;
    padding: 15px 0;
    
    /* YENİ: Şeffaf ve bulanık arka plan (tıpkı header gibi) */
    background-color: rgba(18, 18, 18, 0.7);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px); /* Safari uyumluluğu için */
    
    margin-bottom: 0; /* Eski margin'i sıfırlıyoruz */
}
.custom-select {
    /* ----- YAZI TİPİ DÜZELTMESİ ----- */
    font-family: 'HeadingNowVariable', Arial, sans-serif;
    font-variation-settings: "wght" 500, "wdth" 400 !important;
    font-size: 14px; /* Boyutu biraz küçülttük */
    letter-spacing: normal !important;
    text-transform: none !important;

    /* ----- GÖRSEL STİLLER ----- */
    background-color: var(--card-color);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 8px 35px 8px 15px; /* Padding'i azalttık */
    border-radius: 12px;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3e%3cpath d='M7 10l5 5 5-5z'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 16px;
    transition: all 0.3s ease;
    outline: none;
}
.custom-select:hover { border-color: var(--accent-color2); box-shadow: 0 0 10px var(--glow-color2); }
.custom-select option {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    font-variation-settings: normal !important;
    font-weight: 500;
    font-size: 15px;
    background-color: #2a2a2a;
    color: #dfdddd;
}

/* Yükleme Spinner (Kart içi) */
.loading-spinner { min-width: 60px; min-height: 60px; width: 60px; height: 60px; flex-shrink: 0; border-radius: 12px; background-color: rgba(236, 237, 238, .1); position: relative; margin-right: 15px; }
.loading-spinner::after { content: ''; position: absolute; top: 50%; left: 50%; width: 24px; height: 24px; margin: -12px; border-radius: 50%; border: 2px solid transparent; border-top-color: var(--accent-color2); animation: spin 1s linear infinite; }
@keyframes spin { 100% { transform: rotate(360deg); } }

/* Hareketli Arka Plan Efekti */
.background-blobs { position: fixed; top: 0; left: 0; width: 100%; height: 100%; overflow: hidden; z-index: -1; filter: blur(80px); opacity: 0.6; }
.blob { position: absolute; border-radius: 50%; will-change: transform; }
.blob-1 { width: 400px; height: 400px; top: -150px; left: -150px; background: #ff4e50; animation: move 25s infinite alternate; }
.blob-2 { width: 350px; height: 350px; top: 50%; right: -100px; background: #f9d423; animation: move 30s infinite alternate-reverse; }
.blob-3 { width: 300px; height: 300px; bottom: -150px; left: 20%; background: #42a5f5; animation: move 28s infinite alternate; }
.blob-4 { width: 250px; height: 250px; top: 10%; right: 30%; background: #ab47bc; animation: move 35s infinite alternate-reverse; }
.blob-5 { width: 200px; height: 200px; bottom: 10%; right: 5%; background: #26a69a; animation: move 22s infinite alternate; }
.blob-6 { width: 500px; height: 500px; bottom: -200px; left: -200px; background: #ec407a; animation: move 40s infinite alternate-reverse; }
@keyframes move { from { transform: translate(0, 0) rotate(0deg) scale(1); } to { transform: translate(40vw, 50vh) rotate(360deg) scale(1.2); } }

.music-note { position: absolute; font-size: 28px; color: var(--accent-color2); 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); } }

/* Diğer Modal ve Navigasyon Stilleri */
.modal-nav { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(0, 0, 0, 0.5); border: none; border-radius: 50%; width: 40px; height: 40px; cursor: pointer; color: white; display: flex; align-items: center; justify-content: center; transition: background-color 0.2s; }
.modal-nav:hover { background: rgba(0, 0, 0, 0.8); }
.modal-prev { left: 20px; }
.modal-next { right: 20px; }

/* ======================================= */
/*  AUDIO VISUALIZER GLOW EFEKTİ (ORGANİK BLOB)  */
/* ======================================= */

.audio-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 600px; 
    height: 750px;
    transform: translate(-50%, -50%);
    
    /* YENİ: Sabit background kaldırıldı. JS tarafından atanacak. */
    /* background: radial-gradient(...); */ 

    animation: organic-morph 15s ease-in-out infinite alternate;
    filter: blur(50px); /* Bulanıklığı biraz artırdık */
    z-index: 999;
    opacity: 0;
    transition: opacity 0.4s ease-out, transform 0.4s ease-out;
    pointer-events: none;


}

/* YENİ: Organik şekil değiştirme animasyonu */
@keyframes organic-morph {
    0% {
        border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
    }
    50% {
        border-radius: 30% 70% 70% 30% / 30% 70% 30% 70%;
    }
    100% {
        border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
    }
}

/* Modal içeriğinin her zaman en üstte kalmasını sağlıyoruz */
.modal-content {
    /* ... diğer modal-content stilleri ... */
    z-index: 1001; 
}