/* --- 1. TEMEL AYARLAR VE DEĞİŞKENLER --- */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;600;700&display=swap');

:root {
    --bg-color: #101119;
    --surface-color: #1c1c2b;
    --primary-color: #a855f7;
    --accent-color: #2dd4bf;
    --text-color: #e0e0e0;
    --text-muted: #94a3b8;
    --border-color: rgba(255, 255, 255, 0.1);
    --error-color: #f472b6;
    --success-color: #4ade80;
}

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

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    position: relative;
    overflow-x: hidden;
}

/* --- 2. ARKA PLAN EFEKTLERİ --- */
.background-container { 
    position: fixed; 
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%; 
    z-index: -1; 
    overflow: hidden; 
}
.blob { 
    position: absolute; 
    border-radius: 50%; 
    filter: blur(120px); 
    opacity: 0.3; 
    animation: move 25s infinite alternate; 
}
.blob1 { 
    width: 400px; 
    height: 400px; 
    background: var(--primary-color); 
    top: -100px; 
    left: -100px; 
    animation-duration: 25s; 
}
.blob2 { 
    width: 500px; 
    height: 500px; 
    background: var(--accent-color); 
    bottom: -150px; 
    right: -150px; 
    animation-duration: 30s; 
}
@keyframes move { 
    from { transform: translate(0, 0) scale(1) rotate(0deg); } 
    to { transform: translate(40vw, 30vh) scale(1.2) rotate(90deg); } 
}

/* --- 3. ORTAK HEADER --- */
.main-header {
    background: rgba(28, 28, 43, 0.5);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 15px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 100;
}
.main-header .logo a { font-size: 1.5rem; font-weight: 700; color: var(--text-color); text-decoration: none; }
.main-header .user-nav { display: flex; align-items: center; }
.main-header .user-nav a { color: var(--text-muted); text-decoration: none; margin-left: 20px; font-weight: 500; transition: color 0.3s; }
.main-header .user-nav a:hover { color: var(--text-color); }
.user-info { display: flex; align-items: center; gap: 20px; }
.song-count { font-size: 0.9rem; color: var(--text-muted); background: rgba(0,0,0,0.2); padding: 5px 10px; border-radius: 50px; }
.language-switcher {
    margin-left: 20px;
    display: flex;
    background-color: var(--surface-color);
    border-radius: 50px;
    border: 1px solid var(--border-color);
    overflow: hidden;
}
.language-switcher button {
    padding: 5px 15px;
    margin: 0;
    font-size: 0.9rem;
    color: var(--text-muted);
    text-decoration: none;
    transition: all 0.3s;
    border: none;
    background: none;
    cursor: pointer;
}
.language-switcher button:hover { color: var(--text-color); }
.language-switcher button.active { background-color: var(--primary-color); color: var(--text-color); }

