/* ==========================================================================
   Kitaplığımız & Okuma Panosu - Özel Tasarım & Stil Katmanı
   Geliştirici: Furkan Hasanusta (kitap.furkanhasanusta.com)
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. GECE MODU / KARANLIK TEMA (Varsayılan - Deep Oceanic Navy)
   -------------------------------------------------------------------------- */
:root {
    /* Arka Plan Tonları */
    --bg-main: #0b111e;
    --bg-surface: #111a2e;
    --bg-card: #152238;
    --bg-card-hover: #1b2b46;
    --bg-input: #0e1627;
    
    /* Çizgiler ve Kenarlıklar */
    --border-subtle: rgba(255, 255, 255, 0.08);
    --border-hover: rgba(255, 255, 255, 0.18);
    --border-focus: #3b82f6;

    /* Tipografi Renkleri */
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;

    /* Mavi Vurgu Renk Paleti */
    --accent-primary: #3b82f6;
    --accent-primary-hover: #2563eb;
    --accent-gradient: linear-gradient(135deg, #2563eb, #0284c7);
    --accent-glow: rgba(59, 130, 246, 0.35);

    /* Durum & Yardımcı Renkler */
    --accent-warm: #f59e0b;
    --accent-success: #10b981;
    --accent-danger: #ef4444;
    --accent-info: #38bdf8;
    --accent-cyan: #06b6d4;

    /* Köşe Yuvarlaklıkları */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 18px;
    --radius-full: 9999px;

    /* Gölgeler */
    --shadow-subtle: 0 4px 20px rgba(0, 0, 0, 0.35);
    --shadow-hover: 0 10px 30px rgba(0, 0, 0, 0.5);

    /* Font Aileleri */
    --font-sans: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
    --font-serif: 'Playfair Display', 'Merriweather', Georgia, serif;

    /* Bileşen Özel Değişkenleri */
    --navbar-bg: rgba(11, 17, 30, 0.85);
    --cr-bg: linear-gradient(145deg, #131e33, #0f1829);
    --cr-border: rgba(59, 130, 246, 0.22);
    --modal-overlay-bg: rgba(0, 0, 0, 0.7);
    --cover-bg-base: #080d16;
}

/* --------------------------------------------------------------------------
   2. GÜNDÜZ MODU / AYDINLIK TEMA (Daylight Crisp Azure)
   -------------------------------------------------------------------------- */
[data-theme="light"] {
    /* Arka Plan Tonları */
    --bg-main: #f4f7fc;
    --bg-surface: #ffffff;
    --bg-card: #ffffff;
    --bg-card-hover: #f1f6fd;
    --bg-input: #f8fafc;

    /* Çizgiler ve Kenarlıklar */
    --border-subtle: rgba(15, 23, 42, 0.08);
    --border-hover: rgba(15, 23, 42, 0.16);
    --border-focus: #2563eb;

    /* Tipografi Renkleri */
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-muted: #94a3b8;

    /* Mavi Vurgu Renk Paleti (Aydınlık) */
    --accent-primary: #2563eb;
    --accent-primary-hover: #1d4ed8;
    --accent-gradient: linear-gradient(135deg, #2563eb, #0ea5e9);
    --accent-glow: rgba(37, 99, 235, 0.25);

    /* Durum & Yardımcı Renkler */
    --accent-warm: #d97706;
    --accent-success: #059669;
    --accent-danger: #dc2626;
    --accent-info: #0284c7;
    --accent-cyan: #0891b2;

    /* Gölgeler */
    --shadow-subtle: 0 4px 20px rgba(15, 23, 42, 0.05);
    --shadow-hover: 0 10px 30px rgba(37, 99, 235, 0.12);

    /* Bileşen Özel Değişkenleri */
    --navbar-bg: rgba(255, 255, 255, 0.88);
    --cr-bg: linear-gradient(145deg, #eff6ff, #f8faff);
    --cr-border: rgba(37, 99, 235, 0.2);
    --modal-overlay-bg: rgba(15, 23, 42, 0.5);
    --cover-bg-base: #e2e8f0;
}

/* --------------------------------------------------------------------------
   3. RESET & TEMEL ELEMENTLER
   -------------------------------------------------------------------------- */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: var(--bg-main);
    color: var(--text-primary);
    font-family: var(--font-sans);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    transition: background-color 0.3s ease, color 0.3s ease;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.02em;
}

a {
    color: inherit;
    text-decoration: none;
}

/* --------------------------------------------------------------------------
   4. NAVBAR & BAŞLIK ALANI
   -------------------------------------------------------------------------- */
.navbar {
    background: var(--navbar-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-subtle);
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 0.85rem 0;
    transition: background 0.3s ease, border-color 0.3s ease;
}

.nav-container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.brand-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.25rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    color: var(--text-primary);
}

.brand-logo .brand-icon {
    width: 38px;
    height: 38px;
    background: var(--accent-gradient);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.1rem;
    box-shadow: 0 3px 12px var(--accent-glow);
    transition: transform 0.2s ease;
}

.brand-logo:hover .brand-icon {
    transform: scale(1.05);
}

/* Navigasyon Bağlantıları */
.nav-links {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    flex-wrap: wrap;
}

.nav-link-item {
    padding: 0.45rem 0.8rem;
    border-radius: var(--radius-sm);
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-secondary);
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.nav-link-item:hover {
    color: var(--accent-primary);
    background: rgba(59, 130, 246, 0.08);
}

.nav-link-item i {
    font-size: 0.85rem;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

/* Tema Değiştirici Buton (Gece / Gündüz) */
.btn-theme-toggle {
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    color: var(--text-secondary);
    width: 38px;
    height: 38px;
    border-radius: var(--radius-full);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.25s ease;
    box-shadow: var(--shadow-subtle);
}

.btn-theme-toggle:hover {
    color: var(--accent-primary);
    border-color: var(--accent-primary);
    transform: rotate(15deg) scale(1.08);
}

.btn-theme-toggle i {
    transition: transform 0.3s ease;
}

.user-badge {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 0.8rem;
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-full);
    font-size: 0.85rem;
    color: var(--text-secondary);
    transition: all 0.3s ease;
}

.user-avatar {
    width: 24px;
    height: 24px;
    border-radius: var(--radius-full);
    background: var(--accent-primary);
    color: white;
    font-size: 0.75rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-nav-add {
    background: var(--accent-primary);
    color: white;
    padding: 0.45rem 1rem;
    border-radius: var(--radius-sm);
    font-size: 0.875rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    transition: all 0.2s ease;
    border: none;
    box-shadow: 0 2px 8px var(--accent-glow);
}

.btn-nav-add:hover {
    background: var(--accent-primary-hover);
    transform: translateY(-1px);
    color: white;
}

.btn-logout {
    background: transparent;
    border: 1px solid var(--border-subtle);
    color: var(--text-muted);
    padding: 0.45rem 0.8rem;
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.btn-logout:hover {
    background: rgba(239, 68, 68, 0.1);
    color: var(--accent-danger);
    border-color: rgba(239, 68, 68, 0.3);
}

/* --------------------------------------------------------------------------
   5. LAYOUT & DASHBOARD HERO
   -------------------------------------------------------------------------- */
.container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 2rem 1.5rem;
    width: 100%;
}

.main-content {
    flex: 1;
}

.dashboard-hero {
    margin-bottom: 2rem;
}

.dashboard-title-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.dashboard-heading {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.dashboard-subtitle {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-top: 0.25rem;
}

/* --------------------------------------------------------------------------
   6. METRİK & İSTATİSTİK KARTLARI
   -------------------------------------------------------------------------- */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 1.25rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.3s ease;
    box-shadow: var(--shadow-subtle);
}

.stat-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.stat-icon {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.stat-icon.reading { background: rgba(56, 189, 248, 0.12); color: var(--accent-info); }
.stat-icon.read { background: rgba(16, 185, 129, 0.12); color: var(--accent-success); }
.stat-icon.pages { background: rgba(245, 158, 11, 0.12); color: var(--accent-warm); }
.stat-icon.goal { background: rgba(37, 99, 235, 0.12); color: var(--accent-primary); }

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

.stat-label {
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
}

.stat-value {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-primary);
    line-height: 1.2;
    margin-top: 0.1rem;
}

.stat-subtext {
    font-size: 0.75rem;
    color: var(--text-secondary);
    margin-top: 0.2rem;
}

.stat-progress-bar {
    height: 5px;
    background: var(--border-subtle);
    border-radius: var(--radius-full);
    margin-top: 0.5rem;
    overflow: hidden;
}

.stat-progress-fill {
    height: 100%;
    background: var(--accent-gradient);
    border-radius: var(--radius-full);
    transition: width 0.4s ease;
}

/* --------------------------------------------------------------------------
   7. ŞU ANDA OKUNANLAR (SPOTLIGHT VITRIN)
   -------------------------------------------------------------------------- */
.currently-reading-section {
    background: var(--cr-bg);
    border: 1px solid var(--cr-border);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    margin-bottom: 2rem;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-subtle);
}

.currently-reading-section::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 300px;
    height: 100%;
    background: radial-gradient(circle at top right, rgba(59, 130, 246, 0.08), transparent 70%);
    pointer-events: none;
}

.section-title-sm {
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--accent-primary);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.cr-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1.25rem;
}

