AnesKAM commited on
Commit
a3d6c5c
·
verified ·
1 Parent(s): 8476a6d

Update index.html

Browse files
Files changed (1) hide show
  1. index.html +354 -560
index.html CHANGED
@@ -1,668 +1,462 @@
1
  <!DOCTYPE html>
2
- <html lang="ar" dir="rtl">
3
  <head>
4
  <meta charset="UTF-8">
5
  <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0">
6
- <title>SurfGO | Search Results</title>
7
-
8
  <link rel="preconnect" href="https://fonts.googleapis.com">
9
- <link href="https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700&family=Tajawal:wght@300;500;700&display=swap" rel="stylesheet">
10
  <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.2/css/all.min.css">
11
 
12
  <style>
13
  /* =========================================
14
- 1. DESIGN TOKENS (Aurora Theme)
15
  ========================================= */
16
  :root {
17
- --bg-deep: #0B0F19;
18
- --glass-surface: rgba(255, 255, 255, 0.03);
19
- --glass-border: rgba(255, 255, 255, 0.05);
20
- --glass-highlight: rgba(255, 255, 255, 0.08);
21
-
22
- --accent-primary: #6366f1; /* Indigo */
23
- --accent-secondary: #ec4899; /* Pink */
24
- --accent-glow: rgba(99, 102, 241, 0.3);
25
-
26
- --text-main: #ffffff;
27
- --text-muted: #94a3b8;
28
- --text-link: #818cf8;
29
-
30
- --radius-sm: 12px;
31
- --radius-md: 20px;
32
- --radius-lg: 32px;
33
-
34
- --font-main: 'Plus Jakarta Sans', 'Tajawal', sans-serif;
35
- --nav-height: 80px;
36
  }
37
 
38
- /* =========================================
39
- 2. BASE & RESET
40
- ========================================= */
41
- * { margin: 0; padding: 0; box-sizing: border-box; outline: none; }
42
-
43
  body {
44
- font-family: var(--font-main);
45
- background-color: var(--bg-deep);
46
- color: var(--text-main);
47
  min-height: 100vh;
 
 
 
 
48
  overflow-x: hidden;
49
  position: relative;
50
  }
51
 
52
- /* Ambient Background Gradients */
53
- body::before, body::after {
54
- content: '';
 
55
  position: fixed;
56
- border-radius: 50%;
57
- filter: blur(120px);
58
- z-index: -1;
59
- opacity: 0.4;
60
- animation: floatBg 20s infinite alternate;
61
- }
62
- body::before {
63
- top: -10%; left: -10%; width: 50vw; height: 50vw;
64
- background: radial-gradient(circle, var(--accent-primary) 0%, transparent 70%);
65
  }
66
- body::after {
67
- bottom: -10%; right: -10%; width: 40vw; height: 40vw;
68
- background: radial-gradient(circle, var(--accent-secondary) 0%, transparent 70%);
69
- animation-delay: -10s;
 
 
 
 
 
 
 
70
  }
71
 
72
- @keyframes floatBg {
73
- 0% { transform: translate(0, 0); }
74
- 100% { transform: translate(30px, 50px); }
75
  }
76
 
77
- /* Grid Pattern */
78
- .grid-pattern {
79
- position: fixed;
80
- inset: 0;
81
- background-image: linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
82
- linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
83
- background-size: 40px 40px;
84
- mask-image: linear-gradient(to bottom, black 40%, transparent 100%);
85
- pointer-events: none;
86
- z-index: -1;
 
 
 
87
  }
88
 
89
  /* =========================================
90
- 3. NAVBAR (Floating Style)
91
  ========================================= */
92
- .navbar {
93
  position: fixed;
94
- top: 20px;
95
  left: 50%;
96
  transform: translateX(-50%);
97
- width: 95%;
98
- max-width: 1400px;
99
- height: var(--nav-height);
100
- background: rgba(11, 15, 25, 0.7);
101
- backdrop-filter: blur(20px);
102
- -webkit-backdrop-filter: blur(20px);
103
- border: 1px solid var(--glass-border);
104
- border-radius: var(--radius-lg);
105
- display: flex;
106
- align-items: center;
107
- justify-content: space-between;
108
- padding: 0 24px;
109
- z-index: 1000;
110
- box-shadow: 0 20px 40px rgba(0,0,0,0.2);
111
- transition: 0.3s ease;
112
  }
113
 
114
- .brand {
 
115
  font-weight: 700;
116
- font-size: 24px;
117
- color: var(--text-main);
118
- text-decoration: none;
119
- display: flex;
120
- align-items: center;
121
- gap: 10px;
122
- letter-spacing: -0.5px;
123
  }
124
- .brand span {
125
- background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
126
- -webkit-background-clip: text;
127
- -webkit-text-fill-color: transparent;
 
128
  }
129
- .brand-icon {
130
- width: 36px; height: 36px;
131
- background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
132
- border-radius: 10px;
133
- display: flex; align-items: center; justify-content: center;
134
- color: white; font-size: 18px;
 
 
 
 
 
 
 
135
  }
136
 