/* --- 4. GİRİŞ, KAYIT VE PROFİL SAYFALARI --- */
.auth-body, .profile-body { 
    display: flex; 
    justify-content: center; 
    align-items: center; 
    min-height: 100vh; 
    padding: 20px; 
}
.page-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: calc(100vh - 75px);
    padding: 40px;
}
.form-container, .profile-container {
    width: 100%;
    max-width: 450px;
    background: var(--surface-color);
    padding: 40px;
    border-radius: 24px;
    border: 1px solid var(--border-color);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
    z-index: 1;
}
.profile-container {
    max-width: 800px;
}
.form-container h1, .profile-container h2 {
    font-weight: 700;
    margin-bottom: 30px;
    background: linear-gradient(45deg, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.form-container h1 { font-size: 2em; text-align: center; }
.profile-container h2 { font-size: 1.5em; text-align: left; border-bottom: 1px solid var(--border-color); padding-bottom: 15px; margin-bottom: 25px;}
.input-group, .form-group { margin-bottom: 20px; text-align: left; }
.form-group label { display: block; margin-bottom: 8px; color: var(--text-muted); }
input[type="text"], input[type="password"], input[type="number"], select {
    width: 100%;
    padding: 14px;
    box-sizing: border-box;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    background-color: #101119;
    color: #fff;
    font-size: 1rem;
    font-family: 'Poppins', sans-serif;
    transition: all 0.3s;
}
input:focus, select:focus { outline: none; border-color: var(--primary-color); box-shadow: 0 0 10px rgba(168, 85, 247, 0.3); }
button {
    width: 100%;
    padding: 14px;
    border: none;
    border-radius: 50px;
    background-image: linear-gradient(45deg, var(--primary-color), var(--accent-color));
    color: #fff;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.3s;
}
button:hover {
	 /* transform: scale(1.03); */
box-shadow: 0 5px 20px rgba(168, 85, 247, 0.3); }
.profile-container .form-group button { width: auto; padding: 12px 25px; }
.error, .success, #profile-notification { margin-top: 15px; padding: 10px; border-radius: 8px; text-align: center; }
.error { color: var(--error-color); background: rgba(244, 114, 182, 0.1); }
.success, #profile-notification.success { color: var(--success-color); background: rgba(74, 222, 128, 0.1); }
#profile-notification.error { color: var(--error-color); background: rgba(244, 114, 182, 0.1); }
#profile-notification { display: none; }
.switch-page { margin-top: 25px; color: var(--text-muted); text-align: center; }
.switch-page a { color: var(--accent-color); text-decoration: none; font-weight: 600; }
 filter: brightness(1.1);
 transform: translateY(-2px);

/* --- 5. ANA SAYFA (index.php) --- */
.controls-container {
    padding: 20px 40px;
    background: rgba(28, 28, 43, 0.3);
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}
.search-sort-group, .library-view-group {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-grow: 1;
}
.search-sort-group input[type="text"] {
    flex-grow: 1;
    min-width: 250px;
}
.library-view-group {
    justify-content: flex-end;
}
#libraryFilter, #sortSelect {
    color: var(--text-muted);
    padding: 10px 20px;
    font-family: 'Poppins', sans-serif;
    font-size: 0.9rem;
    -webkit-appearance: none;
    appearance: none;
    background-color: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: 50px;
}
.view-switcher {
    display: flex;
    background-color: var(--surface-color);
    border-radius: 50px;
    padding: 4px;
    border: 1px solid var(--border-color);
}
.view-switcher button {
    padding: 8px 20px;
    border: none;
    background: transparent;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 600;
    border-radius: 50px;
    transition: color 0.3s ease, background-color 0.3s ease;
    z-index: 2;
    width: auto;
}
.view-switcher button.active {
    background-color: var(--primary-color);
    color: var(--text-color);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}
#songList { padding: 20px 40px; transition: all 0.3s; }

/* Görünüm Modları */
.view-grid-large { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 25px; }
.song-item { cursor: pointer; }
.song-item.grid-large { background-color: var(--surface-color); border-radius: 12px; padding: 16px; transition: all 0.3s; position: relative; }
.song-item.grid-large:hover { transform: translateY(-5px); background-color: #2a2a3f; }
.song-item.grid-large .cover-container { position: relative; margin-bottom: 16px; }
.song-item.grid-large img { width: 100%; border-radius: 8px; display: block; }
.song-item.grid-large h2 { font-size: 1rem; font-weight: 600; margin: 0 0 4px 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.song-item.grid-large p { margin: 0; font-size: 0.875rem; color: var(--text-muted); }

.view-grid-small { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 20px; }
.song-item.grid-small { text-align: center; position: relative; }
.song-item.grid-small .cover-container { position: relative; margin-bottom: 8px; }
.song-item.grid-small img { width: 100%; border-radius: 8px; }
.song-item.grid-small h2 { font-size: 0.8rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.song-item.grid-small p { display: none; }

.view-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(350px, 1fr)); gap: 15px; }
.song-item.list { display: flex; align-items: center; background-color: #182c4f; border-radius: 12px; padding: 12px; gap: 15px; border: 1px solid rgba(255, 255, 255, 0.1); transition: background-color 0.3s; }
.song-item.list:hover { background-color: #254275; }
.song-item.list .cover-container { flex-shrink: 0; }
.song-item.list .cover-container.playing img { box-shadow: 0 0 15px var(--accent-color); }
.song-item.list img { width: 80px; height: 80px; border-radius: 8px; display: block; transition: box-shadow 0.3s; }
.song-item.list .song-details { display: flex; flex-direction: column; gap: 4px; overflow: hidden; }
.song-item.list h2 { font-size: 1.1rem; font-weight: 600; color: var(--text-color); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.song-item.list p { font-size: 0.9rem; color: var(--text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.song-item.list .meta-info { font-size: 0.8rem; color: var(--text-muted); opacity: 0.8; margin-top: 2px; }
.song-item.list .actions { margin-left: auto; flex-shrink: 0; }

/* KART ÜSTÜ BUTONLAR VE ÖNİZLEME */
.play-overlay { position: absolute; top: 0; left: 0; right: 0; bottom: 0; border-radius: 8px; display: flex; justify-content: center; align-items: center; }
.play-button { width: 50px; height: 50px; background-color: var(--primary-color); border-radius: 50%; display: flex; justify-content: center; align-items: center; color: white; font-size: 24px; box-shadow: 0 4px 10px rgba(0,0,0,0.4); transition: transform 0.2s; opacity: 0; z-index: 2; }
.cover-container:hover .play-button { opacity: 1; }
.play-button:hover { transform: scale(1.1); }
.song-item.grid-small .play-button { width: 40px; height: 40px; font-size: 20px; }
.card-hover-actions { position: absolute; bottom: 10px; left: 10px; right: 10px; display: flex; justify-content: space-between; gap: 10px; opacity: 0; transition: opacity 0.3s ease; z-index: 3; }
.song-item:hover .card-hover-actions { opacity: 1; }
.card-action-btn { padding: 8px 12px !important; font-size: 0.8rem !important; width: auto !important; flex-grow: 1; background: rgba(28, 28, 43, 0.8) !important; backdrop-filter: blur(5px); border: 1px solid var(--border-color) !important; color: var(--text-muted) !important; }
.card-action-btn.toggle-library-btn { flex-grow: 0; width: 40px !important; padding: 8px !important; }
.card-action-btn:hover { background: var(--primary-color) !important; color: var(--text-color) !important; }
.card-action-btn.toggle-library-btn.in-library { background: var(--accent-color) !important; color: var(--bg-color) !important; }
.song-item.list .actions { display: flex; gap: 10px; }
.song-item.list .actions .card-action-btn { background: none !important; border: none !important; }

/* --- GÜNCELLENMİŞ BÖLÜM --- */
/* --- SKOR GİRİŞ MODALI (YENİ TASARIM) --- */

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    padding: 20px;
}

.modal-content {
    background: var(--surface-color);
    padding: 30px 35px;
    border-radius: 20px;
    width: 100%;
    max-width: 500px;
    position: relative;
    border: 1px solid var(--border-color);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
    max-height: 95vh;
	overflow-x: hidden; /* BURAYA DA EKLEYİN */
}

.close-modal-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(0,0,0,0.3);
    border: none;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    color: var(--text-muted);
    font-size: 1.2rem;
    cursor: pointer;
    line-height: 30px;
    text-align: center;
    z-index: 10;
    padding: 0;
}
.close-modal-btn:hover { background: var(--primary-color); color: var(--text-color); }

.modal-song-info {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 25px;
    flex-shrink: 0;
}
.modal-song-info img { width: 60px; height: 60px; border-radius: 8px; }
.modal-song-info h3 { margin: 0; font-size: 1.6rem; font-weight: 700; }
.modal-song-info p { margin: 0; color: var(--text-muted); }

#score-form {
    overflow-y: auto;
    overflow-x: hidden;
    flex-grow: 1;
    padding-right: 5px;
}

/* Enstrüman ve Zorluk gruplarını yan yana getiren sarmalayıcı */
.form-row-split {
    display: flex;
    gap: 30px;
    margin-bottom: 25px;
    align-items: flex-start;
}
.form-row-split > .form-group { flex: 1; }
.difficulty-group { flex-grow: 0; }

/* BAŞLIK ETİKETLERİ (SADECE METİN) */
.form-group > label {
    display: block;
    margin-bottom: 12px;
    color: var(--text-muted);
    font-weight: 700;
    font-size: 1.1rem;
    background: none; /* Arka plan yok */
    padding: 0;
    border: none;
}

/* Radio Buton Grupları (Genel) */
.radio-group > div { display: flex; gap: 10px; }
.radio-group input[type="radio"] { display: none; }

/* GÜNCELLEME: Seçici daha spesifik hale getirildi (.radio-group div label) */
.radio-group div label {
    cursor: pointer;
    position: relative;
    transition: all 0.2s;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #101119; /* Arka plan rengi sadece butonlara uygulanır */
}

/* Enstrümanlar (3x3 GRID DÜZENİ) */
.instrument-group > div {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}
.instrument-group div label {
    width: 65px;
    height: 65px;
}
.instrument-group img {
    width: 100%;
    height: 100%;
    padding: 12px;
    opacity: 0.7;
}
.instrument-group input:checked + label {
    background-color: var(--primary-color);
    box-shadow: 0 0 15px var(--primary-color);
}
.instrument-group input:checked + label img {
    opacity: 1;
}

/* Zorluk Butonları (2x2 GRID DÜZENİ) */
.difficulty-group > div {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
}
.difficulty-group div label {
    width: 65px;
    height: 65px;
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-color);
    opacity: 0.7;
}
.difficulty-group input:checked + label {
    background-color: var(--primary-color);
    box-shadow: 0 0 15px var(--primary-color);
    opacity: 1;
}

/* Sezon ve Skor Inputları */
.form-group-row { display: flex; gap: 20px; margin-bottom: 20px;}
.form-group-row .form-group { flex: 1; }

/* style.css içindeki ilgili bölüm */

/* Yıldızlar */
.form-group.stars-and-options { margin-top: 10px; }
.form-group.stars-and-options > label { display: none; }
.stars-control {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #101119;
    padding: 8px 15px;
    border-radius: 50px;
    height: 50px;
}
/* style.css dosyasındaki ilgili bölümü bulun ve güncelleyin */

.stars-control .star-btn {
    font-size: 2rem;
    font-weight: 300;
    /* GÜNCELLEME: Arka planı kaldır */
    background: none; 
    color: var(--text-muted);
    /* Butonun kendi içindeki padding ve border'ını sıfırla (gerekebilir) */
    padding: 0;
    border: none;
    /* Butonun tıklama alanını korumak için boyutları koruyabiliriz */
    width: 35px;
    height: 35px;
    line-height: 35px; /* Dikey hizalama için */
    text-align: center; /* Yatay hizalama için */
}
}
/* GÜNCELLEME: #stars-display'i tekrar görünür yap */
#stars-display {
    display: flex; /* Yıldızları yan yana sırala */
    gap: 8px;     /* Yıldızlar arası boşluk */
    align-items: center;
}
/* GÜNCELLEME: Yıldız resimlerinin boyutu */
#stars-display img {
    height: 24px;
}
/* Boş yıldıza biraz opaklık vererek sönük görünmesini sağla (isteğe bağlı) */
#stars-display img[src$="star_empty.svg"] {
    opacity: 0.3;
}

