/*
Theme Name: Book Pioneers v3
Theme URI: https://bookpioneers.ir
Author: Amir Hossein Firoozi
Author URI: https://afiroozi.ir
Description: Modern book archive and discovery platform. Tailwind CSS, dark mode, RTL, 5 switchable color palettes, Vazirmatn font.
Version: 3.2.4
Requires at least: 6.0
Requires PHP: 8.1
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: bp
Tags: one-column, two-columns, right-to-left, custom-background, custom-logo, custom-menu, editor-style, featured-images, post-formats, theme-options, translation-ready
*/
@font-face{font-family:'Vazirmatn';src:url('fonts/vazirmatn/Vazirmatn-Variable.woff2') format('woff2');font-weight:100 900;font-style:normal;font-display:swap}:root{--font-vazirmatn:'Vazirmatn',-apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,sans-serif;color-scheme:light dark}:root:has(>head>meta[name="color-scheme"][content="dark"]){color-scheme:dark}:root:has(>head>meta[name="color-scheme"][content="light"]){color-scheme:light}html,body,button,input,select,textarea,.font-sans{font-family:'Vazirmatn',-apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,sans-serif !important}:root,[data-theme='blue']{--brand-50:244 246 249;--brand-100:230 236 244;--brand-400:107 141 189;--brand-500:70 109 166;--brand-600:45 81 133;--brand-700:34 62 105;--brand-800:27 54 93;--brand-900:20 38 67}[data-theme='emerald']{--brand-50:236 253 245;--brand-100:209 250 229;--brand-400:52 211 153;--brand-500:16 185 129;--brand-600:5 150 105;--brand-700:4 120 87;--brand-800:6 95 70;--brand-900:6 78 59}[data-theme='violet']{--brand-50:245 243 255;--brand-100:237 233 254;--brand-400:167 139 250;--brand-500:139 92 246;--brand-600:124 58 237;--brand-700:109 40 217;--brand-800:91 33 182;--brand-900:76 29 149}[data-theme='rose']{--brand-50:255 241 242;--brand-100:255 228 230;--brand-400:251 113 133;--brand-500:244 63 94;--brand-600:225 29 72;--brand-700:190 18 60;--brand-800:159 18 57;--brand-900:136 19 55}[data-theme='amber']{--brand-50:255 251 235;--brand-100:254 243 199;--brand-400:251 191 36;--brand-500:245 158 11;--brand-600:217 119 6;--brand-700:180 83 9;--brand-800:146 64 14;--brand-900:120 53 15}:root{--bp-text-primary:#0f172a;--bp-text-secondary:#334155;--bp-text-muted:#475569;--bp-border-color:#e2e8f0;--bp-surface-card:#ffffff;--bp-surface-bg:#f8fafc}.dark{--bp-text-primary:#f8fafc;--bp-text-secondary:#e2e8f0;--bp-text-muted:#94a3b8;--bp-border-color:#1e293b;--bp-surface-card:#0f172a;--bp-surface-bg:#020617}::selection{background-color:#bfdbfe;background-color:rgb(var(--brand-500,70 109 166) / 0.28);color:inherit}::-moz-selection{background-color:#bfdbfe;background-color:rgb(var(--brand-500,70 109 166) / 0.28);color:inherit}.dark::selection{background-color:#1e3a8a;background-color:rgb(var(--brand-400,107 141 189) / 0.38);color:inherit}.dark::-moz-selection{background-color:#1e3a8a;background-color:rgb(var(--brand-400,107 141 189) / 0.38);color:inherit}:focus-visible{outline:2px solid rgb(var(--brand-500,70 109 166)) !important;outline-offset:2px !important}.dark hr{border-color:rgba(30,41,59,0.9) !important}.dark .text-slate-400{color:#94a3b8}.dark .border-slate-100{border-color:#1e293b}::-webkit-scrollbar{width:6px;height:6px}::-webkit-scrollbar-track{background:transparent}::-webkit-scrollbar-thumb{background:#cbd5e1;border-radius:10px}.dark::-webkit-scrollbar-thumb{background:#475569}::-webkit-scrollbar-thumb:hover{background:#94a3b8}.dark::-webkit-scrollbar-thumb:hover{background:#64748b}.hide-scrollbar::-webkit-scrollbar{display:none}.hide-scrollbar{-ms-overflow-style:none;scrollbar-width:none}.bp-custom-scrollbar{overflow-x:auto;scrollbar-width:thin;scrollbar-color:#cbd5e1 transparent;-webkit-overflow-scrolling:touch}.dark .bp-custom-scrollbar{scrollbar-color:#475569 transparent}.bp-custom-scrollbar::-webkit-scrollbar{height:5px}.bp-custom-scrollbar::-webkit-scrollbar-track{background:rgba(0,0,0,0.04);border-radius:10px}.dark .bp-custom-scrollbar::-webkit-scrollbar-track{background:rgba(255,255,255,0.04)}.bp-custom-scrollbar::-webkit-scrollbar-thumb{background:#cbd5e1;border-radius:10px}.dark .bp-custom-scrollbar::-webkit-scrollbar-thumb{background:#475569}.bp-custom-scrollbar::-webkit-scrollbar-thumb:hover{background:#94a3b8}.card-hover{transition:transform 0.3s cubic-bezier(0.4,0,0.2,1),box-shadow 0.3s ease}.card-hover:hover{transform:translateY(-4px);box-shadow:0 20px 25px -5px rgb(0 0 0 / 0.1),0 8px 10px -6px rgb(0 0 0 / 0.1)}html{scroll-behavior:smooth}.bp-notification-widget{position:relative;display:inline-flex;align-items:center}.bp-notification-count{position:absolute !important;top:2px !important;right:2px !important;min-width:1.15rem !important;height:1.15rem !important;padding:0 0.25rem !important;border-radius:9999px !important;background-color:#ef4444 !important;color:#ffffff !important;font-size:0.65rem !important;font-weight:800 !important;line-height:1.15rem !important;text-align:center !important;border:2px solid #ffffff !important;box-shadow:0 1px 3px rgba(0,0,0,0.15) !important;box-sizing:border-box !important}.dark .bp-notification-count{border-color:#020617 !important}.bp-notification-dropdown{position:absolute;left:0 !important;right:auto !important;top:calc(100% + 0.5rem);width:360px;max-width:min(90vw,360px);border-radius:1rem;z-index:50;overflow:hidden;animation:bpDropdownFadeIn 0.2s cubic-bezier(0.16,1,0.3,1)}@keyframes bpDropdownFadeIn{from{opacity:0;transform:translateY(-6px) scale(0.98)}to{opacity:1;transform:translateY(0) scale(1)}}@media (max-width:480px){.bp-notification-dropdown{position:fixed !important;left:5vw !important;right:5vw !important;width:90vw !important;top:5rem !important}}.pagination,.posts-pagination,.comments-pagination,.nav-links{display:flex;justify-content:center;align-items:center;margin:2.5rem 0}.pagination .nav-links,.posts-pagination .nav-links,.comments-pagination .nav-links{display:inline-flex;align-items:center;gap:0.25rem;padding:0.375rem;border-radius:1rem;background-color:#ffffff;border:1px solid #f1f5f9;box-shadow:0 1px 2px 0 rgba(0,0,0,0.05)}.dark .pagination .nav-links,.dark .posts-pagination .nav-links,.dark .comments-pagination .nav-links{background-color:#0f172a;border-color:#1e293b;box-shadow:0 1px 3px 0 rgba(0,0,0,0.3)}.page-numbers{display:inline-flex;align-items:center;justify-content:center;width:2.5rem;height:2.5rem;border-radius:0.75rem;font-size:0.875rem;font-weight:700;color:#475569;text-decoration:none;transition:all 0.15s ease}.dark .page-numbers{color:#94a3b8}.page-numbers:hover:not(.current):not(.dots){background-color:#f8fafc;color:var(--brand-color,#1B365D)}.dark .page-numbers:hover:not(.current):not(.dots){background-color:#1e293b;color:var(--brand-color,#60a5fa)}.page-numbers.current{background-color:var(--brand-color,#1B365D) !important;color:#ffffff !important;font-weight:800 !important;box-shadow:0 4px 6px -1px rgba(0,0,0,0.1),0 2px 4px -2px rgba(0,0,0,0.1)}.page-numbers.dots{width:2rem;color:#94a3b8;letter-spacing:0.15em;cursor:default}.dark .page-numbers.dots{color:#64748b}.page-numbers.prev,.page-numbers.next{font-size:1.125rem;color:#94a3b8}.dark .page-numbers.prev,.dark .page-numbers.next{color:#64748b}.bp-short-story-reader{font-size:1.125rem;line-height:2.3;color:#1e293b;word-break:break-word;text-rendering:optimizeLegibility}.dark .bp-short-story-reader{color:#e2e8f0}.bp-short-story-reader p{margin-bottom:1.75rem;text-align:justify}.bp-short-story-reader>p:first-of-type{font-size:1.1875rem;font-weight:500}.bp-short-story-reader blockquote{position:relative;margin:2rem 0;padding:1rem 1.5rem 1rem 1rem;border-right:4px solid rgb(var(--brand-500,70 109 166));background:#f8fafc;border-radius:0.75rem;font-style:italic;color:#475569}.dark .bp-short-story-reader blockquote{background:rgba(30,41,59,0.6);color:#cbd5e1}.bp-short-story-reader img{border-radius:1.25rem;margin:2rem auto;box-shadow:0 4px 14px rgba(0,0,0,0.05)}.bp-short-story-reader h2,.bp-short-story-reader h3,.bp-short-story-reader h4{font-weight:900;color:#0f172a;margin-top:2.5rem;margin-bottom:1rem}.dark .bp-short-story-reader h2,.dark .bp-short-story-reader h3,.dark .bp-short-story-reader h4{color:#ffffff}#bp-reading-progress{transition:width 0.1s cubic-bezier(0.4,0,0.2,1);box-shadow:0 0 10px rgba(var(--brand-500,70 109 166),0.5)}body.admin-bar{height:calc(100vh - 32px) !important}@media screen and (max-width:782px){body.admin-bar{height:calc(100vh - 46px) !important}body.admin-bar #sidebar{top:46px !important;height:calc(100vh - 46px) !important}}@media screen and (min-width:783px){body.admin-bar #sidebar{height:100% !important}}.sidebar-tooltip{display:none !important}@media (min-width:1024px){#sidebar.lg\:w-20{overflow:visible !important}#sidebar.lg\:w-20 .sidebar-scroll-container{overflow:visible !important}#sidebar.lg\:w-20 .sidebar-logo-container{justify-content:center !important;padding-left:0 !important;padding-right:0 !important}#sidebar.lg\:w-20 .sidebar-item-link{justify-content:center !important;padding-left:0.5rem !important;padding-right:0.5rem !important}#sidebar.lg\:w-20 .sidebar-item-link:hover .sidebar-tooltip{display:flex !important;position:absolute;right:calc(100% + 10px);top:50%;transform:translateY(-50%);z-index:9999;pointer-events:none;white-space:nowrap}}.fill-body{fill:#ecf0f1 !important}.fill-primary{fill:rgb(var(--brand-600));transition:fill 0.3s ease}.dark .fill-primary{fill:rgb(var(--brand-400))}.fill-secondary{fill:rgb(var(--brand-800));transition:fill 0.3s ease}.dark .fill-secondary{fill:rgb(var(--brand-600))}.bp-like-btn,.bp-like-button,.bp-user-book-favorite,.bp-vote-button,.bp-list-toggle,#user-book-btn,.bp-action-btn{position:relative;user-select:none;-webkit-tap-highlight-color:transparent;transition:transform 0.2s cubic-bezier(0.34,1.56,0.64,1),background-color 0.2s ease,border-color 0.2s ease,color 0.2s ease,box-shadow 0.2s ease}.bp-like-btn:active,.bp-like-button:active,.bp-user-book-favorite:active,.bp-vote-button:active,.bp-list-toggle:active,#user-book-btn:active,.bp-action-btn:active{transform:scale(0.92) !important}.bp-like-btn i,.bp-like-button i,.bp-user-book-favorite i,.bp-vote-button i,.bp-list-toggle i,#user-book-btn i{display:inline-block;transition:transform 0.25s cubic-bezier(0.34,1.56,0.64,1);transform-origin:center center;will-change:transform}.bp-action-bump{animation:bpActionBump 0.45s cubic-bezier(0.175,0.885,0.32,1.275) forwards !important}@keyframes bpActionBump{0%{transform:scale(1)}25%{transform:scale(0.91)}55%{transform:scale(1.08)}80%{transform:scale(0.97)}100%{transform:scale(1)}}@keyframes bpHeartPop{0%{transform:scale(1) rotate(0deg)}20%{transform:scale(0.7) rotate(-10deg)}50%{transform:scale(1.42) rotate(6deg)}75%{transform:scale(0.92) rotate(-3deg)}100%{transform:scale(1) rotate(0deg)}}@keyframes bpStarPop{0%{transform:scale(1) rotate(0deg)}20%{transform:scale(0.65) rotate(-24deg)}55%{transform:scale(1.45) rotate(18deg)}75%{transform:scale(0.9) rotate(-6deg)}100%{transform:scale(1) rotate(0deg)}}@keyframes bpThumbPop{0%{transform:scale(1) translateY(0)}25%{transform:scale(0.75) translateY(2px)}55%{transform:scale(1.35) translateY(-3px)}80%{transform:scale(0.92) translateY(1px)}100%{transform:scale(1) translateY(0)}}@keyframes bpPulseHalo{0%{transform:scale(0.8);opacity:0.75}50%{opacity:0.35}100%{transform:scale(1.6);opacity:0}}.bp-action-bump.is-liked i,.bp-action-bump.is-liked .ph-heart,.bp-action-bump i.ph-fill.ph-heart,.bp-like-btn.is-liked:hover i,.bp-like-button.is-liked:hover i{animation:bpHeartPop 0.45s cubic-bezier(0.175,0.885,0.32,1.275)}.bp-action-bump.is-favorite i,.bp-action-bump.is-favorite .ph-star,.bp-action-bump i.ph-fill.ph-star,.bp-user-book-favorite.is-favorite:hover i{animation:bpStarPop 0.5s cubic-bezier(0.175,0.885,0.32,1.275)}.bp-action-bump.is-active i,.bp-vote-button.is-active:hover i{animation:bpThumbPop 0.45s cubic-bezier(0.175,0.885,0.32,1.275)}.bp-action-bump::after{content:'';position:absolute;inset:-3px;border-radius:inherit;pointer-events:none;border:2px solid currentColor;opacity:0;animation:bpPulseHalo 0.5s cubic-bezier(0.2,0.8,0.4,1) forwards}@media (prefers-reduced-motion:reduce){.bp-like-btn,.bp-like-button,.bp-user-book-favorite,.bp-vote-button,.bp-list-toggle,#user-book-btn,.bp-action-bump,.bp-like-btn i,.bp-like-button i,.bp-user-book-favorite i,.bp-vote-button i{animation:none !important;transition:none !important;transform:none !important}.bp-action-bump::after,.bp-notification-bell.has-unread i,.bp-notification-bell.has-unread svg,.bp-notification-bell.has-unread .ph-bell,.bp-notification-widget.has-unread .bp-notification-bell i,.bp-notification-widget.has-unread .bp-notification-bell svg,.bp-notification-widget.has-unread .bp-notification-bell .ph-bell,.bp-notification-bell.has-unread .bp-notification-count,.bp-notification-widget.has-unread .bp-notification-count{animation:none !important}}.bp-notification-bell.has-unread i,.bp-notification-bell.has-unread svg,.bp-notification-bell.has-unread .ph-bell,.bp-notification-widget.has-unread .bp-notification-bell i,.bp-notification-widget.has-unread .bp-notification-bell svg,.bp-notification-widget.has-unread .bp-notification-bell .ph-bell{display:inline-block !important;transform-origin:50% 0%;animation:bpBellBuzz 3.2s cubic-bezier(0.36,0.07,0.19,0.97) infinite;will-change:transform}.bp-notification-bell.has-unread:hover i,.bp-notification-bell.has-unread:hover svg,.bp-notification-bell.has-unread:hover .ph-bell{animation-play-state:paused}.bp-notification-bell.has-unread .bp-notification-count,.bp-notification-widget.has-unread .bp-notification-count{animation:bpBadgePulse 3.2s ease-in-out infinite}@keyframes bpBellBuzz{0%,25%,100%{transform:rotate(0deg)}2.5%{transform:rotate(15deg)}5%{transform:rotate(-13deg)}7.5%{transform:rotate(11deg)}10%{transform:rotate(-9deg)}12.5%{transform:rotate(7deg)}15%{transform:rotate(-5deg)}17.5%{transform:rotate(3deg)}20%{transform:rotate(-1deg)}22.5%{transform:rotate(0deg)}}@keyframes bpBadgePulse{0%,25%,100%{transform:scale(1)}10%{transform:scale(1.18)}20%{transform:scale(1)}}