137
- /* Search Bar in Nav */
 
 
138
  .search-container {
139
- flex: 1;
140
- max-width: 600px;
141
- margin: 0 40px;
142
- position: relative;
143
- }
144
- .search-bar {
145
  width: 100%;
 
 
 
 
 
146
  display: flex;
147
- align-items: center;
148
- background: var(--glass-surface);
 
149
  border: 1px solid var(--glass-border);
150
  border-radius: 100px;
151
- padding: 4px;
152
- transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
 
153
  }
154
- .search-bar:focus-within {
155
- background: var(--glass-highlight);
156
- border-color: var(--accent-primary);
157
- box-shadow: 0 0 20px rgba(99, 102, 241, 0.15);
 
 
158
  }
159
- .search-bar input {
 
160
  flex: 1;
161
  background: transparent;
162
  border: none;
163
- padding: 12px 20px;
164
- color: var(--text-main);
165
- font-size: 15px;
166
- font-family: inherit;
167
- }
168
- .search-bar input::placeholder { color: var(--text-muted); }
169
-
170
- .nav-actions {
171
- display: flex;
172
- gap: 12px;
173
- align-items: center;
174
- }
175
-
176
- .action-btn {
177
- background: var(--glass-surface);
178
- border: 1px solid var(--glass-border);
179
- width: 40px; height: 40px;
180
- border-radius: 12px;
181
- color: var(--text-muted);
182
- cursor: pointer;
183
- transition: 0.2s;
184
- display: flex; align-items: center; justify-content: center;
185
- }
186
- .action-btn:hover {
187
- background: var(--glass-highlight);
188
- color: var(--text-main);
189
- transform: translateY(-2px);
190
  }
191
 
192
- /* =========================================
193
- 4. TABS (Floating Pills)
194
- ========================================= */
195
- .tabs-container {
196
- display: flex;
197
- gap: 8px;
198
- overflow-x: auto;
199
- padding: 4px;
200
- scrollbar-width: none;
201
- -ms-overflow-style: none;
202
  }
203
- .tabs-container::-webkit-scrollbar { display: none; }
204
 
205
- .tab-pill {
206
- padding: 8px 20px;
207
- border-radius: 100px;
208
- background: transparent;
209
- border: 1px solid var(--glass-border);
210
- color: var(--text-muted);
211
- font-size: 13px;
212
- font-weight: 500;
213
  cursor: pointer;
214
- white-space: nowrap;
 
215
  transition: 0.3s;
216
- display: flex; align-items: center; gap: 8px;
217
- }
218
- .tab-pill i { font-size: 12px; }
219
- .tab-pill.active {
220
- background: var(--text-main);
221
- color: var(--bg-deep);
222
- border-color: var(--text-main);
223
- box-shadow: 0 4px 15px rgba(255,255,255,0.2);
224
- }
225
- .tab-pill:hover:not(.active) {
226
- border-color: var(--text-muted);
227
- color: var(--text-main);
228
  }
229
 
 
 
230
  /* =========================================
231
- 5. MAIN LAYOUT
232
  ========================================= */
233
- .page-wrapper {
234
- max-width: 1400px;
235
- margin: 0 auto;
236
- padding: calc(var(--nav-height) + 40px) 20px 40px;
237
- display: grid;
238
- grid-template-columns: 1fr 320px;
239
- gap: 40px;
240
- }
241
-
242
- /* Results Area */
243
- .results-area {
244
  display: flex;
245
- flex-direction: column;
246
- gap: 24px;
247
- }
248
-
249
- /* Meta Tag */
250
- .result-meta {
251
- display: flex;
252
- align-items: center;
253
- font-size: 13px;
254
- color: var(--text-muted);
255
- margin-bottom: 10px;
256
  }
257
- .result-meta i { margin-left: 8px; color: var(--accent-primary); }
258
 