/* Altın ve Flawless Butonları */
.special-buttons { display: flex; gap: 15px; margin-top: 15px; }
.special-buttons .special-btn {
    height: 50px;
    flex-grow: 1;
    padding: 12px !important;
    background-image: none !important;
    background-color: #101119 !important;
    border: none !important;
    color: var(--text-muted) !important;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
}
.special-buttons .special-btn.active {
    color: var(--text-color) !important;
    box-shadow: 0 0 10px var(--primary-color);
}
.special-buttons .special-btn.active img { filter: none; }
.special-buttons .special-btn img { height: 20px; margin-right: 8px; filter: grayscale(1); opacity: 0.8; }

/* Kaydet Butonu */
.submit-btn { margin-top: 20px; height: 45px; }




/* --- PAYLAŞIM SAYFASI --- */

.share-page-container {
    width: 100%;
    max-width: 900px; /* İçeriği daha okunaklı bir genişlikte tut */
    margin: 0 auto;
    padding: 40px 20px;
}

.share-user-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-color);
}

/* Paylaşım sayfasındaki header'da görünüm değiştiriciyi gizle/göster */
.main-header #share-view-switcher {
    display: flex;
}
#tab-scores.active ~ .main-header #share-view-switcher {
    display: none;
}


/* Sayfa Bulunamadı Stilleri */
.not-found-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    min-height: calc(100vh - 200px);
}
.not-found-container h1 {
    font-size: 5em;
    font-weight: 700;
    background: linear-gradient(45deg, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.not-found-container p {
    font-size: 1.2em;
    color: var(--text-muted);
    margin-top: 10px;
    max-width: 500px;
}

/* Paylaşım sayfasındaki sekmeler */
.share-tabs {
    justify-content: center; /* Sekmeleri ortala */
}

/* Paylaşım sayfası Skorlar Sekmesi */
/* Arama kutusu için profile.js'teki .my-scores-controls stilleri kullanılır */

/* Skor listesi ana kapsayıcısı */
.score-list-container {
    display: flex;
    flex-direction: column;
    gap: 15px; /* Şarkı grupları arası boşluk */
    margin-top: 20px;
}

/* ÖNEMLİ: Paylaşım sayfasında, profil sayfasındakiyle aynı class'ları (.score-song-group, .profile-score-item vb.) kullandığımız için,
   profile.js için yazdığımız stillerin çoğu burada da otomatik olarak çalışacaktır.
   Sadece paylaşım sayfasına özel birkaç kural ekliyoruz. */

/* Paylaşım sayfasındaki skor satırlarında düzenle/sil butonları olmaz */
.share-page-container .score-actions {
    display: none !important;
}

/* Paylaşım sayfasındaki şarkı başlığının arka planı farklı olabilir */
.share-page-container .score-song-group {
    background-color: var(--surface-color);
}






/* --- PROFİL SAYFASI --- */
.tab-nav { 
    display: flex; 
    justify-content: center; 
    margin-bottom: 30px; 
    background-color: rgba(16, 17, 25, 0.5); 
    border-radius: 50px; 
    padding: 5px; 
    border: 1px solid var(--border-color); 
}

.tab-btn { 
    flex-grow: 1; 
    padding: 10px 20px; 
    border: none; 
    background: transparent; 
    color: var(--text-muted); 
    cursor: pointer; 
    font-size: 1rem; 
    font-weight: 600; 
    border-radius: 50px; 
    transition: all 0.3s ease; 
    width: auto; 
}

.tab-btn.active { 
    background-color: var(--primary-color); 
    color: var(--text-color); 
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3); 
}

.tab-content { position: relative; }
.tab-pane { display: none; }
.tab-pane.active { 
    display: block; 
    animation: fadeIn 0.5s ease-in-out; 
}

@keyframes fadeIn { 
    from { opacity: 0; transform: translateY(15px); } 
    to { opacity: 1; transform: translateY(0); } 
}

.profile-container #profile-notification { margin-top: 25px; }

/* --- PROFİL SAYFASI - SKORLARIM SEKMESİ --- */

/* Arama Kutusu */
.my-scores-controls {
    margin-bottom: 20px;
}

#my-scores-search {
    width: 100%;
    padding: 12px 18px;
    background-color: #101119;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    color: var(--text-color);
    font-size: 1rem;
}
#my-scores-search:focus {
    outline: none;
    border-color: var(--primary-color);
}

