DrMohsen commited on
Commit
7e9c196
·
verified ·
1 Parent(s): 4383df1

Upload folder using huggingface_hub

Browse files
Files changed (1) hide show
  1. index.html +1173 -19
index.html CHANGED
@@ -1,19 +1,1173 @@
1
- <!doctype html>
2
- <html>
3
- <head>
4
- <meta charset="utf-8" />
5
- <meta name="viewport" content="width=device-width" />
6
- <title>My static Space</title>
7
- <link rel="stylesheet" href="style.css" />
8
- </head>
9
- <body>
10
- <div class="card">
11
- <h1>Welcome to your static Space!</h1>
12
- <p>You can modify this app directly by editing <i>index.html</i> in the Files and versions tab.</p>
13
- <p>
14
- Also don't forget to check the
15
- <a href="https://huggingface.co/docs/hub/spaces" target="_blank">Spaces documentation</a>.
16
- </p>
17
- </div>
18
- </body>
19
- </html>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <!DOCTYPE html>
2
+ <html lang="fa" dir="rtl">
3
+
4
+ <head>
5
+ <meta charset="UTF-8" />
6
+ <meta name="viewport" content="width=device-width, initial-scale=1" />
7
+ <title>استودیو قلم نورانی</title>
8
+ <link href="https://cdn.jsdelivr.net/gh/rastikerdar/vazirmatn@v33.003/Vazirmatn-font-face.css" rel="stylesheet">
9
+ <style>
10
+ *,
11
+ *::before,
12
+ *::after {
13
+ box-sizing: border-box;
14
+ }
15
+
16
+ :root {
17
+ --neon-bg: #0A0A0A;
18
+ --neon-primary: #FF3333;
19
+ --neon-secondary: #FF9933;
20
+ --neon-accent: #FFFF33;
21
+ --neon-text: #FFFFFF;
22
+ --neon-border-alpha: rgba(255, 51, 51, 0.4);
23
+ --neon-live-indicator: #FFFF33;
24
+ --neon-link: #FF9933;
25
+ --neon-premium: #FFEB3B;
26
+
27
+ --background-color: var(--neon-bg);
28
+ --primary-color: var(--neon-primary);
29
+ --secondary-color: var(--neon-secondary);
30
+ --accent-blue: var(--neon-accent);
31
+ --accent-link: var(--neon-link);
32
+ --text-color: var(--neon-text);
33
+ --border-color: var(--neon-border-alpha);
34
+ --live-indicator-color: var(--neon-live-indicator);
35
+ --premium-color: var(--neon-premium);
36
+
37
+ --radius: 15px;
38
+ --glass: rgba(0, 0, 0, 0.7);
39
+ --glass-soft: rgba(255, 255, 255, 0.06);
40
+ }
41
+
42
+ body {
43
+ margin: 0;
44
+ font-family: 'Vazirmatn', sans-serif;
45
+ background: var(--background-color);
46
+ color: var(--text-color);
47
+ line-height: 1.7;
48
+ min-height: 100vh;
49
+ padding: 0;
50
+ overflow-x: hidden;
51
+ }
52
+
53
+ body::before,
54
+ body::after {
55
+ content: '';
56
+ position: fixed;
57
+ top: 50%;
58
+ left: 50%;
59
+ width: 200vmax;
60
+ height: 200vmax;
61
+ background: radial-gradient(circle, rgba(255, 51, 51, 0.08) 0%, transparent 60%);
62
+ border-radius: 50%;
63
+ will-change: transform;
64
+ z-index: -2;
65
+ animation: swirl 90s linear infinite;
66
+ }
67
+
68
+ body::after {
69
+ background: radial-gradient(circle, rgba(255, 255, 51, 0.06) 0%, transparent 60%);
70
+ animation: swirl 120s linear infinite reverse;
71
+ }
72
+
73
+ @keyframes swirl {
74
+ 0% {
75
+ transform: translate(-50%, -50%) rotate(0deg) scale(1);
76
+ }
77
+
78
+ 50% {
79
+ transform: translate(-50%, -50%) rotate(180deg) scale(1.1);
80
+ }
81
+
82
+ 100% {
83
+ transform: translate(-50%, -50%) rotate(360deg) scale(1);
84
+ }
85
+ }
86
+
87
+ .background-carousel-image {
88
+ position: fixed;
89
+ top: 0;
90
+ left: 0;
91
+ width: 100%;
92
+ height: 100%;
93
+ object-fit: cover;
94
+ z-index: -4;
95
+ transition: opacity 2.2s ease-in-out, transform 12s ease-in-out, filter 1s ease-in-out;
96
+ opacity: 0.16;
97
+ filter: saturate(120%) contrast(110%) blur(0.5px);
98
+ transform: scale(1.02);
99
+ }
100
+
101
+ .background-carousel-image.fade-in {
102
+ opacity: 0.16;
103
+ }
104
+
105
+ .background-carousel-image.fade-out {
106
+ opacity: 0;
107
+ }
108
+
109
+ .app {
110
+ min-height: 100vh;
111
+ display: grid;
112
+ grid-template-rows: auto 1fr auto;
113
+ }
114
+
115
+ .app-header {
116
+ position: sticky;
117
+ top: 0;
118
+ z-index: 50;
119
+ backdrop-filter: blur(10px);
120
+ -webkit-backdrop-filter: blur(10px);
121
+ background: linear-gradient(180deg, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.4));
122
+ border-bottom: 1px solid var(--border-color);
123
+ }
124
+
125
+ .nav {
126
+ display: flex;
127
+ align-items: center;
128
+ justify-content: space-between;
129
+ gap: 1rem;
130
+ max-width: 1200px;
131
+ margin: 0 auto;
132
+ padding: 0.6rem 1rem;
133
+ }
134
+
135
+ .brand {
136
+ display: flex;
137
+ align-items: center;
138
+ gap: 0.6rem;
139
+ text-decoration: none;
140
+ color: var(--neon-primary);
141
+ font-weight: 800;
142
+ letter-spacing: 0.4px;
143
+ }
144
+
145
+ .brand-logo {
146
+ width: 34px;
147
+ height: 34px;
148
+ border-radius: 50%;
149
+ background: radial-gradient(circle at 30% 30%, var(--neon-accent), var(--neon-secondary) 60%, var(--neon-primary) 100%);
150
+ box-shadow: 0 0 10px var(--neon-primary), 0 0 20px var(--neon-secondary), 0 0 30px var(--neon-accent);
151
+ }
152
+
153
+ .brand span {
154
+ font-size: 1.1rem;
155
+ }
156
+
157
+ .brand small {
158
+ display: block;
159
+ font-size: 0.7rem;
160
+ opacity: 0.8;
161
+ color: var(--neon-text);
162
+ font-weight: 400;
163
+ margin-top: -2px;
164
+ }
165
+
166
+ .nav-links {
167
+ display: flex;
168
+ gap: 0.4rem;
169
+ flex-wrap: wrap;
170
+ align-items: center;
171
+ justify-content: center;
172
+ }
173
+
174
+ .nav-link {
175
+ color: var(--neon-text);
176
+ text-decoration: none;
177
+ font-size: 0.95rem;
178
+ padding: 0.4rem 0.7rem;
179
+ border-radius: 8px;
180
+ border: 1px solid transparent;
181
+ transition: all 0.25s ease;
182
+ white-space: nowrap;
183
+ }
184
+
185
+ .nav-link:hover {
186
+ color: var(--neon-accent);
187
+ border-color: var(--border-color);
188
+ background: rgba(255, 255, 255, 0.05);
189
+ }
190
+
191
+ .nav-link.active {
192
+ color: var(--neon-primary);
193
+ border-color: var(--neon-primary);
194
+ background: rgba(255, 51, 51, 0.08);
195
+ box-shadow: 0 0 10px rgba(255, 51, 51, 0.2) inset;
196
+ }
197
+
198
+ .nav-actions {
199
+ display: flex;
200
+ gap: 0.4rem;
201
+ align-items: center;
202
+ }
203
+
204
+ .icon-button {
205
+ background: transparent;
206
+ border: 1px solid var(--border-color);
207
+ border-radius: 50%;
208
+ width: 40px;
209
+ height: 40px;
210
+ display: inline-flex;
211
+ justify-content: center;
212
+ align-items: center;
213
+ cursor: pointer;
214
+ color: var(--neon-accent);
215
+ transition: all 0.3s ease;
216
+ }
217
+
218
+ .icon-button:hover {
219
+ color: var(--neon-primary);
220
+ border-color: var(--neon-primary);
221
+ transform: scale(1.06);
222
+ }
223
+
224
+ .icon-button svg {
225
+ width: 22px;
226
+ height: 22px;
227
+ }
228
+
229
+ .music-toggle-button.playing {
230
+ color: var(--neon-primary);
231
+ border-color: var(--neon-primary);
232
+ box-shadow: 0 0 10px var(--neon-primary);
233
+ animation: music-pulse 2s infinite ease-in-out;
234
+ }
235
+
236
+ @keyframes music-pulse {
237
+
238
+ 0%,
239
+ 100% {
240
+ transform: scale(1);
241
+ }
242
+
243
+ 50% {
244
+ transform: scale(1.1);
245
+ }
246
+ }
247
+
248
+ .app-main {
249
+ display: grid;
250
+ place-items: center;
251
+ padding: 1.2rem;
252
+ }
253
+
254
+ .container {
255
+ position: relative;
256
+ width: 100%;
257
+ max-width: 960px;
258
+ text-align: center;
259
+ padding: 1.4rem;
260
+ background: var(--glass);
261
+ border-radius: var(--radius);
262
+ border: 1px solid var(--border-color);
263
+ box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
264
+ backdrop-filter: blur(8px);
265
+ -webkit-backdrop-filter: blur(8px);
266
+ animation: fadeIn 0.5s ease-in-out, neon-border-pulse 12s linear infinite;
267
+ }
268
+
269
+ @keyframes neon-border-pulse {
270
+ 0% {
271
+ box-shadow: 0 0 5px var(--neon-primary), 0 0 10px var(--neon-primary), 0 0 15px var(--neon-primary);
272
+ border-color: var(--neon-primary);
273
+ }
274
+
275
+ 25% {
276
+ box-shadow: 0 0 5px var(--neon-secondary), 0 0 10px var(--neon-secondary), 0 0 15px var(--neon-secondary);
277
+ border-color: var(--neon-secondary);
278
+ }
279
+
280
+ 50% {
281
+ box-shadow: 0 0 5px var(--neon-accent), 0 0 10px var(--neon-accent), 0 0 15px var(--neon-accent);
282
+ border-color: var(--neon-accent);
283
+ }
284
+
285
+ 75% {
286
+ box-shadow: 0 0 5px var(--neon-text), 0 0 10px var(--neon-text), 0 0 15px var(--neon-text);
287
+ border-color: var(--neon-text);
288
+ }
289
+
290
+ 100% {
291
+ box-shadow: 0 0 5px var(--neon-primary), 0 0 10px var(--neon-primary), 0 0 15px var(--neon-primary);
292
+ border-color: var(--neon-primary);
293
+ }
294
+ }
295
+
296
+ @keyframes fadeIn {
297
+ from {
298
+ opacity: 0;
299
+ transform: translateY(-10px);
300
+ }
301
+
302
+ to {
303
+ opacity: 1;
304
+ transform: translateY(0);
305
+ }
306
+ }
307
+
308
+ .section {
309
+ display: none;
310
+ }
311
+
312
+ .section.active {
313
+ display: block;
314
+ }
315
+
316
+ .title {
317
+ font-size: clamp(1.4rem, 3.2vw, 2rem);
318
+ font-weight: 700;
319
+ color: var(--neon-primary);
320
+ margin: 0.2rem 0 1rem 0;
321
+ text-shadow: 0 0 15px var(--neon-accent);
322
+ }
323
+
324
+ .subtitle {
325
+ color: var(--neon-accent);
326
+ margin: 0 0 1rem 0;
327
+ opacity: 0.9;
328
+ }
329
+
330
+ .grid {
331
+ display: grid;
332
+ gap: 1rem;
333
+ }
334
+
335
+ @media (min-width: 720px) {
336
+ .grid.cols-2 {
337
+ grid-template-columns: 1fr 1fr;
338
+ }
339
+
340
+ .grid.cols-3 {
341
+ grid-template-columns: repeat(3, 1fr);
342
+ }
343
+ }
344
+
345
+ .card {
346
+ background: rgba(255, 255, 255, 0.05);
347
+ border: 1px solid var(--border-color);
348
+ border-radius: 12px;
349
+ padding: 1rem;
350
+ transition: transform 0.2s ease, box-shadow 0.3s ease, border-color 0.3s ease;
351
+ }
352
+
353
+ .card:hover {
354
+ transform: translateY(-2px);
355
+ border-color: var(--neon-secondary);
356
+ box-shadow: 0 8px 24px rgba(255, 153, 51, 0.1);
357
+ }
358
+
359
+ .button,
360
+ .live-button {
361
+ color: var(--neon-text);
362
+ border: none;
363
+ border-radius: 8px;
364
+ padding: 0.7rem 1.4rem;
365
+ font-family: 'Vazirmatn', sans-serif;
366
+ font-size: 1rem;
367
+ font-weight: bold;
368
+ cursor: pointer;
369
+ transition: all 0.25s ease;
370
+ box-shadow: 0 0 15px rgba(255, 51, 51, 0.5);
371
+ display: inline-block;
372
+ width: auto;
373
+ min-width: 140px;
374
+ }
375
+
376
+ .button {
377
+ background: linear-gradient(45deg, var(--neon-secondary), var(--neon-primary));
378
+ animation: pulse-glow 3s infinite ease-in-out;
379
+ }
380
+
381
+ @keyframes pulse-glow {
382
+
383
+ 0%,
384
+ 100% {
385
+ box-shadow: 0 0 15px rgba(255, 51, 51, 0.5);
386
+ }
387
+
388
+ 50% {
389
+ box-shadow: 0 0 25px rgba(255, 153, 51, 0.8);
390
+ }
391
+ }
392
+
393
+ .button:hover:not(:disabled),
394
+ .live-button:hover:not(:disabled) {
395
+ transform: translateY(-2px);
396
+ animation-play-state: paused;
397
+ }
398
+
399
+ .button:active:not(:disabled),
400
+ .live-button:active:not(:disabled) {
401
+ transform: translateY(0);
402
+ }
403
+
404
+ .button:disabled,
405
+ .live-button:disabled {
406
+ opacity: 0.5;
407
+ cursor: wait;
408
+ animation: none;
409
+ }
410
+
411
+ .live-button {
412
+ margin-bottom: 0;
413
+ animation: none;
414
+ }
415
+
416
+ .live-button.mohsen {
417
+ background: linear-gradient(45deg, var(--neon-secondary), var(--neon-primary));
418
+ }
419
+
420
+ .live-button.mohsen.active {
421
+ background: linear-gradient(45deg, #FF6600, #FF3300);
422
+ box-shadow: 0 0 15px rgba(255, 102, 0, 0.6);
423
+ }
424
+
425
+ .live-button.mina {
426
+ background: linear-gradient(45deg, #CC0066, #FF0099);
427
+ box-shadow: 0 0 15px rgba(255, 0, 153, 0.5);
428
+ }
429
+
430
+ .live-button.mina.active {
431
+ background: linear-gradient(45deg, #FF00CC, #FF66FF);
432
+ box-shadow: 0 0 15px rgba(255, 102, 255, 0.6);
433
+ }
434
+
435
+ .field {
436
+ margin-bottom: 0.8rem;
437
+ text-align: right;
438
+ }
439
+
440
+ .field label {
441
+ display: block;
442
+ margin-bottom: 0.4rem;
443
+ color: var(--neon-accent);
444
+ font-size: 0.95rem;
445
+ }
446
+
447
+ .input,
448
+ textarea,
449
+ select {
450
+ width: 100%;
451
+ padding: 0.7rem;
452
+ font-family: 'Vazirmatn', sans-serif;
453
+ background: rgba(255, 255, 255, 0.1);
454
+ border: 1px solid var(--border-color);
455
+ border-radius: 8px;
456
+ color: var(--neon-text);
457
+ font-size: 1rem;
458
+ transition: all 0.3s ease;
459
+ }
460
+
461
+ .input:focus,
462
+ textarea:focus,
463
+ select:focus {
464
+ outline: none;
465
+ border-color: var(--neon-primary);
466
+ box-shadow: 0 0 10px var(--neon-primary);
467
+ }
468
+
469
+ textarea {
470
+ min-height: 120px;
471
+ resize: vertical;
472
+ }
473
+
474
+ .inline-actions {
475
+ display: flex;
476
+ gap: 0.6rem;
477
+ flex-wrap: wrap;
478
+ align-items: center;
479
+ justify-content: center;
480
+ }
481
+
482
+ .api-key-prompt {
483
+ background: rgba(255, 255, 51, 0.1);
484
+ border: 1px solid var(--neon-accent);
485
+ border-radius: 10px;
486
+ padding: 1rem;
487
+ margin: 1rem 0;
488
+ text-align: center;
489
+ animation: fadeIn 0.7s ease-out;
490
+ }
491
+
492
+ .api-key-prompt p {
493
+ color: var(--neon-text);
494
+ font-size: 0.95rem;
495
+ line-height: 1.7;
496
+ margin-bottom: 1rem;
497
+ }
498
+
499
+ .result {
500
+ margin-top: 1rem;
501
+ padding: 1rem;
502
+ border: 1px dashed var(--border-color);
503
+ border-radius: 10px;
504
+ background: rgba(255, 255, 255, 0.05);
505
+ text-align: right;
506
+ animation: reveal 0.7s ease-out;
507
+ transition: box-shadow 0.5s ease-in-out, border-color 0.5s ease-in-out;
508
+ }
509
+
510
+ .result.reading {
511
+ animation: breathing-glow 3s infinite ease-in-out, reveal 0.7s ease-out;
512
+ }
513
+
514
+ @keyframes breathing-glow {
515
+
516
+ 0%,
517
+ 100% {
518
+ box-shadow: 0 0 10px rgba(255, 51, 51, 0.3);
519
+ border-color: var(--border-color);
520
+ }
521
+
522
+ 50% {
523
+ box-shadow: 0 0 25px rgba(255, 153, 51, 0.8);
524
+ border-color: var(--neon-primary);
525
+ }
526
+ }
527
+
528
+ .result h2,
529
+ .result h3 {
530
+ font-size: 1.3rem;
531
+ color: var(--neon-primary);
532
+ margin: 0 0 0.6rem 0;
533
+ border-bottom: 1px solid var(--border-color);
534
+ padding-bottom: 0.4rem;
535
+ }
536
+
537
+ .poem,
538
+ .interpretation {
539
+ white-space: pre-wrap;
540
+ font-size: 1.05rem;
541
+ line-height: 2;
542
+ margin-bottom: 1.2rem;
543
+ font-family: 'Vazirmatn', sans-serif;
544
+ }
545
+
546
+ .interpretation {
547
+ font-family: 'Arial', sans-serif;
548
+ font-size: 16px;
549
+ font-weight: 300;
550
+ text-align: center;
551
+ }
552
+
553
+ .typing-cursor {
554
+ display: inline-block;
555
+ width: 1.5px;
556
+ height: 1.1rem;
557
+ background-color: var(--neon-primary);
558
+ animation: blink 0.7s infinite;
559
+ margin-left: 2px;
560
+ vertical-align: text-bottom;
561
+ }
562
+
563
+ @keyframes blink {
564
+
565
+ 0%,
566
+ 100% {
567
+ opacity: 1;
568
+ }
569
+
570
+ 50% {
571
+ opacity: 0;
572
+ }
573
+ }
574
+
575
+ .result-actions {
576
+ display: flex;
577
+ flex-wrap: wrap;
578
+ gap: 0.6rem;
579
+ margin-top: 1rem;
580
+ justify-content: center;
581
+ border-top: 1px dashed var(--border-color);
582
+ padding-top: 1rem;
583
+ }
584
+
585
+ .action-button {
586
+ background: transparent;
587
+ color: var(--neon-primary);
588
+ border: 1px solid var(--neon-primary);
589
+ border-radius: 8px;
590
+ padding: 0.5rem 1rem;
591
+ font-family: 'Vazirmatn', sans-serif;
592
+ font-size: 0.9rem;
593
+ cursor: pointer;
594
+ transition: all 0.3s ease;
595
+ }
596
+
597
+ .action-button:hover:not(:disabled) {
598
+ background-color: var(--neon-primary);
599
+ color: var(--neon-bg);
600
+ }
601
+
602
+ .action-button:disabled {
603
+ opacity: 0.5;
604
+ cursor: not-allowed;
605
+ border-color: var(--border-color);
606
+ color: var(--border-color);
607
+ }
608
+
609
+ .spinner {
610
+ border: 4px solid rgba(255, 255, 255, 0.2);
611
+ border-top: 4px solid var(--neon-primary);
612
+ border-radius: 50%;
613
+ width: 40px;
614
+ height: 40px;
615
+ animation: spin 1s linear infinite;
616
+ margin: 1rem auto;
617
+ }
618
+
619
+ @keyframes spin {
620
+ 0% {
621
+ transform: rotate(0deg);
622
+ }
623
+
624
+ 100% {
625
+ transform: rotate(360deg);
626
+ }
627
+ }
628
+
629
+ .error {
630
+ margin-top: 1rem;
631
+ color: #FF6666;
632
+ background: rgba(255, 51, 51, 0.1);
633
+ padding: 0.8rem;
634
+ border-radius: 8px;
635
+ border: 1px solid #FF3333;
636
+ }
637
+
638
+ .toggle {
639
+ display: inline-flex;
640
+ align-items: center;
641
+ gap: 0.6rem;
642
+ user-select: none;
643
+ }
644
+
645
+ .toggle input {
646
+ display: none;
647
+ }
648
+
649
+ .toggle .slider {
650
+ position: relative;
651
+ width: 44px;
652
+ height: 24px;
653
+ background-color: rgba(255, 255, 255, 0.2);
654
+ border-radius: 34px;
655
+ transition: background-color 0.3s;
656
+ border: 1px solid var(--border-color);
657
+ }
658
+
659
+ .toggle .slider::before {
660
+ content: "";
661
+ position: absolute;
662
+ height: 18px;
663
+ width: 18px;
664
+ left: 2px;
665
+ bottom: 2px;
666
+ background-color: var(--neon-text);
667
+ border-radius: 50%;
668
+ transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
669
+ }
670
+
671
+ .toggle input:checked+.slider {
672
+ background-color: var(--neon-primary);
673
+ box-shadow: 0 0 8px var(--neon-primary);
674
+ border-color: var(--neon-primary);
675
+ }
676
+
677
+ .toggle input:checked+.slider::before {
678
+ transform: translateX(20px);
679
+ background-color: var(--neon-bg);
680
+ }
681
+
682
+ .push-to-talk-button {
683
+ background: transparent;
684
+ border: 3px solid var(--neon-accent);
685
+ color: var(--neon-accent);
686
+ width: 80px;
687
+ height: 80px;
688
+ border-radius: 50%;
689
+ display: inline-flex;
690
+ justify-content: center;
691
+ align-items: center;
692
+ cursor: pointer;
693
+ transition: all 0.2s ease-in-out;
694
+ }
695
+
696
+ .push-to-talk-button svg {
697
+ width: 36px;
698
+ height: 36px;
699
+ }
700
+
701
+ .push-to-talk-button:hover:not(:disabled) {
702
+ border-color: var(--neon-primary);
703
+ color: var(--neon-primary);
704
+ }
705
+
706
+ .push-to-talk-button:disabled {
707
+ opacity: 0.5;
708
+ cursor: not-allowed;
709
+ }
710
+
711
+ .push-to-talk-button.recording {
712
+ background-color: var(--neon-live-indicator);
713
+ border-color: #FFFF99;
714
+ color: var(--neon-bg);
715
+ transform: scale(1.1);
716
+ animation: recording-pulse 1.5s infinite;
717
+ }
718
+
719
+ .push-to-talk-button.recording svg {
720
+ transform: scale(1.1);
721
+ }
722
+
723
+ @keyframes recording-pulse {
724
+ 0% {
725
+ box-shadow: 0 0 0 0 rgba(255, 255, 51, 0.7);
726
+ }
727
+
728
+ 70% {
729
+ box-shadow: 0 0 0 20px rgba(255, 255, 51, 0);
730
+ }
731
+
732
+ 100% {
733
+ box-shadow: 0 0 0 0 rgba(255, 255, 51, 0);
734
+ }
735
+ }
736
+
737
+ .live-status {
738
+ display: flex;
739
+ align-items: center;
740
+ justify-content: center;
741
+ gap: 0.5rem;
742
+ color: var(--neon-text);
743
+ height: 24px;
744
+ font-size: 0.9rem;
745
+ }
746
+
747
+ .pulsing-dot {
748
+ width: 10px;
749
+ height: 10px;
750
+ background-color: var(--neon-live-indicator);
751
+ border-radius: 50%;
752
+ animation: pulse 1.5s infinite ease-in-out;
753
+ }
754
+
755
+ @keyframes pulse {
756
+
757
+ 0%,
758
+ 100% {
759
+ transform: scale(1);
760
+ opacity: 1;
761
+ }
762
+
763
+ 50% {
764
+ transform: scale(1.5);
765
+ opacity: 0.7;
766
+ }
767
+ }
768
+
769
+ .hero {
770
+ display: grid;
771
+ gap: 0.8rem;
772
+ margin: 0.2rem 0 1rem 0;
773
+ padding: 0.8rem;
774
+ border: 1px dashed var(--border-color);
775
+ border-radius: 12px;
776
+ background: rgba(255, 255, 255, 0.04);
777
+ }
778
+
779
+ .hero h1 {
780
+ margin: 0.2rem 0;
781
+ font-size: clamp(1.6rem, 4vw, 2.2rem);
782
+ color: var(--neon-secondary);
783
+ text-shadow: 0 0 15px var(--neon-secondary);
784
+ }
785
+
786
+ .hero p {
787
+ margin: 0;
788
+ color: var(--neon-text);
789
+ opacity: 0.9;
790
+ }
791
+
792
+ .quick-actions {
793
+ display: flex;
794
+ gap: 0.6rem;
795
+ flex-wrap: wrap;
796
+ justify-content: center;
797
+ margin-top: 0.6rem;
798
+ }
799
+
800
+ .footer {
801
+ color: var(--neon-text);
802
+ text-align: center;
803
+ padding: 0.9rem 1rem;
804
+ border-top: 1px solid var(--border-color);
805
+ background: linear-gradient(0deg, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.3));
806
+ font-size: 0.9rem;
807
+ }
808
+
809
+ .footer a {
810
+ color: var(--neon-link);
811
+ text-decoration: none;
812
+ }
813
+
814
+ .footer a:hover {
815
+ text-decoration: underline;
816
+ }
817
+
818
+ .service-input-result-area .selected-service-title {
819
+ font-size: 1.6rem;
820
+ color: var(--neon-primary);
821
+ margin-bottom: 1rem;
822
+ }
823
+
824
+ .service-box {
825
+ background: rgba(255, 255, 255, 0.05);
826
+ border: 1px solid var(--border-color);
827
+ border-radius: 12px;
828
+ padding: 1rem;
829
+ }
830
+
831
+ .totem-calculator .totem-info-content {
832
+ background: rgba(255, 255, 255, 0.05);
833
+ padding: 1rem;
834
+ border-radius: 8px;
835
+ margin-bottom: 1rem;
836
+ text-align: right;
837
+ animation: slideDown 0.5s ease-out;
838
+ overflow: hidden;
839
+ max-height: 500px;
840
+ transition: max-height 0.5s ease-out;
841
+ }
842
+
843
+ @keyframes slideDown {
844
+ from {
845
+ opacity: 0;
846
+ transform: translateY(-10px);
847
+ max-height: 0;
848
+ }
849
+
850
+ to {
851
+ opacity: 1;
852
+ transform: translateY(0);
853
+ max-height: 500px;
854
+ }
855
+ }
856
+
857
+ .totem-input-group {
858
+ display: grid;
859
+ gap: 0.6rem;
860
+ grid-template-columns: 1fr 1fr auto;
861
+ align-items: center;
862
+ }
863
+
864
+ @media (max-width: 600px) {
865
+ .totem-input-group {
866
+ grid-template-columns: 1fr;
867
+ }
868
+ }
869
+
870
+ .totem-result,
871
+ .zodiac-result {
872
+ text-align: center;
873
+ animation: reveal 0.7s ease-out;
874
+ padding: 1rem;
875
+ background: rgba(255, 255, 255, 0.05);
876
+ border-radius: 8px;
877
+ }
878
+
879
+ .totem-image {
880
+ width: 100%;
881
+ max-width: 240px;
882
+ height: auto;
883
+ aspect-ratio: 1/1;
884
+ border-radius: 8px;
885
+ border: 2px solid var(--neon-primary);
886
+ box-shadow: 0 0 15px var(--neon-primary);
887
+ margin: 0.5rem auto 1rem;
888
+ object-fit: cover;
889
+ animation: fadeIn 0.5s;
890
+ }
891
+
892
+ .developer-photo-container {
893
+ position: relative;
894
+ width: 120px;
895
+ height: 120px;
896
+ margin: 0 auto 1rem auto;
897
+ }
898
+
899
+ .developer-photo-container::after {
900
+ content: '';
901
+ position: absolute;
902
+ top: -5px;
903
+ left: -5px;
904
+ right: -5px;
905
+ bottom: -5px;
906
+ border-radius: 50%;
907
+ border: 2px solid var(--neon-live-indicator);
908
+ box-shadow: 0 0 10px var(--neon-live-indicator), inset 0 0 10px var(--neon-live-indicator);
909
+ opacity: 0;
910
+ transform: scale(0.95);
911
+ transition: opacity 0.5s ease, transform 0.5s ease;
912
+ z-index: -1;
913
+ }
914
+
915
+ .developer-photo-container.speaking::after {
916
+ opacity: 1;
917
+ transform: scale(1);
918
+ animation: pulse-pasha 2s infinite ease-in-out;
919
+ }
920
+
921
+ @keyframes pulse-pasha {
922
+ 0% {
923
+ transform: scale(1);
924
+ box-shadow: 0 0 10px var(--neon-live-indicator), inset 0 0 10px var(--neon-live-indicator);
925
+ }
926
+
927
+ 50% {
928
+ transform: scale(1.05);
929
+ box-shadow: 0 0 25px var(--neon-live-indicator), inset 0 0 15px var(--neon-live-indicator);
930
+ }
931
+
932
+ 100% {
933
+ transform: scale(1);
934
+ box-shadow: 0 0 10px var(--neon-live-indicator), inset 0 0 10px var(--neon-live-indicator);
935
+ }
936
+ }
937
+
938
+ .developer-photo {
939
+ width: 100%;
940
+ height: 100%;
941
+ border-radius: 50%;
942
+ object-fit: cover;
943
+ border: 3px solid var(--neon-primary);
944
+ box-shadow: 0 0 15px var(--neon-primary);
945
+ }
946
+
947
+ /* Utility */
948
+ .hidden {
949
+ display: none !important;
950
+ }
951
+
952
+ .center {
953
+ text-align: center;
954
+ }
955
+
956
+ .mt-1 {
957
+ margin-top: 1rem;
958
+ }
959
+
960
+ .mb-1 {
961
+ margin-bottom: 1rem;
962
+ }
963
+
964
+ .mb-0 {
965
+ margin-bottom: 0;
966
+ }
967
+
968
+ /* Mobile nav style */
969
+ .mobile-only {
970
+ display: none;
971
+ }
972
+
973
+ @media (max-width: 900px) {
974
+ .desktop-only {
975
+ display: none;
976
+ }
977
+
978
+ .mobile-only {
979
+ display: inline-flex;
980
+ }
981
+
982
+ .nav {
983
+ flex-wrap: wrap;
984
+ }
985
+
986
+ .nav-links {
987
+ width: 100%;
988
+ justify-content: center;
989
+ }
990
+ }
991
+ </style>
992
+ </head>
993
+
994
+ <body>
995
+ <!-- Background carousel -->
996
+ <img id="bgImage" class="background-carousel-image fade-in" alt="background" />
997
+
998
+ <!-- App -->
999
+ <div class="app">
1000
+ <header class="app-header">
1001
+ <nav class="nav">
1002
+ <a class="brand" href="#home" aria-label="استودیو قلم نورانی">
1003
+ <span class="brand-logo" aria-hidden="true"></span>
1004
+ <span>
1005
+ استودیو قلم نورانی
1006
+ <small>فضایی برای اندیشه و هنر</small>
1007
+ </span>
1008
+ </a>
1009
+
1010
+ <div class="nav-links desktop-only">
1011
+ <a class="nav-link" href="#home">خانه</a>
1012
+ <a class="nav-link" href="#editor">ویرایشگر و ساز</a>
1013
+ <a class="nav-link" href="#live">زنده‌نویسی</a>
1014
+ <a class="nav-link" href="#totem">قلمtotem</a>
1015
+ <a class="nav-link" href="#daily">بینش امروز</a>
1016
+ <a class="nav-link" href="#services">خدمات</a>
1017
+ <a class="nav-link" href="#about">درباره</a>
1018
+ </div>
1019
+
1020
+ <div class="nav-actions">
1021
+ <button id="musicToggle" class="icon-button music-toggle-button" title="پخش موزیک">
1022
+ <svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.8" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true">
1023
+ <path d="M9 18V5l12-2v13"></path>
1024
+ <circle cx="6" cy="18" r="3"></circle>
1025
+ <circle cx="18" cy="16" r="3"></circle>
1026
+ </svg>
1027
+ </button>
1028
+ <button id="bgPrev" class="icon-button mobile-only" title="تصویر قبلی">
1029
+ <svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><path d="M15 18l-6-6 6-6"/></svg>
1030
+ </button>
1031
+ <button id="bgNext" class="icon-button mobile-only" title="تصویر بعدی">
1032
+ <svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><path d="M9 18l6-6-6-6"/></svg>
1033
+ </button>
1034
+ </div>
1035
+ </nav>
1036
+ </header>
1037
+
1038
+ <main class="app-main">
1039
+ <!-- Home -->
1040
+ <section id="home-view" class="section active">
1041
+ <div class="container">
1042
+ <div class="hero">
1043
+ <h1>استودیو قلم نورانی</h1>
1044
+ <p>فضایی برای اندیشه، هنر و آوای کلمات</p>
1045
+ <div class="quick-actions">
1046
+ <a class="button" href="#editor">شروع ساخت اثر</a>
1047
+ <a class="button" href="#services">مشاهده خدمات</a>
1048
+ <a class="button" href="#live">زنده‌نویسی با صدا</a>
1049
+ </div>
1050
+ </div>
1051
+
1052
+ <div class="field">
1053
+ <label for="userNameInput">نام شما</label>
1054
+ <input id="userNameInput" class="input" placeholder="نام‌تان را وارد کنید..." />
1055
+ </div>
1056
+ <div class="inline-actions">
1057
+ <button id="saveNameBtn" class="button">ذخیره نام</button>
1058
+ <span id="userNameDisplay"></span>
1059
+ </div>
1060
+
1061
+ <div class="api-key-prompt">
1062
+ <p>برای استفاده از برخی قابلیت‌ها، کلید API خود را وارد کنید (اختیاری).</p>
1063
+ <div class="inline-actions">
1064
+ <input id="apiKeyInput" class="input" placeholder="کلید OpenAI خود را وارد کنید..." style="max-width: 360px;" />
1065
+ <button id="saveApiKeyBtn" class="button">ذخیره کلید</button>
1066
+ </div>
1067
+ <p style="margin-top:0.6rem;"><a href="https://platform.openai.com/api-keys" target="_blank"
1068
+ rel="noopener">دریافت کلید از OpenAI</a></p>
1069
+ </div>
1070
+
1071
+ <div class="services-container">
1072
+ <h2 class="title">خدمات ویژه</h2>
1073
+ <p class="service-intro-text">خدمات محبوب شما در یک کلیک</p>
1074
+ <div class="grid cols-3">
1075
+ <div class="card">
1076
+ <h3 style="color:var(--neon-accent); margin:0 0 0.4rem 0;">ساخت شعر</h3>
1077
+ <p style="margin:0 0 0.8rem 0;">با هر مضمونی شعر بسازید.</p>
1078
+ <a class="button" href="#editor">برو به سازنده</a>
1079
+ </div>
1080
+ <div class="card">
1081
+ <h3 style="color:var(--neon-accent); margin:0 0 0.4rem 0;">زنده‌نویسی</h3>
1082
+ <p style="margin:0 0 0.8rem 0;">صوت‌تان را به نوشته تبدیل کنید.</p>
1083
+ <a class="button" href="#live">فعال‌سازی</a>
1084
+ </div>
1085
+ <div class="card">
1086
+ <h3 style="color:var(--neon-accent); margin:0 0 0.4rem 0;">توتِم قلم</h3>
1087
+ <p style="margin:0 0 0.8rem 0;">حیوان قلمتان را بشناسید.</p>
1088
+ <a class="button" href="#totem">محاسبه</a>
1089
+ </div>
1090
+ </div>
1091
+ </div>
1092
+ </div>
1093
+ </section>
1094
+
1095
+ <!-- Editor / Creator -->
1096
+ <section id="editor-view" class="section">
1097
+ <div class="container">
1098
+ <h2 class="title">ویرایشگر و ساز</h2>
1099
+ <p class="subtitle">موضوع، وزن و سبک را مشخص کنید و اثر بسازید</p>
1100
+
1101
+ <div class="field">
1102
+ <label for="themeInput">موضوع یا کلیدواژه</label>
1103
+ <input id="themeInput" class="input" placeholder="مثلاً: عشق، غزل، طبیعت، غم، شادی" />
1104
+ </div>
1105
+ <div class="grid cols-2">
1106
+ <div class="field">
1107
+ <label for="meterSelect">وزن شعر (اختیاری)</label>
1108
+ <select id="meterSelect">
1109
+ <option value="">انتخاب کنید</option>
1110
+ <option value="رودکی">رودکی</option>
1111
+ <option value="متقارب">متقارب</option>
1112
+ <option value="بیت‌المثل">بیت‌المثل</option>
1113
+ <option value="نیمایی">نیمایی</option>
1114
+ </select>
1115
+ </div>
1116
+ <div class="field">
1117
+ <label for="styleSelect">سبک</label>
1118
+ <select id="styleSelect">
1119
+ <option value="کلاسیک">کلاسیک</option>
1120
+ <option value="نیمایی">نیمایی</option>
1121
+ <option value="سپید">سپید</option>
1122
+ <option value="آزاد">آزاد</option>
1123
+ </select>
1124
+ </div>
1125
+ </div>
1126
+
1127
+ <div class="inline-actions">
1128
+ <button id="generatePoemBtn" class="button">سا��ت شعر</button>
1129
+ <button id="clearEditorBtn" class="button" style="background: linear-gradient(45deg,#666,#333)">پاک کردن</button>
1130
+ <button id="saveDraftBtn" class="button" style="background: linear-gradient(45deg,#4CAF50,#8BC34A)">ذخیره موقت</button>
1131
+ </div>
1132
+
1133
+ <div class="result" id="editorResult">
1134
+ <h3>نتیجه</h3>
1135
+ <div id="editorPoem" class="poem" style="margin-top:0.6rem;"></div>
1136
+ <div id="editorTyping" class="typing-cursor hidden"></div>
1137
+ <div class="result-actions">
1138
+ <button id="readPoemBtn" class="action-button">خواندن با صدا</button>
1139
+ <button id="stopReadPoemBtn" class="action-button">توقف</button>
1140
+ <button id="copyPoemBtn" class="action-button">کپی</button>
1141
+ <button id="downloadPoemBtn" class="action-button download-button">دانلود متن</button>
1142
+ <button id="speakAndHighlightBtn" class="action-button">خواندن و برجسته‌سازی</button>
1143
+ </div>
1144
+ </div>
1145
+
1146
+ <div class="api-key-prompt" id="editorKeyPrompt">
1147
+ <p>برای ساخت شعر با هوش مصنوعی، کلید API را در خانه وارد کنید.</p>
1148
+ <a href="https://platform.openai.com/api-keys" target="_blank" rel="noopener">دریافت کلید از OpenAI</a>
1149
+ </div>
1150
+ </div>
1151
+ </section>
1152
+
1153
+ <!-- Live Transcription -->
1154
+ <section id="live-view" class="section">
1155
+ <div class="container">
1156
+ <h2 class="title">زنده‌نویسی با صدا</h2>
1157
+ <p class="subtitle">با دکمه یا نگه داشت دکمه اسپیک، گفتار را به نوشته تبدیل کنید.</p>
1158
+
1159
+ <div class="audio-settings-container"
1160
+ style="text-align:right; border-radius: 12px; padding: 1rem; background: rgba(255,255,255,0.05); border: 1px solid var(--border-color);">
1161
+ <h4 style="margin:0 0 0.6rem 0;">تنظیمات صدا</h4>
1162
+ <div class="setting-row">
1163
+ <span class="label-text">قاری</span>
1164
+ <div class="reader-selection">
1165
+ <button id="readerMohsenBtn" class="reader-button mohsen active" type="button">محسن</button>
1166
+ <button id="readerMinaBtn" class="reader-button mina" type="button">مینا</button>
1167
+ </div>
1168
+ </div>
1169
+ <div class="setting-row">
1170
+ <label class="auto-read-toggle">
1171
+ <input id="autoReadToggle" type="checkbox" />
1172
+ <span class="slider"></span>
1173
+ <span class="label-text">خواندن خودکار نتایج</span>