259
- /* Skeleton */
260
- .skeleton {
261
- display: none;
262
- padding: 24px;
263
- background: var(--glass-surface);
264
- border: 1px solid var(--glass-border);
265
- border-radius: var(--radius-md);
266
- margin-bottom: 16px;
267
- animation: pulse 1.5s infinite ease-in-out;
268
- }
269
- .skeleton-line {
270
- height: 12px; background: rgba(255,255,255,0.05);
271
- border-radius: 6px; margin-bottom: 12px;
272
- }
273
- .skeleton-line.title { height: 20px; width: 60%; background: rgba(255,255,255,0.1); }
274
-
275
- /* CSE Styling (Customizing Google) */
276
- .cse-wrapper {
277
- min-height: 50vh;
278
- }
279
-
280
- /* Hiding Clutter */
281
- .gsc-results-branding, .gsc-adBlock, .gsc-above-wrapper-area,
282
- .gcsc-find-more-on-google-root, .gsc-search-box { display: none !important; }
283
-
284
- .gsc-control-cse {
285
- background: transparent !important;
286
- border: none !important;
287
- padding: 0 !important;
288
- font-family: var(--font-main) !important;
289
- }
290
-
291
- /* Result Cards Customization */
292
- .gsc-result {
293
- background: var(--glass-surface) !important;
294
- border: 1px solid var(--glass-border) !important;
295
- border-radius: var(--radius-md) !important;
296
- padding: 24px !important;
297
- margin-bottom: 20px !important;
298
- transition: all 0.3s ease !important;
299
- position: relative;
300
- overflow: hidden;
301
- }
302
- .gsc-result::after {
303
- content: '';
304
- position: absolute;
305
- top: 0; left: 0; width: 4px; height: 100%;
306
- background: linear-gradient(to bottom, var(--accent-primary), var(--accent-secondary));
307
- opacity: 0;
308
  transition: 0.3s;
309
- }
310
- .gsc-result:hover {
311
- transform: translateY(-4px) !important;
312
- border-color: rgba(255,255,255,0.1) !important;
313
- box-shadow: 0 15px 30px rgba(0,0,0,0.2) !important;
314
- background: var(--glass-highlight) !important;
315
- }
316
- .gsc-result:hover::after { opacity: 1; }
317
-
318
- .gs-title {
319
- color: var(--text-link) !important;
320
- font-size: 18px !important;
321
- font-weight: 600 !important;
322
- text-decoration: none !important;
323
- margin-bottom: 8px !important;
324
- display: block;
325
- }
326
- .gs-title:hover { text-decoration: underline !important; }
327
-
328
- .gsc-url-top { color: var(--accent-secondary) !important; font-size: 12px !important; margin-bottom: 10px; }
329
- .gs-snippet { color: var(--text-muted) !important; font-size: 14px !important; line-height: 1.6; }
330
-
331
- /* Pagination */
332
- .gsc-cursor-box { text-align: center; margin-top: 40px; }
333
- .gsc-cursor-page {
334
- color: var(--text-muted) !important;
335
- background: transparent !important;
336
- border: 1px solid var(--glass-border) !important;
337
- border-radius: 8px !important;
338
- padding: 8px 16px !important;
339
- margin: 0 6px !important;
340
- transition: 0.2s;
341
- }
342
- .gsc-cursor-current-page {
343
- background: var(--accent-primary) !important;
344
- color: white !important;
345
- border-color: var(--accent-primary) !important;
346
- }
347
- .gsc-cursor-page:hover { transform: scale(1.1); }
348
-
349
- /* =========================================
350
- 6. SIDEBAR (Bento Grid Style)
351
- ========================================= */
352
- .sidebar {
353
- position: sticky;
354
- top: 120px;
355
  display: flex;
356
  flex-direction: column;
357
- gap: 24px;
358
  }
359
 
360
- .widget {
361
- background: rgba(255, 255, 255, 0.02);
 
 
362
  border: 1px solid var(--glass-border);
363
- border-radius: var(--radius-md);
364
- padding: 24px;
365
- backdrop-filter: blur(10px);
366
- }
367
-
368
- .widget-title {
369
- font-size: 14px;
370
- text-transform: uppercase;
371
- letter-spacing: 1px;
372
- color: var(--text-muted);
373
- margin-bottom: 16px;
374
  display: flex;
375
  align-items: center;
376
- gap: 8px;
377
- }
378
- .widget-title::before {
379
- content: ''; width: 8px; height: 8px;
380
- background: var(--accent-primary);
381
- border-radius: 50%;
382
  }
383
 
384
- /* AI Widget */
385
- .ai-widget {
386
- background: linear-gradient(135deg, rgba(99, 102, 241, 0.1), rgba(236, 72, 153, 0.1));
387
- border-color: rgba(255,255,255,0.08);
388
- text-align: center;
389
- }
390
- .ai-avatar {
391
- width: 60px; height: 60px;
392
- border-radius: 50%;
393
- margin: 0 auto 16px;
394
  object-fit: contain;
395
- border: 2px solid rgba(255,255,255,0.1);
396
- padding: 5px;
397
- background: rgba(0,0,0,0.2);
398
  }
399
- .btn-primary {
400
- display: inline-flex;
401
- align-items: center;
402
- justify-content: center;
403
- gap: 8px;
404
- width: 100%;
405
- padding: 12px;
406
- border-radius: 12px;
407
- background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
408
- color: white;
409
- text-decoration: none;
410
- font-weight: 600;
411
- font-size: 14px;
412
- margin-top: 16px;
413
  transition: 0.3s;
414
- box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
415
  }
416
- .btn-primary:hover {
417
- filter: brightness(1.1);
418
- transform: translateY(-2px);
 
 
 
 
 
 
 
 
419
  }
420
 
421
- /* Stat Widget */
422
- .stat-row {
423
- display: flex;
424
- justify-content: space-between;
425
- margin-top: 12px;
 
 
426
  }
427
- .stat-item {
 
 
 
 
 
 
 
 
 
 
428
  text-align: center;
429
- }
430
- .stat-val {
431
- font-size: 20px;
432
- font-weight: 700;
433
- color: var(--text-main);
434
- }
435
- .stat-label {
436
- font-size: 11px;
437
- color: var(--text-muted);
438
  }
439
 
440
  /* =========================================
441
- 7. RESPONSIVE
442
  ========================================= */
443
- @media (max-width: 1100px) {
444
- .page-wrapper { grid-template-columns: 1fr; }
445
- .sidebar { display: none; }
446
- .navbar { border-radius: 0; top: 0; width: 100%; padding: 0 16px; }
447
- .brand span { display: none; }
448
- .search-container { margin: 0 16px; }
449
  }
450
- @media (max-width: 600px) {
451
- .nav-actions { display: none; } /* Hide extra buttons on small screens */
 
 
452
  }
453
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
454
  </style>
455
  </head>
456
  <body>
457
 
458
- <div class="grid-pattern"></div>
 
 
 
 
 
 
 
 
 
 
 
 
459
 