/* Her Bir Şarkı Grubu */
.score-song-group {
    background-color: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    margin-bottom: 15px; /* Gruplar arası boşluk */
}
.score-song-group.open {
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.2);
}

/* Şarkı Başlığı (Açılır/Kapanır Alan) */
.song-group-header {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 15px 20px;
    cursor: pointer;
    position: relative;
    transition: background-color 0.2s;
}
.song-group-header:hover {
    background-color: rgba(255, 255, 255, 0.03);
}
.song-group-header img { 
    width: 60px; 
    height: 60px; 
    border-radius: 8px; 
    flex-shrink: 0;
}
.song-group-header h3 { font-size: 1.2rem; margin: 0; }
.song-group-header p { font-size: 0.9rem; color: var(--text-muted); margin: 0; }
.toggle-arrow {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.2rem;
    color: var(--text-muted);
    transition: transform 0.3s ease;
}
.score-song-group.open .toggle-arrow {
    transform: translateY(-50%) rotate(180deg);
}

/* Skorların Olduğu Açılır Alan */
.scores-in-group {
    padding: 15px 20px;
    border-top: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    gap: 5px;
}

/* Her Bir Skor Satırı */
.profile-score-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 10px;
    border-radius: 12px;
    transition: background-color 0.2s;
}
.profile-score-item:hover {
    background-color: rgba(255, 255, 255, 0.05);
}