.cr-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 1rem;
    display: flex;
    gap: 1rem;
    align-items: center;
    transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: var(--shadow-subtle);
}

.cr-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.cr-cover {
    width: 60px;
    height: 85px;
    border-radius: var(--radius-sm);
    object-fit: cover;
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    flex-shrink: 0;
}

.cr-cover-fallback {
    width: 60px;
    height: 85px;
    border-radius: var(--radius-sm);
    background: linear-gradient(135deg, #1e293b, #0f172a);
    border: 1px solid var(--border-subtle);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #94a3b8;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.cr-details {
    flex: 1;
    min-width: 0;
}

.cr-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.cr-author {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.cr-progress-wrap {
    margin-bottom: 0.5rem;
}

.cr-progress-info {
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-bottom: 0.25rem;
}

.cr-progress-bar {
    height: 6px;
    background: var(--border-subtle);
    border-radius: var(--radius-full);
    overflow: hidden;
}

.cr-progress-fill {
    height: 100%;
    background: var(--accent-gradient);
    border-radius: var(--radius-full);
}

.cr-actions {
    display: flex;
    gap: 0.4rem;
    align-items: center;
}

.btn-cr-step {
    background: var(--bg-input);
    border: 1px solid var(--border-subtle);
    color: var(--text-secondary);
    padding: 0.25rem 0.5rem;
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-cr-step:hover {
    background: var(--bg-card-hover);
    color: var(--text-primary);
    border-color: var(--border-hover);
}

.btn-cr-update {
    background: var(--accent-primary);
    color: white;
    border: none;
    padding: 0.25rem 0.6rem;
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease;
}

.btn-cr-update:hover {
    background: var(--accent-primary-hover);
}

/* --------------------------------------------------------------------------
   8. ARAMA & FILTRELEME PANELİ
   -------------------------------------------------------------------------- */
.filter-container {
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 1.25rem;
    margin-bottom: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-subtle);
}

.filter-top-row {
    display: flex;
    gap: 1rem;
    align-items: center;
    flex-wrap: wrap;
}

.search-input-wrap {
    position: relative;
    flex: 1;
    min-width: 240px;
}

.search-input-wrap i {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 0.9rem;
}

.search-input {
    width: 100%;
    padding: 0.65rem 1rem 0.65rem 2.5rem;
    background: var(--bg-input);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-family: inherit;
    font-size: 0.9rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.search-input:focus {
    outline: none;
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
}

.filter-select {
    padding: 0.65rem 1rem;
    background: var(--bg-input);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-family: inherit;
    font-size: 0.875rem;
    cursor: pointer;
    transition: border-color 0.2s ease;
}

.filter-select:focus {
    outline: none;
    border-color: var(--accent-primary);
}

.filter-select option {
    background: var(--bg-surface);
    color: var(--text-primary);
}

/* Durum Sekmeleri (Status Tabs) */
.status-tabs {
    display: flex;
    gap: 0.4rem;
    flex-wrap: wrap;
    border-bottom: 1px solid var(--border-subtle);
    padding-bottom: 0.75rem;
}

.status-tab {
    padding: 0.4rem 0.9rem;
    border-radius: var(--radius-full);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
    background: transparent;
    border: 1px solid transparent;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.status-tab:hover {
    color: var(--text-primary);
    background: rgba(59, 130, 246, 0.08);
}

.status-tab.active {
    background: rgba(59, 130, 246, 0.15);
    color: var(--accent-primary);
    border-color: rgba(59, 130, 246, 0.3);
}

.status-tab .count-badge {
    background: var(--border-subtle);
    font-size: 0.75rem;
    padding: 0.1rem 0.45rem;
    border-radius: var(--radius-full);
    color: var(--text-secondary);
}

.status-tab.active .count-badge {
    background: var(--accent-primary);
    color: white;
}

/* Kategori & Sahip Hap Butonları */
.filter-pills-row {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    align-items: center;
}

.pill-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 600;
    margin-right: 0.25rem;
}

.filter-pill {
    padding: 0.3rem 0.75rem;
    border-radius: var(--radius-full);
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-secondary);
    background: var(--bg-input);
    border: 1px solid var(--border-subtle);
    transition: all 0.2s ease;
    cursor: pointer;
}

.filter-pill:hover {
    color: var(--text-primary);
    border-color: var(--accent-primary);
}

.filter-pill.active {
    background: var(--accent-primary);
    color: #ffffff;
    font-weight: 700;
    border-color: var(--accent-primary);
    box-shadow: 0 2px 8px var(--accent-glow);
}

/* --------------------------------------------------------------------------
   9. KİTAP KARTLARI & GRID
   -------------------------------------------------------------------------- */
.books-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.25rem;
}

.books-count-text {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.books-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.book-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease, background-color 0.3s ease;
    position: relative;
    box-shadow: var(--shadow-subtle);
}

.book-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
    border-color: var(--border-hover);
}

