/* assets/css/style.css */
/* PubliJournal Frontend Ana Stili */

:root {
    /* Varsayılan Renkler (PHP ile ezilecek) */
    --theme-primary: #2563eb;
    --theme-rgb: 37, 99, 235;
    --theme-secondary: #333;
    --text-color: #333;
    --bg-color: #f8fafc;
    --font-family: 'Figtree', sans-serif;
}

body { font-family: var(--font-family); margin: 0; background: var(--bg-color); color: var(--text-color); }
a { text-decoration: none; color: inherit; transition: 0.2s; }
.container, .home-container { max-width: 1250px; margin: 0 auto; padding: 0 20px; }

/* --- HEADER --- */
.site-header { background: #fff; border-bottom: 1px solid #e2e8f0; padding: 15px 0; }
.header-inner { display: flex; justify-content: space-between; align-items: center; }
.logo h1 { font-size: 24px; color: #1e40af; margin: 0; }
.main-nav ul { list-style: none; display: flex; gap: 20px; padding: 0; margin: 0; }
.main-nav a { font-weight: 600; color: #64748b; font-size: 14px; }
.main-nav a:hover { color: var(--theme-primary); }
.btn-primary { background: var(--theme-primary); color: #fff; padding: 10px 20px; border-radius: 6px; font-weight: 600; display: inline-block; }

/* --- HERO ALANI (Mesh Gradient) --- */
.hero-wrapper {
    width: 100%; position: relative; overflow: hidden; margin-bottom: 50px;
    background-color: #f8fafc;
    background-image: 
        radial-gradient(at 0% 0%, rgba(var(--theme-rgb), 0.15) 0px, transparent 50%),
        radial-gradient(at 100% 0%, rgba(var(--theme-rgb), 0.10) 0px, transparent 50%),
        radial-gradient(at 100% 100%, rgba(255,255,255,0.8) 0px, transparent 50%);
    border-bottom: 1px solid rgba(var(--theme-rgb), 0.05);
}
.hero-inner { max-width: 1250px; margin: 0 auto; padding: 40px 20px; display: flex; align-items: center; gap: 60px; position: relative; z-index: 2; }
.hero-left { flex: 1.6; padding-left: 80px; }
.hero-right { flex: 1; display: flex; justify-content: center; perspective: 1000px; }
.hero-title { font-size: 44px; font-weight: 800; color: #1e293b; line-height: 1.15; margin: 0 0 20px 0; letter-spacing: -1px; }
.hero-desc { font-size: 17px; line-height: 1.7; color: #64748b; margin-bottom: 35px; max-width: 90%; }

/* Hero Meta & Buttons */
.hero-meta {
    display: flex; gap: 25px; margin-bottom: 35px; 
    font-size: 15px; font-weight: 600; color: #475569;
    background: rgba(255,255,255,0.6); padding: 12px 25px; border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.8); width: fit-content;
}
.hero-meta i { color: var(--theme-primary); margin-right: 5px; }
.hero-btns { display: flex; gap: 15px; }
.btn-hero { padding: 15px 35px; border-radius: 50px; font-weight: 700; font-size: 15px; display: inline-flex; align-items: center; gap: 10px; }
.btn-hero-pri { background: var(--theme-primary); color: #fff; box-shadow: 0 10px 20px -5px rgba(var(--theme-rgb), 0.4); }
.btn-hero-sec { background: #fff; color: #333; border: 1px solid #e2e8f0; }

/* Kapak Resmi */
.book-cover { 
    max-width: 260px; width: 100%; border-radius: 8px; 
    box-shadow: 20px 20px 50px rgba(0,0,0,0.15), -2px 2px 5px rgba(255,255,255,0.3) inset;
    transform: rotateY(-12deg) rotateX(5deg); transition: 0.3s ease; cursor: zoom-in;
}
.book-cover:hover { transform: rotateY(0deg) rotateX(0deg) scale(1.02); }

/* --- MAKALE LİSTESİ --- */
.articles-wrapper-box { background: #fff; border: 1px solid #eef2f6; border-radius: 16px; padding: 40px; box-shadow: 0 10px 40px -10px rgba(0,0,0,0.03); }
.article-list-container { counter-reset: article-counter; }

.article-list-item {
    position: relative; padding: 35px 30px 35px 80px; border-bottom: 1px solid #f1f5f9; border-radius: 12px;
    transition: all 0.25s ease; margin-bottom: 15px; overflow: hidden;
    background-color: rgba(var(--theme-rgb), 0.03);
    box-shadow: inset 6px 0 0 0 var(--theme-primary);
}
.article-list-item:hover { background-color: rgba(var(--theme-rgb), 0.05); }

/* Büyük Numara (01, 02) */
.article-list-item::before {
    counter-increment: article-counter; content: counter(article-counter, decimal-leading-zero);
    position: absolute; left: 20px; top: 35px; font-size: 32px; font-weight: 900; line-height: 1;
    color: rgba(var(--theme-rgb), 0.40); z-index: 0; pointer-events: none;
}

/* Makale Grid Yapısı */
.article-card { display: grid; grid-template-columns: 1fr 50px; grid-template-areas: "pill pages" "content actions"; column-gap: 22px; row-gap: 14px; position: relative; z-index: 1; }
.article-top-left { grid-area: pill; }
.article-top-right { grid-area: pages; justify-self: end; align-self: start; }
.article-main { grid-area: content; min-width: 0; }
.article-actions { grid-area: actions; display: flex; justify-content: flex-end; align-items: flex-end; }

.article-type-pill { background:#f8fafc; color:#64748b; font-size:11px; font-weight:700; padding:6px 12px; border-radius:10px; text-transform:uppercase; border:1px solid #e2e8f0; display:inline-flex; align-items:center; gap:8px; }
.article-page-range { font-size:13px; font-weight:800; color: var(--theme-primary); background: rgba(var(--theme-rgb), 0.08); border: 1px solid rgba(var(--theme-rgb), 0.20); padding: 8px 14px; border-radius: 999px; }
.article-title-link { color:#1e293b; font-weight:800; font-size: 22px; transition: 0.2s; }
.article-title-link:hover { color: var(--theme-primary); }
.kw-tag { background: #f1f5f9; color: #64748b; padding: 5px 12px; border-radius: 50px; font-size: 11px; font-weight: 600; display: inline-flex; align-items: center; gap: 5px; }
.kw-tag:hover { background: var(--theme-primary); color: #fff; }

.btn-view-article { background: var(--theme-primary); color: #fff; padding: 8px 20px; border-radius: 50px; font-size: 12px; font-weight: 600; white-space: nowrap; }

/* --- SIDEBAR & WIDGETS --- */
.content-grid { display: grid; gap: 40px; grid-template-columns: 2.3fr 1fr; }
.widget { background: #fff; border: 1px solid #e2e8f0; border-radius: 12px; padding: 20px; margin-bottom: 25px; }
.widget-title { margin: 0 0 15px 0; color: #1e293b; font-size: 16px; font-weight: 700; border-bottom: 2px solid #f1f5f9; padding-bottom: 10px; }

/* --- LIGHTBOX --- */
.lightbox { display: none; position: fixed; z-index: 9999; left: 0; top: 0; width: 100%; height: 100%; background-color: rgba(0,0,0,0.9); align-items: center; justify-content: center; opacity: 0; transition: opacity 0.3s ease; }
.lightbox.active { display: flex; opacity: 1; }
.lightbox-content { max-width: 90%; max-height: 90%; border-radius: 4px; transform: scale(0.9); transition: transform 0.3s ease; }
.lightbox.active .lightbox-content { transform: scale(1); }
.lightbox-close { position: absolute; top: 20px; right: 30px; color: #fff; font-size: 40px; cursor: pointer; }

/* --- RESPONSIVE --- */
@media (max-width: 992px) {
    .content-grid { grid-template-columns: 1fr; }
    .hero-inner { flex-direction: column; text-align: center; padding: 50px 20px; }
    .hero-left { padding: 0; }
    .hero-meta { justify-content: center; }
    .hero-btns { justify-content: center; }
}
@media (max-width: 768px) {
    .article-card { grid-template-columns: 1fr auto; grid-template-areas: "pill pages" "content content" "actions actions"; }
    .article-top-left { justify-self: center; }
    .article-list-item { padding: 20px; }
    .article-list-item::before { opacity: 0.2; font-size: 24px; top: 20px; left: 20px; }
}

/* --- ARSIV.PHP STİLLERİ (PubliJournal Unified) --- */

.archive-container { max-width: 1250px; margin: 40px auto; padding: 0 20px; min-height: 60vh; }
.archive-layout { display: grid; grid-template-columns: 2.5fr 1fr; gap: 40px; }

/* Ana Kart */
.archive-main-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 40px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.01);
}

/* Başlıklar */
.archive-header { margin-bottom: 30px; border-bottom: 1px solid #f1f5f9; padding-bottom: 20px; }
.page-title { 
    font-size: 28px; font-weight: 800; color: #1e293b; 
    margin: 0 0 10px 0; line-height: 1.2; 
    border-left: 5px solid var(--theme-primary); /* Dinamik Renk */
    padding-left: 15px; 
}
.page-desc { color: #64748b; font-size: 15px; margin: 0; padding-left: 20px; }

/* Liste Kutusu */
.issues-list-container { 
    border: 1px solid #eef2f6; border-radius: 12px; padding: 25px; 
    background: #fff; display: flex; flex-direction: column; gap: 30px;
}

/* Yıl Filtresi */
.year-filter-wrapper { margin-bottom: 10px; border-bottom: 2px solid #f1f5f9; padding-bottom: 0; }
.year-tabs { display: flex; flex-wrap: wrap; gap: 5px; }
.year-btn {
    padding: 10px 20px; background: transparent; border: none; 
    border-bottom: 3px solid transparent; font-size: 15px; font-weight: 600; 
    color: #64748b; cursor: pointer; transition: 0.3s; 
    border-radius: 6px 6px 0 0; margin-bottom: -2px; font-family: inherit;
}
.year-btn:hover { color: var(--theme-primary); background: #f8fafc; }
.year-btn.active { 
    color: var(--theme-primary); 
    border-bottom-color: var(--theme-primary); 
    background: rgba(var(--theme-rgb), 0.05); /* Dinamik Opaklık */
}

/* Yatay Sayı Kartı */
.issue-horizontal-card { display: flex; gap: 30px; align-items: flex-start; border-bottom: 1px solid #f1f5f9; padding-bottom: 30px; }
.issue-horizontal-card:last-child { border-bottom: none; padding-bottom: 0; }

.issue-cover-wrap {
    width: 150px; height: 215px; flex-shrink: 0; border-radius: 4px; 
    overflow: hidden; background: #f8fafc; 
    box-shadow: 0 5px 15px rgba(0,0,0,0.1); border: 1px solid #e2e8f0;
}
.issue-cover-wrap img { width: 100%; height: 100%; object-fit: cover; transition: 0.5s; }
.issue-horizontal-card:hover .issue-cover-wrap img { transform: scale(1.03); }

.issue-content-wrap { flex: 1; display: flex; flex-direction: column; justify-content: flex-start; }
.issue-title-large { font-size: 20px; font-weight: 800; color: #1e293b; margin: 0 0 20px 0; line-height: 1.3; }

/* Butonlar */
.file-buttons-row { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 25px; align-items: center; }
.btn-file {
    display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; 
    border: 1px solid #e2e8f0; border-radius: 6px; background: #fff; 
    color: #475569; font-size: 13px; font-weight: 600; text-decoration: none; 
    transition: 0.2s; white-space: nowrap; flex-shrink: 0;
}
.btn-file:hover { background: #f8fafc; border-color: #cbd5e1; color: #1e293b; }
.btn-file i { color: #94a3b8; font-size: 14px; }

.btn-articles-main {
    display: inline-flex; align-items: center; gap: 10px; padding: 12px 25px; 
    border-radius: 6px; 
    background: var(--theme-primary); color: #fff; /* Dinamik */
    font-weight: 700; font-size: 14px; text-decoration: none; transition: 0.2s; 
    width: fit-content; border: 1px solid var(--theme-primary);
}
.btn-articles-main:hover { 
    opacity: 0.9; transform: translateY(-2px); 
    box-shadow: 0 4px 10px rgba(var(--theme-rgb), 0.2); 
}

/* Animasyon */
.fade-in { animation: fadeIn 0.5s ease-in-out; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
.hidden-issue { display: none; }

/* Sidebar Widget */
.widget { background: #fff; border: 1px solid #e2e8f0; border-radius: 12px; padding: 25px; margin-bottom: 30px; box-shadow: 0 5px 20px rgba(0,0,0,0.03); }
.widget-title { 
    margin: 0 0 20px 0; color: #1e293b; font-size: 18px; font-weight: 700; 
    border-bottom: 2px solid #f1f5f9; padding-bottom: 10px; position: relative; 
}
.widget-title span { 
    position: absolute; bottom: -2px; left: 0; width: 50px; height: 2px; 
    background: var(--theme-primary); 
}

.side-list { display: flex; flex-direction: column; gap: 10px; }
.side-item-box { 
    display: flex; gap: 12px; align-items: flex-start; text-decoration: none; 
    padding: 10px; border-radius: 8px; transition: 0.2s; border: 1px solid transparent; 
}
.side-item-box:hover { background: #f8fafc; border-color: #f1f5f9; }

.side-icon { 
    width: 36px; height: 36px; flex-shrink: 0; 
    background: rgba(var(--theme-rgb), 0.1); color: var(--theme-primary); 
    border-radius: 6px; display: flex; align-items: center; justify-content: center; font-size: 16px; 
}
.side-content { display: flex; flex-direction: column; }
.side-text-title { font-size: 13px; font-weight: 600; color: #334155; line-height: 1.4; transition: 0.2s; }
.side-item-box:hover .side-text-title { color: var(--theme-primary); }
.side-text-meta { font-size: 11px; color: #94a3b8; margin-top: 3px; }

/* Responsive */
@media (max-width: 992px) {
    .archive-layout { grid-template-columns: 1fr; }
    .issue-horizontal-card { flex-direction: column; align-items: center; text-align: center; }
    .file-buttons-row { justify-content: center; }
    .issue-content-wrap { align-items: center; width: 100%; }
}

/* --- ARAMA SAYFASI (search.php) --- */

/* Breadcrumb */
.breadcrumb-mini { display: flex; align-items: center; gap: 8px; font-size: 13px; color: #64748b; margin-bottom: 15px; }
.breadcrumb-mini a { color: #64748b; text-decoration: none; transition: 0.2s; }
.breadcrumb-mini a:hover { color: var(--theme-primary); }
.breadcrumb-mini i { font-size: 10px; color: #cbd5e1; }
.breadcrumb-mini span.current { color: var(--theme-primary); font-weight: 600; }

/* Başlıklar */
.page-header { border-bottom: 1px solid #e2e8f0; padding-bottom: 20px; margin-bottom: 30px; }
.page-h1 { 
    font-size: 28px; font-weight: 800; color: #1e293b; margin: 0; line-height: 1.2; 
    border-left: 5px solid var(--theme-primary); padding-left: 20px; 
}

/* Arama Formu Grid */
.search-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 20px; }
.search-label { display: block; font-size: 14px; font-weight: 700; color: #334155; margin-bottom: 8px; }
.search-input {
    width: 100%; padding: 12px 15px; border: 1px solid #e2e8f0; border-radius: 8px;
    font-size: 14px; color: #1e293b; transition: 0.2s; font-family: inherit; box-sizing: border-box;
}
.search-input:focus { 
    border-color: var(--theme-primary); outline: none; 
    box-shadow: 0 0 0 3px rgba(var(--theme-rgb), 0.1); 
}

/* Arama Butonu */
.btn-search {
    background: var(--theme-primary); color: #fff; border: none; padding: 14px 30px; width: 100%;
    border-radius: 8px; font-weight: 700; font-size: 16px; cursor: pointer; transition: 0.2s;
    display: flex; align-items: center; justify-content: center; gap: 10px;
}
.btn-search:hover { opacity: 0.9; transform: translateY(-2px); box-shadow: 0 4px 12px rgba(var(--theme-rgb), 0.3); }

/* Arama Sonuç Kartı */
.article-item-card {
    background: #fff; border: 1px solid #eef2f6; border-radius: 12px; padding: 25px; 
    margin-bottom: 20px; position: relative; overflow: hidden; transition: 0.3s;
}
.article-item-card:hover { 
    transform: translateY(-3px); box-shadow: 0 10px 20px rgba(0,0,0,0.04); 
    border-color: rgba(var(--theme-rgb), 0.2); 
}
/* Sol Çizgi Efekti */
.article-item-card::before { 
    content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; 
    background: var(--theme-primary); 
}

.art-meta-row { display: flex; justify-content: space-between; margin-bottom: 12px; font-size: 12px; color: #64748b; }
.art-badge { background: #f1f5f9; padding: 4px 10px; border-radius: 4px; font-weight: 700; text-transform: uppercase; font-size: 11px; color: #475569; }
.art-page-info { display: flex; align-items: center; gap: 5px; font-weight: 600; color: var(--theme-primary); }

.art-main-title { font-size: 18px; font-weight: 800; color: #1e293b; margin: 0 0 5px 0; line-height: 1.4; }
.art-main-title a { text-decoration: none; color: inherit; transition: 0.2s; }
.art-main-title a:hover { color: var(--theme-primary); }

.art-eng-title { font-size: 14px; color: #64748b; font-style: italic; margin-bottom: 15px; }

.art-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 15px; }
.art-tag { background: #f8fafc; color: #475569; padding: 3px 10px; border-radius: 50px; font-size: 11px; font-weight: 600; border: 1px solid #e2e8f0; }
.art-tag i { margin-right: 4px; color: #94a3b8; }

.art-author-row { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; color: #334155; }

.btn-view-art { 
    display: inline-flex; align-items: center; gap: 6px; padding: 8px 16px; 
    background: var(--theme-primary); color: #fff; border-radius: 50px; 
    font-size: 12px; font-weight: 700; text-decoration: none; margin-top: 15px; 
    float: right; transition: 0.2s; 
}
.btn-view-art:hover { opacity: 0.9; transform: translateX(3px); }

@media (max-width: 768px) {
    .search-grid { grid-template-columns: 1fr; }
    .page-layout { grid-template-columns: 1fr; }
}

/* --- ARAMA SONUÇLARI SAYFASI (arama-sonuclari.php) --- */

/* Makale Kartı */
.article-item-card {
    background: #fff; border: 1px solid #eef2f6; border-radius: 12px; 
    padding: 25px; margin-bottom: 20px; position: relative; 
    overflow: hidden; transition: 0.3s;
}
.article-item-card:hover { 
    transform: translateY(-3px); box-shadow: 0 10px 20px rgba(0,0,0,0.04); 
    border-color: rgba(var(--theme-rgb), 0.2); 
}
/* Sol Şerit */
.article-item-card::before { 
    content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; 
    background: var(--theme-primary); 
}

.art-meta-row { display: flex; justify-content: space-between; margin-bottom: 12px; font-size: 12px; color: #64748b; }
.art-badge { background: #f1f5f9; padding: 4px 10px; border-radius: 4px; font-weight: 700; text-transform: uppercase; font-size: 11px; color: #475569; }
.art-page-info { display: flex; align-items: center; gap: 5px; font-weight: 600; color: var(--theme-primary); }

.art-main-title { font-size: 18px; font-weight: 800; color: #1e293b; margin: 0 0 5px 0; line-height: 1.4; }
.art-main-title a { text-decoration: none; color: inherit; transition: 0.2s; }
.art-main-title a:hover { color: var(--theme-primary); }

.art-eng-title { font-size: 14px; color: #64748b; font-style: italic; margin-bottom: 15px; }

.art-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 15px; }
.art-tag { background: #f8fafc; color: #475569; padding: 3px 10px; border-radius: 50px; font-size: 11px; font-weight: 600; border: 1px solid #e2e8f0; }
.art-tag i { margin-right: 4px; color: #94a3b8; }

.art-author-row { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; color: #334155; }

.btn-view-art { 
    display: inline-flex; align-items: center; gap: 6px; padding: 8px 16px; 
    background: var(--theme-primary); color: #fff; border-radius: 50px; 
    font-size: 12px; font-weight: 700; text-decoration: none; margin-top: 15px; 
    float: right; transition: 0.2s; 
}
.btn-view-art:hover { opacity: 0.9; transform: translateX(3px); }

/* --- MAKALE DETAY SAYFASI (makale.php) --- */

.article-container { max-width: 1250px; margin: 40px auto; padding: 0 20px; font-family: 'Figtree', sans-serif; }

/* Hero Kartı */
.hero-card {
    background: linear-gradient(135deg, rgba(var(--theme-rgb), 0.06) 0%, rgba(var(--theme-rgb), 0.15) 100%);
    border-radius: 16px;
    padding: 40px;
    margin-bottom: 40px;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(var(--theme-rgb), 0.1);
}

.hero-bg-effect {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: radial-gradient(circle at top left, rgba(var(--theme-rgb), 0.04) 0%, transparent 40%);
    z-index: 0; pointer-events: none;
}
.hero-bg-circle { position: absolute; border-radius: 50%; background: var(--theme-primary); opacity: 0.05; z-index: 0; pointer-events: none; }
.circle-1 { width: 300px; height: 300px; top: -100px; right: -50px; }
.circle-2 { width: 200px; height: 200px; bottom: -50px; left: -50px; }

.hero-content-wrapper { position: relative; z-index: 1; display: flex; gap: 40px; }

/* Hero Sol Kısım */
.hero-left { flex: 1.8; }

.issue-info-bar {
    display: inline-flex; align-items: center; gap: 15px;
    background: rgba(255, 255, 255, 0.6);
    padding: 10px 20px; border-radius: 8px;
    font-size: 13px; font-weight: 600; color: #64748b;
    margin-bottom: 25px; border: 1px solid rgba(255,255,255,0.5);
}
.issue-info-bar .blue-mark { width: 4px; height: 16px; background: var(--theme-primary); border-radius: 2px; }
.issue-link { text-decoration: none; color: inherit; transition:0.2s; }
.issue-link:hover { color: var(--theme-primary); }

.art-main-title { font-size: 28px; font-weight: 800; color: #1e293b; line-height: 1.3; margin: 0 0 10px 0; letter-spacing: -0.5px; }
.art-sub-title { font-size: 18px; color: #64748b; font-style: italic; margin-bottom: 25px; font-weight: 500; }

.keywords-area { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 30px; align-items: center; }
.kw-label { font-size: 13px; font-weight: 700; color: #1e293b; margin-right: 5px; }
.kw-tag { background: rgba(255,255,255,0.5); color: #475569; padding: 5px 12px; border-radius: 50px; font-size: 12px; font-weight: 600; text-decoration: none; transition: 0.2s; border: 1px solid rgba(0,0,0,0.05); }
.kw-tag:hover { background: #fff; color: var(--theme-primary); border-color: var(--theme-primary); }

/* Yazarlar */
.authors-section { border-top: 1px dashed rgba(0,0,0,0.1); padding-top: 25px; display: flex; gap: 15px; }
.auth-icon-box { width: 48px; height: 48px; background: #0f172a; color: #fff; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 20px; flex-shrink: 0; box-shadow: 0 4px 10px rgba(0,0,0,0.1); }
.auth-list-wrap { flex: 1; }
.auth-names-line { font-size: 17px; font-weight: 700; color: #0f172a; margin-bottom: 12px; line-height: 1.5; }
.auth-names-line sup { color: var(--theme-primary); font-weight: 800; margin-left: 2px; font-size: 12px; }

.auth-meta-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.auth-meta-item { display: inline-flex; align-items: center; background: rgba(255,255,255,0.7); border: 1px solid rgba(0,0,0,0.05); padding: 6px 12px; border-radius: 6px; font-size: 12px; color: #475569; }
.auth-meta-num { color: var(--theme-primary); font-weight: 800; margin-right: 6px; font-size: 11px; }
.auth-links { margin-left: 8px; display: inline-flex; gap: 5px; }
.auth-links a { color: #94a3b8; transition: 0.2s; font-size: 14px; }
.auth-links a:hover { color: var(--theme-primary); transform: scale(1.1); }

/* Hero Sağ Kısım (Meta) */
.hero-right { flex: 1; min-width: 320px; }
.meta-card { background: #fff; border: 1px solid #f1f5f9; border-radius: 12px; padding: 25px; box-shadow: 0 5px 20px rgba(0,0,0,0.05); }
.meta-table { display: grid; grid-template-columns: 1fr 1fr; gap: 20px 15px; margin-bottom: 25px; }
.meta-cell { display: flex; flex-direction: column; gap: 4px; }
.meta-head { font-size: 11px; font-weight: 700; color: #94a3b8; text-transform: uppercase; letter-spacing: 0.5px; }
.meta-data { font-size: 13px; font-weight: 600; color: #334155; }

.hero-buttons { display: flex; flex-direction: column; gap: 12px; }
.btn-row { display: flex; gap: 10px; }
.btn-hero { flex: 1; display: flex; align-items: center; justify-content: center; gap: 8px; padding: 12px; border-radius: 50px; font-size: 13px; font-weight: 700; text-decoration: none; transition: 0.2s; cursor: pointer; border: none; }
.btn-view { background: var(--theme-primary); color: #fff; box-shadow: 0 4px 10px rgba(var(--theme-rgb), 0.3); }
.btn-view:hover { transform: translateY(-2px); box-shadow: 0 6px 15px rgba(var(--theme-rgb), 0.4); opacity: 0.95; }
.btn-dl { background: var(--theme-primary); color: #fff; box-shadow: 0 4px 10px rgba(var(--theme-rgb), 0.3); }
.btn-dl:hover { transform: translateY(-2px); opacity: 0.95; }
.btn-sec { background: #fff; color: #475569; border: 1px solid #e2e8f0; }
.btn-sec:hover { background: #f8fafc; border-color: #cbd5e1; color: #1e293b; }

/* İçerik ve Sidebar Grid */
.content-grid { display: grid; grid-template-columns: 2.2fr 1fr; gap: 40px; }

/* Akordiyon (Özet, Kaynakça vb.) */
.unified-card { background: #fff; border: 1px solid #e2e8f0; border-radius: 12px; overflow: hidden; }
details.acc-item { border-bottom: 1px solid #f1f5f9; transition: 0.3s; }
details.acc-item:last-child { border-bottom: none; }
details.acc-item[open] { background: #fff; }
summary.acc-header { padding: 18px 25px; cursor: pointer; display: flex; justify-content: space-between; align-items: center; font-weight: 700; color: #334155; list-style: none; outline: none; background: #fff; transition: 0.2s; }
summary.acc-header:hover { background: #fcfcfc; }
details[open] summary.acc-header { color: var(--theme-primary); background: #f8fafc; border-bottom: 1px solid #f1f5f9; }
summary::-webkit-details-marker { display: none; }
.acc-title { display: flex; align-items: center; gap: 12px; }
.acc-line { width: 4px; height: 18px; background: var(--theme-primary); border-radius: 2px; }
.acc-body { padding: 30px; font-size: 15px; line-height: 1.8; color: #475569; text-align: justify; }

/* Sidebar Metrikler */
.metrics-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }
.metric-item { background: #f8fafc; padding: 15px; border-radius: 8px; text-align: center; border: 1px solid #eef2f6; }
.metric-val { font-size: 20px; font-weight: 800; color: var(--theme-primary); }
.metric-lbl { font-size: 12px; color: #64748b; margin-top: 5px; font-weight: 600; }

/* Sidebar Atıflar */
.cite-block { margin-bottom: 15px; }
.cite-head { display: flex; justify-content: space-between; font-size: 12px; font-weight: 700; color: #475569; margin-bottom: 6px; }
.cite-area { width: 100%; padding: 10px; background: #fcfcfc; border: 1px solid #e2e8f0; border-radius: 6px; font-size: 12px; color: #333; resize: none; font-family: monospace; box-sizing: border-box; }
.btn-copy { border: none; background: none; color: var(--theme-primary); cursor: pointer; font-size: 14px; transition: 0.2s; }
.btn-copy:hover { color: #1e293b; }

/* Responsive */
@media (max-width: 992px) {
    .hero-content-wrapper { flex-direction: column; gap: 30px; }
    .hero-right { width: 100%; }
    .content-grid { grid-template-columns: 1fr; }
    .hero-card { padding: 30px 20px; }
}

/* --- SAYFA (sayfa.php) STİLLERİ --- */

/* İçerik Gövdesi (CKEditor Çıktısı) */
.page-content-body { font-size: 16px; line-height: 1.8; color: #334155; }

.page-content-body p { margin-bottom: 20px; }
.page-content-body h2 { 
    font-size: 24px; color: #1e293b; margin-top: 30px; margin-bottom: 15px; 
    font-weight: 700; border-bottom: 2px solid #f1f5f9; padding-bottom: 10px; 
}
.page-content-body h3 { font-size: 20px; color: #1e293b; margin-top: 25px; margin-bottom: 12px; font-weight: 600; }
.page-content-body h4 { font-size: 18px; color: #1e293b; margin-top: 20px; margin-bottom: 10px; font-weight: 600; }

.page-content-body a { color: var(--theme-primary); text-decoration: underline; font-weight: 500; }

.page-content-body blockquote { 
    border-left: 4px solid #cbd5e1; padding-left: 15px; font-style: italic; 
    color: #64748b; margin: 20px 0; background: #f8fafc; padding: 15px; border-radius: 0 8px 8px 0; 
}

.page-content-body img { max-width: 100%; height: auto; border-radius: 8px; margin: 20px 0; box-shadow: 0 4px 10px rgba(0,0,0,0.05); }

.page-content-body table { width: 100%; border-collapse: collapse; margin-bottom: 20px; }
.page-content-body table th, .page-content-body table td { border: 1px solid #e2e8f0; padding: 10px; text-align: left; }
.page-content-body table th { background-color: #f8fafc; font-weight: 600; }

/* Liste Görünümü Düzeltmeleri (Önemli) */
.page-content-body ul, 
.page-content-body ol {
    padding-left: 40px !important; margin-bottom: 20px !important;
    list-style-position: outside !important; overflow: visible !important;
}

.page-content-body li {
    display: list-item !important; margin-bottom: 8px !important;
    line-height: 1.6 !important; list-style-type: inherit;
}

.page-content-body ul { list-style-type: disc !important; }
.page-content-body ol { list-style-type: decimal !important; }
.page-content-body ul ul { list-style-type: circle !important; }
.page-content-body ol ol { list-style-type: lower-alpha !important; }
.page-content-body ul ul ul { list-style-type: square !important; }
.page-content-body ol ol ol { list-style-type: lower-roman !important; }

/* Editörden gelen özel stiller için (TinyMCE) */
.page-content-body ol[style*="upper-roman"] { list-style-type: upper-roman !important; }
.page-content-body ol[style*="lower-roman"] { list-style-type: lower-roman !important; }
.page-content-body ol[style*="upper-alpha"] { list-style-type: upper-alpha !important; }
.page-content-body ol[style*="lower-alpha"] { list-style-type: lower-alpha !important; }

/* --- İLETİŞİM SAYFASI (iletisim.php) --- */

.contact-form-group { margin-bottom: 20px; }
.contact-label { display: block; font-size: 14px; font-weight: 600; color: #334155; margin-bottom: 8px; }
.contact-input { 
    width: 100%; padding: 12px 15px; border: 1px solid #e2e8f0; border-radius: 8px; 
    font-size: 14px; color: #1e293b; transition: 0.2s; font-family: inherit; box-sizing: border-box; 
}
.contact-input:focus { 
    border-color: var(--theme-primary); outline: none; 
    box-shadow: 0 0 0 3px rgba(var(--theme-rgb), 0.1); 
}

/* Rıza (Consent) Kutusu */
.consent-group { 
    margin-bottom: 25px; display: flex; align-items: flex-start; gap: 10px; 
    padding: 15px; background: #f8fafc; border-radius: 8px; border: 1px solid #f1f5f9; 
}
.consent-group input[type="checkbox"] { margin-top: 4px; cursor: pointer; accent-color: var(--theme-primary); }
.consent-group label { font-size: 13px; color: #64748b; line-height: 1.5; cursor: pointer; }

/* Gönder Butonu */
.btn-submit { 
    background: var(--theme-primary); color: #fff; border: none; padding: 12px 30px; 
    border-radius: 8px; font-weight: 600; font-size: 15px; cursor: pointer; 
    transition: 0.2s; display: inline-flex; align-items: center; gap: 10px; 
}
.btn-submit:hover { opacity: 0.9; transform: translateY(-2px); box-shadow: 0 4px 10px rgba(var(--theme-rgb), 0.2); }

/* Uyarı Mesajları */
.alert { padding: 15px; border-radius: 8px; margin-bottom: 25px; font-size: 14px; display: flex; align-items: center; gap: 10px; }
.alert-success { background: #dcfce7; color: #166534; border: 1px solid #bbf7d0; }
.alert-danger { background: #fee2e2; color: #991b1b; border: 1px solid #fecaca; }

/* Sidebar (İletişim Kutuları) */
.contact-sidebar-wrapper { display: flex; flex-direction: column; gap: 20px; }
.contact-box-sidebar { 
    background: #fff; border: 1px solid #e2e8f0; border-radius: 12px; 
    padding: 30px 20px; text-align: center; transition: 0.3s; 
    box-shadow: 0 2px 4px rgba(0,0,0,0.02); 
}
.contact-box-sidebar:hover { 
    transform: translateY(-5px); 
    box-shadow: 0 10px 25px rgba(0,0,0,0.06); 
    border-color: var(--theme-primary); 
}

.sidebar-icon { 
    width: 60px; height: 60px; 
    background: rgba(var(--theme-rgb), 0.08); color: var(--theme-primary); 
    border-radius: 50%; display: flex; align-items: center; justify-content: center; 
    font-size: 24px; margin: 0 auto 20px auto; 
}

.contact-box-sidebar h4 { margin: 0 0 10px 0; font-size: 16px; color: #1e293b; font-weight: 700; }
.contact-box-sidebar p { margin: 0; font-size: 14px; color: #64748b; line-height: 1.6; }
.contact-box-sidebar a { color: var(--theme-primary); text-decoration: none; font-weight: 600; }
.contact-box-sidebar a:hover { text-decoration: underline; }
.contact-box-sidebar .note { font-size: 12px; color: #94a3b8; display: block; margin-top: 5px; }

/* Sosyal Medya */
.social-links { display: flex; justify-content: center; gap: 10px; margin-top: 15px; }
.social-btn { 
    width: 40px; height: 40px; background: #f8fafc; border: 1px solid #e2e8f0; 
    border-radius: 50%; display: flex; align-items: center; justify-content: center; 
    color: #64748b; transition: 0.2s; text-decoration: none; font-size: 18px; 
}
.social-btn:hover { 
    background: var(--theme-primary); color: #fff; border-color: var(--theme-primary); 
}

/* --- DİZİNLER SAYFASI (dizinler.php) --- */

/* Grid Yapısı */
.indexes-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* Masaüstünde 3 sütun */
    gap: 30px; 
}

/* Dizin Kartı */
.index-card {
    display: flex; flex-direction: column; align-items: center; justify-content: space-between;
    background: #fff; border: 1px solid #e2e8f0; border-radius: 16px; 
    padding: 40px 20px; text-decoration: none; transition: all 0.3s ease; 
    position: relative; min-height: 180px; 
}

.index-card:hover {
    transform: translateY(-7px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.08);
    border-color: var(--theme-primary);
}

.index-logo-wrapper {
    height: 100px; width: 100%; display: flex; align-items: center; 
    justify-content: center; margin-bottom: 20px; 
}

.index-logo {
    max-height: 100%; max-width: 100%; object-fit: contain;
    filter: none; opacity: 1; transition: 0.3s; 
}

.index-title {
    font-size: 16px; font-weight: 700; color: #334155; text-align: center; 
    line-height: 1.4; margin-bottom: auto; padding-top: 10px; 
}

.index-card:hover .index-title { color: var(--theme-primary); }

.index-link-icon {
    margin-top: 20px; color: #cbd5e1; font-size: 18px; transition: 0.3s; 
}

.index-card:hover .index-link-icon { color: var(--theme-primary); }

/* Responsive */
@media (max-width: 992px) {
    .indexes-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 576px) {
    .indexes-grid { grid-template-columns: 1fr; }
}