* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Segoe UI', sans-serif; }
body { background-color: #f0f2f5; color: #1c1e21; padding-bottom: 60px; }

/* Üst Bar */
.top-bar {
    position: sticky; top: 0; z-index: 100;
    background: #fff; padding: 15px 20px;
    display: flex; justify-content: space-between; align-items: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}
.top-bar h1 { font-size: 1.2rem; color: #2c3e50; }
.btn-add { background: #e67e22; color: #fff; border: none; padding: 8px 15px; border-radius: 20px; cursor: pointer; font-weight: bold; }

/* Kitap Akışı */
#feed-section { max-width: 500px; margin: 20px auto; padding: 0 15px; }
.book-card { background: #fff; border-radius: 12px; padding: 15px; margin-bottom: 20px; box-shadow: 0 2px 8px rgba(0,0,0,0.08); }
.user-info { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; font-weight: 600; }
.user-info img { border-radius: 50%; }
.book-content { display: flex; gap: 15px; }
.book-cover { width: 100px; height: 150px; object-fit: cover; border-radius: 8px; }
.book-details h3 { font-size: 1.1rem; margin-bottom: 4px; }
.author { color: #7f8c8d; font-size: 0.9rem; margin-bottom: 8px; }
.desc { font-size: 0.9rem; line-height: 1.4; margin-bottom: 12px; }
.btn-read { display: inline-block; background: #2980b9; color: #fff; text-decoration: none; padding: 8px 15px; border-radius: 6px; font-size: 0.9rem; }

/* Beğeni ve Yorumlar */
.actions { display: flex; gap: 20px; margin-top: 15px; padding-top: 10px; border-top: 1px solid #eee; }
.actions button { background: none; border: none; font-size: 1rem; cursor: pointer; color: #555; display: flex; align-items: center; gap: 5px; }
.actions button.liked { color: #e74c3c; font-weight: bold; }
.comment-box { margin-top: 12px; background: #f8f9fa; padding: 10px; border-radius: 8px; }
.comment-list p { font-size: 0.85rem; margin-bottom: 6px; }
.comment-input { display: flex; gap: 5px; margin-top: 8px; }
.comment-input input { flex: 1; padding: 6px 10px; border: 1px solid #ddd; border-radius: 15px; }
.comment-input button { background: #2c3e50; color: #fff; border: none; padding: 6px 12px; border-radius: 15px; cursor: pointer; }

/* Shorts Bölümü (TikTok/Reels Mimarisi) */
#shorts-section {
    position: fixed; top: 55px; left: 0; right: 0; bottom: 55px;
    background: #000; display: flex; justify-content: center;
}
.shorts-container {
    width: 100%; max-width: 450px; height: 100%;
    overflow-y: scroll; scroll-snap-type: y mandatory; /* Dikey yapışma efekti */
}
.shorts-container::-webkit-scrollbar { display: none; }
.short-item {
    position: relative; width: 100%; height: 100%;
    scroll-snap-align: start; background: #111;
}
.short-item video { width: 100%; height: 100%; object-fit: cover; }
.short-overlay {
    position: absolute; bottom: 0; left: 0; right: 0;
    padding: 20px; background: linear-gradient(transparent, rgba(0,0,0,0.8));
    color: #fff; display: flex; justify-content: space-between; align-items: flex-end;
}
.short-actions { display: flex; flex-direction: column; gap: 20px; }
.short-actions button { background: none; border: none; color: #fff; font-size: 1.5rem; cursor: pointer; display: flex; flex-direction: column; align-items: center; }
.short-actions button span { font-size: 0.8rem; margin-top: 4px; }
.short-actions button.liked { color: #e74c3c; }

/* Alt Menü */
.bottom-nav {
    position: fixed; bottom: 0; left: 0; right: 0; height: 55px;
    background: #fff; display: flex; justify-content: space-around; align-items: center;
    border-top: 1px solid #ddd; z-index: 100;
}
.nav-btn { background: none; border: none; display: flex; flex-direction: column; align-items: center; color: #7f8c8d; cursor: pointer; font-size: 0.8rem; }
.nav-btn i { font-size: 1.2rem; margin-bottom: 3px; }
.nav-btn.active { color: #e67e22; font-weight: bold; }
/* KARANLIK TEMA (GECE MODU) */
body.dark-theme { background-color: #121212; color: #e4e6eb; }
body.dark-theme .top-bar,
body.dark-theme .bottom-nav,
body.dark-theme .book-card,
body.dark-theme .notif-dropdown,
body.dark-theme .short-comment-drawer,
body.dark-theme #yan-menu,
body.dark-theme #kullanici-sonuclari,
body.dark-theme .profile-header,
body.dark-theme .edit-box,
body.dark-theme .dm-box { background-color: #1e1e1e !important; color: #e4e6eb !important; border-color: #333 !important; }

body.dark-theme #yan-menu a { color: #e4e6eb !important; background-color: transparent !important; }
body.dark-theme #yan-menu a:hover { background-color: #2c2c2c !important; }
body.dark-theme .top-bar h1,
body.dark-theme .book-details h3 { color: #fff; }
body.dark-theme .search-box,
body.dark-theme .comment-input input,
body.dark-theme .dm-box input,
body.dark-theme .edit-box input,
body.dark-theme .edit-box textarea { background-color: #2c2c2c; color: #fff; border-color: #444; }
body.dark-theme .cat-btn { background-color: #2c2c2c; color: #ccc; border-color: #444; }
body.dark-theme .cat-btn.active { background-color: #e67e22; color: #fff; border-color: #e67e22; }
body.dark-theme .comment-box { background-color: #262626; }
body.dark-theme .actions { border-top-color: #333; }
body.dark-theme .actions button { color: #bbb; }
body.dark-theme .msg.o { background-color: #2c2c2c; color: #e4e6eb; }
