@jjlmoya/utils-astronomy 1.12.0 → 1.13.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -220,337 +220,3 @@ const { ui } = Astro.props;
220
220
  updateSeeingAlert();
221
221
  </script>
222
222
 
223
- <style>
224
- .tscope-wrapper {
225
- width: 100%;
226
- max-width: 56rem;
227
- margin: 0 auto;
228
- padding: 2.5rem;
229
- background: var(--bg-surface);
230
- border: 1px solid var(--border-base);
231
- border-radius: 2rem;
232
- box-shadow: 0 40px 80px -20px var(--shadow-base);
233
- position: relative;
234
- overflow: hidden;
235
- }
236
-
237
- .tscope-grid {
238
- display: grid;
239
- grid-template-columns: 1fr;
240
- gap: 2.5rem;
241
- position: relative;
242
- z-index: 1;
243
- }
244
-
245
- @media (min-width: 850px) {
246
- .tscope-grid {
247
- grid-template-columns: 1.1fr 1fr;
248
- gap: 3.5rem;
249
- }
250
- }
251
-
252
- .tscope-controls {
253
- display: flex;
254
- flex-direction: column;
255
- gap: 2rem;
256
- }
257
-
258
- .tscope-control-group {
259
- display: flex;
260
- flex-direction: column;
261
- gap: 0.85rem;
262
- }
263
-
264
- .tscope-control-label {
265
- font-size: 0.85rem;
266
- font-weight: 700;
267
- color: var(--text-muted, #94a3b8);
268
- text-transform: uppercase;
269
- letter-spacing: 0.05em;
270
- display: flex;
271
- justify-content: space-between;
272
- }
273
-
274
- .tscope-stepper {
275
- display: flex;
276
- align-items: center;
277
- background: var(--bg-muted);
278
- border: 1px solid var(--border-base);
279
- border-radius: 1rem;
280
- overflow: hidden;
281
- transition: border-color 0.3s ease;
282
- }
283
-
284
- .tscope-stepper:focus-within {
285
- border-color: var(--color-purple, #a855f7);
286
- }
287
-
288
- .tscope-step-btn {
289
- width: 4rem;
290
- height: 4rem;
291
- border: none;
292
- background: var(--bg-muted);
293
- color: var(--color-purple, #a855f7);
294
- font-size: 1.8rem;
295
- cursor: pointer;
296
- transition: all 0.2s ease;
297
- display: flex;
298
- align-items: center;
299
- justify-content: center;
300
- }
301
-
302
- .tscope-step-btn:hover {
303
- background: var(--bg-page);
304
- color: var(--color-purple, #a855f7);
305
- }
306
-
307
- .tscope-stepper-input {
308
- flex: 1;
309
- background: transparent;
310
- border: none;
311
- color: var(--text-base);
312
- text-align: center;
313
- font-size: 1.5rem;
314
- font-weight: 700;
315
- outline: none;
316
- width: 100%;
317
- }
318
-
319
- .tscope-select-wrapper {
320
- position: relative;
321
- width: 100%;
322
- }
323
-
324
- .tscope-select-arrow {
325
- position: absolute;
326
- right: 0.875rem;
327
- top: 50%;
328
- transform: translateY(-50%);
329
- width: 1rem;
330
- height: 1rem;
331
- color: var(--color-purple, #a855f7);
332
- pointer-events: none;
333
- }
334
-
335
- .tscope-select {
336
- appearance: none;
337
- -webkit-appearance: none;
338
- width: 100%;
339
- background: var(--bg-muted);
340
- border: 1px solid var(--border-base);
341
- color: var(--text-base);
342
- padding: 1rem 3rem 1rem 1.25rem;
343
- border-radius: 1rem;
344
- font-size: 0.95rem;
345
- font-weight: 600;
346
- outline: none;
347
- cursor: pointer;
348
- transition: border-color 0.3s ease;
349
- }
350
-
351
- .tscope-select:hover {
352
- border-color: var(--color-purple, #a855f7);
353
- }
354
-
355
- .tscope-select:focus {
356
- border-color: var(--color-purple, #a855f7);
357
- }
358
-
359
- .tscope-select option {
360
- background: var(--bg-surface);
361
- color: var(--text-base);
362
- }
363
-
364
- .tscope-range {
365
- width: 100%;
366
- appearance: none;
367
- background: var(--bg-muted);
368
- height: 10px;
369
- border-radius: 20px;
370
- outline: none;
371
- cursor: pointer;
372
- border: 1px solid var(--border-base);
373
- accent-color: var(--color-purple, #a855f7);
374
- }
375
-
376
- .tscope-results {
377
- display: flex;
378
- flex-direction: column;
379
- gap: 2.5rem;
380
- padding: 0.5rem;
381
- }
382
-
383
- .tscope-main-result {
384
- text-align: center;
385
- background: var(--bg-muted);
386
- padding: 3rem 2rem;
387
- border-radius: 2rem;
388
- border: 1px solid var(--border-base);
389
- }
390
-
391
- .tscope-result-title {
392
- font-size: 0.9rem;
393
- color: var(--color-purple, #a855f7);
394
- text-transform: uppercase;
395
- letter-spacing: 0.2em;
396
- margin: 0 0 2rem;
397
- }
398
-
399
- .tscope-resolution-value {
400
- display: flex;
401
- flex-direction: column;
402
- align-items: center;
403
- gap: 0.5rem;
404
- }
405
-
406
- .tscope-resolution-number {
407
- font-size: 6rem;
408
- font-weight: 900;
409
- line-height: 0.9;
410
- background: linear-gradient(to bottom, var(--text-base), var(--color-purple, #a855f7));
411
- -webkit-background-clip: text;
412
- -webkit-text-fill-color: transparent;
413
- background-clip: text;
414
- filter: drop-shadow(0 10px 20px rgba(168, 85, 247, 0.4));
415
- }
416
-
417
- .tscope-resolution-unit {
418
- font-size: 1.15rem;
419
- color: var(--text-muted, #94a3b8);
420
- font-weight: 600;
421
- text-transform: lowercase;
422
- opacity: 0.8;
423
- }
424
-
425
- .tscope-comp-grid {
426
- display: grid;
427
- grid-template-columns: 1fr 1fr;
428
- gap: 1.5rem;
429
- }
430
-
431
- .tscope-comp-card {
432
- background: var(--bg-muted);
433
- padding: 1.25rem;
434
- border-radius: 1.25rem;
435
- text-align: center;
436
- border: 1px solid var(--border-base);
437
- transition: transform 0.3s ease, border-color 0.2s ease;
438
- }
439
-
440
- .tscope-comp-card:hover {
441
- transform: translateY(-5px);
442
- border-color: var(--color-purple, #a855f7);
443
- }
444
-
445
- .tscope-comp-title {
446
- font-size: 0.75rem;
447
- color: var(--text-muted, #64748b);
448
- margin: 0 0 0.75rem;
449
- text-transform: uppercase;
450
- letter-spacing: 0.1em;
451
- }
452
-
453
- .tscope-comp-value {
454
- font-size: 1.75rem;
455
- font-weight: 800;
456
- color: var(--color-pink, #ec4899);
457
- }
458
-
459
- .tscope-seeing-alert {
460
- padding: 1.25rem;
461
- background: var(--bg-muted);
462
- border-left: 4px solid var(--color-warning, #f59e0b);
463
- border-radius: 0.75rem;
464
- font-size: 0.85rem;
465
- color: var(--text-muted);
466
- line-height: 1.6;
467
- display: block;
468
- }
469
-
470
- .tscope-seeing-alert.visible {
471
- animation: tscope-slide-in 0.4s ease-out;
472
- }
473
-
474
- @keyframes tscope-slide-in {
475
- from {
476
- opacity: 0;
477
- transform: translateX(-10px);
478
- }
479
- to {
480
- opacity: 1;
481
- transform: translateX(0);
482
- }
483
- }
484
-
485
- .tscope-visualization {
486
- background: var(--bg-muted);
487
- padding: 2rem;
488
- border-radius: 1.5rem;
489
- border: 1px solid var(--border-base);
490
- }
491
-
492
- .tscope-vis-label {
493
- display: block;
494
- font-size: 0.75rem;
495
- font-weight: 800;
496
- color: var(--text-muted, #475569);
497
- text-transform: uppercase;
498
- letter-spacing: 0.15em;
499
- margin-bottom: 2rem;
500
- text-align: center;
501
- }
502
-
503
- .tscope-sim-container {
504
- height: 140px;
505
- background: radial-gradient(circle at center, #0f172a 0%, #000 100%);
506
- border-radius: 1rem;
507
- display: flex;
508
- align-items: center;
509
- justify-content: center;
510
- position: relative;
511
- border: 1px solid rgba(168, 85, 247, 0.1);
512
- }
513
-
514
- .tscope-binary-system {
515
- display: flex;
516
- align-items: center;
517
- position: relative;
518
- padding: 2rem;
519
- }
520
-
521
- .tscope-star {
522
- width: 8px;
523
- height: 8px;
524
- background: white;
525
- border-radius: 50%;
526
- filter: blur(var(--star-blur, 0)) drop-shadow(0 0 10px #fff) drop-shadow(0 0 20px var(--color-purple, #a855f7));
527
- transition: all 0.5s ease;
528
- position: relative;
529
- z-index: 2;
530
- }
531
-
532
- .tscope-star::after {
533
- content: '';
534
- position: absolute;
535
- top: 50%;
536
- left: 50%;
537
- transform: translate(-50%, -50%);
538
- width: 200%;
539
- height: 200%;
540
- background: radial-gradient(circle, rgba(255, 255, 255, 0.2) 0%, transparent 70%);
541
- pointer-events: none;
542
- }
543
-
544
- .tscope-sim-explanation {
545
- margin-top: 1.5rem;
546
- font-size: 0.8rem;
547
- color: var(--text-muted);
548
- text-align: center;
549
- line-height: 1.6;
550
- letter-spacing: 0.02em;
551
- padding: 1rem;
552
- background: var(--bg-page);
553
- border-radius: 0.75rem;
554
- border: 1px dashed var(--border-base);
555
- }
556
- </style>
@@ -0,0 +1,332 @@
1
+ .tscope-wrapper {
2
+ width: 100%;
3
+ max-width: 56rem;
4
+ margin: 0 auto;
5
+ padding: 2.5rem;
6
+ background: var(--bg-surface);
7
+ border: 1px solid var(--border-base);
8
+ border-radius: 2rem;
9
+ box-shadow: 0 40px 80px -20px var(--shadow-base);
10
+ position: relative;
11
+ overflow: hidden;
12
+ }
13
+
14
+ .tscope-grid {
15
+ display: grid;
16
+ grid-template-columns: 1fr;
17
+ gap: 2.5rem;
18
+ position: relative;
19
+ z-index: 1;
20
+ }
21
+
22
+ @media (min-width: 850px) {
23
+ .tscope-grid {
24
+ grid-template-columns: 1.1fr 1fr;
25
+ gap: 3.5rem;
26
+ }
27
+ }
28
+
29
+ .tscope-controls {
30
+ display: flex;
31
+ flex-direction: column;
32
+ gap: 2rem;
33
+ }
34
+
35
+ .tscope-control-group {
36
+ display: flex;
37
+ flex-direction: column;
38
+ gap: 0.85rem;
39
+ }
40
+
41
+ .tscope-control-label {
42
+ font-size: 0.85rem;
43
+ font-weight: 700;
44
+ color: var(--text-muted, #94a3b8);
45
+ text-transform: uppercase;
46
+ letter-spacing: 0.05em;
47
+ display: flex;
48
+ justify-content: space-between;
49
+ }
50
+
51
+ .tscope-stepper {
52
+ display: flex;
53
+ align-items: center;
54
+ background: var(--bg-muted);
55
+ border: 1px solid var(--border-base);
56
+ border-radius: 1rem;
57
+ overflow: hidden;
58
+ transition: border-color 0.3s ease;
59
+ }
60
+
61
+ .tscope-stepper:focus-within {
62
+ border-color: var(--color-purple, #a855f7);
63
+ }
64
+
65
+ .tscope-step-btn {
66
+ width: 4rem;
67
+ height: 4rem;
68
+ border: none;
69
+ background: var(--bg-muted);
70
+ color: var(--color-purple, #a855f7);
71
+ font-size: 1.8rem;
72
+ cursor: pointer;
73
+ transition: all 0.2s ease;
74
+ display: flex;
75
+ align-items: center;
76
+ justify-content: center;
77
+ }
78
+
79
+ .tscope-step-btn:hover {
80
+ background: var(--bg-page);
81
+ color: var(--color-purple, #a855f7);
82
+ }
83
+
84
+ .tscope-stepper-input {
85
+ flex: 1;
86
+ background: transparent;
87
+ border: none;
88
+ color: var(--text-base);
89
+ text-align: center;
90
+ font-size: 1.5rem;
91
+ font-weight: 700;
92
+ outline: none;
93
+ width: 100%;
94
+ }
95
+
96
+ .tscope-select-wrapper {
97
+ position: relative;
98
+ width: 100%;
99
+ }
100
+
101
+ .tscope-select-arrow {
102
+ position: absolute;
103
+ right: 0.875rem;
104
+ top: 50%;
105
+ transform: translateY(-50%);
106
+ width: 1rem;
107
+ height: 1rem;
108
+ color: var(--color-purple, #a855f7);
109
+ pointer-events: none;
110
+ }
111
+
112
+ .tscope-select {
113
+ appearance: none;
114
+ -webkit-appearance: none;
115
+ width: 100%;
116
+ background: var(--bg-muted);
117
+ border: 1px solid var(--border-base);
118
+ color: var(--text-base);
119
+ padding: 1rem 3rem 1rem 1.25rem;
120
+ border-radius: 1rem;
121
+ font-size: 0.95rem;
122
+ font-weight: 600;
123
+ outline: none;
124
+ cursor: pointer;
125
+ transition: border-color 0.3s ease;
126
+ }
127
+
128
+ .tscope-select:hover {
129
+ border-color: var(--color-purple, #a855f7);
130
+ }
131
+
132
+ .tscope-select:focus {
133
+ border-color: var(--color-purple, #a855f7);
134
+ }
135
+
136
+ .tscope-select option {
137
+ background: var(--bg-surface);
138
+ color: var(--text-base);
139
+ }
140
+
141
+ .tscope-range {
142
+ width: 100%;
143
+ appearance: none;
144
+ background: var(--bg-muted);
145
+ height: 10px;
146
+ border-radius: 20px;
147
+ outline: none;
148
+ cursor: pointer;
149
+ border: 1px solid var(--border-base);
150
+ accent-color: var(--color-purple, #a855f7);
151
+ }
152
+
153
+ .tscope-results {
154
+ display: flex;
155
+ flex-direction: column;
156
+ gap: 2.5rem;
157
+ padding: 0.5rem;
158
+ }
159
+
160
+ .tscope-main-result {
161
+ text-align: center;
162
+ background: var(--bg-muted);
163
+ padding: 3rem 2rem;
164
+ border-radius: 2rem;
165
+ border: 1px solid var(--border-base);
166
+ }
167
+
168
+ .tscope-result-title {
169
+ font-size: 0.9rem;
170
+ color: var(--color-purple, #a855f7);
171
+ text-transform: uppercase;
172
+ letter-spacing: 0.2em;
173
+ margin: 0 0 2rem;
174
+ }
175
+
176
+ .tscope-resolution-value {
177
+ display: flex;
178
+ flex-direction: column;
179
+ align-items: center;
180
+ gap: 0.5rem;
181
+ }
182
+
183
+ .tscope-resolution-number {
184
+ font-size: 6rem;
185
+ font-weight: 900;
186
+ line-height: 0.9;
187
+ background: linear-gradient(to bottom, var(--text-base), var(--color-purple, #a855f7));
188
+ -webkit-background-clip: text;
189
+ -webkit-text-fill-color: transparent;
190
+ background-clip: text;
191
+ filter: drop-shadow(0 10px 20px rgba(168, 85, 247, 0.4));
192
+ }
193
+
194
+ .tscope-resolution-unit {
195
+ font-size: 1.15rem;
196
+ color: var(--text-muted, #94a3b8);
197
+ font-weight: 600;
198
+ text-transform: lowercase;
199
+ opacity: 0.8;
200
+ }
201
+
202
+ .tscope-comp-grid {
203
+ display: grid;
204
+ grid-template-columns: 1fr 1fr;
205
+ gap: 1.5rem;
206
+ }
207
+
208
+ .tscope-comp-card {
209
+ background: var(--bg-muted);
210
+ padding: 1.25rem;
211
+ border-radius: 1.25rem;
212
+ text-align: center;
213
+ border: 1px solid var(--border-base);
214
+ transition: transform 0.3s ease, border-color 0.2s ease;
215
+ }
216
+
217
+ .tscope-comp-card:hover {
218
+ transform: translateY(-5px);
219
+ border-color: var(--color-purple, #a855f7);
220
+ }
221
+
222
+ .tscope-comp-title {
223
+ font-size: 0.75rem;
224
+ color: var(--text-muted, #64748b);
225
+ margin: 0 0 0.75rem;
226
+ text-transform: uppercase;
227
+ letter-spacing: 0.1em;
228
+ }
229
+
230
+ .tscope-comp-value {
231
+ font-size: 1.75rem;
232
+ font-weight: 800;
233
+ color: var(--color-pink, #ec4899);
234
+ }
235
+
236
+ .tscope-seeing-alert {
237
+ padding: 1.25rem;
238
+ background: var(--bg-muted);
239
+ border-left: 4px solid var(--color-warning, #f59e0b);
240
+ border-radius: 0.75rem;
241
+ font-size: 0.85rem;
242
+ color: var(--text-muted);
243
+ line-height: 1.6;
244
+ display: block;
245
+ }
246
+
247
+ .tscope-seeing-alert.visible {
248
+ animation: tscope-slide-in 0.4s ease-out;
249
+ }
250
+
251
+ @keyframes tscope-slide-in {
252
+ from {
253
+ opacity: 0;
254
+ transform: translateX(-10px);
255
+ }
256
+ to {
257
+ opacity: 1;
258
+ transform: translateX(0);
259
+ }
260
+ }
261
+
262
+ .tscope-visualization {
263
+ background: var(--bg-muted);
264
+ padding: 2rem;
265
+ border-radius: 1.5rem;
266
+ border: 1px solid var(--border-base);
267
+ }
268
+
269
+ .tscope-vis-label {
270
+ display: block;
271
+ font-size: 0.75rem;
272
+ font-weight: 800;
273
+ color: var(--text-muted, #475569);
274
+ text-transform: uppercase;
275
+ letter-spacing: 0.15em;
276
+ margin-bottom: 2rem;
277
+ text-align: center;
278
+ }
279
+
280
+ .tscope-sim-container {
281
+ height: 140px;
282
+ background: radial-gradient(circle at center, #0f172a 0%, #000 100%);
283
+ border-radius: 1rem;
284
+ display: flex;
285
+ align-items: center;
286
+ justify-content: center;
287
+ position: relative;
288
+ border: 1px solid rgba(168, 85, 247, 0.1);
289
+ }
290
+
291
+ .tscope-binary-system {
292
+ display: flex;
293
+ align-items: center;
294
+ position: relative;
295
+ padding: 2rem;
296
+ }
297
+
298
+ .tscope-star {
299
+ width: 8px;
300
+ height: 8px;
301
+ background: white;
302
+ border-radius: 50%;
303
+ filter: blur(var(--star-blur, 0)) drop-shadow(0 0 10px #fff) drop-shadow(0 0 20px var(--color-purple, #a855f7));
304
+ transition: all 0.5s ease;
305
+ position: relative;
306
+ z-index: 2;
307
+ }
308
+
309
+ .tscope-star::after {
310
+ content: '';
311
+ position: absolute;
312
+ top: 50%;
313
+ left: 50%;
314
+ transform: translate(-50%, -50%);
315
+ width: 200%;
316
+ height: 200%;
317
+ background: radial-gradient(circle, rgba(255, 255, 255, 0.2) 0%, transparent 70%);
318
+ pointer-events: none;
319
+ }
320
+
321
+ .tscope-sim-explanation {
322
+ margin-top: 1.5rem;
323
+ font-size: 0.8rem;
324
+ color: var(--text-muted);
325
+ text-align: center;
326
+ line-height: 1.6;
327
+ letter-spacing: 0.02em;
328
+ padding: 1rem;
329
+ background: var(--bg-page);
330
+ border-radius: 0.75rem;
331
+ border: 1px dashed var(--border-base);
332
+ }