460
- <!-- ═══ NAVBAR ═══ -->
461
- <nav class="navbar">
462
- <a href="index.html" class="brand">
463
- <div class="brand-icon"><i class="fa-solid fa-shapes"></i></div>
464
- <span>SurfGO</span>
465
- </a>
466
 
 
467
  <div class="search-container">
468
- <form class="search-bar" action="results.html" method="get">
469
- <input type="hidden" name="tab" id="tab-input" value="all">
470
- <input type="text" name="q" id="main-input" placeholder="ابحث في الويب..." autocomplete="off">
471
- <button type="submit" class="action-btn" style="background: var(--accent-primary); color:white; border:none;">
472
- <i class="fa-solid fa-search"></i>
 
473
  </button>
474
  </form>
475
  </div>
476
 
477
- <div class="nav-actions">
478
- <div class="tabs-container" id="tabs-wrapper">
479
- <button class="tab-pill active" data-tab="all"><i class="fa-solid fa-globe"></i> الكل</button>
480
- <button class="tab-pill" data-tab="news"><i class="fa-regular fa-newspaper"></i> أخبار</button>
481
- <button class="tab-pill" data-tab="images"><i class="fa-regular fa-image"></i> صور</button>
482
- <button class="tab-pill" data-tab="videos"><i class="fa-solid fa-play"></i> فيديو</button>
483
- </div>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
484
  </div>
485
- </nav>
486
 
487
- <!-- ═══ CONTENT ═══ -->
488
- <div class="page-wrapper">
489
- <main class="results-area">
490
-
491
- <!-- Meta Info -->
492
- <div class="result-meta" id="meta-bar">
493
- <i class="fa-solid fa-bolt"></i>
494
- <span id="meta-text">جاري الاستعلام...</span>
495
- </div>
496
-
497
- <!-- Skeleton Loader -->
498
- <div class="skeleton" id="skeleton">
499
- <div class="skeleton-line title"></div>
500
- <div class="skeleton-line"></div>
501
- <div class="skeleton-line" style="width: 80%"></div>
502
- </div>
503
- <div class="skeleton" id="skeleton2" style="animation-delay: 0.2s">
504
- <div class="skeleton-line title"></div>
505
- <div class="skeleton-line"></div>
506
- <div class="skeleton-line" style="width: 60%"></div>
507
- </div>
508
-
509
- <!-- Results Container -->
510
- <div class="cse-wrapper" id="results-container">
511
- <!-- Google Results Injected Here -->
512
- </div>
513
- </main>
514
-
515
- <aside class="sidebar">
516
- <!-- Genisi Widget -->
517
- <div class="widget ai-widget">
518
- <img src="Genisi.png" alt="Genisi" class="ai-avatar">
519
- <h3 style="font-size: 16px; margin-bottom: 8px;">Genisi AI Core</h3>
520
- <p style="font-size: 13px; color: var(--text-muted); margin-bottom: 12px;">مساعدك الذكي الشخصي للإجابة على أسئلتك المعقدة.</p>
521
- <a href="https://genisi.web.app/" target="_blank" class="btn-primary">
522
- <i class="fa-solid fa-robot"></i> تشغيل Genisi
523
- </a>
524
- </div>
525
-
526
- <!-- Stats Widget -->
527
- <div class="widget">
528
- <div class="widget-title">إحصائيات البحث</div>
529
- <div class="stat-row">
530
- <div class="stat-item">
531
- <div class="stat-val" id="stat-engine">WEB</div>
532
- <div class="stat-label">المحرك</div>
533
- </div>
534
- <div class="stat-item">
535
- <div class="stat-val" id="stat-time">0.0s</div>
536
- <div class="stat-label">الزمن</div>
537
- </div>
538
- </div>
539
- </div>
540
-
541
- <!-- Quick Links -->
542
- <div class="widget">
543
- <div class="widget-title">روابط سريعة</div>
544
- <a href="https://youtube.com" target="_blank" style="text-decoration:none; color:var(--text-muted); font-size:14px; display:flex; align-items:center; gap:10px; margin-bottom:12px;">
545
- <i class="fa-brands fa-youtube" style="color: #ef4444;"></i> YouTube
546
- </a>
547
- <a href="https://wikipedia.org" target="_blank" style="text-decoration:none; color:var(--text-muted); font-size:14px; display:flex; align-items:center; gap:10px;">
548
- <i class="fa-brands fa-wikipedia-w" style="color: #fff;"></i> Wikipedia
549
- </a>
550
- </div>
551
- </aside>
552
  </div>
553
 
554
  <script>
