File size: 2,449 Bytes
6cdba2d
 
 
 
 
 
 
 
 
 
 
 
f958323
6cdba2d
 
 
 
 
 
 
 
 
 
 
 
f958323
 
 
6cdba2d
f958323
 
 
 
 
 
 
 
6cdba2d
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
f958323
 
6cdba2d
 
 
 
 
 
 
 
 
 
 
f958323
 
 
 
 
 
6cdba2d
f958323
 
 
 
 
6cdba2d
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152

@import url('https://fonts.googleapis.com/css2?family=Tajawal:wght@400;500;700;900&display=swap');

/* RTL Support Base */
html[dir="rtl"] {
	text-align: right;
}

html[dir="ltr"] {
	text-align: left;
}

body {
	padding: 0;
	margin: 0;
	font-family: 'Tajawal', -apple-system, BlinkMacSystemFont, "Arial", sans-serif;
	line-height: 1.6;
	color: #374151;
}

/* Arabic Typography Enhancements */
h1, h2, h3, h4, h5, h6 {
	font-family: 'Tajawal', sans-serif;
	font-weight: 700;
	line-height: 1.4;
}

h1 {
	font-size: 2em;
	margin-top: 0;
}

p {
	color: rgb(107, 114, 128);
	font-size: 15px;
	margin-bottom: 10px;
	margin-top: 5px;
	line-height: 1.8;
}

/* RTL Specific Adjustments */
[dir="rtl"] .space-x-2 > * + * {
	--tw-space-x-reverse: 1;
	margin-right: 0;
	margin-left: 0.5rem;
}

[dir="rtl"] .space-x-4 > * + * {
	--tw-space-x-reverse: 1;
	margin-right: 0;
	margin-left: 1rem;
}

[dir="rtl"] .space-x-6 > * + * {
	--tw-space-x-reverse: 1;
	margin-right: 0;
	margin-left: 1.5rem;
}

[dir="rtl"] .mr-2 {
	margin-right: 0;
	margin-left: 0.5rem;
}

[dir="rtl"] .mr-4 {
	margin-right: 0;
	margin-left: 1rem;
}

[dir="rtl"] .ml-4 {
	margin-left: 0;
	margin-right: 1rem;
}

/* Language Switcher Styles */
.lang-switcher {
	display: inline-flex;
	align-items: center;
	background: #f3f4f6;
	border-radius: 9999px;
	padding: 0.25rem;
	gap: 0.25rem;
}

.lang-btn {
	padding: 0.5rem 1rem;
	border-radius: 9999px;
	border: none;
	background: transparent;
	cursor: pointer;
	font-family: 'Tajawal', sans-serif;
	font-weight: 500;
	transition: all 0.3s ease;
	color: #6b7280;
}

.lang-btn.active {
	background: white;
	color: #2563eb;
	box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.lang-btn:hover:not(.active) {
	color: #374151;
}

/* Card Component */
.card {
	max-width: 620px;
	margin: 0 auto;
	padding: 16px;
	border: 1px solid lightgray;
	border-radius: 16px;
	background: white;
}

.card p:last-child {
	margin-bottom: 0;
}

/* Arabic Text Justification */
.arabic-text {
	text-align: justify;
	text-justify: inter-word;
	word-spacing: normal;
	line-height: 1.8;
}

/* Smooth Scrolling for Arabic Content */
html {
	scroll-behavior: smooth;
}

/* Selection Color */
::selection {
	background: #3b82f6;
	color: white;
}

/* Focus States for Accessibility */
*:focus-visible {
	outline: 2px solid #3b82f6;
	outline-offset: 2px;
}

/* Loading State for Language Switch */
.lang-loading {
	opacity: 0.7;
	pointer-events: none;
	transition: opacity 0.3s ease;
}