-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstyle.css
More file actions
338 lines (307 loc) · 14.4 KB
/
Copy pathstyle.css
File metadata and controls
338 lines (307 loc) · 14.4 KB
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
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
:root {
--primary-color: #4f46e5;
--primary-light: rgba(79, 70, 229, 0.1);
--glow-color: rgba(79, 70, 229, 0.5);
--text-dark: #111827;
--text-light: #6b7280;
--background-color: #f9fafb;
--card-background: #ffffff;
--border-color: #e5e7eb;
--shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
--border-radius: 1rem;
--success-color: #16a34a;
}
body.dark-mode {
--primary-color: #818cf8;
--primary-light: rgba(129, 140, 248, 0.1);
--glow-color: rgba(129, 140, 248, 0.3);
--text-dark: #f9fafb;
--text-light: #9ca3af;
--background-color: #030712;
--card-background: #111827;
--border-color: #374151;
--success-color: #22c55e;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body {
font-family: 'Noto Sans Arabic', sans-serif;
background-color: var(--background-color);
color: var(--text-dark);
line-height: 1.6;
direction: rtl;
-webkit-font-smoothing: antialiased;
transition: background-color 0.4s ease, color 0.4s ease;
overflow-x: hidden;
}
#cursor-glow {
position: fixed; left: 0; top: 0; width: 600px; height: 600px;
border-radius: 50%;
background: radial-gradient(circle, var(--glow-color) 0%, transparent 60%);
pointer-events: none; z-index: -1;
transform: translate(-50%, -50%);
transition: background 0.4s ease;
}
.page-container { max-width: 1100px; margin: 0 auto; padding: 1.5rem; }
/* --- General Transitions --- */
.main-header, .stat-card, .result-card, .filter-card, .custom-dropdown-selected, .custom-dropdown-options, input {
transition: background-color 0.4s ease, color 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease;
}
.logo-dark { display: none; }
body.dark-mode .logo-light { display: none; }
body.dark-mode .logo-dark { display: block; }
/* Header */
.main-header { padding: 1rem 1.5rem; background-color: var(--card-background); border: 1px solid var(--border-color); border-radius: var(--border-radius); box-shadow: var(--shadow); }
.header-content { display: flex; justify-content: space-between; align-items: center; }
.logo-link { display: flex; align-items: center; gap: 0.75rem; text-decoration: none; }
.header-logo { height: 32px; width: auto; }
.logo-link span { font-weight: 600; color: var(--text-dark); }
.header-actions { display: flex; align-items: center; gap: 1rem; }
.theme-toggle-btn {
background-color: var(--primary-light); border: none; color: var(--primary-color);
width: 40px; height: 40px; border-radius: 50%;
cursor: pointer; display: grid; place-items: center;
font-size: 1rem; transition: all 0.3s ease;
}
.theme-toggle-btn:hover { transform: scale(1.1); box-shadow: 0 0 10px var(--glow-color); }
/* --- View Switcher --- */
.view-switcher { display: flex; justify-content: center; margin-bottom: 2.5rem; background-color: var(--card-background); border-radius: 99px; padding: 0.5rem; border: 1px solid var(--border-color); }
.view-btn { flex: 1; padding: 0.75rem 1.5rem; border-radius: 99px; border: none; background-color: transparent; color: var(--text-light); font-family: inherit; font-size: 1rem; font-weight: 600; cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 0.5rem; transition: all 0.3s ease; }
.view-btn.active { background-color: var(--primary-color); color: white; box-shadow: 0 4px 15px var(--glow-color); }
.view { display: none; animation: fadeIn 0.6s ease; }
.view.active-view { display: block; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
/* Main Content */
.main-content { padding-top: 1rem; }
.title-section { text-align: center; margin-bottom: 2.5rem; }
.title-section h1 { font-size: clamp(1.8rem, 5vw, 2.5rem); font-weight: 700; color: var(--text-dark); }
.title-section p { color: var(--text-light); font-size: 1.1rem; margin-top: 0.5rem; }
/* Stats Grid */
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1.5rem; margin-bottom: 2.5rem; }
.stat-card {
background-color: var(--card-background); border: 1px solid var(--border-color);
border-radius: var(--border-radius); padding: 1.5rem;
box-shadow: var(--shadow);
display: flex; align-items: center; justify-content: space-between;
position: relative; overflow: hidden;
}
.stat-card::before { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: radial-gradient(circle at var(--mouse-x) var(--mouse-y), var(--primary-light) 0%, transparent 40%); opacity: 0; transition: opacity 0.4s ease; }
.stat-card:hover::before { opacity: 1; }
.stat-content { text-align: right; }
.stat-icon { font-size: 2rem; color: var(--primary-color); opacity: 0.7; }
.stat-card p { color: var(--text-light); font-size: 0.9rem; }
.stat-card h3 { font-size: 2.25rem; font-weight: 700; color: var(--text-dark); }
/* Filter Card */
.filter-card {
display: grid; grid-template-columns: 1fr 2fr; gap: 1rem;
background-color: var(--card-background); border: 1px solid var(--border-color);
border-radius: var(--border-radius); padding: 1.5rem; box-shadow: var(--shadow);
align-items: stretch;
}
.search-input-wrapper { position: relative; }
.input-icon { position: absolute; top: 50%; transform: translateY(-50%); color: var(--text-light); pointer-events: none; }
.search-input-wrapper .input-icon { left: 1rem; right: auto; }
input {
width: 100%; padding: 0.8rem 1rem 0.8rem 2.75rem;
border: 1px solid var(--border-color);
border-radius: 0.75rem; font-family: inherit; font-size: 1rem;
background-color: var(--background-color); color: var(--text-dark);
}
input:focus { outline: none; border-color: var(--primary-color); box-shadow: 0 0 10px var(--glow-color); }
::placeholder { color: var(--text-light); opacity: 0.8; }
.filter-card .search-input-wrapper.full-width { grid-column: 1 / -1; }
/* Custom Dropdown */
.custom-dropdown-wrapper { position: relative; }
.custom-dropdown-selected {
display: flex; align-items: center; padding: 0.8rem 1rem;
background-color: var(--background-color); border: 1px solid var(--border-color);
border-radius: 0.75rem; cursor: pointer; user-select: none;
}
.custom-dropdown-wrapper.active .custom-dropdown-selected { border-color: var(--primary-color); box-shadow: 0 0 10px var(--glow-color); }
.custom-dropdown-selected span { flex-grow: 1; text-align: right; color: var(--text-dark); }
.dropdown-arrow { margin-left: auto; transition: transform 0.3s ease; color: var(--text-light); }
.custom-dropdown-wrapper.active .dropdown-arrow { transform: rotate(180deg); }
.custom-dropdown-options {
position: absolute; top: 110%; right: 0; left: 0;
background-color: var(--card-background); border: 1px solid var(--border-color);
border-radius: 0.75rem; box-shadow: var(--shadow);
z-index: 10; max-height: 250px; overflow-y: auto;
opacity: 0; visibility: hidden; transform: translateY(10px);
transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
}
.custom-dropdown-wrapper.active .custom-dropdown-options { opacity: 1; visibility: visible; transform: translateY(0); }
.custom-dropdown-option { padding: 0.75rem 1.5rem; cursor: pointer; color: var(--text-light); }
.custom-dropdown-option:hover, .custom-dropdown-option.selected { background-color: var(--primary-light); color: var(--primary-color); }
input, .custom-dropdown-selected { height: 100%; }
/* Results */
.placeholder-text { text-align: center; color: var(--text-light); padding: 3rem 1rem; font-size: 1.1rem; }
#results-container, #lottery-results-container { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 1.5rem; margin-top: 1.5rem; }
.result-card, .lottery-result-card {
border: 1px solid transparent; border-radius: var(--border-radius);
background-color: var(--card-background); box-shadow: var(--shadow);
opacity: 0; animation: slideInUp 0.5s ease forwards;
position: relative; overflow: hidden;
}
.result-card:hover, .lottery-result-card:hover { transform: translateY(-5px); box-shadow: 0 0 15px var(--glow-color); }
.result-card::before, .lottery-result-card::before { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%; border-radius: var(--border-radius); border: 1px solid var(--primary-color); opacity: 0; transition: opacity 0.4s ease; }
.result-card:hover::before, .lottery-result-card:hover::before { opacity: 1; }
@keyframes slideInUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }
/* Guide Result Card */
.result-card { padding: 1.25rem; }
.result-card-header { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; border-bottom: 1px solid var(--border-color); padding-bottom: 0.75rem; margin-bottom: 0.75rem; }
.result-card-header h3 { font-size: 1.1rem; color: var(--text-dark); font-weight: 600; }
.result-card .number-badge { background-color: var(--primary-light); color: var(--primary-color); padding: 0.2rem 0.7rem; border-radius: 99px; font-weight: 600; font-size: 0.8rem; flex-shrink: 0; }
.info-block { margin-bottom: 0.75rem; }
.info-block:last-child { margin-bottom: 0; }
.info-block strong { font-size: 0.8rem; color: var(--primary-color); display: block; margin-bottom: 0.25rem; font-weight: 600; }
.info-block span { font-size: 0.95rem; color: var(--text-light); }
/* --- Lottery Result Card (UPDATED) --- */
#lottery-results-container {
display: flex;
flex-direction: column;
gap: 1.5rem;
}
.lottery-result-card {
padding: 0; /* Remove padding to allow header to span full width */
display: flex;
flex-direction: column;
}
.lottery-result-header {
display: flex;
justify-content: space-between;
align-items: center;
background-color: var(--primary-light);
padding: 1rem 1.5rem;
border-bottom: 1px solid var(--border-color);
}
.lottery-result-header h3 {
font-size: 1.2rem;
font-weight: 600;
color: var(--primary-color);
}
.lottery-info-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
gap: 1.25rem 1.5rem;
padding: 1.5rem;
}
.lottery-info-item strong {
display: block;
font-size: 0.8rem;
color: var(--text-light);
margin-bottom: 0.25rem;
font-weight: 500;
}
.lottery-info-item span {
font-size: 1rem;
font-weight: 600;
color: var(--text-dark);
}
.result-tag {
background-color: var(--success-color);
color: white;
padding: 0.3rem 0.8rem;
border-radius: 99px;
font-size: 0.9rem;
font-weight: 600;
display: inline-block;
}
/* Footer */
.main-footer { text-align: center; margin-top: 3rem; }
.footer-credits { padding: 1.5rem 2.5rem; margin-bottom: 1.5rem; }
.footer-credits p { font-size: 0.9rem; color: var(--text-light); }
.footer-credits h3 { color: var(--text-dark); font-size: 1.2rem; margin: 0.25rem 0 1rem; }
.social-links { display: flex; justify-content: center; gap: 1rem; margin-top: 1.5rem; }
.social-links a {
color: var(--text-light); font-size: 1.2rem;
width: 40px; height: 40px;
display: grid; place-items: center;
border: 1px solid var(--border-color);
border-radius: 50%; text-decoration: none;
transition: all 0.3s ease;
}
.social-links a:hover { color: var(--primary-color); border-color: var(--primary-color); transform: translateY(-3px); box-shadow: 0 0 10px var(--glow-color); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; font-size: 0.85rem; color: var(--text-light); padding: 1rem 0; border-top: 1px solid var(--border-color); }
/* ================================================= */
/* --- Lottery Filter Card Specific Styles --- */
/* ================================================= */
#lottery-filter-card {
display: flex; /* Use flexbox to manage rows */
flex-direction: column; /* Stack filter rows vertically */
gap: 1rem; /* Space between the rows */
}
.filter-row {
display: grid;
gap: 1rem;
align-items: stretch; /* Make all items in a row equal height */
}
/* First row: Search, Sort, Reset */
#lottery-filter-card .filter-row:first-of-type {
grid-template-columns: 2fr 1fr auto; /* Distribute space (2 parts for search, 1 for sort) */
}
/* Second row: The four dropdown filters */
#secondary-filters {
grid-template-columns: repeat(4, 1fr); /* 4 equal columns */
}
/* Styling for the new reset button */
.reset-btn {
background-color: var(--background-color);
border: 1px solid var(--border-color);
color: var(--text-light);
height: 100%;
padding: 0 1.2rem;
border-radius: 0.75rem;
cursor: pointer;
font-size: 1.1rem;
transition: all 0.3s ease;
}
.reset-btn:hover {
border-color: var(--primary-color);
color: var(--primary-color);
box-shadow: 0 0 10px var(--glow-color);
}
/* ================================================= */
/* --- Lottery Results Header Styling --- */
/* ================================================= */
.results-header {
margin-top: 2rem; /* Add space above the header */
margin-bottom: 0.5rem; /* Reduce space below it */
text-align: right; /* Align to the right for RTL */
}
.results-header h3 {
display: inline-block; /* Allow padding and background without taking full width */
background-color: var(--primary-light);
color: var(--primary-color);
padding: 0.6rem 1.25rem;
border-radius: 99px; /* Make it a pill shape */
font-size: 1rem;
font-weight: 600;
border: 1px solid transparent; /* Optional: for consistency */
transition: all 0.3s ease;
}
/* Responsive adjustments for lottery filters */
@media (max-width: 992px) {
#secondary-filters {
grid-template-columns: repeat(2, 1fr); /* 2 columns on tablets */
}
}
@media (max-width: 768px) {
/* Stack all controls in a single column on mobile */
#lottery-filter-card .filter-row:first-of-type,
#secondary-filters {
grid-template-columns: 1fr;
}
}
/* Responsive */
@media (max-width: 768px) {
.page-container { padding: 1rem; }
.filter-card { grid-template-columns: 1fr; }
.footer-bottom { flex-direction: column; gap: 0.5rem; }
}
@media (max-width: 480px) {
.header-content { flex-direction: column; gap: 1rem; }
.lottery-result-header {
flex-direction: column;
align-items: flex-start;
gap: 0.75rem;
}
}