555
- // ── CONFIGURATION ───────────────────────────────────
556
- const ENGINES = {
557
- all: '75aa960081baa4f0c',
558
- news: '35b0f5b6012e94f78',
559
- images: '23c7fd94975714dd8',
560
- videos: 'b11f5dceb04784b9f'
561
- };
562
-
563
- // ── STATE & INIT ─────────────────────────────────────
564
- const params = new URLSearchParams(window.location.search);
565
- let currentTab = params.get('tab') || 'all';
566
- const query = params.get('q');
567
-
568
- const container = document.getElementById('results-container');
569
- const skeleton = document.getElementById('skeleton');
570
- const skeleton2 = document.getElementById('skeleton2');
571
- const metaText = document.getElementById('meta-text');
572
- const tabInput = document.getElementById('tab-input');
573
- const statEngine = document.getElementById('stat-engine');
574
-
575
- // Setup Input
576
- document.getElementById('main-input').value = query || '';
577
- if(query) document.title = `${query} - SurfGO`;
578
-
579
- // ── TAB SWITCHING LOGIC ─────────────────────────────
580
- document.querySelectorAll('.tab-pill').forEach(btn => {
581
- if(btn.dataset.tab === currentTab) btn.classList.add('active');
582
-
583
- btn.addEventListener('click', () => {
584
- if(btn.dataset.tab === currentTab) return;
585
-
586
- // UI Update
587
- document.querySelectorAll('.tab-pill').forEach(b => b.classList.remove('active'));
588
- btn.classList.add('active');
589
-
590
- // Logic Update
591
- currentTab = btn.dataset.tab;
592
- tabInput.value = currentTab;
593
- loadEngine(currentTab);
594
-
595
- // Update URL
596
- const newUrl = new URL(window.location);
597
- newUrl.searchParams.set('tab', currentTab);
598
- window.history.replaceState({}, '', newUrl);
599
- });
600
- });
601
-
602
- // ── CORE ENGINE FUNCTION (Custom Injection) ────────
603
- function loadEngine(tabKey) {
604
- const cx = ENGINES[tabKey];
605
- if(!cx) return;
606
-
607
- // 1. Reset View
608
- container.innerHTML = '';
609
- skeleton.style.display = 'block';
610
- skeleton2.style.display = 'block';
611
- metaText.textContent = `جاري البحث في ${tabKey === 'all' ? 'الويب' : tabKey}...`;
612
- statEngine.textContent = tabKey.toUpperCase();
613
-
614
- // 2. Create fresh container with data-cx
615
- const newDiv = document.createElement('div');
616
- newDiv.className = 'gcse-searchresults-only';
617
- newDiv.setAttribute('data-linkTarget', '_self');
618
- newDiv.setAttribute('data-cx', cx);
619
- container.appendChild(newDiv);
620
-
621
- // 3. Inject Script with timestamp to prevent caching bugs
622
- // This forces the browser to fetch a fresh instance of the library for the new ID
623
- const timestamp = new Date().getTime();
624
- const scriptUrl = `https://cse.google.com/cse.js?cx=${cx}&t=${timestamp}`;
625
-
626
- const script = document.createElement('script');
627
- script.src = scriptUrl;
628
- script.async = true;
629
-
630
- script.onload = () => {
631
- // Google takes a moment to render, give it visual time
632
- setTimeout(() => {
633
- skeleton.style.display = 'none';
634
- skeleton2.style.display = 'none';
635
- metaText.textContent = `تم العثور على نتائج لـ "${query}"`;
636
-
637
- // Simple timing simulation
638
- document.getElementById('stat-time').textContent = (Math.random() * 0.5 + 0.2).toFixed(2) + 's';
639
- }, 1200); // 1.2s visual delay for smoothness
640
- };
641
-
642
- script.onerror = () => {
643
- skeleton.style.display = 'none';
644
- skeleton2.style.display = 'none';
645
- metaText.textContent = "حدث خطأ في الاتصال بمحرك البحث.";
646
- };
647
-
648
- document.head.appendChild(script);
649
- }
650
-
651
- // ── INITIAL LOAD ───────────────────────────────────
652
- if(query) {
653
- loadEngine(currentTab);
654
- } else {
655
- container.innerHTML = `
656
- <div style="text-align:center; padding:60px; color:var(--text-muted);">
657
- <i class="fa-solid fa-search" style="font-size:40px; margin-bottom:20px; opacity:0.5;"></i>
658
- <h3>أدخل كلمة للبحث</h3>
659
- <p>استخدم شريط البحث في الأعلى للبدء.</p>
660
- </div>
661
  `;
662
- skeleton.style.display = 'none';
663
- skeleton2.style.display = 'none';
664
  }
665
-
666
  </script>
667
  </body>
668
  </html>
 
1
  <!DOCTYPE html>
2
+ <html lang="en" dir="ltr">
3
  <head>
4
  <meta charset="UTF-8">
5
  <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0">
6
+ <title>SurfGO | Discover the Universe</title>
7
+
8
  <link rel="preconnect" href="https://fonts.googleapis.com">
9
+ <link href="https://fonts.googleapis.com/css2?family=Tajawal:wght@300;400;500;700;800&display=swap" rel="stylesheet">
10
  <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.2/css/all.min.css">
11
 
12
  <style>
13
  /* =========================================
14
+ 1. VARIABLES & RESET
15
  ========================================= */
