/* --- 1. FONTLAR VE DEĞİŞKENLER --- */
@import url('https://fonts.googleapis.com/css2?family=Dancing+Script:wght@600;700&family=Outfit:wght@400;700;800&family=Plus+Jakarta+Sans:wght@400;500;600&display=swap');

:root {
    /* Varsayılan Değerler (JS bunları ezecek) */
    --bg-color: #eef2f6;
    --card-bg: #ffffff;
    --text-primary: #1e293b;
    --text-secondary: #64748b;
    --accent: #2563eb;
    --hobby-bg: #1e293b; /* Hobby kartı için değişken */
    --hobby-text: #ffffff;
    --card-radius: 24px;
    --shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.08);
    --gap: 24px;
}

/* Sayfa Geçiş Animasyonu */
@view-transition { navigation: auto; }

/* --- 2. RESET VE TEMEL AYARLAR --- */
* { margin: 0; padding: 0; box-sizing: border-box; }
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }

body {
    background-color: var(--bg-color);
    font-family: 'Plus Jakarta Sans', sans-serif;
    color: var(--text-primary);
    min-height: 100vh;
    padding: 20px;
    display: block; 
}

/* Tüm Geçiş Efektleri (Tek satırda toplandı) */
body, .card, .detail-header, .detail-card, .header-card h1, 
.hobby-card, .timeline-card, .coursera-card, .about-card-inner, 
.news-card, .profile-img-container, .course-badge, .job-skill-badge, 
.back-btn-wrapper {
    transition: background-color 0.5s ease, color 0.5s ease, box-shadow 0.5s ease, border-color 0.3s ease, transform 0.3s ease;
}
/*
Hobby'li versiyon
.main-layout {
    width: 96%;
    max-width: 1800px;
    height: 85vh;
    margin: 4vh auto;
    display: grid;
    grid-template-columns: 1fr 1.5fr 1.5fr 1fr;
    grid-template-rows: 140px 1fr; 
    gap: var(--gap);
    grid-template-areas: 
        "about header header hobby"
        "about academic culture hobby";
}
*/

/* --- 3. LAYOUT (HOBBY GİZLENMİŞ VERSİYON) --- */
.main-layout {
    width: 96%;
    max-width: 1800px;
    height: 85vh;
    margin: 4vh auto;
    display: grid;
    
    /* ESKİSİ (4 Sütun): grid-template-columns: 1fr 1.5fr 1.5fr 1fr; */
    /* YENİSİ (3 Sütun): Hobby payını diğerlerine dağıttık */
    grid-template-columns: 1.2fr 1.9fr 1.9fr; 
    
    grid-template-rows: 140px 1fr; 
    gap: var(--gap);
    
    /* ESKİSİ: "about header header hobby" ... */
    /* YENİSİ: Hobby alanını kaldırdık */
    grid-template-areas: 
        "about header header"
        "about academic culture";
}


.detail-container { max-width: 1400px; width: 100%; margin: 40px auto; padding-bottom: 50px; }
.detail-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; }
.academic-grid-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; align-items: start; margin-bottom: 40px; }

/* --- 4. GENEL KART BİLEŞENLERİ --- */
.card {
    background: var(--card-bg);
    border-radius: var(--card-radius);
    box-shadow: var(--shadow);
    padding: 30px;
    position: relative;
    overflow: hidden;
    height: 100%;
}
.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px -5px rgba(0, 0, 0, 0.12);
    z-index: 10;
}

.card-desc {
    margin-top: 12px;
    font-size: 0.95rem;
    color: var(--text-secondary);
    font-weight: 500;
    max-width: 85%;
    line-height: 1.5;
    opacity: 0.9;
}
.card:hover .card-desc { opacity: 1; color: var(--text-primary); }

.detail-card {
    background: var(--card-bg); padding: 25px; border-radius: 20px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05); color: var(--text-primary);
}
.detail-card:hover { transform: translateY(-3px); }

/* --- 5. SOL SÜTUN (ABOUT & NEWS) --- */
.left-column-wrapper {
    grid-area: about;
    display: flex; flex-direction: column; gap: var(--gap); height: 100%;
}

