/* ======================== RESEARCH PAGE STYLES ======================== */

/* Sayfa Geçiş Animasyonu */
body {
    opacity: 0;
    transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: opacity;
}

body.page-loaded {
    opacity: 1;
}

/* --- Okuma İlerleme Çubuğu --- */
.progress-bar-container {
    position: fixed;
    top: var(--navbar-height); /* Header'ın hemen altında */
    left: 0;
    width: 100%;
    height: 3px;
    background-color: transparent;
    z-index: 1001; /* Her şeyin üstünde ama header'ın altında */
}

.progress-bar {
    height: 100%;
    width: 0%; /* Başlangıçta genişlik 0 */
    background: linear-gradient(90deg, #fff, #aaa);
    transition: width 0.1s linear;
}

/* ======================================== */
/* --- BRIQ Labs Araştırma Sayfası Stilleri --- */
/* ======================================== */

:root {
    --article-max-width: 1120px; /* Okunabilirlik için ideal metin genişliği */
    --meta-text-color: #888;
    --border-color-light: #333;
}

/* --- Genel Sayfa Düzeni --- */
.research-page {
    padding-top: var(--navbar-height); /* Sabit header'ın altında başlasın */
}

.research-article.container {
    max-width: var(--article-max-width);
    padding-top: 2rem;
    padding-bottom: 4rem;
    padding-left: 2rem;
    padding-right: 2rem;
}

/* --- Breadcrumb (Sayfa Yolu) --- */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 2rem;
    font-size: 0.875rem;
    color: var(--meta-text-color);
}
.breadcrumb a {
    color: #ccc;
    text-decoration: none;
}
.breadcrumb a:hover {
    text-decoration: underline;
}

/* --- Makale Başlığı ve Metası --- */
.article-header {
    margin-bottom: 3rem;
    border-bottom: 1px solid var(--border-color-light);
    padding-bottom: 3rem;
}
.article-header h1 {
    font-size: 2.75rem;
    line-height: 1.2;
    letter-spacing: -0.02em;
    margin-bottom: 1.5rem;
    color: #fff;
}
.article-meta {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--meta-text-color);
    font-size: 0.9rem;
}
.article-meta .separator {
    font-weight: bold;
}
.article-meta .category {
    background-color: #222;
    padding: 0.2rem 0.6rem;
    border-radius: 1rem;
    font-size: 0.8rem;
    color: #ddd;
}

.article-divider {
    border: none; /* Varsayılan çirkin çizgiyi kaldır */
    height: 1px; /* Yükseklik */
    background-color: #333; /* Çizgi rengi (var(--border-color-light) ile aynı) */
    margin: 3rem 0; /* Üstten ve alttan boşluk bırakır */
}

/* --- Öne Çıkan Görsel --- */
.featured-image {
    margin-bottom: 2.5rem;
}
.featured-image img {
    width: 100%;
    height: 320px;
    border-radius: 12px;
    object-fit: cover;
}

/* --- Makale İçeriği --- */


.article-content h2,
.article-content h3 {
    margin-top: 0 !important;
    margin-bottom: 1rem;
    line-height: 1.3;
    color: #f1f3f4;
}
.article-content h2 { font-size: 1.8rem; }
.article-content h3 { font-size: 1.4rem; }
.article-content h4 { font-size: 1.2rem; margin-bottom: 0.5rem;}

.article-content p {
    font-size: 1.05rem;
    line-height: 1.7;
    color: #ccc;
    margin-bottom: 1rem;
}
.article-content ul,
.article-content ol {
    padding-left: 1.5rem;
    margin-bottom: 1rem;
    font-size: 1.05rem;
    line-height: 1.7;
    color: #ccc;
}
.article-content li {
    margin-bottom: 1rem;
}
.article-content strong {
    color: #fff;
}


