@import url('https://fonts.googleapis.com/css2?family=Open+Sans:wght@400;700&display=swap');

/* ========================================= */
/* TEMA DEĞİŞKENLERİ                         */
/* ========================================= */
:root {
  --primary-color: #1DB954; /* Spotify Yeşili */
  --bg-color: #121212;
  --card-bg: #181818;
  --header-bg: #1a1a1a;
  --border-color: #282828;
}

/* Kırmızı Tema */
body.theme-red {
  --primary-color: #ff4d4d;
  --bg-color: #1a0505;
  --card-bg: #250a0a;
  --header-bg: #200808;
  --border-color: #3d1414;
}

/* Mavi Tema */
body.theme-blue {
  --primary-color: #3498db;
  --bg-color: #050a1a;
  --card-bg: #0a1530;
  --header-bg: #081025;
  --border-color: #142a50;
}

body {
  margin: 0;
  font-family: 'Open Sans', Arial, sans-serif;
  background: var(--bg-color);
  color: #ffffff;
  transition: background 0.3s ease;
}

/* ========================================= */
/* HEADER & ARAMA                            */
/* ========================================= */
header {
  display: flex;
  align-items: center;
  padding: 15px;
  background: var(--header-bg);
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid var(--border-color);
}

.logo {
  font-size: 22px;
  font-weight: bold;
  color: var(--primary-color);
  text-decoration: none;
}

header input {
  flex: 1;
  max-width: 400px;
  margin-left: 20px;
  padding: 12px 20px !important;
  background: #2a2a2a;
  border: 1px solid #333 !important;
  color: #fff;
  border-radius: 25px !important;
  outline: none;
  transition: all 0.3s ease;
}

header input:focus {
  border-color: var(--primary-color) !important;
  background: #333 !important;
  box-shadow: 0 0 10px rgba(29, 185, 84, 0.2);
}

/* ========================================= */
/* ANA SAYFA - ŞARKI KARTLARI (MODERN)       */
/* ========================================= */
.section { 
  padding: 30px 20px; 
  max-width: 1200px;
  margin: 0 auto;
}

.song-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
  align-items: stretch;
}

.song-card-wrapper {
  position: relative;
  transition: transform 0.3s ease;
  height: 100%;
}

.song {
  background: var(--card-bg) !important;
  border: 1px solid var(--border-color) !important;
  padding: 16px !important;
  border-radius: 12px !important;
  text-decoration: none !important;
  color: #fff !important;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
  display: flex;
  flex-direction: column;
  height: 100%;
  box-sizing: border-box;
  position: relative;
}

.song:hover .song-info div {
    height: auto !important; 
    min-height: 38px;
}

.song-card-content {
  display: flex;
  align-items: center;
  gap: 15px;
  justify-content: space-between;
  width: 100%;
  height: 100%;
}

.song-icon {
  width: 48px;
  height: 48px;
  background: #252525;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  transition: all 0.3s ease;
  flex-shrink: 0;
}

.song:hover .song-icon {
  background: var(--primary-color);
  color: #000;
  transform: rotate(-10deg);
}

.song-info { 
  flex: 1; 
  padding-right: 10px; 
  min-width: 0; 
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  min-height: 55px; 
}

.song-title, .song-artist {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin: 0;
    transition: all 0.2s ease;
    display: block;
}
.song-title {
    font-size: 16px;
    font-weight: 700;
    color: #fff;
}


.song:hover .song-title, 
.song:hover .song-artist {
    white-space: normal !important;
    overflow: visible !important;
    text-overflow: initial !important;
}

.song:hover {
    background: #282828 !important;
    z-index: 999 !important;
}

.song-artist {
    font-size: 13px;
    color: #b3b3b3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: all 0.2s ease;
}

.song:hover .song-artist {
  white-space: normal;
  overflow: visible;
}
.song:hover {
    background: #282828 !important;
    z-index: 1001;
}

.view-chord-btn {
  opacity: 0.3;
  color: var(--primary-color);
  transition: all 0.3s ease;
  flex-shrink: 0;
}

.song:hover .view-chord-btn {
  opacity: 1;
  transform: translateX(5px);
}

.fav-action {
  position: absolute;
  right: 15px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 20;
  background: rgba(0,0,0,0.3);
  width: 35px;
  height: 35px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.2s ease;
}

.list-add-action, .view-chord-btn {
    flex-shrink: 0;
    display: flex;
    align-items: center;
}


.fav-action-inside, .list-add-action, .view-chord-btn {
    flex-shrink: 0 !important;
}
.fav-action:hover {
  background: rgba(0,0,0,0.6);
  transform: translateY(-50%) scale(1.2);
}

