hesabixSite/assets/styles/app.css

687 lines
13 KiB
CSS
Raw Normal View History

2025-09-05 11:52:08 +03:30
/* Custom styles for Hesabix */
2025-04-06 19:17:37 +03:30
body, .lead {
2025-09-05 11:52:08 +03:30
font-family: "Yekan Bakh FaNum", "Tahoma", "Arial", sans-serif;
2025-01-09 10:21:26 +03:30
font-feature-settings: "kern" on, "liga" on, "dlig" on;
-moz-font-feature-settings: "kern" on, "liga" on, "dlig" on;
-webkit-font-feature-settings: "kern" on, "liga" on, "dlig" on;
-ms-font-feature-settings: "kern" on, "liga" on, "dlig" on;
-o-font-feature-settings: "kern" on, "liga" on, "dlig" on;
}
2025-01-10 20:17:54 +03:30
2025-09-05 11:52:08 +03:30
/* RTL Support */
[dir="rtl"] {
direction: rtl;
text-align: right;
}
/* Custom utility classes */
.rul {
text-decoration: none;
}
/* Code blocks */
pre {
border-radius: 0.5rem;
direction: ltr;
background-color: #f3f4f6;
padding: 0.9rem 0.8rem;
color: #1f2937;
font-family: 'Courier New', monospace;
}
/* Trust seals animation */
.trust-seal-loading {
animation: pulse 1.5s ease-in-out infinite;
}
@keyframes pulse {
0% { opacity: 1; }
50% { opacity: 0.5; }
100% { opacity: 1; }
}
/* Trust seals content */
.trust-seals-content img {
transition: opacity 0.3s ease-in-out;
max-height: 50px;
width: auto;
}
.trust-seals-content img:hover {
opacity: 0.8;
transform: scale(1.05);
2025-04-06 19:17:37 +03:30
}
2025-09-05 11:52:08 +03:30
/* Q&A specific styles */
.qa-card-hover {
transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
2025-04-06 19:17:37 +03:30
}
2025-09-05 11:52:08 +03:30
.qa-card-hover:hover {
transform: translateY(-4px);
box-shadow: 0 20px 40px -12px rgba(0, 0, 0, 0.15);
}
/* Tag System Styles */
.tag-suggestion {
transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
2025-04-06 19:17:37 +03:30
position: relative;
2025-09-05 11:52:08 +03:30
overflow: hidden;
}
.tag-suggestion::before {
content: '';
position: absolute;
top: 0;
left: -100%;
width: 100%;
height: 100%;
background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
transition: left 0.5s;
2025-04-06 19:17:37 +03:30
}
2025-09-05 11:52:08 +03:30
.tag-suggestion:hover::before {
left: 100%;
2025-04-06 19:17:37 +03:30
}
2025-09-05 11:52:08 +03:30
.tag-suggestion:hover {
transform: translateY(-2px);
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
2025-04-06 19:17:37 +03:30
}
2025-09-05 11:52:08 +03:30
.selected-tags {
2025-04-06 19:17:37 +03:30
transition: all 0.3s ease;
}
2025-09-05 11:52:08 +03:30
.selected-tags:empty {
border-color: #e5e7eb;
}
.selected-tags:not(:empty) {
border-color: #3b82f6;
background-color: #f8fafc;
}
.tag-remove {
transition: all 0.2s ease;
border-radius: 50%;
width: 20px;
height: 20px;
display: flex;
align-items: center;
justify-content: center;
}
.tag-remove:hover {
background-color: rgba(239, 68, 68, 0.1);
transform: scale(1.1);
}
.tag-remove:active {
transform: scale(0.95);
}
/* Tag Input Styles */
#tag-input:focus {
transform: translateY(-1px);
box-shadow: 0 8px 25px -5px rgba(59, 130, 246, 0.3);
}
#add-tag-btn {
transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
position: relative;
overflow: hidden;
}
#add-tag-btn::before {
content: '';
position: absolute;
top: 0;
left: -100%;
width: 100%;
height: 100%;
background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
transition: left 0.5s;
2025-04-06 19:17:37 +03:30
}
2025-09-05 11:52:08 +03:30
#add-tag-btn:hover::before {
left: 100%;
}
#add-tag-btn:hover {
transform: translateY(-1px);
box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
}
#add-tag-btn:active {
transform: translateY(0);
}
/* Loading Spinner for Tags */
.loading-spinner {
width: 16px;
height: 16px;
border: 2px solid #e5e7eb;
border-top: 2px solid #3b82f6;
border-radius: 50%;
animation: spin 1s linear infinite;
}
/* Tag Count Animation */
#tag-count {
2025-04-06 19:17:37 +03:30
transition: all 0.3s ease;
2025-09-05 11:52:08 +03:30
font-weight: 500;
2025-01-09 10:21:26 +03:30
}
2025-01-10 20:17:54 +03:30
2025-09-05 11:52:08 +03:30
/* Tag Suggestions Container */
#tag-suggestions {
max-height: 200px;
overflow-y: auto;
scrollbar-width: thin;
scrollbar-color: #cbd5e0 #f7fafc;
2025-01-10 20:17:54 +03:30
}
2025-09-05 11:52:08 +03:30
#tag-suggestions::-webkit-scrollbar {
width: 6px;
2025-01-10 20:17:54 +03:30
}
2025-01-10 21:33:20 +03:30
2025-09-05 11:52:08 +03:30
#tag-suggestions::-webkit-scrollbar-track {
background: #f7fafc;
border-radius: 3px;
}
#tag-suggestions::-webkit-scrollbar-thumb {
background: #cbd5e0;
border-radius: 3px;
}
#tag-suggestions::-webkit-scrollbar-thumb:hover {
background: #a0aec0;
}
/* Tag Selection Animation */
.tag-suggestion.selected {
animation: tagSelect 0.3s ease;
}
@keyframes tagSelect {
0% {
transform: scale(1);
}
50% {
transform: scale(1.1);
}
100% {
transform: scale(1);
}
}
/* Tag Validation States */
.tag-container.valid {
border-color: #10b981;
background: linear-gradient(135deg, #f0fdf4 0%, #ecfdf5 100%);
}
.tag-container.invalid {
border-color: #ef4444;
background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%);
}
/* Responsive Tag System */
@media (max-width: 640px) {
.selected-tags {
min-height: 60px;
}
.tag-suggestion {
font-size: 0.875rem;
padding: 0.5rem 0.75rem;
}
#tag-input {
font-size: 0.875rem;
padding: 0.75rem;
}
#add-tag-btn {
padding: 0.75rem 1rem;
font-size: 0.875rem;
}
}
.qa-vote-btn {
transition: all 0.2s ease-in-out;
}
.qa-vote-btn:hover {
transform: scale(1.1);
}
.qa-vote-btn:active {
transform: scale(0.95);
}
.qa-tag-hover {
transition: all 0.2s ease-in-out;
}
.qa-tag-hover:hover {
transform: translateY(-1px);
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}
.qa-form-focus {
transition: all 0.2s ease-in-out;
}
.qa-form-focus:focus {
transform: translateY(-1px);
box-shadow: 0 8px 25px -5px rgba(59, 130, 246, 0.3);
}
.qa-accepted-answer {
background: linear-gradient(135deg, #f0fdf4 0%, #ecfdf5 100%);
border-left: 4px solid #10b981;
}
.qa-question-stats {
background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
}
.qa-editor-toolbar {
background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
border-bottom: 1px solid #e2e8f0;
}
.qa-editor-toolbar button {
transition: all 0.2s ease-in-out;
}
.qa-editor-toolbar button:hover {
background-color: #e2e8f0;
transform: translateY(-1px);
}
.qa-editor-toolbar button:active {
transform: translateY(0);
}
.qa-tag-selected {
background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
color: white;
box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}
.qa-tag-unselected {
background: white;
color: #374151;
border: 1px solid #d1d5db;
}
.qa-tag-unselected:hover {
background: #f3f4f6;
border-color: #9ca3af;
}
.qa-pagination-item {
transition: all 0.2s ease-in-out;
}
.qa-pagination-item:hover {
transform: translateY(-1px);
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}
.qa-loading-shimmer {
background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
background-size: 200% 100%;
animation: qa-shimmer 1.5s infinite;
}
@keyframes qa-shimmer {
0% {
background-position: -200% 0;
}
100% {
background-position: 200% 0;
}
}
.qa-fade-in-up {
animation: qa-fadeInUp 0.6s ease-out;
}
@keyframes qa-fadeInUp {
from {
opacity: 0;
transform: translateY(30px);
}
to {
opacity: 1;
transform: translateY(0);
}
}
.qa-stagger-1 { animation-delay: 0.1s; }
.qa-stagger-2 { animation-delay: 0.2s; }
.qa-stagger-3 { animation-delay: 0.3s; }
.qa-stagger-4 { animation-delay: 0.4s; }
/* Notification System */
.notification-container {
position: fixed;
top: 20px;
right: 20px;
z-index: 9999;
max-width: 400px;
}
.notification {
background: white;
border-radius: 12px;
box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
margin-bottom: 12px;
padding: 16px 20px;
display: flex;
align-items: center;
gap: 12px;
transform: translateX(100%);
opacity: 0;
transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
border-left: 4px solid;
min-width: 300px;
}
.notification.show {
transform: translateX(0);
opacity: 1;
}
.notification.success {
border-left-color: #10b981;
background: linear-gradient(135deg, #f0fdf4 0%, #ecfdf5 100%);
}
.notification.error {
border-left-color: #ef4444;
background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%);
}
.notification.warning {
border-left-color: #f59e0b;
background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
}
.notification.info {
border-left-color: #3b82f6;
background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
}
.notification-icon {
width: 24px;
height: 24px;
flex-shrink: 0;
}
.notification-content {
flex: 1;
}
.notification-title {
font-weight: 600;
font-size: 14px;
margin-bottom: 4px;
color: #1f2937;
}
.notification-message {
font-size: 13px;
color: #6b7280;
line-height: 1.4;
}
.notification-close {
background: none;
border: none;
cursor: pointer;
padding: 4px;
border-radius: 4px;
color: #9ca3af;
transition: all 0.2s ease;
flex-shrink: 0;
}
.notification-close:hover {
background: rgba(0, 0, 0, 0.1);
color: #374151;
}
.notification-progress {
position: absolute;
bottom: 0;
left: 0;
height: 3px;
background: currentColor;
border-radius: 0 0 12px 12px;
transition: width linear;
}
/* Loading Spinner */
.loading-spinner {
width: 20px;
height: 20px;
border: 2px solid #e5e7eb;
border-top: 2px solid #3b82f6;
border-radius: 50%;
animation: spin 1s linear infinite;
}
@keyframes spin {
0% { transform: rotate(0deg); }
100% { transform: rotate(360deg); }
}
/* Blog specific styles */
.blog-card-hover {
transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.blog-card-hover:hover {
transform: translateY(-8px);
box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}
/* Improved prose styling for blog content */
.prose {
color: #374151;
max-width: none;
}
.prose h1, .prose h2, .prose h3, .prose h4, .prose h5, .prose h6 {
color: #1f2937;
font-weight: 700;
margin-top: 2rem;
margin-bottom: 1rem;
}
.prose h1 {
font-size: 2.25rem;
line-height: 1.2;
}
.prose h2 {
font-size: 1.875rem;
line-height: 1.3;
}
.prose h3 {
font-size: 1.5rem;
line-height: 1.4;
}
.prose p {
margin-bottom: 1.5rem;
line-height: 1.8;
}
.prose ul, .prose ol {
margin-bottom: 1.5rem;
padding-right: 1.5rem;
}
.prose li {
margin-bottom: 0.5rem;
}
.prose blockquote {
border-right: 4px solid #3b82f6;
background-color: #f8fafc;
padding: 1.5rem;
margin: 2rem 0;
2025-01-10 21:33:20 +03:30
border-radius: 0.5rem;
2025-09-05 11:52:08 +03:30
font-style: italic;
color: #4b5563;
2025-01-10 21:33:20 +03:30
}
2025-09-05 09:37:27 +03:30
2025-09-05 11:52:08 +03:30
.prose code {
background-color: #f1f5f9;
padding: 0.25rem 0.5rem;
border-radius: 0.375rem;
font-size: 0.875rem;
color: #e11d48;
font-family: 'Courier New', monospace;
2025-09-05 09:37:27 +03:30
}
2025-09-05 11:52:08 +03:30
.prose pre {
background-color: #1f2937;
color: #f9fafb;
padding: 1.5rem;
border-radius: 0.75rem;
overflow-x: auto;
margin: 2rem 0;
2025-09-05 09:37:27 +03:30
}
2025-09-05 11:52:08 +03:30
.prose pre code {
background-color: transparent;
padding: 0;
color: inherit;
2025-09-05 09:37:27 +03:30
}
2025-09-05 11:52:08 +03:30
.prose img {
border-radius: 0.75rem;
box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
margin: 2rem 0;
}
.prose a {
color: #3b82f6;
text-decoration: none;
font-weight: 500;
transition: color 0.2s ease;
}
.prose a:hover {
color: #1d4ed8;
text-decoration: underline;
}
.prose table {
width: 100%;
border-collapse: collapse;
margin: 2rem 0;
border-radius: 0.5rem;
overflow: hidden;
box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
}
.prose th, .prose td {
padding: 0.75rem 1rem;
2025-09-05 09:37:27 +03:30
text-align: right;
2025-09-05 11:52:08 +03:30
border-bottom: 1px solid #e5e7eb;
}
.prose th {
background-color: #f9fafb;
2025-09-05 09:37:27 +03:30
font-weight: 600;
2025-09-05 11:52:08 +03:30
color: #374151;
2025-09-05 09:37:27 +03:30
}
2025-09-05 11:52:08 +03:30
.prose tr:hover {
background-color: #f9fafb;
2025-09-05 09:37:27 +03:30
}
2025-09-05 11:52:08 +03:30
/* Blog search improvements */
.blog-search-input {
transition: all 0.3s ease;
2025-09-05 09:37:27 +03:30
}
2025-09-05 11:52:08 +03:30
.blog-search-input:focus {
transform: translateY(-2px);
box-shadow: 0 10px 25px -5px rgba(59, 130, 246, 0.1);
2025-09-05 09:37:27 +03:30
}
2025-09-05 11:52:08 +03:30
/* Pagination improvements */
.pagination-item {
transition: all 0.2s ease;
2025-09-05 09:37:27 +03:30
}
2025-09-05 11:52:08 +03:30
.pagination-item:hover {
transform: translateY(-1px);
2025-09-05 09:37:27 +03:30
}
2025-09-05 11:52:08 +03:30
/* Loading states */
.blog-loading {
background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
background-size: 200% 100%;
animation: shimmer 1.5s infinite;
}
@keyframes shimmer {
0% {
background-position: -200% 0;
}
100% {
background-position: 200% 0;
}
}
/* Responsive improvements */
@media (max-width: 640px) {
.prose {
font-size: 0.875rem;
}
.prose h1 {
font-size: 1.875rem;
}
.prose h2 {
font-size: 1.5rem;
}
.prose h3 {
font-size: 1.25rem;
}
}
/* Dark mode support (if needed in future) */
@media (prefers-color-scheme: dark) {
.prose {
color: #d1d5db;
}
.prose h1, .prose h2, .prose h3, .prose h4, .prose h5, .prose h6 {
color: #f9fafb;
}
.prose blockquote {
background-color: #374151;
color: #d1d5db;
}
.prose code {
background-color: #374151;
color: #fbbf24;
}
2025-09-05 09:37:27 +03:30
}