/* style.css - CiteLog V7.5 (Mobile Dashboard Layout Fix) */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

:root {
    --primary-color: #0f172a;
    --accent-color: #3b82f6;
    --bg-color: #f8fafc;
    --border-color: #e2e8f0;
    --card-radius: 16px;
    --bottom-bar-height: 70px;
}

body {
    background-color: var(--bg-color);
    font-family: 'Inter', sans-serif;
    color: #334155;
    padding-bottom: calc(var(--bottom-bar-height) + 30px);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

@media (min-width: 768px) { body { padding-bottom: 0; } }

body.auth-page {
    padding-bottom: 0 !important;
    background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
}

a { text-decoration: none; }

/* Navbar */
.navbar { background-color: var(--primary-color) !important; padding: 1rem 0; box-shadow: 0 4px 20px rgba(0,0,0,0.05); }
.navbar-brand { font-weight: 700; font-size: 1.4rem; letter-spacing: -0.5px; }
.nav-btn-link { color: rgba(255,255,255,0.8); font-weight: 500; padding: 8px 12px; border-radius: 8px; transition: all 0.2s; display: inline-flex; align-items: center; gap: 8px; }
.nav-btn-link:hover { color: #fff; background-color: rgba(255,255,255,0.1); text-decoration: none; }

/* Auth Wrapper */
.auth-wrapper { flex-grow: 1; display: flex; align-items: center; justify-content: center; padding: 20px; width: 100%; }
.auth-card { width: 100%; max-width: 420px; background: #fff; border-radius: 24px; box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.1); border: none; overflow: hidden; margin: auto; }

/* Footer */
.main-footer { margin-top: auto; background: #fff; border-top: 1px solid #e2e8f0; padding: 20px 0; text-align: center; color: #64748b; font-size: 0.9rem; width: 100%; }
body.auth-page .main-footer { background: transparent; border: none; }

/* KARTLAR */
.card-stat {
    border: 1px solid var(--border-color);
    border-radius: var(--card-radius);
    background: #fff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
    padding: 24px;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.stat-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.stat-text {
    flex-grow: 1;
    min-width: 0;
}

/* İkon Kutusu */
.icon-box {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
    margin-left: 15px;
}

/* --- MOBİL GÖRÜNÜM DÜZENLEMELERİ --- */
@media (max-width: 768px) {
    /* Kart kenar boşluğunu azalt */
    .card-stat { padding: 15px 5px; }

    /* İçeriği dikey (alt alta) sırala ve ortala */
    .stat-content {
        flex-direction: column;
        justify-content: center;
        text-align: center;
    }

    /* İkonu en üste taşı ve ortala */
    .icon-box {
        order: -1; /* HTML sırasını bozmadan görsel olarak en üste alır */
        width: 36px;
        height: 36px;
        font-size: 1rem;
        margin-left: 0; /* Yan margin'i sıfırla */
        margin-bottom: 8px; /* Altına boşluk ver */
        border-radius: 10px;
    }

    /* Metin boyutlarını dengele */
    .stat-text { width: 100%; }
    .stat-text h6 { 
        font-size: 0.7rem; 
        margin-bottom: 2px !important;
        white-space: nowrap; /* Metnin alt satıra kaymasını zorlaştır */
    }
    .stat-text h3 { 
        font-size: 1.2rem; 
    }
}

.table-card { border: 1px solid var(--border-color); border-radius: var(--card-radius); background: #fff; box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02); }

/* Responsive Tablo */
.table-hover tbody tr:hover { background-color: transparent !important; }
.table td { vertical-align: middle; }
@media (max-width: 768px) {
    .table thead { display: none; }
    .table tbody tr { display: block; background: #fff; margin-bottom: 16px; border: 1px solid var(--border-color); border-radius: 16px; padding: 20px; box-shadow: 0 4px 6px -1px rgba(0,0,0,0.03); }
    .table tbody td { display: flex; justify-content: space-between; align-items: center; border: none; padding: 8px 0; text-align: right; }
    .table tbody td.ps-4 { padding-left: 0 !important; }
    .table tbody td::before { content: attr(data-label); font-weight: 600; font-size: 0.85rem; color: #64748b; text-align: left; }
    
    /* ÖZEL ALANLAR: ATIF LİSTESİ */
    .table tbody td[data-label="Atıf Alan Eserim"] { display: block; text-align: left; }
    .table tbody td[data-label="Atıf Alan Eserim"] span { font-weight: 700; color: var(--primary-color); display: block; margin-bottom: 4px; white-space: normal; }
    .table tbody td[data-label="Atıf Yapan Çalışma"] { display: block; text-align: left; }
    .table tbody td[data-label="Yıl"] { justify-content: space-between; width: 100%; }
    .table tbody td[data-label="Yıl"] span { text-align: right; }
    .table tbody td[data-label="Dosyalar"] { justify-content: flex-end; gap: 10px; }

    /* ÖZEL ALANLAR: YAYINLAR LİSTESİ */
    .table tbody td[data-label="Eser Adı"] { display: block; text-align: left; }
    .table tbody td[data-label="Eser Adı"] span { font-weight: 700; color: var(--primary-color); display: block; margin-bottom: 4px; white-space: normal; }
    .table tbody td[data-label="Tür"], .table tbody td[data-label="Kapsam"], .table tbody td[data-label="Atıf Sayısı"] { justify-content: space-between; width: 100%; }

    /* AKSİYON BUTONLARI */
    .table tbody td:last-child { display: flex; flex-direction: row; justify-content: center; gap: 10px; margin-top: 15px; padding-top: 15px; border-top: 1px dashed var(--border-color); width: 100%; }
    .mobile-action-btn { flex: 1; display: flex; align-items: center; justify-content: center; padding: 12px; border-radius: 10px; font-weight: 600; font-size: 0.9rem; border: none; }
    .btn-edit-mobile { background: #eff6ff; color: var(--accent-color); }
    .btn-delete-mobile { background: #fef2f2; color: #ef4444; }
    .desktop-actions { display: none !important; }
    .mobile-actions { display: flex !important; }
}
@media (min-width: 769px) { .mobile-actions { display: none !important; } .desktop-actions { display: flex !important; justify-content: center; } }

/* Autofill Fix */
input:-webkit-autofill, input:-webkit-autofill:hover, input:-webkit-autofill:focus, input:-webkit-autofill:active { -webkit-box-shadow: 0 0 0 30px white inset !important; box-shadow: 0 0 0 30px white inset !important; }

/* Bottom Bar */
.bottom-bar { position: fixed; bottom: 0; left: 0; right: 0; background: #fff; height: var(--bottom-bar-height); display: flex; justify-content: space-around; align-items: center; border-top: 1px solid var(--border-color); box-shadow: 0 -4px 25px rgba(0,0,0,0.08); z-index: 9999; padding-bottom: env(safe-area-inset-bottom); }
.bottom-nav-item { display: flex; flex-direction: column; align-items: center; justify-content: center; color: #94a3b8; font-size: 0.7rem; font-weight: 600; width: 60px; text-decoration: none; transition: 0.2s; }
.bottom-nav-item i { font-size: 1.4rem; margin-bottom: 4px; }
.bottom-nav-item.active { color: var(--primary-color); }
.fab-container { transform: translateY(-25px); }
.fab-btn { width: 56px; height: 56px; border-radius: 50%; background: var(--accent-color); color: #fff; display: flex; align-items: center; justify-content: center; box-shadow: 0 8px 20px rgba(59, 130, 246, 0.4); font-size: 1.6rem; border: 4px solid #fff; }
.pro-badge-icon { color: #fbbf24; background: #fffbeb; padding: 6px; border-radius: 10px; font-size: 1.2rem; }

/* Modal Z-Index FIX */
.modal { z-index: 10000 !important; }
.modal-backdrop { z-index: 9999 !important; }

/* Buttons */
.btn-primary-custom { background-color: var(--primary-color); color: #fff; border: none; padding: 0.7rem 1.2rem; border-radius: 10px; font-weight: 600; width: 100%; transition: 0.2s; }
.btn-primary-custom:hover { background-color: #1e293b; color: #fff; transform: translateY(-2px); }

/* Form Select Font Size Fix */
.form-select { font-size: 0.95rem; }

/* Link Icon Style */
.pub-link-icon { color: var(--accent-color); transition: color 0.2s; }
.pub-link-icon:hover { color: var(--primary-color); }

/* --- LANDING PAGE (TANITIM SİTESİ) STİLLERİ --- */
.hero-section {
    padding: 100px 0 60px;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    position: relative;
    overflow: hidden;
}
.hero-title {
    font-size: 3rem;
    font-weight: 800;
    line-height: 1.2;
    background: linear-gradient(to right, #0f172a, #3b82f6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 1.5rem;
}
.hero-lead { font-size: 1.25rem; color: #64748b; margin-bottom: 2rem; font-weight: 400; }
.hero-mockup {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
    border: 1px solid #e2e8f0;
    overflow: hidden;
    transform: perspective(1000px) rotateY(-5deg) rotateX(2deg);
    transition: transform 0.5s ease;
}
.hero-mockup:hover { transform: perspective(1000px) rotateY(0) rotateX(0); }
.feature-icon-box {
    width: 64px; height: 64px;
    background: rgba(59, 130, 246, 0.1); color: #3b82f6;
    border-radius: 16px; display: flex; align-items: center; justify-content: center;
    font-size: 1.75rem; margin-bottom: 1.5rem; transition: 0.3s;
}
.feature-card:hover .feature-icon-box { background: #3b82f6; color: #fff; transform: scale(1.1); }
.pricing-card-landing {
    border: 1px solid #e2e8f0; border-radius: 24px; padding: 2.5rem;
    background: #fff; transition: 0.3s; height: 100%; position: relative; overflow: hidden;
}
.pricing-card-landing:hover { transform: translateY(-10px); box-shadow: 0 20px 40px -10px rgba(0,0,0,0.1); border-color: #3b82f6; }
.pricing-card-landing.popular { border: 2px solid #3b82f6; background: #eff6ff; }
.pricing-badge {
    position: absolute; top: 20px; right: 20px;
    background: #3b82f6; color: #fff; padding: 5px 12px;
    border-radius: 20px; font-size: 0.75rem; font-weight: 700;
}
.check-list li { margin-bottom: 0.8rem; color: #475569; display: flex; align-items: center; }
.check-list li i { color: #10b981; margin-right: 10px; }
.faq-accordion .accordion-button:not(.collapsed) { background-color: #eff6ff; color: #3b82f6; }
.footer-cta { background: #0f172a; color: #fff; padding: 80px 0; text-align: center; border-radius: 24px; margin-bottom: -50px; position: relative; z-index: 10; }

@media (max-width: 768px) {
    .hero-title { font-size: 2.2rem; }
    .hero-mockup { transform: none; margin-top: 3rem; }
}

/* Auth Sayfaları İçin Arkaplan */
.auth-bg {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
}

/* Floating Form Güzelleştirme */
.form-floating > .form-control:focus ~ label,
.form-floating > .form-control:not(:placeholder-shown) ~ label {
    color: #3b82f6; /* Odaklanınca etiket mavi olsun */
    font-weight: 600;
}
.form-floating > .form-control:focus {
    box-shadow: none;
    border: 1px solid #3b82f6 !important;
    background-color: #fff !important;
}

/* Buton ve Kart Gölge Efektleri */
.btn-primary-custom {
    background-color: #0f172a;
    color: #fff;
    border: none;
    transition: all 0.3s ease;
}
.btn-primary-custom:hover {
    background-color: #1e293b;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.2);
}

.auth-card {
    transition: transform 0.3s ease;
}
.auth-card:hover {
    transform: translateY(-5px);
}