/* ========================================= */
/* ŞARKI SAYFASI & KONTROLLER                */
/* ========================================= */
.song-page { padding: 20px; padding-bottom: 100px; }

.controls { 
    margin: 20px 0; 
    display: flex; 
    flex-wrap: wrap; 
    gap: 10px; 
    background: var(--header-bg); 
    padding: 15px; 
    border-radius: 10px;
    align-items: center;
}

.controls button {
  background: var(--primary-color);
  border: none;
  padding: 10px 18px;
  border-radius: 20px;
  color: #000;
  cursor: pointer;
  font-weight: bold;
}

.controls select {
  background: #2a2a2a;
  color: white;
  border: 1px solid #444;
  padding: 8px;
  border-radius: 5px;
}

/* ========================================= */
/* SCROLL HIZ KONTROLÜ                       */
/* ========================================= */
.scroll-speed-wrapper {
    display: flex;
    align-items: center;
    background: var(--header-bg);
    border: 1px solid #444;
    border-radius: 25px;    
    padding: 6px 14px;      
    gap: 12px;
    transition: all 0.3s ease;
    overflow: hidden;
    max-width: fit-content;
}

.scroll-speed-wrapper:hover {
    background: #252525;
    border-color: var(--primary-color);
    overflow: visible;
}

#scrollToggle {
    background: none !important;
    border: none !important;
    font-size: 15px !important; 
    padding: 0 !important;
    color: #fff !important;
    cursor: pointer;
    font-weight: bold;
    display: flex;
    align-items: center;
}

.speed-indicator {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #fff;
    font-weight: bold;
    font-size: 14px;
}

.speed-adjust-controls {
    display: flex;
    align-items: center;
    width: 0; 
    opacity: 0;
    overflow: hidden;
    transition: all 0.3s ease;
    gap: 8px;
}

.scroll-speed-wrapper:hover .speed-adjust-controls {
    width: 85px; 
    opacity: 1;
    margin-left: 5px;
}

.speed-adjust-controls button {
    background: #121212 !important;
    border: 1px solid var(--primary-color) !important;
    color: var(--primary-color) !important;
    padding: 3px 10px !important;
    border-radius: 15px !important;
    font-size: 15px !important; 
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.speed-adjust-controls button:hover {
    background: var(--primary-color) !important;
    color: #000 !important;
}

#speedDisplay {
    min-width: 32px;
    text-align: center;
    font-family: 'Open Sans', sans-serif;
    font-size: 15px;
}

/* ========================================= */
/* ŞARKI METNİ & AKORLAR                     */
/* ========================================= */
pre#content {
  font-family: "Open Sans", sans-serif !important;
  font-size: 16px; 
  line-height: 1.6; 
  padding: 20px !important;
  white-space: pre !important;
  background: #000000 !important;
  color: #ffffff !important;
  border-radius: 8px;
  overflow-x: auto;
  border: 1px solid #333;
}

pre#content span.c {
  color: var(--primary-color) !important; 
  font-weight: bold !important;
  display: inline;
  position: relative;
}

/* ========================================= */
/* MENÜ ÇUBUĞU                               */
/* ========================================= */
.main-nav {
    display: flex;
    gap: 12px;
    padding: 20px;
    overflow-x: auto;
    scrollbar-width: none;
}

.main-nav::-webkit-scrollbar { display: none; }

.nav-item {
    background: #2a2a2a;
    border: 1px solid #333;
    color: #fff;
    padding: 8px 20px;
    border-radius: 20px;
    white-space: nowrap;
    cursor: pointer;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
}

.nav-item:hover {
    background: #333;
    border-color: var(--primary-color);
}

.nav-item.active {
    background: var(--primary-color);
    color: #000;
    border-color: var(--primary-color);
}

/* ========================================= */
/* BÖLÜM BAŞLIĞI & SAYFALAMA (GELİŞTİRİLMİŞ)  */
/* ========================================= */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px 15px 20px;
}

.section-header h2 {
    font-size: 22px;
    margin: 0;
    color: #fff;
}

.song-count {
    color: #b3b3b3;
    font-size: 14px;
    background: var(--header-bg);
    padding: 4px 12px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

/* Sayfalama Buton Alanı */
.pagination-container {
    display: flex;
    justify-content: center;
    gap: 10px;
    padding: 40px 0;
    flex-wrap: wrap;
}

.pagination-btn {
    background: #1a1a1a;
    color: #fff;
    border: 1px solid #333;
    padding: 10px 16px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: bold;
    transition: 0.3s;
    min-width: 45px;
    text-align: center;
}

.pagination-btn:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    background: #252525;
}

