/* Genel Sayfa Düzeni */
.blog-layout {
    display: flex;
    max-width: 1100px;
    margin: 30px auto;
    gap: 30px;
    font-family: system-ui, -apple-system, sans-serif;
    padding: 0 20px;
}

/* Yan Menü (Liste Alanı) */
.sidebar {
    flex: 1;
    min-width: 250px;
    max-width: 300px;
    background-color: #f8f9fa;
    padding: 20px;
    border-radius: 12px;
    height: fit-content;
}
.sidebar h3 {
    margin-top: 0;
    color: #333;
    border-bottom: 2px solid #dee2e6;
    padding-bottom: 10px;
}
#chat-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
#chat-list li {
    padding: 10px 12px;
    background-color: white;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 1px solid #e9ecef;
    font-size: 14px;
    font-weight: 500;
}
#chat-list li:hover, #chat-list li.active {
    background-color: #007bff;
    color: white;
    border-color: #007bff;
}

/* Sağ Taraf: Sohbet Akış Alanı */
.chat-content {
    flex: 3;
    background: #ffffff;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    padding: 20px;
}
#chat-blog-canvas {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Konuşma Balonları Stilleri (Öncekiyle Aynı) */
.chat-row { display: flex; align-items: flex-start; gap: 12px; width: 100%; }
.chat-row.user { flex-direction: row-reverse; }
.chat-row.ai { flex-direction: row; }
.chat-avatar { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; }
.chat-bubble { max-width: 70%; padding: 12px 16px; border-radius: 18px; line-height: 1.5; font-size: 15px; white-space: pre-wrap; }
.Erşan .chat-bubble { background-color: #007bff; color: white; border-bottom-right-radius: 4px; }
.Gemini .chat-bubble { background-color: #f1f3f5; color: #212529; border-top-left-radius: 4px; }
.chat-bubble pre { background: #272822; color: #f8f8f2; padding: 10px; border-radius: 6px; overflow-x: auto; font-family: monospace; margin-top: 8px; }

/* Mobil Uyum */
@media (max-width: 768px) {
    .blog-layout { flex-direction: column; }
    .sidebar { max-width: 100%; }
}