*,*::before,*::after{box-sizing:border-box;margin:0;padding:0}
html{scroll-behavior:smooth}
body{font-family:'Inter','Vazirmatn',system-ui,sans-serif;background:#0d0407;color:#f5e6d0;line-height:1.6;min-height:100vh;-webkit-font-smoothing:antialiased;overflow-x:hidden}
html[dir="rtl"] body{font-family:'Vazirmatn','Inter',system-ui,sans-serif}
a{text-decoration:none;color:inherit}
img{max-width:100%;display:block}
button{cursor:pointer;font-family:inherit}
.container{width:min(92%,960px);margin:0 auto;padding:0 1rem}

.site-header{position:fixed;top:0;left:0;right:0;z-index:1000;background:rgba(13,4,7,0.85);backdrop-filter:blur(12px);border-bottom:1px solid rgba(212,160,67,0.2)}
.nav{display:flex;align-items:center;gap:1rem;padding:0.7rem 0}
.nav-links{margin-left:auto;display:flex;align-items:center;gap:0.3rem}
.nav-links a{padding:0.5rem 0.9rem;border-radius:8px;font-weight:500;font-size:0.9rem;color:#d4af7a;transition:all 0.2s}
.nav-links a:hover{background:rgba(120,30,55,0.15);color:#e8c47a}
.lang-btn{min-width:42px;height:38px;padding:0 0.6rem;display:grid;place-items:center;border:1px solid rgba(212,160,67,0.2);border-radius:10px;background:rgba(120,30,55,0.15);color:#d4a043;font-size:0.75rem;font-weight:700;transition:all 0.3s;margin-left:0.3rem;letter-spacing:0.5px}
.lang-btn:hover{background:#d4a043;color:#fff}

.page{padding:100px 0 60px;min-height:100vh;background:linear-gradient(135deg,#0d0407 0%,#1a080e 40%,#0d0407 100%)}
.page-header{text-align:center;margin-bottom:2rem;padding-top:1rem}
.page-header h1{font-size:2rem;font-weight:800;display:flex;align-items:center;justify-content:center;gap:0.7rem}
.page-header h1 i{color:#d4a043}
.page-header p{color:#b8945a;font-size:0.95rem;margin-top:0.3rem}
.back-link{display:inline-flex;align-items:center;gap:0.4rem;color:#b8945a;font-size:0.85rem;margin-bottom:1.5rem;transition:color 0.2s}
.back-link:hover{color:#d4a043}
.empty-state{text-align:center;padding:4rem 2rem;background:linear-gradient(145deg,rgba(60,15,28,0.4),rgba(30,8,14,0.6));backdrop-filter:blur(16px);border:1px solid rgba(212,160,67,0.2);border-radius:16px}
.empty-state i{font-size:3rem;color:#d4a043;margin-bottom:1rem}
.empty-state p{color:#b8945a;font-size:1rem}

.book-list{display:flex;flex-direction:column;gap:1rem}
.book-item{background:linear-gradient(145deg,rgba(60,15,28,0.4),rgba(30,8,14,0.6));backdrop-filter:blur(16px);border:1px solid rgba(212,160,67,0.2);border-radius:16px;overflow:hidden;transition:all 0.3s}
.book-item:hover{border-color:rgba(212,160,67,0.35)}
.book-item.active{border-color:#d4a043}

.book-header{padding:1rem 1.2rem;display:flex;align-items:center;gap:1rem;cursor:pointer;user-select:none}
.book-icon{width:40px;height:40px;border-radius:12px;background:linear-gradient(135deg,#6b1d2f,#d4a043);color:#fff;display:grid;place-items:center;font-size:1.1rem;flex-shrink:0}
.book-info{flex:1;min-width:0}
.book-info h3{font-size:1rem;font-weight:700;color:#f5e6d0}
.book-info .book-meta{font-size:0.8rem;color:#b8945a;margin-top:2px;display:flex;flex-wrap:wrap;gap:0 0.8rem}
.book-info .book-meta span{white-space:nowrap}
.book-info .book-meta i{margin-right:0.3rem;color:#d4a043;width:14px}
html[dir="rtl"] .book-info .book-meta i{margin-right:0;margin-left:0.3rem}

.book-body{max-height:0;overflow:hidden;transition:max-height 0.4s ease}
.book-item.active .book-body{max-height:100000px}
.book-body-inner{padding:0 1.2rem 1.2rem;border-top:1px solid rgba(212,160,67,0.1);padding-top:1rem}

.book-summary{background:rgba(255,255,255,0.03);border:1px solid rgba(212,160,67,0.1);border-radius:12px;padding:1rem}
.book-summary h4{font-size:0.8rem;color:#b8945a;text-transform:uppercase;letter-spacing:1px;margin-bottom:0.5rem}
.book-summary h4 i{margin-right:0.3rem}
.summary-text{font-size:0.92rem;color:#d4af7a;white-space:pre-wrap;line-height:1.8}
html[dir="rtl"] .summary-text{font-family:'Vazirmatn','Inter',sans-serif}

.book-footer{margin-top:0.8rem;display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:0.5rem;font-size:0.78rem;color:#6b5a3a}
.book-footer i{margin-right:0.3rem}

.site-footer{padding:1.5rem 0;border-top:1px solid rgba(212,160,67,0.2);color:#6b5a3a;font-size:0.85rem;text-align:center}

@media(max-width:768px){
  .book-header{flex-wrap:wrap}
  .book-info .book-meta{font-size:0.75rem;gap:0 0.5rem}
  .page-header h1{font-size:1.5rem}
}

.theme-blue body,.theme-blue{background:#080c1a!important;color:#f0f4ff!important}
.theme-blue .site-header{background:rgba(8,12,26,0.85)!important;border-color:rgba(14,165,233,0.2)!important}
.theme-blue .lang-btn{background:rgba(79,70,229,0.08)!important;border-color:rgba(14,165,233,0.2)!important;color:#7dd3fc!important}
.theme-blue .lang-btn:hover{background:rgba(79,70,229,0.15)!important;color:#06b6d4!important}
.theme-blue .book-item{background:rgba(79,70,229,0.12)!important;border-color:rgba(14,165,233,0.2)!important}
.theme-blue .book-item:hover{border-color:rgba(14,165,233,0.35)!important}
.theme-blue .book-title{color:#f0f4ff!important}
.theme-blue .book-author{color:#7dd3fc!important}
.theme-blue .book-summary{color:#c7d2fe!important}
.theme-blue .book-meta{color:#64748b!important}
.theme-blue .empty-state{background:rgba(79,70,229,0.08)!important;color:#64748b!important}
.theme-blue .section-title{color:#0ea5e9!important}
.theme-blue .admin-link{background:rgba(79,70,229,0.1)!important;border-color:rgba(14,165,233,0.2)!important;color:#7dd3fc!important}
.theme-blue .admin-link:hover{background:rgba(79,70,229,0.2)!important;color:#06b6d4!important}
.theme-blue footer,.theme-blue .footer{color:#64748b!important}