/* Kapak Alanı */
.book-cover-wrap {
    height: 220px;
    background: var(--cover-bg-base);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.book-cover-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.book-card:hover .book-cover-img {
    transform: scale(1.03);
}

/* Kapak Görseli Olmayan Kitaplar İçin Tipografik Tasarım */
.book-cover-fallback {
    width: 100%;
    height: 100%;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background: linear-gradient(145deg, #16243d, #0d1728);
    position: relative;
    color: #ffffff;
}

.book-cover-fallback::after {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 8px;
    background: linear-gradient(to right, rgba(0,0,0,0.5), transparent);
}

.fallback-genre {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--accent-info);
    font-weight: 700;
}

.fallback-title {
    font-family: var(--font-serif);
    font-size: 1.1rem;
    font-weight: 700;
    color: #ffffff;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.fallback-author {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.75);
    font-style: italic;
}

/* Üst Rozetler */
.badge-top-left {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 2;
}

.badge-top-right {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 2;
}

.owner-tag {
    padding: 0.25rem 0.6rem;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 700;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

.owner-furkan { background: rgba(37, 99, 235, 0.9); color: white; }
.owner-beyza { background: rgba(236, 72, 153, 0.9); color: white; }
.owner-shared { background: rgba(14, 165, 233, 0.9); color: white; }

.status-tag {
    padding: 0.25rem 0.6rem;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 700;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

.status-toread { background: rgba(100, 116, 139, 0.85); color: white; }
.status-reading { background: rgba(56, 189, 248, 0.95); color: #082f49; }
.status-read { background: rgba(16, 185, 129, 0.95); color: #022c22; }
.status-dropped { background: rgba(239, 68, 68, 0.85); color: white; }

/* Kitap Kartı Gövdesi */
.book-card-body {
    padding: 1.25rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.book-card-category {
    font-size: 0.75rem;
    color: var(--accent-primary);
    font-weight: 600;
    margin-bottom: 0.25rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.book-card-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.35;
    margin-bottom: 0.25rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.book-card-author {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 0.75rem;
}

/* Öneren Kişi Rozeti */
.recommended-by-row {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.75rem;
    color: var(--accent-warm);
    background: rgba(245, 158, 11, 0.08);
    border: 1px solid rgba(245, 158, 11, 0.2);
    padding: 0.25rem 0.5rem;
    border-radius: var(--radius-sm);
    margin-bottom: 0.75rem;
}

/* Puan Yıldızları */
.rating-stars {
    color: var(--accent-warm);
    font-size: 0.85rem;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.15rem;
}

.rating-stars .empty-star {
    color: var(--border-hover);
}

/* İlerleme Çubuğu */
.book-card-progress {
    margin-top: auto;
    margin-bottom: 1rem;
}

.card-progress-labels {
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-bottom: 0.3rem;
}

.card-progress-bar {
    height: 5px;
    background: var(--border-subtle);
    border-radius: var(--radius-full);
    overflow: hidden;
}

.card-progress-fill {
    height: 100%;
    background: var(--accent-primary);
    border-radius: var(--radius-full);
}

.card-progress-fill.done {
    background: var(--accent-success);
}

/* Kart Alt Butonları */
.book-card-footer {
    display: flex;
    gap: 0.4rem;
    border-top: 1px solid var(--border-subtle);
    padding-top: 0.75rem;
}

.btn-card-action {
    flex: 1;
    padding: 0.45rem 0.5rem;
    border-radius: var(--radius-sm);
    font-size: 0.8rem;
    font-weight: 600;
    text-align: center;
    background: var(--bg-input);
    border: 1px solid var(--border-subtle);
    color: var(--text-secondary);
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.3rem;
    cursor: pointer;
}

.btn-card-action:hover {
    background: var(--bg-card-hover);
    color: var(--text-primary);
    border-color: var(--border-hover);
}

.btn-card-action.edit:hover {
    color: var(--accent-primary);
    border-color: rgba(59, 130, 246, 0.3);
}

.btn-card-action.notes:hover {
    color: var(--accent-warm);
    border-color: rgba(245, 158, 11, 0.3);
}

.btn-card-action.delete:hover {
    color: var(--accent-danger);
    border-color: rgba(239, 68, 68, 0.3);
}

/* --------------------------------------------------------------------------
   10. ALINTILAR & OKUMA GÜNLÜĞÜ BÖLÜMÜ
   -------------------------------------------------------------------------- */
.quotes-section {
    margin-top: 2rem;
    margin-bottom: 3rem;
}

.quotes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.25rem;
}

.quote-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-left: 3px solid var(--accent-primary);
    border-radius: var(--radius-md);
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.2s ease, border-color 0.2s ease;
    box-shadow: var(--shadow-subtle);
}

.quote-card:hover {
    transform: translateY(-2px);
    border-color: var(--border-hover);
}

.quote-text {
    font-family: var(--font-serif);
    font-size: 0.95rem;
    font-style: italic;
    color: var(--text-primary);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.quote-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
}

.quote-book-info {
    color: var(--text-secondary);
}

.quote-book-title {
    font-weight: 700;
    color: var(--text-primary);
}

/* --------------------------------------------------------------------------
   11. FORMLAR & PANELLER (Create / Edit / Details / Quick Update)
   -------------------------------------------------------------------------- */
.form-page-container {
    max-width: 800px;
    margin: 0 auto;
}

.form-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.form-panel {
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 2rem;
    box-shadow: var(--shadow-subtle);
    transition: all 0.3s ease;
}

.form-section-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1.25rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border-subtle);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.form-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
}

.form-group {
    margin-bottom: 1.25rem;
}

.form-group.full-width {
    grid-column: 1 / -1;
}

.form-label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 0.4rem;
}

.form-control, .form-select, .form-textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    background: var(--bg-input);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-family: inherit;
    font-size: 0.9rem;
    transition: all 0.2s ease;
}

.form-control:focus, .form-select:focus, .form-textarea:focus {
    outline: none;
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
}

.form-textarea {
    min-height: 110px;
    resize: vertical;
}

.form-actions-row {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-subtle);
}

