/* ===============================
   GLOBAL OVERFLOW KİLİDİ
================================ */
html, body{
  width:100%;
  margin:0;
  overflow-x:hidden;
}

/* RESET */
*,
*::before,
*::after{
  box-sizing:border-box;
}

/* BODY */
body{
  font-family:system-ui,-apple-system;
  background:#f5f7fa;
  color:#222;
}

/* ===============================
   TOPBAR
================================ */
.topbar{
  display:flex;
  align-items:center;
  gap:12px;
  padding:12px 16px;
  background:#fff;
  border-bottom:1px solid #e5e5e5;
}
.logo{
  font-weight:700;
  font-size:18px;
  color:#2563eb;
  white-space:nowrap;
}
.search{
  flex:1;
  min-width:0;
  padding:10px 14px;
  border-radius:20px;
  border:1px solid #ddd;
}
.auth{
  display:flex;
  flex-shrink:0;
}
.auth a{
  margin-left:10px;
  text-decoration:none;
  font-weight:600;
  color:#2563eb;
}

/* ===============================
   PAGE / LAYOUT
================================ */
.page{
  max-width:1100px;
  margin:auto;
  padding:16px;
}

.feed{
  width:100%;
  min-width:0;
}

/* ===============================
   PROFILE HEADER
================================ */
.profile-header{
  background:#fff;
  border-radius:16px;
  padding:20px;
  margin-bottom:20px;
}

.profile-main{
  display:flex;
  align-items:center;
  gap:10px;
  flex-wrap:wrap;
}

.profile-main h1{
  font-size:20px;
  margin:0;
}

.profile-main .username{
  color:#666;
  font-size:14px;
}

.profile-bio{
  margin-top:10px;
  font-size:14px;
  line-height:1.5;
}

.profile-meta{
  margin-top:8px;
  font-size:13px;
  color:#555;
}
.profile-meta a{
  color:#2563eb;
  text-decoration:none;
}

.profile-stats{
  display:flex;
  gap:24px;
  margin-top:14px;
}
.profile-stats div{
  text-align:center;
}
.profile-stats strong{
  display:block;
  font-size:16px;
}
.profile-stats span{
  font-size:13px;
  color:#666;
}

/* ===============================
   COMPOSER (PAYLAŞIM ALANI)
================================ */
.composer{
  background:#fff;
  border-radius:16px;
  padding:16px;
  margin-bottom:20px;
}

.composer textarea{
  width:100%;
  min-height:110px;
  border:none;
  resize:none;
  outline:none;
  font-size:16px;
  line-height:1.5;
}

/* TOOLBAR */
.composer-toolbar{
  display:flex;
  align-items:center;
  gap:10px;
  margin-top:12px;
  width:100%;
  flex-wrap:nowrap;
}

/* SOL */
.composer-toolbar .left{
  display:flex;
  align-items:center;
  gap:8px;
}

/* ORTAK BUTON */
.composer-toolbar button,
.file-btn{
  border:none;
  padding:6px 12px;
  border-radius:8px;
  cursor:pointer;
  font-size:14px;
  font-weight:600;
  white-space:nowrap;
}

/* B / I */
.composer-toolbar button{
  background:#f1f3f5;
  color:#333;
}

/* RESİM */
.file-btn.image{
  background:#e0f2fe;
  color:#0369a1;
}

/* VİDEO */
.file-btn.video{
  background:#ede9fe;
  color:#5b21b6;
}

/* SAĞ */
.composer-toolbar .right{
  margin-left:auto;
}

/* PAYLAŞ */
.send-btn{
  background:#2563eb;
  color:#fff;
  padding:8px 20px;
  border:none;
  border-radius:999px;
  font-weight:700;
  cursor:pointer;
}

/* ===============================
   POST
================================ */
.post-card{
  background:#fff;
  padding:16px;
  border-radius:16px;
  margin-bottom:16px;
}

.post-header a{
  font-weight:600;
  color:#2563eb;
  text-decoration:none;
}

.post-content{
  font-size:15px;
  line-height:1.6;
  word-break:break-word;
  overflow-wrap:anywhere;
  margin-top:6px;
}

/* POST MEDIA */
.post-media{
  margin-top:12px;
  overflow:hidden;
  border-radius:12px;
}
.post-media img,
.post-media video{
  width:100%;
  max-height:360px;
  object-fit:contain;
  display:block;
}

/* ACTIONS */
.post-actions{
  display:flex;
  gap:16px;
  margin-top:10px;
}
.post-actions button{
  background:none;
  border:none;
  cursor:pointer;
}

/* COMMENTS */
.comment-input{
  width:100%;
  padding:8px;
  border-radius:8px;
  border:1px solid #ddd;
}

/* ===============================
   MOBILE
================================ */
@media(max-width:768px){

  .search{
    display:none;
  }

  .profile-stats{
    gap:16px;
  }

  .composer-toolbar{
    flex-wrap:nowrap;
  }

  .send-btn{
    padding:8px 14px;
  }

  .post-media img,
  .post-media video{
    max-height:300px;
  }
}
/* ===============================
   MODERN POST ACTIONS
================================ */

