/* --- Arama Sayfası Genel --- */
.search-page-container {
    max-width: 900px;
    margin: 30px auto;
    padding: 0 15px;
}

/* --- Üst Arama Formu --- */
.search-header { background-color: #ffffff; padding: 25px; border: 1px solid #e9ecef; border-radius: 12px; text-align: center; margin-bottom: 40px; }
.search-title { margin: 0 0 10px 0; font-size: 1.75rem; }
.search-subtitle { margin: 0 0 20px 0; color: #6c757d; }
.search-form { display: flex; justify-content: center; gap: 10px; }
.search-input-wrapper { position: relative; width: 100%; max-width: 500px; }
.search-icon { position: absolute; left: 15px; top: 50%; transform: translateY(-50%); color: #adb5bd; }
.search-input { width: 100%; padding: 12px 12px 12px 50px; border: 1px solid #ced4da; border-radius: 8px; font-size: 1rem; transition: border-color 0.2s, box-shadow 0.2s; }
.search-input:focus { border-color: #0d6efd; outline: 0; box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.25); }
.search-button { padding: 12px 25px; font-size: 1rem; font-weight: 500; color: #fff; background-color: #0d6efd; border: 1px solid #0d6efd; border-radius: 8px; cursor: pointer; transition: background-color 0.2s; }
.search-button:hover { background-color: #0b5ed7; }

/* --- Sonuç Başlığı ve Listesi --- */
.results-title { margin-bottom: 25px; font-weight: 500; font-size: 1.25rem; }
.no-results { background-color: #f8f9fa; padding: 30px; text-align: center; border-radius: 12px; border: 1px solid #e9ecef; }
#topic-list { display: flex; flex-direction: column; gap: 25px; }


/* ======================================= */
/* === YENİ SADE KART TASARIMI STİLLERİ === */
/* ======================================= */

.topic-card {
    background-color: #fff;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    padding: 24px;
    display: flex;
    flex-direction: column;
}

/* BAŞLIK */
.topic-title {
    margin: 0 0 12px 0;
    font-size: 1.5rem;
}
.topic-title a {
    color: #212529;
    text-decoration: none;
    font-weight: 700;
}
.topic-title a:hover { color: #0056b3; }

/* YAZAR, KATEGORİ, ZAMAN BİLGİ SATIRI */
.topic-meta-line {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    color: #6c757d;
    margin-bottom: 16px;
}
.author-avatar {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background-color: #0d6efd;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 0.8rem;
}
.author-avatar::before { content: attr(data-char); }
.author-name { font-weight: 500; color: #495057; }
.topic-category { color: #0d6efd; text-decoration: none; font-weight: 500; }
.topic-category:hover { text-decoration: underline; }
.meta-separator { color: #ced4da; }

/* İÇERİK */
.topic-content {
    margin: 0;
    color: #495057;
    line-height: 1.6;
    flex-grow: 1; /* içeriğin esneyip alt bölümü aşağı itmesini sağlar */
}

/* YORUM/GÖRÜNTÜLENME SAYISI */
.topic-stats {
    display: flex;
    gap: 16px;
    color: #6c757d;
    font-size: 0.9rem;
    margin: 16px 0;
}
.topic-stats .meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
}

/* KART ALT BÖLÜM (FOOTER) */
.topic-card-footer {
    padding-top: 16px;
    border-top: 1px solid #e9ecef;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
}
.footer-left, .footer-right { display: flex; }

.btn-expert {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background-color: #e7f1ff;
    color: #0d6efd;
    padding: 6px 12px;
    border-radius: 8px;
    font-weight: 500;
    font-size: 0.9rem;
    border: 1px solid #b3d1ff;
}

.btn-incele {
    background-color: #0d6efd;
    color: #fff;
    padding: 8px 20px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    transition: background-color 0.2s;
    white-space: nowrap;
}
.btn-incele:hover { background-color: #0b5ed7; }

/* SAYFALAMA */
.pagination { text-align: center; margin-top: 40px; }
.pagination a { color: #0d6efd; padding: 8px 16px; text-decoration: none; border: 1px solid #ddd; margin: 0 4px; border-radius: 4px; transition: background-color 0.3s; }
.pagination a.active { background-color: #0d6efd; color: white; border-color: #0d6efd; }
.pagination a:hover:not(.active) { background-color: #f2f2f2; }