.score-item-details {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-grow: 1;
}

/* Enstrüman İkonu */
.instrument-icon {
    height: 32px;
}

/* style.css dosyasındaki bu bölümü bulun ve güncelleyin */

/* Skor ve Yıldız Grubu */
.score-group {
    display: flex;
    flex-direction: column;
    /* GÜNCELLEME: Ortalamak yerine sola yasla */
    align-items: flex-start; 
    gap: 2px;
    min-width: 110px;
}
.score-value { font-size: 1.1rem; font-weight: 700; }
.stars-small { display: flex; gap: 3px; }
.star-icon-small { height: 14px; }
img[src$="star_empty.svg"].star-icon-small { opacity: 0.3; }

/* Meta Bilgi Grubu (Zorluk, Sezon, Flawless) */
.meta-group {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-left: auto;
}
.difficulty-tag {
    background-color: #101119;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
}
.difficulty-icon-tiny { height: 100%; }
.season-tag, .flawless-tag {
    font-size: 0.8rem;
    font-weight: 600;
    padding: 6px 12px;
    border-radius: 50px;
    background-color: #101119;
    border: 1px solid var(--border-color);
    color: var(--text-muted);
}
.flawless-tag {
    color: var(--accent-color);
    background-color: rgba(45, 212, 191, 0.1);
    border-color: var(--accent-color);
}