/* Profil Kartı */
.about-card-inner {
    background: linear-gradient(145deg, var(--card-bg) 60%, rgba(37, 99, 235, 0.03));
    border-radius: var(--card-radius);
    border-left: 5px solid var(--accent);
    /* Diğer kenarlar ince */
    border-top: 1px solid rgba(0,0,0,0.03); border-right: 1px solid rgba(0,0,0,0.03); border-bottom: 1px solid rgba(0,0,0,0.03);
    
    box-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.05);
    padding: 30px;
    flex: 2;
    display: flex; flex-direction: column; justify-content: space-between; align-items: center; text-align: center;
    position: relative; z-index: 1;
}
.about-card-inner:hover { 
    transform: translateY(-5px); 
    box-shadow: 0 20px 40px -5px rgba(0, 0, 0, 0.1);
}

.profile-img-container {
    width: 140px; height: 140px; margin: 0 auto 20px;
    border-radius: 50%; overflow: hidden;
    border: 4px solid var(--accent);
    padding: 3px; background-color: var(--card-bg);
    box-shadow: inset 0 0 15px rgba(0,0,0,0.05);
}
.profile-img-container img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.about-card-inner:hover .profile-img-container { transform: scale(1.05); }

#aboutMeText { text-align: justify; text-justify: inter-word; width: 100%; padding: 0 5px; }

.social-links { display: flex; justify-content: center; gap: 15px; }
.social-links a { font-size: 1.5rem; color: var(--text-secondary); transition: 0.3s; }
.social-links a:hover { color: var(--text-primary); transform: scale(1.1); }

/* Haber Kartı */
.news-card {
    background-color: var(--card-bg);
    background-image: radial-gradient(rgba(37, 99, 235, 0.08) 1px, transparent 1px);
    background-size: 16px 16px;
    border-radius: var(--card-radius);
    box-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.05);
    padding: 20px; flex: 1.2;
    display: flex; flex-direction: column; overflow: hidden; position: relative;
    border: 1px solid rgba(0,0,0,0.03);
}
.news-card:hover { transform: translateY(-3px); border-color: var(--accent); }

.news-header {
    display: flex; align-items: center; gap: 10px; margin-bottom: 15px;
    font-family: 'Outfit', sans-serif; font-weight: 800; font-size: 1.1rem; color: var(--text-primary);
    padding-bottom: 10px; border-bottom: 2px solid rgba(37, 99, 235, 0.1);
}

.pulse-dot {
    width: 10px; height: 10px; background-color: #10b981; border-radius: 50%;
    box-shadow: 0 0 0 rgba(16, 185, 129, 0.4); animation: pulse 2s infinite;
}
@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
    70% { box-shadow: 0 0 0 10px rgba(16, 185, 129, 0); }
    100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.news-list { display: flex; flex-direction: column; gap: 12px; overflow-y: auto; padding-right: 5px; }