/* --- CTA (Harekete Geçirici Mesaj) --- */
.cta-section {
    margin-top: 3rem;
    margin-bottom: 3rem;
    padding-left: 2rem;
    padding-top: 1rem;
    padding-bottom: 1rem;
    border-left: 0.5rem solid white;
    background-color: transparent;

    text-align: left;
}
.cta-section h2 { margin-top: 0; font-size: 1.8rem; margin-bottom: 1rem;}
.cta-section p { margin-bottom: 1rem; color: #ddd; font-size: 1.05rem; line-height: 1.6;}
.cta-section .cta-button {
    display: inline-block;
    margin-top: 0.5rem;
    background-color: transparent;
    color: #fff;
    font-weight: bold;
    padding: 0.75rem 1.5rem;
    border-radius: 2rem;
    transition: transform 0.2s ease, background-color 0.2s ease;
}
.cta-section .cta-button:hover {
    color: #000000;
    background-color: #fff;
}

/* --- Paylaşım Butonları --- */
.share-buttons {
    margin-top: 1rem;
    margin-bottom: 3rem;
    border-radius: 1rem;
    background: transparent;
    text-align: left;
    box-shadow: 0 4px 12px rgba(0,0,0,0.25);
}

.share-buttons h3 {
    color: #fff;
    margin-bottom: 1rem;
    font-size: 1.8rem;
    margin-top: 2.5rem;
}

.share-subtitle {
    color: #bbb;
    font-size: 0.95rem;
    margin-bottom: 1.25rem;
}

.share-icons {
    display: flex;
    flex-wrap: wrap;
    justify-content: left;
    gap: 1rem;
}

.share-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #ddd;
    background: transparent;
    border: 1px solid #272727;
    border-radius: 2rem;
    padding: 0.6rem 1rem;
    transition: transform 0.2s ease, background-color 0.2s ease;
    font-size: 0.875rem;
    font-weight: bold;
}

.share-btn:hover {
    background: #fff;
    color: #000000;
}

/* --- İlgili Araştırmalar --- */
.related-research {
    padding-top: 3rem;
    border-top: 1px solid var(--border-color-light);
}
.related-research h2 {
    margin-bottom: 2rem;
    text-align: center;
}
.related-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}
.related-card {
    display: block;
    text-decoration: none;
    border-radius: 12px;
    overflow: hidden;
    background-color: #111;
    transition: transform 0.2s ease;
}
.related-card:hover {
    transform: translateY(0);
    border-color: #fff;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.6);
}
.related-card img {
    width: 100%;
    height: 150px;
    object-fit: cover;
}
.related-card h3 {
    font-size: 1rem;
    padding: 1rem;
    margin: 0;
    color: #f1f3f4;
    line-height: 2;
}

/* --- Mobil Uyumluluk --- */
@media (max-width: 768px) {
    .article-header h1 {
        font-size: 2rem;
    }
    .related-grid {
        grid-template-columns: 1fr;
    }
}


 /* ANA RESEARCH KISMI */
.research-list-page {
    padding-top: var(--navbar-height);
}

.research-list-header h1 {
    font-size: 2.75rem;
    line-height: 1.2;
    letter-spacing: -0.02em;
    margin-bottom: 1.5rem;
    color: #fff;
    
}

.research-list-header p {
    font-size: 1.05rem;
    line-height: 1.7;
    color: #ccc;

    border-bottom: 1px solid var(--border-color-light);
    padding-bottom: 3rem;
}

.research-list-container {
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 2rem;
    padding-top: 2rem;
    padding-bottom: 4rem;
}

.research-list-item {
    display: flex;
    align-items: center;
    gap: 2rem;
    text-decoration: none;
    padding: 3rem 0;
    border-bottom: 1px solid #333;
    transition: background-color 0.2s ease;
}

.research-list-image-container {
    width: 200px;
    flex-shrink: 0;
    aspect-ratio: 16 / 10;
    border-radius: 8px;
    overflow: hidden;
}

.research-list-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.research-list-item:hover .research-list-image-container img {
    transform: scale(1.05);
}

.research-list-text-content {
    flex-grow: 1;
}

.research-list-header {
    max-width: var(--article-max-width);
    text-align: left;
    margin: 0 auto;

}

.research-list-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.research-list-item .article-meta {
    margin-bottom: 1rem;
    font-size: 0.85rem;
}

.research-list-item h2 {
    font-size: 1.75rem;
    color: #f1f3f4;
    margin-bottom: 0.75rem;
}

.research-list-item p {
    color: #b3b3b3;
    line-height: 1.6;
}

.read-more {
    display: inline-block;
    margin-top: 1rem;
    font-weight: 600;
    color: #fff;
}

.read-more:after {
    content: ' →';
}

@media (max-width: 768px) {
    .research-list-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 1.5rem;
    }
    .research-list-image-container {
        width: 100%;
        max-width: 320px;
    }
}

/* ======================================== */
/* --- TABLO STİLLERİ (DARK MODE) --- */
/* ======================================== */

