/* Dosya Konumu: css/header.css */

/* --- SOL SİDEBAR --- */
aside {
    width: 210px; 
    border-right: 1px solid var(--border); 
    padding: 0;
    display: flex;
    flex-direction: column;
    flex-shrink: 0; 
}

/* LOGO ALANI */
.logo-area {
    height: 75px;
    padding: 0 15px; 
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 20px; 
    font-weight: 800;
    border-bottom: 1px solid var(--border); 
    margin-bottom: 25px; 
}

.logo-area span { 
    color: var(--accent); 
    font-size: 10px; 
    vertical-align: super; 
}

/* MENÜ LİSTESİ */
.menu-label {
    font-size: 11px;
    font-weight: 700;
    color: var(--text-muted);
    padding: 0 15px; 
    margin-bottom: 10px;
    letter-spacing: 1px;
}

.nav-list { 
    list-style: none; 
    padding: 0;
    margin: 0;
}

.nav-item {
    list-style: none;
}

/* LINK TASARIMI */
.nav-item a {
    padding: 12px 15px; 
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text-muted);
    font-size: 14px;
    text-decoration: none;
    transition: 0.2s;
    border-right: 3px solid transparent;
}

.nav-item a i { 
    width: 20px; 
    text-align: center; 
    font-size: 16px; 
}

/* ACTIVE */
.nav-item.active a {
    color: var(--accent);
    background: rgba(0, 207, 200, 0.03);
    border-right: 3px solid var(--accent); 
}

/* HOVER */
.nav-item a:hover:not(.active) {
    background: var(--bg-input);
    color: #fff;
}

/* --- ÜST HEADER --- */
.top-header {
    height: 75px;
    padding: 0 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border); 
    background-color: var(--bg-content);
}

/* ARAMA KUTUSU - MAKSİMUM GENİŞLEME */
.search-box {
    position: relative;
    width: 450px; /* Başlangıç genişliği */
    /* Cubic-bezier ile çok daha akıcı bir uzama hissi verdik */
    transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1); 
    z-index: 10;
}

/* MOUSE ÜSTÜNE GELİNCE VEYA TIKLANINCA GİRİŞ BUTONUNA KADAR UZAR */
.search-box:hover, 
.search-box:focus-within {
    width: 820px; /* ARTIK ÇOK DAHA GENİŞ */
}

.search-box input {
    width: 100%;
    background: var(--bg-input);
    border: 1px solid var(--border);
    padding: 10px 15px 10px 45px;
    border-radius: 20px;
    color: #fff;
    outline: none;
    transition: border-color 0.3s ease, background 0.3s ease;
}

/* Tıklayınca Mavi Çizgi ve Hafif Parlama */
.search-box input:focus {
    border-color: var(--accent);
    background: #1e2129; /* Odaklanınca hafifçe renk açılır */
}

.search-box i { 
    position: absolute; 
    left: 18px; 
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted); 
    transition: color 0.3s ease;
    pointer-events: none;
}

/* Tıklandığında ikon da mavi parlasın */
.search-box:focus-within i {
    color: var(--accent);
}

/* --- BUTONLAR --- */
.auth-btns {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0; 
}

/* Her iki buton için netleştirilmiş, orijinal renk ayarları */
.auth-btns button {
    background: var(--bg-input); /* Senin orijinal arka plan rengin */
    border: 1px solid var(--border); /* Senin orijinal çerçeven */
    color: #fff;
    font-family: 'Inter', sans-serif;
    font-weight: 700; /* Yazıyı daha dolgun ve net yapar */
    font-size: 12px;
    padding: 9px 20px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    letter-spacing: 0.5px;
    text-shadow: none !important; /* Bulanıklığı ve o garip titremeyi KESİN çözer */
    white-space: nowrap;
    position: relative;
    overflow: hidden; /* Animasyonun dışarı taşmasını engeller */
}

/* KAYIT OL BUTONU (Orijinal Hover) */
#registerBtn:hover {
    background: #24282e;
    border-color: var(--text-muted);
}

/* GİRİŞ YAP BUTONU ANİMASYONU (Işık Yansıması) */
#loginBtn::after {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.15), transparent);
    transform: skewX(-25deg);
    transition: left 0.5s ease;
}

#loginBtn:hover {
    background: #24282e;
    border-color: var(--accent); /* Üzerine gelince çerçeveniz temanın renginde parlar */
    transform: translateY(-2px); /* Çok hafif yukarı kalkar */
}

#loginBtn:hover::after {
    left: 150%; /* Işığın soldan sağa kaymasını tetikler */
}
/* Sidebar Trend Listesi Genel */
.trend-sidebar {
    list-style: none;
    padding: 0 15px; /* Yanlardan içeri aldık, tam ortalı duracak */
    margin: 15px 0;
}

/* Her Bir Satır */
.trend-link {
    display: flex;
    align-items: center;
    padding: 8px 10px; /* İç boşluğu daralttık */
    gap: 12px;
    text-decoration: none;
    transition: all 0.2s ease;
    border-radius: 8px;
    margin-bottom: 5px;
}

.trend-link:hover {
    background: rgba(255, 255, 255, 0.03); /* Çok hafif bir aydınlanma */
    transform: translateX(4px); /* Hafif sağa kayma efekti */
}

/* Poster Alanı (Daha Küçük) */
.trend-img {
    width: 32px;  /* Genişliği küçülttük */
    height: 46px; /* Yüksekliği küçülttük */
    flex-shrink: 0;
    border-radius: 5px;
    overflow: hidden;
    background: #1a1a1a;
}

.trend-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Yazı Alanı */
.trend-text {
    display: flex;
    flex-direction: column;
    min-width: 0; /* Taşmayı önler */
}

.t-name {
    color: #efefef;
    font-size: 12.5px; /* Yazıyı kibarlaştırdık */
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis; /* Çok uzun isimleri keser */
}

.t-stats {
    color: var(--accent); /* Temanın ana rengi (turkuaz/yeşil) */
    font-size: 10.5px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 4px;
    margin-top: 1px;
    opacity: 0.9;
}

/* Üzerine gelince başlık rengi değişsin */
.trend-link:hover .t-name {
    color: var(--accent);
}