.pagination-btn.active {
    background: var(--primary-color);
    color: #000;
    border-color: var(--primary-color);
}

/* ========================================= */
/* ŞARKI İSTEK BUTONU                        */
/* ========================================= */
.request-btn {
    position: fixed;
    bottom: 25px;
    right: 25px;
    background: var(--primary-color);
    color: #000;
    padding: 12px 22px;
    border-radius: 30px;
    font-weight: bold;
    text-decoration: none;
    box-shadow: 0 5px 20px rgba(0,0,0,0.4);
    z-index: 9999;
    font-size: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.request-btn:hover {
  transform: scale(1.05);
  filter: brightness(1.1);
}

.fav-action-inside {
    margin-right: 10px;
    font-size: 22px;
    cursor: pointer;
    z-index: 10;
    transition: transform 0.2s ease;
    flex-shrink: 0;
}

.fav-action-inside:hover {
    transform: scale(1.3);
}


.artist-link {
    cursor: pointer;
    transition: color 0.2s ease;
    position: relative;
    z-index: 5;
}

.artist-link:hover {
    color: var(--primary-color) !important;
    text-decoration: underline;
}

/* Filtreleme Aktifken Başlık Stili */
.filter-active-note {
    background: rgba(29, 185, 84, 0.1);
    border-left: 4px solid var(--primary-color);
    padding: 10px 20px;
    margin-bottom: 20px;
    border-radius: 4px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.clear-filter {
    cursor: pointer;
    font-size: 12px;
    text-transform: uppercase;
    color: var(--primary-color);
    font-weight: bold;
}

/* ========================================= */
/* CANLI SOHBET MODERNA                      */
/* ========================================= */
#chatMessages {
    display: flex;
    flex-direction: column; 
    gap: 12px;
    padding: 15px;
    height: 350px;
    overflow-y: auto;
    background: #0a0a0a;
    border-radius: 0 0 12px 12px;
}

.chat-bubble {
    max-width: 80%;
    padding: 10px 14px;
    border-radius: 15px;
    font-size: 14px;
    line-height: 1.4;
    position: relative;
    word-wrap: break-word;
    display: flex;
    flex-direction: column;
}

.chat-left {
    align-self: flex-start;
    background: #222;
    color: #efefef;
    border-bottom-left-radius: 2px;
}

.chat-right {
    align-self: flex-end;
    background: var(--primary-color);
    color: #000;
    font-weight: 500;
    border-bottom-right-radius: 2px;
}

.chat-user-name {
    font-size: 11px;
    font-weight: 800;
    margin-bottom: 4px;
    text-transform: capitalize;
}

.chat-left .chat-user-name {
    color: var(--primary-color);
}

.chat-right .chat-user-name {
    color: rgba(0, 0, 0, 0.6);
    text-align: right;
}

.chat-text {
    white-space: pre-wrap;
}

#chatMessages::-webkit-scrollbar { width: 5px; }
#chatMessages::-webkit-scrollbar-thumb { background: #333; border-radius: 10px; }

/* ========================================= */
/* BİYOGRAFİ SAYFASI ÖZEL - MAVİ LİNK TEMİZLİĞİ */
/* ========================================= */
.bio-content a, #bioText a { 
    color: var(--primary-color) !important; /* Mavi yerine yeşil yap */
    text-decoration: none !important; 
    cursor: default !important; 
    pointer-events: none !important; /* Tıklanmayı kapat */
}

#bioText b, #bioText strong {
    color: #fff !important; /* Kalın yazıları parlat */
}

#bioText p {
    color: #b3b3b3 !important; /* Paragrafları standart gri yap */
    margin-bottom: 1.2rem;
}

#bioText h2, #bioText h1 {
    color: #fff !important;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 10px;
    margin-top: 30px;
}

/* Wikipedia'daki gereksiz edit linklerini gizle */
.mw-editsection, .new {
    display: none !important;
}

/* ========================================= */
/* HERO VE DÜZENLEME                         */
/* ========================================= */
.hero-section {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 30px !important;
    margin: 50px 0 !important;
}

.side-songs {
    display: flex !important;
    flex-direction: column !important;
    gap: 15px !important;
    flex: 1 !important;
    max-width: 320px !important;
}

.center-artist {
    flex: 1.5 !important;
    text-align: center !important;
}

@media (max-width: 768px) {
    .hero-section {
        flex-direction: column !important;
    }
    .side-songs {
        width: 100% !important;
        max-width: 100% !important;
    }
}