16
  :root {
17
+ --accent: #3B82F6;
18
+ --accent-light: #60A5FA;
19
+ --shadow-accent: rgba(59, 130, 246, 0.35);
20
+ --bg-gradient: radial-gradient(circle at center, #0e1219 0%, #020304 100%);
21
+ --surface: rgba(255, 255, 255, 0.05);
22
+ --text: #F0EDE6;
23
+ --text-dim: #9CA3AF;
24
+ --glass-border: rgba(255, 255, 255, 0.1);
25
+ }
26
+
27
+ *, *::before, *::after {
28
+ margin: 0;
29
+ padding: 0;
30
+ box-sizing: border-box;
31
+ }
32
+
33
+ html {
34
+ font-size: 16px;
 
35
  }
36
 
 
 
 
 
 
37
  body {
38
+ font-family: 'Tajawal', sans-serif;
39
+ background: var(--bg-gradient);
 
40
  min-height: 100vh;
41
+ color: var(--text);
42
+ display: flex;
43
+ flex-direction: column;
44
+ align-items: center;
45
  overflow-x: hidden;
46
  position: relative;
47
  }
48
 
49
+ /* =========================================
50
+ 2. SPACE BACKGROUND
51
+ ========================================= */
52
+ .stars-container {
53
  position: fixed;
54
+ inset: 0;
55
+ pointer-events: none;
56
+ z-index: 0;
 
 
 
 
 
 
57
  }
58
+
59
+ .nebula {
60
+ position: fixed;
61
+ width: min(500px, 80vw);
62
+ height: min(500px, 80vw);
63
+ background: radial-gradient(circle, rgba(59, 130, 246, 0.07) 0%, transparent 70%);
64
+ border-radius: 50%;
65
+ filter: blur(60px);
66
+ z-index: 0;
67
+ animation: float 20s ease-in-out infinite;
68
+ pointer-events: none;
69
  }
70
 
71
+ @keyframes float {
72
+ 0%, 100% { transform: translate(0, 0); }
73
+ 50% { transform: translate(60px, 30px); }
74
  }
75
 
76
+ /* =========================================
77
+ 3. MAIN LAYOUT
78
+ ========================================= */
79
+ .page-wrapper {
80
+ position: relative;
81
+ z-index: 10;
82
+ width: 100%;
83
+ min-height: 100vh;
84
+ display: flex;
85
+ flex-direction: column;
86
+ align-items: center;
87
+ padding: 100px 20px 80px;
88
+ gap: 0;
89
  }
90
 
91
  /* =========================================
92
+ 4. CLOCK WIDGET
93
  ========================================= */
94
+ .clock-container {
95
  position: fixed;
96
+ top: clamp(16px, 4vw, 40px);
97
  left: 50%;
98
  transform: translateX(-50%);
99
+ text-align: center;
100
+ z-index: 20;
101
+ animation: fadeIn 1s ease;
102
+ white-space: nowrap;
 
 
 
 
 
 
 
 
 
 
 
103
  }
104
 
105
+ #time {
106
+ font-size: clamp(1.5rem, 5vw, 3rem);
107
  font-weight: 700;
108
+ letter-spacing: 2px;
109
+ color: var(--text);
110
+ line-height: 1;
 
 
 
 
111
  }
112
+
113
+ #date {
114
+ font-size: clamp(0.7rem, 2vw, 1rem);
115
+ color: var(--text-dim);
116
+ margin-top: 4px;
117
  }
118
+
119
+ /* =========================================
120
+ 5. LOGO
121
+ ========================================= */
122
+ .logo {
123
+ font-size: clamp(42px, 12vw, 85px);
124
+ font-weight: 800;
125
+ color: var(--accent);
126
+ margin-bottom: clamp(20px, 5vw, 30px);
127
+ text-shadow: 0 10px 20px var(--shadow-accent);
128
+ letter-spacing: -2px;
129
+ animation: fadeIn 1.2s ease;
130
+ text-align: center;
131
  }
132
 
133
+ /* =========================================
134
+ 6. SEARCH BAR
135
+ ========================================= */
136
  .search-container {
 
 
 
 
 
 
137
  width: 100%;
138
+ max-width: 680px;
139
+ padding: 0 4px;
140
+ }
141
+
142
+ .search-form {
143
  display: flex;
144
+ background: var(--surface);
145
+ backdrop-filter: blur(20px);
146
+ -webkit-backdrop-filter: blur(20px);
147
  border: 1px solid var(--glass-border);
148
  border-radius: 100px;
149
+ padding: clamp(4px, 1.5vw, 8px) clamp(8px, 2vw, 12px);
150
+ transition: 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
151
+ box-shadow: 0 20px 40px rgba(0,0,0,0.3);
152
  }
153
+
154
+ .search-form:focus-within {
155
+ transform: scale(1.02);
156
+ border-color: var(--accent);
157
+ box-shadow: 0 0 40px var(--shadow-accent);
158
+ background: rgba(255,255,255,0.08);
159
  }
160
+
161
+ .search-form input {
162
  flex: 1;
163
  background: transparent;
164
  border: none;
165
+ outline: none;
166
+ color: var(--text);
167
+ font-family: 'Tajawal', sans-serif;
168
+ font-size: clamp(0.95rem, 3vw, 1.1rem);
169
+ padding: clamp(8px, 2.5vw, 12px) clamp(10px, 3vw, 20px);
170
+ min-width: 0;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
171
  }
172
 
173
+ .search-form input::placeholder {
174
+ color: var(--text-dim);
175
+ opacity: 0.6;
 
 
 
 
 
 
 
176
  }
 
177
 
178
+ .search-btn {
179
+ background: none;
180
+ border: none;
181
+ color: var(--accent);
 
 
 
 
182
  cursor: pointer;
183
+ padding: 0 clamp(10px, 3vw, 15px);
184
+ font-size: clamp(1rem, 3vw, 1.2rem);
185
  transition: 0.3s;
186
+ flex-shrink: 0;
187
+ display: flex;
188
+ align-items: center;
 
 
 
 
 
 
 
 
 
189
  }
