/* --- style.css (YouTube Layout) --- */
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;500;700&display=swap');

:root {
    --header-height: 60px;
    --sidebar-width: 240px;
    --bg-color: #f9f9f9;
    --white: #ffffff;
    --text-main: #0f0f0f;
    --text-gray: #606060;
    --border-color: #e5e5e5;
    --red: #cc0000; /* YouTube kırmızısı gibi bir vurgu rengi */
}

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

body {
    font-family: 'Roboto', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-main);
    padding-top: var(--header-height); /* Header için üstten boşluk */
}

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

/* --- HEADER (ÜST ÇUBUK) --- */
.ana-header {
    position: fixed;
    top: 0; left: 0; right: 0;
    height: var(--header-height);
    background: var(--white);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 25px;
    z-index: 100;
    border-bottom: 1px solid var(--border-color);
}

.logo { font-size: 1.2rem; font-weight: 700; display: flex; align-items: center; gap: 5px; }
.logo i { color: var(--red); font-size: 1.5rem; }

/* Arama Kutusu */
.orta-kisim { flex: 1; display: flex; justify-content: center; }
.arama-formu { display: flex; width: 100%; max-width: 600px; }
.arama-formu input {
    width: 100%; padding: 8px 15px; border: 1px solid #ccc;
    border-radius: 2px 0 0 2px; outline: none; font-size: 1rem;
}
.arama-formu button {
    padding: 8px 20px; border: 1px solid #ccc; border-left: none;
    background: #f8f8f8; cursor: pointer; border-radius: 0 2px 2px 0;
}
.arama-formu button:hover { background: #f0f0f0; }

/* Sağ Butonlar */
.sag-kisim { display: flex; gap: 15px; align-items: center; }
.btn-giris {
    color: #065fd4; border: 1px solid #def1ff; padding: 5px 12px;
    border-radius: 2px; font-weight: 500; text-transform: uppercase; font-size: 0.9rem;
}
.btn-giris:hover { background: #def1ff; }

/* --- ANA YERLEŞİM (SIDEBAR + VİDEOLAR) --- */
.sayfa-govdesi {
    display: flex; /* Yan yana dizme */
    min-height: calc(100vh - var(--header-height));
}

/* SOL MENÜ (SIDEBAR) */
.sidebar {
    width: var(--sidebar-width);
    background: var(--bg-color); /* Sayfa rengiyle aynı olsun */
    position: fixed;
    left: 0; top: var(--header-height); bottom: 0;
    overflow-y: auto;
    padding: 10px 0;
}

.sidebar a {
    display: flex; align-items: center; gap: 20px;
    padding: 10px 24px; font-size: 0.95rem; font-weight: 400;
}
.sidebar a:hover { background: #e5e5e5; }
.sidebar a.aktif { background: #e5e5e5; font-weight: 500; }
.sidebar i { font-size: 1.2rem; width: 24px; text-align: center; color: var(--text-main); }

/* SAĞ TARAF (VİDEO ALANI) */
.icerik-alani {
    margin-left: var(--sidebar-width); /* Sidebar kadar boşluk bırak */
    width: 100%;
    padding: 24px;
}

/* VİDEO IZGARASI (GRID) */
.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); /* Ekran küçüldükçe sığdır */
    gap: 20px;
}

/* VİDEO KARTI */
.video-kart { cursor: pointer; }
.thumbnail {
    width: 100%; height: 160px; background: #ddd; /* Resim yoksa gri kutu */
    border-radius: 12px; margin-bottom: 10px; position: relative; overflow: hidden;
}
.thumbnail img { width: 100%; height: 100%; object-fit: cover; }
.video-bilgi { display: flex; gap: 10px; }
.kanal-resmi { width: 36px; height: 36px; border-radius: 50%; background: #aaa; }
.detaylar h3 { font-size: 1rem; margin-bottom: 4px; line-height: 1.2; font-weight: 500; }
.detaylar p { font-size: 0.85rem; color: var(--text-gray); }