.btn-primary-action {
    background: var(--accent-primary);
    color: white;
    padding: 0.75rem 1.75rem;
    border-radius: var(--radius-sm);
    font-size: 0.95rem;
    font-weight: 700;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 0 2px 8px var(--accent-glow);
}

.btn-primary-action:hover {
    background: var(--accent-primary-hover);
    transform: translateY(-1px);
    color: white;
}

.btn-cancel-action {
    background: var(--bg-input);
    color: var(--text-secondary);
    border: 1px solid var(--border-subtle);
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-sm);
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
}

.btn-cancel-action:hover {
    background: var(--bg-card-hover);
    color: var(--text-primary);
    border-color: var(--border-hover);
}

/* --------------------------------------------------------------------------
   12. MODALLAR
   -------------------------------------------------------------------------- */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--modal-overlay-bg);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    z-index: 1000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.modal-overlay.active {
    display: flex;
}

.modal-content {
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    width: 100%;
    max-width: 520px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
    overflow: hidden;
    animation: modalPop 0.2s ease-out;
}

@keyframes modalPop {
    from { transform: scale(0.95); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.modal-header {
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--border-subtle);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    font-size: 1.15rem;
    font-weight: 700;
}

.btn-modal-close {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 1.2rem;
    cursor: pointer;
    transition: color 0.2s ease;
}

.btn-modal-close:hover {
    color: var(--text-primary);
}

.modal-body {
    padding: 1.5rem;
}

/* --------------------------------------------------------------------------
   13. BOŞ DURUM (EMPTY STATE) & FOOTER
   -------------------------------------------------------------------------- */
.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    background: var(--bg-surface);
    border: 1px dashed var(--border-subtle);
    border-radius: var(--radius-lg);
    margin: 2rem 0;
}