.modern-actions{
  display:flex;
  gap:12px;
  margin-top:14px;
  flex-wrap:wrap;
}

.modern-actions button{
  border:none;
  background:#f8fafc;
  color:#334155;
  padding:8px 14px;
  border-radius:999px;
  font-size:13px;
  font-weight:600;
  cursor:pointer;
  display:flex;
  align-items:center;
  gap:6px;
  transition:all .2s ease;
}

/* Beğen */
.action-like{
  background:#fef2f2;
  color:#b91c1c;
}
.action-like:hover{
  background:#fee2e2;
}

/* Yorum */
.action-comment{
  background:#eff6ff;
  color:#1d4ed8;
}
.action-comment:hover{
  background:#dbeafe;
}

/* Paylaş */
.action-share{
  background:#ecfdf5;
  color:#047857;
}
.action-share:hover{
  background:#d1fae5;
}

/* Sayaç */
.modern-actions .count{
  font-weight:700;
  font-size:12px;
  opacity:.8;
}

/* MOBİL */
@media(max-width:768px){
  .modern-actions{
    gap:8px;
  }
  .modern-actions button{
    font-size:12px;
    padding:7px 12px;
  }
}
/* ===============================
   KİTAP TEMALI TASARIM
================================ */

/* HERO BANNER */
.hero-banner {
  background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
  color: white;
  padding: 40px 24px;
  border-radius: 20px;
  margin-bottom: 30px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero-banner::before {
  content: "❝";
  position: absolute;
  top: 20px;
  left: 20px;
  font-size: 60px;
  opacity: 0.1;
  font-family: serif;
}

.hero-banner::after {
  content: "❞";
  position: absolute;
  bottom: 20px;
  right: 20px;
  font-size: 60px;
  opacity: 0.1;
  font-family: serif;
}

.hero-banner h1 {
  font-size: 2.5rem;
  margin-bottom: 10px;
  color: #fbbf24;
  font-weight: 800;
}

.hero-banner p {
  font-size: 1.1rem;
  opacity: 0.9;
  max-width: 600px;
  margin: 0 auto 20px;
}

.hero-stats {
  display: flex;
  justify-content: center;
  gap: 40px;
  margin-top: 30px;
  flex-wrap: wrap;
}

.stat-item {
  text-align: center;
}

.stat-number {
  font-size: 2rem;
  font-weight: 700;
  color: #fbbf24;
  display: block;
}

.stat-label {
  font-size: 0.9rem;
  opacity: 0.8;
}

/* KİTAP KARTLARI */
.book-card {
  background: white;
  border-radius: 16px;
  padding: 20px;
  margin-bottom: 20px;
  border-left: 4px solid #2563eb;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  transition: transform 0.2s, box-shadow 0.2s;
}

.book-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.book-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 15px;
  flex-wrap: wrap;
}

.book-author {
  color: #6b7280;
  font-style: italic;
}

.book-quote {
  font-size: 1.2rem;
  line-height: 1.6;
  color: #1f2937;
  padding: 15px;
  background: #f8fafc;
  border-radius: 12px;
  position: relative;
  margin: 15px 0;
}

.book-quote::before {
  content: "❝";
  position: absolute;
  top: 5px;
  left: 10px;
  font-size: 24px;
  color: #2563eb;
  opacity: 0.5;
}

.book-tags {
  display: flex;
  gap: 8px;
  margin-top: 15px;
  flex-wrap: wrap;
}

.tag {
  background: #e0f2fe;
  color: #0369a1;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
}

/* GÜNÜN ALINTISI */
.quote-of-day {
  background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
  border: 2px solid #fbbf24;
  border-radius: 20px;
  padding: 25px;
  margin-bottom: 30px;
  position: relative;
}

.quote-of-day h3 {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #92400e;
  margin-top: 0;
}

.quote-of-day h3::before {
  content: "✨";
}

/* SAYFALAMA */
.pagination {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin: 40px 0;
  flex-wrap: wrap;
}

.page-link {
  padding: 10px 16px;
  border-radius: 10px;
  background: white;
  border: 2px solid #e5e7eb;
  color: #4b5563;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
  display: inline-block;
}

.page-link:hover {
  border-color: #2563eb;
  color: #2563eb;
}

.page-link.active {
  background: #2563eb;
  color: white;
  border-color: #2563eb;
}

/* YAZAR ÖNE ÇIKARMA */
.author-highlight {
  background: white;
  border-radius: 16px;
  padding: 20px;
  margin-bottom: 30px;
  border: 2px solid #e5e7eb;
}

.author-highlight h3 {
  color: #1f2937;
  margin-top: 0;
  display: flex;
  align-items: center;
  gap: 10px;
}

.author-highlight h3::before {
  content: "📚";
}

.author-info {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-top: 15px;
}

.author-bio {
  color: #6b7280;
  font-size: 0.95rem;
  line-height: 1.5;
}