190
 
191
+ .search-btn:hover { color: var(--accent-light); }
192
+
193
  /* =========================================
194
+ 7. QUICK LINKS
195
  ========================================= */
196
+ .quick-links {
197
+ margin-top: clamp(28px, 6vw, 45px);
 
 
 
 
 
 
 
 
 
198
  display: flex;
199
+ gap: clamp(12px, 3vw, 20px);
200
+ flex-wrap: wrap;
201
+ justify-content: center;
202
+ animation: fadeInUp 1s ease;
203
+ padding: 0 10px;
 
 
 
 
 
 
204
  }
 
205
 
206
+ .link-item {
207
+ text-decoration: none;
208
+ color: inherit;
209
+ text-align: center;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
210
  transition: 0.3s;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
211
  display: flex;
212
  flex-direction: column;
213
+ align-items: center;
214
  }
215
 
216
+ .link-icon {
217
+ width: clamp(48px, 12vw, 60px);
218
+ height: clamp(48px, 12vw, 60px);
219
+ background: var(--surface);
220
  border: 1px solid var(--glass-border);
221
+ border-radius: clamp(14px, 4vw, 20px);
 
 
 
 
 
 
 
 
 
 
222
  display: flex;
223
  align-items: center;
224
+ justify-content: center;
225
+ font-size: clamp(18px, 5vw, 24px);
226
+ transition: all 0.3s ease;
227
+ cursor: pointer;
228
+ overflow: hidden;
 
229
  }
230
 
231
+ .genisi-logo {
232
+ width: 70%;
233
+ height: 70%;
 
 
 
 
 
 
 
234
  object-fit: contain;
235
+ transition: transform 0.3s ease;
 
 
236
  }