/* Skor Aksiyon Butonları (Düzenle, Sil) */
.score-actions {
    display: flex;
    gap: 15px;
    margin-left: 20px;
}
.score-actions button {
    background: none;
    border: none;
    font-size: 1.2rem;
    color: var(--text-muted);
    cursor: pointer;
    transition: color 0.2s, transform 0.2s;
    padding: 5px;
}
.score-actions button:hover {
    color: var(--primary-color);
    transform: scale(1.1);
}

/* Sayfalama Stilleri */
.pagination-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 30px;
}

.page-btn {
    width: 40px;
    height: 40px;
    padding: 0;
    border: 1px solid var(--border-color);
    background-color: var(--surface-color);
    color: var(--text-muted);
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
}

.page-btn:hover {
    background-color: var(--primary-color);
    color: var(--text-color);
    border-color: var(--primary-color);
}

.page-btn.active {
    background-color: var(--primary-color);
    color: var(--text-color);
    border-color: var(--primary-color);
    box-shadow: 0 0 10px var(--primary-color);
}
/* --- ANA SAYFA (index.php) --- */

.controls-container {
    padding: 20px 40px;
    background: var(--surface-color);
    border-bottom: 1px solid var(--border-color);
    
    /* GÜNCELLEME: 2x2'lik bir ızgara düzeni oluşturuyoruz */
    display: grid;
    grid-template-columns: 1fr 1fr; /* İki eşit genişlikte sütun */
    gap: 20px; /* Elemanlar arası boşluk */
    align-items: center;
}

/* Arama kutusu ve select kutuları için genel stil */
.controls-container input[type="text"],
.controls-container select {
    width: 100%;
    padding: 14px 20px;
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    color: var(--text-muted);
    background-color: var(--bg-color); /* Resimdeki gibi koyu arka plan */
    border: 1px solid var(--border-color);
    border-radius: 12px; /* Daha modern, yuvarlak köşeler */
    transition: all 0.3s;
    -webkit-appearance: none; /* iOS'taki varsayılan stili kaldır */
    appearance: none;
}

.controls-container input[type="text"]:focus,
.controls-container select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 10px rgba(168, 85, 247, 0.3);
}

/* Select kutularına ok ikonu eklemek için (isteğe bağlı ama şık durur) */
.controls-container select {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%2394a3b8' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2 5l6 6 6-6'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 1em;
    padding-right: 3rem; /* Ok için yer aç */
}


/* Görünüm Değiştirici Butonlar */
.view-switcher {
    display: flex;
    justify-self: flex-end; /* Buton grubunu sağa yasla */
    background-color: var(--bg-color);
    border-radius: 50px;
    padding: 5px;
    border: 1px solid var(--border-color);
}

.view-switcher button {
    padding: 8px 25px;
    border: none;
    background: transparent;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 600;
    border-radius: 50px;
    transition: color 0.3s ease, background-color 0.3s ease;
    width: auto; /* Otomatik genişlik */
}

.view-switcher button.active {
    background-color: var(--primary-color);
    color: var(--text-color);
    box-shadow: 0 2px 10px rgba(168, 85, 247, 0.2);
}

#songList { 
    padding: 20px 40px; 
    transition: all 0.3s; 
}

/* style.css dosyasının sonuna ekleyin */

.excel-export-btn {
    display: inline-block;
    padding: 10px 20px;
    background-image: linear-gradient(45deg, #2dd4bf, #34d399); /* Yeşil tonları */
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    margin-bottom: 20px; /* Alttaki yazıdan ayırmak için */
    transition: all 0.3s ease;
}

.excel-export-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(45, 212, 191, 0.4);
}

/* --- KARŞILAMA (LANDING) SAYFASI STİLLERİ --- */

.landing-body {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
    overflow: hidden;
}

.landing-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    width: 100%;
    max-width: 1100px;
    align-items: center;
}

