* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
:root {
--bg: #fefefe;
--surface: #fff;
--text: #1e1e2a;
--text-light: #5a5a6e;
--border: #eaeef5;
--primary: #cc342d;
--primary-light: #ffdfdd;
--sidebar-bg: #fafbfd;
--shadow: 0 20px 35px -12px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.02);
--footer-bg: #f8f9fc;
}
body.dark {
--bg: #0b0e14;
--surface: #13171f;
--text: #eef2ff;
--text-light: #8f9bb3;
--border: #2a2f3c;
--primary: #f78166;
--primary-light: #2c1a1a;
--sidebar-bg: #0a0d12;
--shadow: 0 20px 35px -12px rgba(0,0,0,0.3), 0 1px 2px rgba(0,0,0,0.2);
--footer-bg: #0a0d12;
}
body {
background: var(--bg);
color: var(--text);
font-family: 'Vazir', 'Inter', system-ui, sans-serif;
transition: background 0.2s ease, color 0.2s ease;
line-height: 1.5;
min-height: 100vh;
}
body.fa-lang {
direction: rtl;
text-align: right;
}
body.en-lang {
direction: ltr;
text-align: left;
}
.app {
display: flex;
min-height: 100vh;
position: relative;
}
.sidebar {
width: 280px;
background: var(--sidebar-bg);
position: fixed;
top: 0;
bottom: 0;
overflow-y: auto;
padding: 2rem 0 0 0;
z-index: 1000;
transition: transform 0.3s ease;
box-shadow: 0 0 20px rgba(0,0,0,0.1);
display: flex;
flex-direction: column;
justify-content: space-between;
}
body.fa-lang .sidebar {
right: 0;
left: auto;
border-left: 1px solid var(--border);
transform: translateX(100%);
}
body.fa-lang .sidebar.open {
transform: translateX(0);
}
body.en-lang .sidebar {
left: 0;
right: auto;
border-right: 1px solid var(--border);
transform: translateX(-100%);
}
body.en-lang .sidebar.open {
transform: translateX(0);
}
.overlay {
display: none;
position: fixed;
top: 0;
left: 0;
right: 0;
bottom: 0;
background: rgba(0,0,0,0.4);
z-index: 999;
}
.overlay.show {
display: block;
}
.sidebar-header {
padding: 0 1.5rem 1.2rem 1.5rem;
border-bottom: 1px solid var(--border);
margin-bottom: 1rem;
}
.sidebar-header h2 {
font-size: 1.4rem;
font-weight: 600;
}
.sidebar-header h2 i {
color: var(--primary);
margin-left: 8px;
}
.category-list {
list-style: none;
padding: 0 0.5rem;
}
.category-item {
padding: 0.6rem 1.2rem;
margin: 4px 0;
cursor: pointer;
font-size: 0.9rem;
font-weight: 500;
transition: all 0.2s ease;
border-radius: 40px;
color: var(--text-light);
display: flex;
align-items: center;
gap: 10px;
}
.category-item i {
width: 22px;
font-size: 0.9rem;
opacity: 0.6;
}
.category-item:hover {
background: var(--primary-light);
color: var(--primary);
}
.category-item.active {
background: var(--primary);
color: white;
}
.sidebar-footer {
padding: 1rem 1.5rem;
border-top: 1px solid var(--border);
width: 100%;
}
.telegram-link {
display: flex;
align-items: center;
gap: 10px;
padding: 0.6rem 1rem;
background: var(--surface);
border-radius: 40px;
text-decoration: none;
color: var(--text);
font-size: 0.85rem;
font-weight: 500;
border: 1px solid var(--border);
justify-content: center;
}
.telegram-link i {
color: #0088cc;
font-size: 1rem;
}
.telegram-link:hover {
background: var(--primary);
color: white;
}
.telegram-link:hover i {
color: white;
}
.main {
flex: 1;
padding: 1rem;
transition: margin 0.2s;
display: flex;
flex-direction: column;
min-height: 100vh;
}
body.fa-lang .main {
margin-right: 0;
}
body.en-lang .main {
margin-left: 0;
}
.top-bar {
display: flex;
justify-content: space-between;
align-items: center;
flex-wrap: wrap;
gap: 0.8rem;
margin-bottom: 1.5rem;
padding-bottom: 1rem;
border-bottom: 1px solid var(--border);
}
.title {
cursor: pointer;
text-align: center;
}
.title h1 {
font-size: 1.4rem;
font-weight: 800;
background: linear-gradient(135deg, var(--primary) 0%, #e05a4f 100%);
background-clip: text;
-webkit-background-clip: text;
color: transparent;
}
.title p {
font-size: 0.7rem;
color: var(--text-light);
margin-top: 2px;
}
.controls {
display: flex;
gap: 0.5rem;
align-items: center;
flex-wrap: wrap;
}
.search-wrapper {
position: relative;
display: inline-flex;
align-items: center;
}
.search-icon {
position: absolute;
color: var(--text-light);
font-size: 0.75rem;
pointer-events: none;
}
body.fa-lang .search-icon {
right: 10px;
}
body.en-lang .search-icon {
left: 10px;
}
.search-input-modern {
background: var(--surface);
border: 1px solid var(--border);
border-radius: 30px;
padding: 0.35rem 0.8rem;
font-family: inherit;
font-size: 0.7rem;
color: var(--text);
width: 130px;
outline: none;
}
body.fa-lang .search-input-modern {
padding-right: 28px;
padding-left: 0.6rem;
}
body.en-lang .search-input-modern {
padding-left: 28px;
padding-right: 0.6rem;
}
.search-input-modern:focus {
border-color: var(--primary);
}
.btn-icon {
background: var(--surface);
border: 1px solid var(--border);
padding: 0.35rem 0.7rem;
border-radius: 30px;
cursor: pointer;
font-family: inherit;
font-size: 0.7rem;
font-weight: 500;
color: var(--text);
display: inline-flex;
align-items: center;
gap: 0.3rem;
white-space: nowrap;
}
.btn-icon:hover {
background: var(--primary);
color: white;
}
.menu-toggle {
display: none;
}
.libraries-section {
flex: 1;
}
.category-title {
font-size: 1.3rem;
font-weight: 700;
margin-bottom: 1rem;
padding-bottom: 0.3rem;
border-bottom: 3px solid var(--primary);
display: inline-block;
}
.library-grid {
display: flex;
flex-direction: column;
gap: 0.7rem;
margin-top: 1rem;
margin-bottom: 1rem;
}
.library-card {
background: var(--surface);
border: 1px solid var(--border);
border-radius: 16px;
padding: 0.9rem;
transition: all 0.2s;
}
.library-card:hover {
transform: translateY(-2px);
border-color: var(--primary);
}
.library-card.exact-match {
border-right: 3px solid var(--primary);
background: var(--primary-light);
}
.library-name {
font-size: 0.95rem;
font-weight: 700;
margin-bottom: 0.3rem;
}
.library-name a {
color: var(--primary);
text-decoration: none;
display: inline-flex;
align-items: center;
gap: 5px;
}
.library-desc {
font-size: 0.75rem;
color: var(--text-light);
line-height: 1.4;
}
.empty {
text-align: center;
padding: 2rem;
color: var(--text-light);
}
.welcome-screen {
text-align: center;
padding: 2rem 1rem;
max-width: 600px;
margin: 0 auto;
}
.welcome-icon {
font-size: 3rem;
margin-bottom: 1rem;
color: var(--primary);
}
.welcome-title {
font-size: 1.3rem;
font-weight: 800;
color: var(--primary);
margin-bottom: 0.8rem;
}
.welcome-desc {
font-size: 0.85rem;
color: var(--text-light);
margin-bottom: 1.5rem;
}
.welcome-tip {
background: var(--primary-light);
border-radius: 20px;
padding: 0.8rem;
}
.welcome-tip p {
font-size: 0.8rem;
color: var(--primary);
}
.footer {
margin-top: 2rem;
padding: 0.5rem 0.8rem;
border-top: 1px solid var(--border);
background: var(--footer-bg);
border-radius: 12px;
text-align: center;
}
.footer-content {
display: flex;
flex-wrap: wrap;
justify-content: center;
align-items: center;
gap: 0.8rem;
font-size: 0.65rem;
color: var(--text-light);
}
.footer-logo {
display: inline-flex;
align-items: center;
gap: 4px;
}
.footer-logo i {
color: var(--primary);
font-size: 0.7rem;
}
.footer-telegram a {
color: var(--text-light);
text-decoration: none;
display: inline-flex;
align-items: center;
gap: 4px;
}
.footer-telegram a:hover {
color: var(--primary);
}
.footer-copyright {
opacity: 0.6;
font-size: 0.6rem;
}
@media (min-width: 769px) {
.main {
padding: 2rem;
}
.title h1 {
font-size: 2rem;
}
.search-input-modern {
width: 200px;
font-size: 0.8rem;
}
.btn-icon {
padding: 0.45rem 1rem;
font-size: 0.8rem;
}
.menu-toggle {
display: none;
}
body.fa-lang .main {
margin-right: 280px;
}
body.en-lang .main {
margin-left: 280px;
}
body.fa-lang .sidebar {
transform: translateX(0);
}
body.en-lang .sidebar {
transform: translateX(0);
}
.footer {
padding: 0.6rem 2rem;
}
.footer-content {
font-size: 0.7rem;
gap: 1rem;
}
}
@media (max-width: 768px) {
.top-bar {
flex-direction: column;
}
.title {
width: 100%;
}
.controls {
width: 100%;
justify-content: center;
}
.menu-toggle {
display: inline-flex;
}
.footer {
padding: 0.4rem 0.5rem;
margin-top: 1.5rem;
}
.footer-content {
gap: 0.5rem;
font-size: 0.55rem;
}
.footer-logo i {
font-size: 0.6rem;
}
.footer-copyright {
font-size: 0.5rem;
}
}