237
+
238
+ .fa-youtube { color: #FF0000; }
239
+ .fa-facebook-f { color: #1877F2; }
240
+ .fa-instagram { color: #E4405F; }
241
+ .fa-x-twitter { color: #FFFFFF; }
242
+
243
+ .link-label {
244
+ margin-top: 8px;
245
+ font-size: clamp(0.68rem, 2vw, 0.8rem);
246
+ color: var(--text-dim);
 
 
 
 
247
  transition: 0.3s;
 
248
  }
249
+
250
+ /* Hover — desktop only (no transform on mobile touch) */
251
+ @media (hover: hover) {
252
+ .link-item:hover .link-icon {
253
+ background: var(--accent);
254
+ color: white;
255
+ border-color: transparent;
256
+ box-shadow: 0 15px 30px var(--shadow-accent);
257
+ }
258
+ .link-item:hover .link-label { color: var(--text); }
259
+ .link-item:hover .genisi-logo { transform: scale(1.1); }
260
  }
261
 
262
+ /* Active state for mobile tap feedback */
263
+ .link-item:active .link-icon {
264
+ background: var(--accent);
265
+ color: white;
266
+ border-color: transparent;
267
+ box-shadow: 0 8px 20px var(--shadow-accent);
268
+ transform: scale(0.95);
269
  }
270
+
271
+ /* =========================================
272
+ 8. FOOTER
273
+ ========================================= */
274
+ .footer {
275
+ position: fixed;
276
+ bottom: clamp(12px, 3vw, 20px);
277
+ left: 50%;
278
+ transform: translateX(-50%);
279
+ font-size: clamp(0.7rem, 2vw, 0.8rem);
280
+ color: var(--text-dim);
281
  text-align: center;
282
+ z-index: 10;
283
+ white-space: nowrap;
 
 
 
 
 
 
 
284
  }
285
 
286
  /* =========================================
287
+ 9. ANIMATIONS
288
  ========================================= */
289
+ @keyframes fadeIn {
290
+ from { opacity: 0; transform: translateY(-20px); }
291
+ to { opacity: 1; transform: translateY(0); }
 
 
 
292
  }
293
+
294
+ @keyframes fadeInUp {
295
+ from { opacity: 0; transform: translateY(20px); }
296
+ to { opacity: 1; transform: translateY(0); }
297
  }
298
 
299
+ /* =========================================
300
+ 10. RESPONSIVE BREAKPOINTS
301
+ ========================================= */
302
+
303
+ /* Small phones (≤360px) */
304
+ @media (max-width: 360px) {
305
+ .page-wrapper {
306
+ padding-top: 90px;
307
+ padding-bottom: 70px;
308
+ }
309
+ .quick-links {
310
+ gap: 10px;
311
+ }
312
+ }
313
+
314
+ /* Landscape phones */
315
+ @media (max-height: 500px) and (orientation: landscape) {
316
+ .page-wrapper {
317
+ padding-top: 70px;
318
+ padding-bottom: 50px;
319
+ gap: 0;
320
+ }
321
+ .logo {
322
+ font-size: clamp(32px, 8vw, 55px);
323
+ margin-bottom: 14px;
324
+ }
325
+ .clock-container {
326
+ top: 10px;
327
+ }
328
+ #time { font-size: 1.3rem; }
329
+ #date { font-size: 0.65rem; }
330
+ .quick-links {
331
+ margin-top: 18px;
332
+ }
333
+ .link-icon {
334
+ width: 44px;
335
+ height: 44px;
336
+ border-radius: 12px;
337
+ }
338
+ }
339
+
340
+ /* Tablets (768px+) */
341
+ @media (min-width: 768px) {
342
+ .page-wrapper {
343
+ padding-top: 120px;
344
+ padding-bottom: 80px;
345
+ }
346
+ .quick-links {
347
+ gap: 18px;
348
+ }
349
+ }
350
+
351
+ /* Desktop (1024px+) */
352
+ @media (min-width: 1024px) {
353
+ .page-wrapper {
354
+ justify-content: center;
355
+ min-height: 100vh;
356
+ padding-top: 0;
357
+ padding-bottom: 0;
358
+ }
359
+ .logo { margin-bottom: 30px; }
360
+ }
361
  </style>
362
  </head>
363
  <body>
364
 
365
+ <!-- Background -->
366
+ <div class="stars-container" id="stars"></div>
367
+ <div class="nebula" style="top: 10%; left: 10%;"></div>
368
+ <div class="nebula" style="bottom: 10%; right: 10%; background: radial-gradient(circle, rgba(59, 130, 246, 0.05) 0%, transparent 70%);"></div>
369
+
370
+ <!-- Clock -->
371
+ <div class="clock-container">
372
+ <div id="time">00:00</div>
373
+ <div id="date">Loading...</div>
374
+ </div>
375
+
376
+ <!-- Main Content -->
377
+ <div class="page-wrapper">
378
 
379
+ <!-- Logo -->
380
+ <div class="logo">SurfGO</div>
 
 
 
 
381
 
382
+ <!-- Search -->
383
  <div class="search-container">
384
+ <!-- تم إزالة target="_blank" ليعمل البحث في نفس التبويب -->
385
+ <form action="results.html" method="get" class="search-form">
386
+ <!-- Added aria-label for accessibility -->
387
+ <input type="text" name="q" placeholder="Explore the universe..." autocomplete="off" aria-label="Search Web">
388
+ <button type="submit" class="search-btn" aria-label="Search">
389
+ <i class="fa-solid fa-magnifying-glass"></i>
390
  </button>
391
  </form>
392
  </div>
393
 
394
+ <!-- Quick Links -->
395
+ <div class="quick-links">
396
+ <a href="https://youtube.com" target="_blank" rel="noopener" class="link-item">
397
+ <div class="link-icon"><i class="fa-brands fa-youtube"></i></div>
398
+ <div class="link-label">YouTube</div>
399
+ </a>
400
+ <a href="https://facebook.com" target="_blank" rel="noopener" class="link-item">
401
+ <div class="link-icon"><i class="fa-brands fa-facebook-f"></i></div>
402
+ <div class="link-label">Facebook</div>
403
+ </a>
404
+ <a href="https://instagram.com" target="_blank" rel="noopener" class="link-item">
405
+ <div class="link-icon"><i class="fa-brands fa-instagram"></i></div>
406
+ <div class="link-label">Instagram</div>
407
+ </a>
408
+ <!-- Genisi Link using local image -->
409
+ <a href="https://genisi.web.app/" target="_blank" rel="noopener" class="link-item">
410
+ <div class="link-icon">
411
+ <img src="genisi.png" alt="Genisi Logo" width="32" height="32" class="genisi-logo">
412
+ </div>
413
+ <div class="link-label">Genisi</div>
414
+ </a>
415
+ <a href="https://twitter.com" target="_blank" rel="noopener" class="link-item">
416
+ <div class="link-icon"><i class="fa-brands fa-x-twitter"></i></div>
417
+ <div class="link-label">Twitter</div>
418
+ </a>
419
  </div>
 
420
 
421
+ </div>
422
+
423
+ <!-- Footer -->
424
+ <div class="footer">
425
+ Crafted by <strong>AnesNT</strong> · 2026
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
426
  </div>
427
 
428
  <script>
429
+ // Clock Function
430
+ function updateClock() {
431
+ const now = new Date();
432
+ const timeStr = now.toLocaleTimeString('en-US', { hour12: false, hour: '2-digit', minute: '2-digit' });
433
+ const dateStr = now.toLocaleDateString('en-US', { weekday: 'long', month: 'long', day: 'numeric' });
434
+ document.getElementById('time').textContent = timeStr;
435
+ document.getElementById('date').textContent = dateStr;
436
+ }
437
+ setInterval(updateClock, 1000);
438
+ updateClock();
439
+
440
+ // Auto-focus Search Input
441
+ document.querySelector('input[name="q"]').focus();
442
+
443
+ // Stars Background
444
+ const starsContainer = document.getElementById('stars');
445
+ const starCount = window.innerWidth < 480 ? 80 : 150;
446
+ for (let i = 0; i < starCount; i++) {
447
+ const star = document.createElement('div');
448
+ star.style.cssText = `
449
+ position: absolute;
450
+ left: ${Math.random() * 100}%;
451
+ top: ${Math.random() * 100}%;
452
+ width: ${Math.random() * 2 + 0.5}px;
453
+ height: ${Math.random() * 2 + 0.5}px;
454
+ background: #fff;
455
+ border-radius: 50%;
456
+ opacity: ${Math.random() * 0.8 + 0.1};
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
457
  `;
458
+ starsContainer.appendChild(star);
 
459
  }
 
460
  </script>
461
  </body>
462
  </html>