/* DROP CAP (İLK HARF BÜYÜTME) */
.drop-cap {
  font-size: 3.5rem;
  float: left;
  line-height: 1;
  margin-right: 10px;
  margin-top: 8px;
  color: #2563eb;
  font-weight: 700;
}

/* ANİMASYONLAR */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.post-card {
  animation: fadeIn 0.3s ease-out;
}

/* KİTAP MOTİFİ ELEMENTLER */
.book-corner {
  position: absolute;
  top: 0;
  right: 0;
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, transparent 50%, #fbbf24 50%);
  border-radius: 0 16px 0 50px;
}

/* RESPONSIVE */
@media (max-width: 768px) {
  .hero-banner {
    padding: 30px 16px;
  }
  
  .hero-banner h1 {
    font-size: 2rem;
  }
  
  .hero-stats {
    gap: 20px;
  }
  
  .book-quote {
    font-size: 1.1rem;
  }
}
/* ===============================
   SIDEBAR - GÜNCELLENDİ (SABİT KALACAK)
================================ */
.sidebar {
  position: relative;
  height: auto;
  padding-right: 8px;
}

/* RESPONSIVE DÜZENLEMELER */
@media (max-width: 1024px) {
  .page {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  
  .sidebar {
    position: static;
    padding-right: 0;
  }
  
  .sidebar-content {
    position: static;
    max-height: none;
    overflow-y: visible;
  }
}
/* ===============================
   SIDEBAR - GENİŞLETİLMİŞ
================================ */
.sidebar {
  position: relative;
  height: auto;
  padding-right: 8px;
  width: 420px; /* Genişlettik */
}

.sidebar-content {
  position: sticky;
  top: 80px;
  display: flex;
  flex-direction: column;
  gap: 24px; /* Daha fazla boşluk */
  max-height: calc(100vh - 100px);
  padding-right: 8px;
  padding-bottom: 20px;
}

.trending-card {
  background: white;
  border-radius: 20px;
  padding: 0;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  border: 1px solid #e2e8f0;
  margin-bottom: 0;
}

.trending-card h3 {
  font-size: 18px; /* Biraz küçülttük */
  font-weight: 700;
  color: #0f172a;
  margin: 0;
  padding: 18px 20px 14px 20px; /* Padding azalttık */
  border-bottom: 1px solid #f1f5f9;
  display: flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(to right, #f8fafc, #ffffff);
}

.trending-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 20px; /* Padding azalttık */
  transition: all 0.2s;
  border-bottom: 1px solid #f1f5f9;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  min-height: 60px; /* Minimum yükseklik */
}

.trending-item:last-child {
  border-bottom: none;
}

.trending-content {
  flex: 1;
  min-width: 0;
  margin-right: 12px; /* Sağa boşluk */
}

.trending-tag {
  color: #1e40af;
  font-weight: 600; /* Font-weight azalttık */
  font-size: 14px; /* Font-size azalttık */
  display: block;
  margin-bottom: 2px; /* Margin azalttık */
  transition: color 0.2s;
  line-height: 1.3;
}

.trending-category {
  color: #64748b;
  font-size: 11px; /* Daha küçük */
  display: block;
  line-height: 1.3;
}

.trending-count {
  background: linear-gradient(135deg, #e0f2fe, #dbeafe);
  color: #1d4ed8;
  font-size: 11px; /* Daha küçük */
  font-weight: 700;
  padding: 4px 10px; /* Padding azalttık */
  border-radius: 999px;
  min-width: 50px; /* Genişlik azalttık */
  text-align: center;
  transition: all 0.2s;
  white-space: nowrap;
}

.trending-footer {
  padding: 14px 20px; /* Padding azalttık */
  border-top: 1px solid #f1f5f9;
  background: #f8fafc;
}

.trending-footer a {
  color: #2563eb;
  text-decoration: none;
  font-size: 13px; /* Daha küçük */
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: color 0.2s;
}

/* SIDEBAR SECTION (Önerilen Okurlar) */
.sidebar-section {
  background: white;
  border-radius: 20px;
  padding: 18px; /* Padding azalttık */
  margin-bottom: 0;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  border: 1px solid #e2e8f0;
}

.sidebar-section h4 {
  font-size: 16px;
  color: #0f172a;
  margin: 0 0 14px 0; /* Margin azalttık */
  display: flex;
  align-items: center;
  gap: 8px;
}

/* USER AVATAR DÜZENLEMELERİ */
.user-avatar-small {
  width: 36px; /* Biraz büyüttük */
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid white;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  flex-shrink: 0;
}

.user-initials-small {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 14px;
  color: white;
  flex-shrink: 0;
  border: 2px solid white;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

/* RESPONSIVE DÜZENLEMELER */
@media (max-width: 1024px) {
  .page {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  
  .sidebar {
    position: static;
    padding-right: 0;
    width: 100%;
  }
  
  .sidebar-content {
    position: static;
    max-height: none;
    overflow-y: visible;
    gap: 20px;
  }
}

/* Scrollbar stilleri */
.sidebar-content::-webkit-scrollbar {
  width: 6px;
}

.sidebar-content::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}