.landing-intro h1 {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.2;
    background: linear-gradient(45deg, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 20px;
}

.landing-intro p {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 30px;
}

.landing-intro ul {
    list-style: none;
    padding-left: 0;
}

.landing-intro ul li {
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.landing-intro ul li strong {
    color: var(--accent-color);
}

.landing-auth-container {
    background: var(--surface-color);
    padding: 30px;
    border-radius: 24px;
    border: 1px solid var(--border-color);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
    z-index: 1;
}

.auth-tabs {
    display: flex;
    background-color: rgba(16, 17, 25, 0.5);
    border-radius: 50px;
    padding: 5px;
    margin-bottom: 25px;
}

.auth-tab-btn {
    flex: 1;
    padding: 10px;
    border: none;
    background: transparent;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 50px;
    transition: all 0.3s ease;
}
.auth-tab-btn.active {
    background-color: var(--primary-color);
    color: var(--text-color);
}

.auth-form-panel {
    display: none;
}
.auth-form-panel.active {
    display: block;
}

.language-switcher-standalone {
    position: absolute;
    top: 30px;
    left: 30px;
    z-index: 10;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.language-switcher-standalone button {
    padding: 10px 20px;
    font-size: 1rem;
    color: var(--text-color);
    background-color: rgba(28, 28, 43, 0.5);
    border: 1px solid var(--border-color);
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s;
}
.language-switcher-standalone button.active {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}
/* style.css dosyasının sonuna ekleyin */

/* --- HEADER KULLANICI SAYACI VE KONTROLLER --- */

.header-controls {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-left: 20px;
}

.total-users-count {
    display: flex;
    align-items: center;
    gap: 8px;
    background-color: var(--surface-color);
    color: var(--text-muted);
    padding: 8px 15px;
    border-radius: 50px;
    border: 1px solid var(--border-color);
    font-weight: 600;
    font-size: 0.9rem;
}

.total-users-count .user-icon {
    font-size: 1.1rem;
    opacity: 0.7;
}

/* style.css'teki bu bölümü güncelleyin */

.main-header .user-nav { 
    display: flex; 
    align-items: center; /* Bu, içindeki ana sarmalayıcıyı dikeyde ortalar */
}

/* YENİ: Sağ tarafın tamamını hizalayan ana sarmalayıcı */
.header-right-panel {
    display: flex;
    align-items: center; /* EN ÖNEMLİ KURAL: Tüm elemanları dikeyde hizalar */
    gap: 20px;
}

/* Giriş yapılmışsa görünen kullanıcı bilgileri */
.user-info {
    display: flex;
    align-items: center;
    gap: 20px;
}

.user-info a {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.user-info a:hover {
    color: var(--text-color);
}

.welcome-text {
    color: var(--text-color);
}
.welcome-text strong {
    color: var(--accent-color);
}

.song-count {
    font-size: 0.9rem;
    color: var(--text-muted);
    background: var(--surface-color);
    padding: 5px 12px;
    border-radius: 50px;
    border: 1px solid var(--border-color);
}

/* Sağdaki kontroller (Kullanıcı Sayacı ve Dil) */
.header-controls {
    display: flex;
    align-items: center;
    gap: 15px;
    /* margin-left artık ana sarmalayıcıda gap ile yönetiliyor */
}

.total-users-count {
    display: flex;
    align-items: center;
    gap: 8px;
    background-color: transparent; /* Arka planı şeffaf yap */
    color: var(--primary-color); /* Mor renk */
    padding: 8px;
    border-radius: 50px;
    border: none; /* Kenarlığı kaldır */
    font-weight: 600;
    font-size: 1.1rem; /* Biraz büyütelim */
}

.total-users-count .user-icon {
    font-size: 1.3rem;
    opacity: 1;
}

/* Dil değiştirici zaten doğru, stilini koruyoruz */
.language-switcher {
    display: flex;
    background-color: var(--surface-color);
    border-radius: 50px;
    border: 1px solid var(--border-color);
    overflow: hidden;
}
.language-switcher button {
    padding: 5px 15px;
    font-size: 0.9rem;
    color: var(--text-muted);
    background: none;
    border: none;
    cursor: pointer;
    transition: all 0.3s;
}
.language-switcher button:hover { color: var(--text-color); }
.language-switcher button.active { 
    background-color: var(--primary-color); 
    color: var(--text-color); 
}