@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Outfit:wght@500;700;800&display=swap');

:root {
    --bg-ana: #09090b;          /* Modern ve derin gece siyahı */
    --bg-kart: #18181b;         /* Kart yüzeyi */
    --metin-ana: #f4f4f5;       /* Ana metin */
    --metin-soluk: #a1a1aa;     /* İkincil metin */
    --vurgu: #6366f1;           /* Modern İndigo/Mor vurgu rengi */
    --cizgi: #27272a;           /* İnce çizgiler */
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    background-color: var(--bg-ana);
    color: var(--metin-ana);
    font-family: 'Inter', sans-serif;
    /* Çok hafif, modern bir arka plan ışıması */
    background-image: radial-gradient(circle at 50% -20%, rgba(99, 102, 241, 0.1) 0%, transparent 60%);
    background-attachment: fixed;
    min-height: 100vh;
}

/* --- ÜST MENÜ --- */
.navbar {
    background: rgba(9, 9, 11, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--cizgi);
    padding: 0 24px;
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-container { 
    max-width: 1400px; 
    margin: 0 auto; 
    height: 72px; 
    display: flex; 
    align-items: center; 
    justify-content: space-between; 
}

.brand-area { display: flex; align-items: center; gap: 12px; text-decoration: none; }

/* Modern Logo */
.logo-icon { 
    width: 24px; height: 24px; 
    background: linear-gradient(135deg, var(--vurgu), #a855f7); 
    border-radius: 6px; 
    box-shadow: 0 0 15px rgba(99, 102, 241, 0.5); 
}

.brand-text { 
    font-family: 'Outfit', sans-serif; 
    font-size: 22px; 
    font-weight: 800; 
    color: #fff; 
    letter-spacing: -0.5px; 
}

.brand-text span { color: var(--metin-soluk); font-weight: 500; }

/* --- KÜTÜPHANE ALANI --- */
.main-content { max-width: 1400px; margin: 40px auto; padding: 0 24px; }

.section-title {
    font-family: 'Outfit', sans-serif; 
    font-size: 24px; 
    font-weight: 700;
    color: #fff; 
    margin-bottom: 30px; 
    display: flex;
    align-items: center;
    gap: 10px;
}

/* --- MODERN KİTAP GRID SİSTEMİ --- */
.novel-grid {
    display: grid;
    /* Ekran ne kadar geniş olursa olsun, kartları düzgün boyutlandırır ve sola yaslar */
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 28px 20px;
}

.novel-card {
    position: relative;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    cursor: pointer;
}

/* Hover: Kitap yukarı kalkar ve gölgesi derinleşir */
.novel-card:hover {
    transform: translateY(-8px);
}

.card-link { text-decoration: none; color: inherit; display: flex; flex-direction: column; height: 100%; }

.card-image-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 2/3;
    border-radius: 12px; /* Modern yuvarlak köşeler */
    overflow: hidden;
    background: var(--bg-kart);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
    border: 1px solid var(--cizgi);
    transition: all 0.3s ease;
}

/* Hover olunca resim çerçevesinin ışıması */
.novel-card:hover .card-image-wrapper {
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.6), 0 0 0 2px var(--vurgu);
    border-color: transparent;
}

.card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

/* Hover olunca resim içten hafifçe büyür (Zoom efekti) */
.novel-card:hover .card-image {
    transform: scale(1.05);
}

.card-details {
    padding-top: 12px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.card-title {
    font-family: 'Inter', sans-serif;
    font-size: 15px;
    font-weight: 600;
    color: var(--metin-ana);
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.2s;
}

.novel-card:hover .card-title {
    color: var(--vurgu);
}

.card-chapter {
    font-size: 12px;
    color: var(--metin-soluk);
    display: flex;
    align-items: center;
    gap: 4px;
}