/* Genel Kapsayıcı */
.table-wrapper {
    width: 100%;
    overflow-x: auto;
    margin: 2rem 0;
    border-radius: 1.2rem;
    border: 1px solid rgba(255,255,255,0.08);
    background: rgba(255,255,255,0.02);
    -webkit-backdrop-filter: blur(2px);
    backdrop-filter: blur(2px);
}

/* Tablo Temel Ayarları */
.article-content table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.96rem;
    color: #ddd;
    background-color: #0d0d0d;
}

/* Başlık Satırı */
.article-content thead th {
    background-color: rgba(255,255,255,0.05);
    color: #fff;
    font-weight: 700;
    text-align: left;
    padding: 14px 16px;
    border-bottom: 1px solid rgba(255,255,255,0.15);
    white-space: nowrap;
    backdrop-filter: blur(4px);
}

/* Veri Hücreleri */
.article-content tbody td {
    padding: 12px 16px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    vertical-align: top;
    line-height: 1.55;
}

/* Satır Hover Efekti */
.article-content tbody tr {
    transition: background-color 0.18s ease, transform 0.1s ease;
}

.article-content tbody tr:hover {
    background-color: rgba(255,255,255,0.05);
}

/* Zebra Row – hafif ton farkı (renk değil, sadece opacity farkı) */
.article-content tbody tr:nth-child(even) {
    background-color: rgba(255,255,255,0.015);
}

/* Son Satır çizgisiz */
.article-content tbody tr:last-child td {
    border-bottom: none;
}

/* Mobilde başlık sabitliği (opsiyonel, çok modern bir efekt) */
@media (max-width: 600px) {
    .article-content thead th {
        position: sticky;
        top: 0;
        z-index: 3;
        backdrop-filter: blur(6px);
    }
}


/* ======================================== */
/* --- BLOCKQUOTE / NOT KUTUSU STİLLERİ --- */
/* ======================================== */

blockquote.research-note {
    background-color: #272727; /* Sayfa zemininden çok hafif açık/farklı bir ton */
    border-left: 4px solid #F1F3F4; /* BRIQ Kırmızısı (Marka Rengi) */
    
    margin: 2rem 0;
    padding: 1.5rem;
    border-radius: 0 8px 8px 0; /* Sadece sağ tarafları yuvarla */
    
    color: #cbd5e1; /* Metin rengi (hafif kırık beyaz) */
    font-style: normal; /* Akademik alıntı havası */
    line-height: 1.6;
    position: relative;
}

/* İçindeki Bold (**Not:**) kısımları için özel stil */
blockquote.research-note strong {
    color: #fff; /* Başlık bembeyaz olsun */
    font-weight: 700;
    font-style: normal; /* "Not:" yazısı italik olmasın, dik dursun */
    text-transform: uppercase; /* İsteğe bağlı: NOT kelimesini büyük yapar */
    letter-spacing: 0.5px;
}

/* Mobilde kenar boşluklarını ayarla */
@media (max-width: 768px) {
    blockquote.research-note {
        padding: 1rem;
        margin: 1.5rem 0;
    }
}



/* ======================================== */
/* --- LOAD MORE BUTONU STİLLERİ --- */
/* ======================================== */

.load-more-container {
    display: flex;
    justify-content: center;
    padding-top: 3rem;
    padding-bottom: 0;
}

.load-more-btn {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2rem;
    background: transparent;
    border: 1px solid #333;
    border-radius: 3rem;
    color: #fff;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.load-more-btn:hover {
    background: #fff;
    color: #000;
    border-color: #fff;
    transform: translateY(0);
}

.load-more-btn:hover .load-more-icon {
    transform: translateY(0);
}

.load-more-count {
    opacity: 0.7;
    font-weight: 400;
}

.load-more-icon {
    transition: transform 0.3s ease;
}

/* Loading durumu */
.load-more-btn.loading {
    pointer-events: none;
    opacity: 0.7;
}

.load-more-btn.loading .load-more-icon {
    animation: bounce 0.6s ease infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(5px); }
}

/* Yeni eklenen item animasyonları */
.research-list-item--new {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.research-list-item--new.research-list-item--visible {
    opacity: 1;
    transform: translateY(0);
}

/* Header altı çizgi (build.js'de kullanılıyor) */
.research-header-line {
    border: none;
    height: 1px;
    background-color: #333;
    margin: 0 0 1rem 0;
}

/* Mobil uyumluluk */
@media (max-width: 768px) {
    .load-more-btn {
        padding: 0.875rem 1.5rem;
        font-size: 0.9rem;
    }
    
    .load-more-container {
        padding: 2rem 0;
    }
}