.empty-icon {
    font-size: 3rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.empty-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.empty-desc {
    color: var(--text-secondary);
    font-size: 0.9rem;
    max-width: 400px;
    margin: 0 auto 1.5rem auto;
}

.footer {
    text-align: center;
    padding: 2rem 1.5rem;
    color: var(--text-muted);
    font-size: 0.85rem;
    border-top: 1px solid var(--border-subtle);
    margin-top: auto;
}

/* --------------------------------------------------------------------------
   14. ZEN ZAMANLAYICI, ANALİTİK VE ALINTI STİLLERİ
   -------------------------------------------------------------------------- */
.timer-mode-btn {
    background: transparent;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-full);
    color: var(--text-secondary);
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.timer-mode-btn:hover {
    color: var(--text-primary);
}

.timer-mode-btn.active {
    background: var(--accent-primary);
    color: #ffffff;
    box-shadow: 0 2px 8px var(--accent-glow);
}

/* --------------------------------------------------------------------------
   15. PWA YÜKLEME BANNERI & MOBİL ALT NAVİGASYON (NATIVE APP BAR)
   -------------------------------------------------------------------------- */
.pwa-install-banner {
    display: none !important; /* Masaüstünde tamamen gizle */
    background: var(--bg-surface);
    border-bottom: 1px solid var(--border-subtle);
    padding: 0.6rem 1.25rem;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1001;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

@media (max-width: 768px) {
    .pwa-install-banner.is-active {
        display: flex !important;
    }
}

.pwa-banner-content {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.mobile-bottom-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: calc(60px + env(safe-area-inset-bottom, 0px));
    padding-bottom: env(safe-area-inset-bottom, 0px);
    background: var(--nav-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-top: 1px solid var(--border-subtle);
    z-index: 999;
    justify-content: space-around;
    align-items: center;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.25);
}

.mobile-nav-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.2rem;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.7rem;
    font-weight: 600;
    height: 100%;
    transition: all 0.2s ease;
    position: relative;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
}

.mobile-nav-item i {
    font-size: 1.15rem;
    transition: transform 0.2s ease, color 0.2s ease;
}

.mobile-nav-item:hover, .mobile-nav-item:focus {
    color: var(--text-primary);
}

.mobile-nav-item.active {
    color: var(--accent-primary);
}

.mobile-nav-item.active i {
    transform: translateY(-2px);
    color: var(--accent-primary);
}

.mobile-nav-center-btn {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--accent-gradient);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    box-shadow: 0 4px 14px var(--accent-glow);
    margin-top: -20px;
    border: 3px solid var(--bg-body);
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    -webkit-tap-highlight-color: transparent;
}