.news-list::-webkit-scrollbar { width: 4px; }
.news-list::-webkit-scrollbar-thumb { background-color: #cbd5e1; border-radius: 4px; }

.news-item {
    display: flex; align-items: flex-start; gap: 10px; font-size: 0.85rem;
    color: var(--text-secondary); padding-bottom: 8px; border-bottom: 1px dashed rgba(0,0,0,0.1);
}
.news-item:last-child { border-bottom: none; }
.news-date {
    font-size: 0.7rem; font-weight: 700; color: var(--accent);
    background: rgba(37, 99, 235, 0.1); padding: 2px 6px; border-radius: 4px; white-space: nowrap;
}

/* --- 6. HEADER & SİLİNDİR --- */
.header-card { grid-area: header; display: flex; align-items: stretch; padding: 0 !important; position: relative; overflow: visible; }

.cylinder-wrapper {
    width: 80px; position: relative; cursor: pointer; flex-shrink: 0;
    border-top-left-radius: var(--card-radius); border-bottom-left-radius: var(--card-radius); z-index: 20;
}
.cylinder-wrapper:active { transform: scale(0.98); }

.barber-pole {
    width: 100%; height: 100%;
    border-top-left-radius: var(--card-radius); border-bottom-left-radius: var(--card-radius);
    background: repeating-linear-gradient(45deg, #2563eb, #2563eb 10px, #1e293b 10px, #1e293b 20px);
    box-shadow: inset -10px 0 15px rgba(0,0,0,0.3), inset 10px 0 15px rgba(255,255,255,0.3), 5px 0 15px rgba(0,0,0,0.1);
}

.cylinder-label {
    position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
    color: #fff; font-size: 1.5rem; pointer-events: none; text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.custom-dropdown {
    display: none; position: absolute; top: 110%; left: 0; width: 220px;
    background: var(--card-bg); border-radius: 16px; box-shadow: 0 10px 40px rgba(0,0,0,0.2);
    padding: 10px; flex-direction: column; gap: 5px; animation: slideDown 0.3s ease;
}
.custom-dropdown.active { display: flex; }
.dropdown-item {
    padding: 12px 15px; border-radius: 8px; display: flex; align-items: center; gap: 10px;
    font-weight: 600; color: var(--text-primary); cursor: pointer; transition: 0.2s;
}
.dropdown-item:hover { background-color: var(--bg-color); }
.dot { width: 12px; height: 12px; border-radius: 50%; display: block; }

.header-content { flex-grow: 1; display: flex; align-items: center; justify-content: space-between; padding: 0 40px; }
.header-content h1 { font-family: 'Dancing Script', cursive; font-size: 3rem; font-weight: 700; color: var(--text-primary); }
.subtitle { font-family: 'Outfit', sans-serif; letter-spacing: 2px; text-transform: uppercase; font-size: 0.8rem; color: var(--text-secondary); display: block; margin-top: -5px; }

/* --- 7. DETAY SAYFASI HEADER & GERİ DÖN BUTONU --- */
.detail-header {
    background: var(--card-bg);
    padding: 30px 40px;
    border-radius: 0 0 24px 24px;
    box-shadow: var(--shadow);
    margin-bottom: 30px;
    display: flex; align-items: center; justify-content: flex-start; 
}

/* REVİZE EDİLDİ: Geri Dön Butonu (Daha az dikkat çekici) */
.back-btn-wrapper {
    width: 60px; height: 60px; border-radius: 50%;
    background: var(--bg-color);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.4rem; color: var(--accent);
    box-shadow: inset 0 2px 5px rgba(0,0,0,0.05), 0 5px 15px rgba(0,0,0,0.05);
    cursor: pointer; margin-right: 30px;
}
.back-btn-wrapper:hover {
    background: var(--accent); color: #fff;
    /* Parlama ve büyüme azaltıldı */
    transform: translateY(-2px); 
    box-shadow: 0 5px 15px -3px var(--accent);
}
.back-btn-wrapper:active { transform: scale(0.95); }

/* --- 8. SAĞ KARTLAR (ACADEMIC, CULTURE, HOBBY) --- */
.academic-card { grid-area: academic; view-transition-name: academic-hero; }
.culture-card  { grid-area: culture; view-transition-name: culture-hero; }

/* REVİZE EDİLDİ: Hobby Kartı Rengi Değişken Yapıldı */
.hobby-card { 
    grid-area: hobby; 
    background-color: var(--hobby-bg); /* Değişkene bağlandı */
    color: var(--hobby-text); 
    display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center;
    view-transition-name: hobby-hero;
}
.hobby-card .card-desc { color: rgba(255,255,255,0.7); }
.hobby-card:hover .card-desc { color: #fff; }
.content-inner { display: flex; flex-direction: column; align-items: center; justify-content: center; height: 100%; text-align: center; }
.content-inner h3 { font-family: 'Outfit', sans-serif; font-size: 1.8rem; margin-top: 15px; color: var(--text-primary); }
.card-icon { font-size: 3rem; margin-bottom: 15px; opacity: 0.8; color: var(--text-primary); }
.hobby-card .card-icon, .hobby-card h3 { color: inherit; }

/* --- 9. TIMELINE & AKADEMİK DETAYLAR --- */
.column-title {
    font-family: 'Outfit', sans-serif; font-size: 1.5rem; font-weight: 700; color: var(--text-primary);
    margin-bottom: 20px; display: flex; align-items: center; gap: 10px;
    padding-bottom: 10px; border-bottom: 2px solid rgba(0,0,0,0.05);
}
.column-title i { color: var(--accent); opacity: 0.8; }

.timeline-card {
    background: var(--card-bg); border-radius: 16px; box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    margin-bottom: 20px; overflow: hidden; cursor: pointer; border: 1px solid rgba(0,0,0,0.05);
}
.timeline-card:hover { transform: translateY(-3px); box-shadow: 0 10px 20px rgba(0,0,0,0.08); }

.timeline-header { padding: 25px; display: flex; justify-content: space-between; align-items: center; }
.timeline-header h3 { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; color: inherit; font-size: 1.2rem; margin-bottom: 5px; line-height: 1.2; }

.job-type-badge {
    font-size: 0.7rem; font-weight: 800; text-transform: uppercase; padding: 4px 10px;
    border-radius: 6px; letter-spacing: 0.5px; display: inline-block; line-height: 1;
}

.timeline-body {
    max-height: 0; overflow: hidden; padding: 0 25px; opacity: 0;
    transition: all 0.4s ease-in-out; background-color: rgba(0,0,0,0.02);
}
.timeline-card.expanded .timeline-body { max-height: 500px; padding: 0 25px 25px 25px; opacity: 1; }
.toggle-icon { transition: transform 0.3s; font-size: 1.2rem; color: var(--text-secondary); }
.timeline-card.expanded .toggle-icon { transform: rotate(180deg); }

.work-desc-list { padding-left: 20px; margin-bottom: 15px; color: var(--text-secondary); line-height: 1.6; }
.work-desc-list li { margin-bottom: 5px; }

/* Rozetler (Badge System) - Ortak Stil */
.job-skill-badge, .course-badge {
    display: inline-block; font-size: 0.75rem; font-weight: 600;
    color: var(--accent); background: rgba(37, 99, 235, 0.08);
    padding: 4px 10px; border-radius: 6px; border: 1px solid rgba(37, 99, 235, 0.15);
    margin-right: 6px; margin-bottom: 6px; transition: 0.2s;
}
.job-skill-badge:hover, .course-badge:hover {
    background: var(--accent); color: #fff; transform: translateY(-1px);
}

.skills-title, .courses-title {
    display: block; font-size: 0.8rem; font-weight: 700; text-transform: uppercase;
    color: var(--text-secondary); margin-bottom: 8px; letter-spacing: 0.5px;
}

.course-badges-container { display: flex; flex-wrap: wrap; gap: 8px; }

.gpa-display {
    display: inline-flex; align-items: center; gap: 8px;
    background-color: #ecfdf5; color: #047857;
    padding: 8px 16px; border-radius: 8px; font-weight: 700; font-size: 0.95rem;
    border: 1px solid #d1fae5; margin-bottom: 15px; margin-top: 10px;
}
.location-badge {
    display: inline-flex; align-items: center; gap: 5px; font-size: 0.75rem; font-weight: 600;
    color: var(--text-secondary); background: rgba(0,0,0,0.04);
    padding: 4px 8px; border-radius: 6px; margin-left: 10px; border: 1px solid rgba(0,0,0,0.05);
}

/* --- 10. COURSERA VİTRİNİ --- */
.coursera-section-title {
    margin-top: 50px; margin-bottom: 25px; font-family: 'Outfit', sans-serif;
    font-size: 2rem; display: flex; align-items: center; gap: 15px; color: var(--text-primary);
}
.coursera-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; }
.coursera-card {
    background: var(--card-bg); border-radius: 12px; padding: 20px;
    box-shadow: var(--shadow); border: 1px solid rgba(0,0,0,0.05); transition: 0.3s;
    display: flex; flex-direction: column; justify-content: space-between;
}
.coursera-card:hover { transform: translateY(-5px); border-color: var(--accent); }

.card-footer {
    margin-top: 20px; border-top: 1px solid rgba(0,0,0,0.05); padding-top: 15px;
    display: flex; justify-content: space-between; align-items: center;
}
.course-date {
    display: block; margin-top: 6px; font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px;
}
.status-ongoing { color: #d97706; }
.status-completed { color: var(--text-secondary); opacity: 0.8; }

.action-btn {
    font-size: 0.85rem; font-weight: 600; color: var(--accent);
    display: flex; align-items: center; gap: 6px; transition: 0.2s;
}
.action-btn:hover { text-decoration: underline; opacity: 0.8; }
.btn-disabled { color: #94a3b8 !important; pointer-events: none; cursor: not-allowed; text-decoration: none !important; opacity: 0.5; }

/* Animasyonlar */
@keyframes slideDown { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: translateY(0); } }

/* --- 11. RESPONSIVE --- */
@media (max-width: 1000px) {
    .main-layout { display: flex; flex-direction: column; height: auto; width: 92%; }
    .header-card { flex-direction: column; }
    .cylinder-wrapper { width: 100%; height: 60px; border-radius: var(--card-radius) var(--card-radius) 0 0; }
    .barber-pole { border-radius: var(--card-radius) var(--card-radius) 0 0; }
    .header-content { padding: 20px; flex-direction: column; gap: 10px; text-align: center; }
    .custom-dropdown { width: 100%; top: 70px; }
    .left-column-wrapper { gap: 20px; }
    .about-card-inner, .news-card { flex: auto; }
    .academic-grid-layout { grid-template-columns: 1fr; gap: 40px; }
}

/* --- KÜLTÜR SAYFASI (FİNAL DÜZEN) --- */

.culture-grid-layout {
    grid-column: 1 / -1;
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 20px;
}

/* --- 1. SATIR: KİTAPLIK (YAN YANA İKİ KUTU) --- */
.bookshelf-row {
    display: flex;
    gap: 20px;
    height: 340px; /* Sabit yükseklik, orantısızlığı önler */
}

/* --- SOL: ŞU AN OKUYORUM --- */
.current-reads-card {
    flex: 1; /* Genişlik oranı */
    background: var(--card-bg); 
    border-radius: 20px; 
    padding: 20px;
    box-shadow: var(--shadow); 
    border-left: 4px solid #f59e0b;
    display: flex; 
    flex-direction: column;
    overflow: hidden; /* Taşmayı engelle */
}

/* Şu an okunanlar listesi (Dikey Scroll) */
.current-reads-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
    overflow-y: auto; /* Dikey Kaydırma */
    padding-right: 5px;
    height: 100%;
}
/* Scrollbar (Dikey) */
.current-reads-list::-webkit-scrollbar { width: 4px; }
.current-reads-list::-webkit-scrollbar-thumb { background-color: var(--accent); border-radius: 4px; }

/* Tekil Öğe (Resim + Bilgi) */
.current-read-item {
    display: flex;
    align-items: center;
    gap: 15px;
    background: rgba(0,0,0,0.02); 
    padding: 12px;
    border-radius: 12px;
    border: 1px solid rgba(0,0,0,0.05);
    transition: transform 0.2s;
    flex-shrink: 0; /* Sıkışmayı önler */
}
.current-read-item:hover {
    transform: translateY(-2px);
    background: #fff;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

.current-read-img {
    width: 60px; /* Daha küçük kapak */
    height: 90px; 
    object-fit: cover; 
    border-radius: 4px; 
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    flex-shrink: 0;
}

.current-read-info h4 {
    font-size: 0.95rem; font-family: 'Outfit'; margin-bottom: 2px; line-height: 1.2;
}
.current-read-info span { font-size: 0.8rem; opacity: 0.7; }

/* --- KİTAP DETAY ROZETLERİ (META TAGS) --- */

/* Rozetleri kapsayan satır */
.book-meta-row {
    display: flex;
    flex-wrap: wrap; /* Sığmazsa alta geç */
    gap: 6px;
    margin-top: 8px;
}

/* Genel Rozet Stili */
.meta-tag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.7rem; /* Küçük ve kibar */
    font-weight: 700;
    padding: 4px 8px;
    border-radius: 6px;
    line-height: 1;
}

/* 1. Tarih Rozeti (Turuncu) */
.tag-date {
    color: #f59e0b;
    background: rgba(245, 158, 11, 0.1);
}

/* 2. Sayfa Sayısı Rozeti (Mavi) */
.tag-page {
    color: #2563eb;
    background: rgba(37, 99, 235, 0.1);
}

/* 3. Tür Rozeti (Yeşil/Teal) */
.tag-genre {
    color: #059669;
    background: rgba(5, 150, 105, 0.1);
}


/* --- SAĞ: SON OKUDUKLARIM (CAROUSEL) --- */
.recent-reads-card {
    flex: 1.2; /* Biraz daha geniş */
    background: var(--card-bg); 
    border-radius: 20px; 
    padding: 20px;
    box-shadow: var(--shadow); 
    border-left: 4px solid #059669;
    display: flex; 
    flex-direction: column;
    overflow: hidden;
}

/* Carousel Konteyner */
.carousel-container {
    display: flex;
    gap: 15px;
    overflow-x: auto; /* YATAY SCROLL */
    padding-bottom: 10px;
    height: 100%;
    align-items: center;
    
    /* Scrollbar'ın görünmesi için gerekli */
    scrollbar-color: var(--accent) transparent; /* Firefox */
    scrollbar-width: thin;
}

/* Scrollbar Özelleştirme (Chrome/Safari/Edge) */
.carousel-container::-webkit-scrollbar { height: 8px; }
.carousel-container::-webkit-scrollbar-track { background: rgba(0,0,0,0.03); border-radius: 4px; }
.carousel-container::-webkit-scrollbar-thumb { 
    background-color: var(--accent); /* TEMA RENGİ */
    border-radius: 10px; 
    border: 2px solid var(--card-bg); 
}
.carousel-container::-webkit-scrollbar-thumb:hover { background-color: var(--text-primary); }

/* Tekil Kitap (Carousel Öğesi) */
.carousel-book {
    flex: 0 0 130px; /* SABİT GENİŞLİK (Sıkışmayı önler) */
    height: 195px;   /* SABİT YÜKSEKLİK */
    border-radius: 8px; 
    overflow: hidden; 
    position: relative;
    cursor: pointer; 
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}
.carousel-book img { width: 100%; height: 100%; object-fit: cover; }
.carousel-book:hover { transform: translateY(-5px); }

/* Overlay */
.book-overlay {
    position: absolute; inset: 0; background: rgba(0,0,0,0.7); color: #fff;
    display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center;
    opacity: 0; transition: 0.3s; padding: 5px;
}
.carousel-book:hover .book-overlay { opacity: 1; }


/* --- 2. SATIR: DİLLER (KÜÇÜK KART) --- */
.languages-row {
    display: flex;
}

.languages-card {
    background: var(--card-bg); 
    border-radius: 20px; 
    padding: 20px;
    box-shadow: var(--shadow); 
    border-left: 4px solid #2563eb;
    min-width: 300px; /* Çok küçülmesin */
}

.languages-list {
    display: flex; 
    flex-direction: column; 
    gap: 10px;
}

.lang-badge {
    display: flex; 
    justify-content: space-between; 
    align-items: center;
    padding-bottom: 8px;
    border-bottom: 1px dashed rgba(0,0,0,0.1);
}
.lang-badge:last-child { border-bottom: none; }


/* MOBİL UYUM */
@media (max-width: 1000px) {
    .bookshelf-row { flex-direction: column; height: auto; }
    .current-reads-card, .recent-reads-card { width: 100%; height: auto; min-height: 300px; }
    .languages-card { width: 100%; }
}


/* --- 3 BUTONLU KART FOOTER DÜZENİ --- */

.card-footer {
    margin-top: 20px;
    border-top: 1px solid rgba(0,0,0,0.05);
    padding-top: 15px;
    display: flex;
    justify-content: space-between; /* Sol, Orta, Sağ dağılım */
    align-items: center;
}

.action-btn {
    font-size: 0.8rem; /* 0.85'ten 0.8'e düşürdük, sığması için */
    font-weight: 700;
    color: var(--accent);
    display: flex;
    align-items: center;
    gap: 5px;
    transition: 0.2s;
    text-decoration: none;
    padding: 4px 0; /* Tıklama alanını artır */
}

.action-btn:hover {
    color: var(--text-primary);
    transform: translateY(-1px);
}

/* Pasif Butonlar */
.btn-disabled {
    color: #cbd5e1 !important; 
    pointer-events: none; 
    cursor: not-allowed; 
}

/* --- KİTAP DETAY SAYFASI --- */

.book-detail-layout {
    display: flex;
    flex-direction: column;
    gap: 25px;
    margin-bottom: 40px;
}

/* 1. SATIR: Hero Bölümü (Stats + Review) */
.book-hero-row {
    display: grid;
    /* %30 Sol - %70 Sağ Oranı */
    grid-template-columns: 1fr 2.3fr; 
    gap: 25px;
    align-items: stretch;
}

/* Sol Kart: İstatistikler */
.book-stats-card {
    background: var(--card-bg);
    border-radius: 24px;
    padding: 30px;
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    border-top: 5px solid var(--accent);
}

.book-stats-cover {
    width: 140px;
    height: 210px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
    margin-bottom: 20px;
}
.book-stats-cover img { width: 100%; height: 100%; object-fit: cover; }

.book-stats-title { font-family: 'Outfit'; font-size: 1.4rem; line-height: 1.2; margin-bottom: 5px; color: var(--text-primary); }
.book-stats-author { font-size: 0.95rem; opacity: 0.8; margin-bottom: 15px; display: block; color: var(--text-secondary); }

.book-badges-grid {
    display: flex; justify-content: center; gap: 8px; flex-wrap: wrap; margin-bottom: 20px;
}

.book-dates {
    width: 100%;
    display: flex; justify-content: space-around;
    background: rgba(0,0,0,0.03);
    padding: 10px; border-radius: 12px;
    margin-bottom: 20px;
}
.date-item { display: flex; flex-direction: column; gap: 2px; }
.date-label { font-size: 0.7rem; text-transform: uppercase; font-weight: 700; opacity: 0.6; }
.date-val { font-size: 0.85rem; font-weight: 600; color: var(--accent); }

.book-rating { color: #f59e0b; font-size: 1.2rem; letter-spacing: 2px; }

/* Sağ Kart: İnceleme */
.book-review-card {
    background: var(--card-bg);
    border-radius: 24px;
    padding: 30px;
    box-shadow: var(--shadow);
    display: flex; flex-direction: column;
}
.section-title { font-family: 'Outfit'; font-size: 1.2rem; margin-bottom: 20px; display: flex; align-items: center; gap: 10px; opacity: 0.9; }
.review-text { 
    font-size: 1rem; line-height: 1.8; color: var(--text-secondary); 
    text-align: justify;
}

/* 2. SATIR: İçerik (Alıntılar + Düşünceler) */
.book-content-row {
    display: grid;
    /* %50 - %50 Oranı */
    grid-template-columns: 1fr 1fr;
    gap: 25px;
}

.content-col-card {
    background: var(--card-bg);
    border-radius: 24px;
    padding: 30px;
    box-shadow: var(--shadow);
}

.scrollable-list {
    display: flex; flex-direction: column; gap: 15px;
    max-height: 400px; overflow-y: auto; padding-right: 5px;
}
/* İç Kart Stili (Card within Card) */
.content-item-card {
    background: rgba(0,0,0,0.02);
    border: 1px solid rgba(0,0,0,0.05);
    padding: 15px 20px;
    border-radius: 12px;
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--text-secondary);
    position: relative;
    transition: transform 0.2s;
}
.content-item-card:hover { transform: translateX(5px); background: #fff; box-shadow: 0 2px 10px rgba(0,0,0,0.05); }

/* Alıntı özel stili */
.quote-style { border-left: 3px solid #2563eb; font-style: italic; }
/* Düşünce özel stili */
.thought-style { border-left: 3px solid #059669; }

/* MOBİL UYUM */
@media (max-width: 900px) {
    .book-hero-row, .book-content-row { grid-template-columns: 1fr; }
}


/* --- TÜM KİTAPLAR SAYFASI (LIBRARY GRID) --- */

.library-header {
    display: flex; justify-content: space-between; align-items: center;
    margin-bottom: 30px; padding-bottom: 15px;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}
.library-header h3 { font-family: 'Outfit'; font-size: 1.5rem; color: var(--text-primary); }
.library-count { background: var(--bg-color); padding: 5px 12px; border-radius: 20px; font-weight: 700; font-size: 0.9rem; color: var(--text-secondary); }

/* 5 Sütunlu Grid Yapısı */
.library-grid {
    display: grid;
    /* Mobilde otomatik, Geniş ekranda en az 5 tane sığacak şekilde ayarla */
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 25px;
}

/* Tekil Kitap Kartı */
.library-book-item {
    background: rgba(0,0,0,0.02);
    border: 1px solid rgba(0,0,0,0.05);
    border-radius: 16px;
    padding: 15px;
    display: flex; flex-direction: column; gap: 12px;
    transition: transform 0.2s, box-shadow 0.2s;
    text-decoration: none;
    color: inherit;
}
.library-book-item:hover {
    transform: translateY(-5px);
    background: #fff;
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
}

.library-book-cover {
    width: 100%;
    aspect-ratio: 2/3;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}
.library-book-cover img { width: 100%; height: 100%; object-fit: cover; }

.library-book-info h4 {
    font-family: 'Outfit'; font-size: 1rem; line-height: 1.3;
    margin-bottom: 4px; color: var(--text-primary);
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; /* Uzun başlıkları kes */
}
.library-book-info span { font-size: 0.8rem; opacity: 0.8; color: var(--text-secondary); }

/* Grid içindeki badgeler */
.library-badges {
    display: flex; flex-wrap: wrap; gap: 5px; margin-top: auto; /* En alta it */
}

/* --- ANA SAYFA "TAMAMINI GÖR" BUTONU --- */
.see-all-btn {
    font-size: 0.85rem; font-weight: 600; 
    color: var(--accent); background: rgba(0,0,0,0.03);
    padding: 6px 12px; border-radius: 20px;
    transition: 0.2s; display: flex; align-items: center; gap: 5px;
}
.see-all-btn:hover { background: var(--accent); color: #fff; }



/* --- KÜTÜPHANE GRID GÜNCELLEMELERİ --- */

/* "Şu an Okunuyor" Kırmızı Badge */
.reading-status-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: #ef4444; /* Kırmızı */
    color: #fff;
    font-size: 0.65rem;
    font-weight: 700;
    padding: 4px 8px;
    border-radius: 4px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    z-index: 5;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* "Devam Eden" Kitap Kartı (Hafif Disable Görünümü) */
.library-book-item.is-reading {
    opacity: 0.85; /* Biraz şeffaflaştır */
    background: rgba(0,0,0,0.01); /* Arkaplanı daha soluk yap */
    border-color: rgba(0,0,0,0.02);
}

/* Hover efektini de değiştirelim, tıklanmayacağı hissini versin ama link çalışsın */
.library-book-item.is-reading:hover {
    transform: translateY(-2px); /* Daha az zıplasın */
    box-shadow: 0 5px 10px rgba(0,0,0,0.05);
    opacity: 1; /* Üstüne gelince parlasın */
}

/* Kapağı da hafif gri yapabiliriz istersen (Opsiyonel) */
.library-book-item.is-reading .library-book-cover img {
    filter: grayscale(30%); /* Hafif siyah beyaz */
}
.library-book-item.is-reading:hover .library-book-cover img {
    filter: grayscale(0%); /* Hoverda renk gelsin */
}


/* --- CAROUSEL "DEVAMINI GÖR" KARTI (GÖLGELİ/BULANIK) --- */

.carousel-book.more-books-card {
    position: relative;
    border: 1px solid rgba(0,0,0,0.05);
    background: #000; /* Koyu zemin */
}

/* Resmi bulanıklaştır ve karart */
.carousel-book.more-books-card img {
    filter: blur(3px) brightness(0.4); 
    transform: scale(1.1); /* Blur kenarları taşmasın diye büyüt */
}

/* Hover olunca blur biraz açılsın ama hala tıklamaya teşvik etsin */
.carousel-book.more-books-card:hover img {
    filter: blur(2px) brightness(0.5);
    transform: scale(1.15);
}

/* Ortadaki Yazı ve İkon */
.more-books-content {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: #fff;
    z-index: 5;
    text-align: center;
}

.more-books-count {
    font-size: 2rem;
    font-weight: 800;
    font-family: 'Outfit', sans-serif;
    margin-bottom: 5px;
}

.more-books-text {
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.9;
}