.mobile-nav-center-btn:active {
    transform: scale(0.92);
}

/* Mobil Menü Sheet (Drawer) */
.mobile-menu-sheet {
    max-width: 440px;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    margin-top: auto;
    margin-bottom: 0;
    animation: slideUp 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes slideUp {
    from { transform: translateY(100%); }
    to { transform: translateY(0); }
}

.mobile-menu-links {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.mobile-sheet-link {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 0.8rem 1rem;
    border-radius: var(--radius-md);
    color: var(--text-primary);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 600;
    transition: background 0.2s ease;
}

.mobile-sheet-link:hover, .mobile-sheet-link:active {
    background: var(--bg-card-hover);
}

.mobile-sheet-link i {
    font-size: 1.15rem;
    width: 22px;
    text-align: center;
}

/* --------------------------------------------------------------------------
   16. RESPONSIVE UYUMLULUK
   -------------------------------------------------------------------------- */
.mobile-only {
    display: none !important;
}

@media (max-width: 900px) {
    .analytics-charts-grid,
    .analytics-bottom-grid,
    .session-layout-grid {
        grid-template-columns: 1fr !important;
    }
}

@media (max-width: 768px) {
    .desktop-only {
        display: none !important;
    }

    .mobile-only {
        display: flex !important;
    }

    .mobile-bottom-nav {
        display: flex;
    }

    /* Mobilde alt navigasyon çubuğunun içeriği kapatmaması için boşluk */
    .main-content {
        padding-bottom: calc(75px + env(safe-area-inset-bottom, 0px)) !important;
    }

    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .dashboard-title-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }

    .dashboard-heading {
        font-size: 1.45rem;
    }

    .stats-grid {
        grid-template-columns: 1fr 1fr;
        gap: 0.75rem;
    }

    .stat-card {
        padding: 1rem;
    }

    .stat-value {
        font-size: 1.35rem;
    }

    .form-panel {
        padding: 1.25rem 1rem;
    }

    .form-grid-2 {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .books-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .filter-container {
        padding: 1rem;
    }

    .filter-top-row {
        flex-direction: column;
        align-items: stretch;
    }

    .status-tabs {
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 0.5rem;
        margin-right: -0.5rem;
    }

    .status-tabs::-webkit-scrollbar {
        display: none;
    }

    .filter-pills-row {
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 0.5rem;
    }

    .filter-pills-row::-webkit-scrollbar {
        display: none;
    }

    .modal-content {
        max-width: 95%;
        margin: 1rem auto;
    }
}