@jjlmoya/utils-astronomy 1.12.0 → 1.14.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.
@@ -247,322 +247,3 @@ const { ui } = Astro.props;
247
247
  new StarCalculatorApp();
248
248
  </script>
249
249
 
250
- <style>
251
- .star-calc-wrapper {
252
- width: 100%;
253
- max-width: 56rem;
254
- margin: 0 auto;
255
- padding: 2rem;
256
- background: var(--bg-surface);
257
- border: 1px solid var(--border-base);
258
- border-radius: 1.5rem;
259
- box-shadow: 0 25px 50px -12px var(--shadow-base);
260
- }
261
-
262
- .star-calc-grid {
263
- display: grid;
264
- grid-template-columns: 1fr;
265
- gap: 2rem;
266
- }
267
-
268
- @media (min-width: 768px) {
269
- .star-calc-grid {
270
- grid-template-columns: 1fr 1fr;
271
- gap: 3rem;
272
- }
273
- }
274
-
275
- .star-calc-controls {
276
- display: flex;
277
- flex-direction: column;
278
- gap: 1.5rem;
279
- }
280
-
281
- .star-mode-selector {
282
- display: flex;
283
- align-items: center;
284
- gap: 1rem;
285
- }
286
-
287
- .star-mode-label {
288
- font-size: 0.875rem;
289
- font-weight: 500;
290
- color: var(--text-muted, #cbd5e1);
291
- }
292
-
293
- .star-toggle-group {
294
- display: flex;
295
- background: var(--bg-muted);
296
- padding: 0.25rem;
297
- border-radius: 0.75rem;
298
- border: 1px solid var(--border-base);
299
- }
300
-
301
- .star-toggle-btn {
302
- padding: 0.5rem 1rem;
303
- border: none;
304
- background: transparent;
305
- color: var(--text-muted, #94a3b8);
306
- cursor: pointer;
307
- border-radius: 0.5rem;
308
- font-weight: 600;
309
- font-size: 0.875rem;
310
- transition: all 0.2s ease;
311
- }
312
-
313
- .star-toggle-btn.active {
314
- background: var(--color-amber, #f59e0b);
315
- color: var(--color-bg-deep, #0f172a);
316
- box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
317
- }
318
-
319
- .star-control-group {
320
- display: flex;
321
- flex-direction: column;
322
- gap: 0.75rem;
323
- }
324
-
325
- .star-control-label {
326
- font-size: 0.9rem;
327
- font-weight: 500;
328
- color: var(--text-muted, #cbd5e1);
329
- display: flex;
330
- justify-content: space-between;
331
- }
332
-
333
- .star-stepper {
334
- display: flex;
335
- align-items: center;
336
- background: var(--bg-muted);
337
- border: 1px solid var(--border-base);
338
- border-radius: 0.75rem;
339
- overflow: hidden;
340
- }
341
-
342
- .star-step-btn {
343
- width: 4rem;
344
- height: 3.5rem;
345
- border: none;
346
- background: var(--bg-muted);
347
- color: var(--color-amber, #f59e0b);
348
- font-size: 1.5rem;
349
- cursor: pointer;
350
- transition: background 0.2s ease;
351
- }
352
-
353
- .star-step-btn:hover {
354
- background: var(--bg-page);
355
- }
356
-
357
- .star-stepper-input {
358
- flex: 1;
359
- background: transparent;
360
- border: none;
361
- color: var(--text-base);
362
- text-align: center;
363
- font-size: 1.25rem;
364
- font-weight: 600;
365
- outline: none;
366
- width: 100%;
367
- }
368
-
369
- .star-select-wrapper {
370
- position: relative;
371
- width: 100%;
372
- }
373
-
374
- .star-select-arrow {
375
- position: absolute;
376
- right: 0.875rem;
377
- top: 50%;
378
- transform: translateY(-50%);
379
- width: 1rem;
380
- height: 1rem;
381
- color: var(--color-amber, #f59e0b);
382
- pointer-events: none;
383
- }
384
-
385
- .star-select {
386
- appearance: none;
387
- -webkit-appearance: none;
388
- width: 100%;
389
- background: var(--bg-muted);
390
- border: 1px solid var(--border-base);
391
- color: var(--text-base);
392
- padding: 0.875rem 3rem 0.875rem 1rem;
393
- border-radius: 0.75rem;
394
- font-size: 0.95rem;
395
- outline: none;
396
- cursor: pointer;
397
- transition: border-color 0.2s ease;
398
- }
399
-
400
- .star-select:hover {
401
- border-color: var(--text-muted);
402
- }
403
-
404
- .star-select:focus {
405
- border-color: var(--color-amber, #f59e0b);
406
- }
407
-
408
- .star-select option {
409
- background: var(--bg-surface);
410
- color: var(--text-base);
411
- }
412
-
413
- .star-range {
414
- width: 100%;
415
- accent-color: var(--color-amber, #f59e0b);
416
- height: 6px;
417
- border-radius: 3px;
418
- cursor: pointer;
419
- }
420
-
421
- .star-range-labels {
422
- display: flex;
423
- justify-content: space-between;
424
- font-size: 0.75rem;
425
- color: var(--text-muted, #64748b);
426
- }
427
-
428
- .star-npf-controls {
429
- display: none;
430
- flex-direction: column;
431
- gap: 1.5rem;
432
- animation: star-fade-in 0.3s ease;
433
- }
434
-
435
- @keyframes star-fade-in {
436
- from {
437
- opacity: 0;
438
- transform: translateY(-10px);
439
- }
440
- to {
441
- opacity: 1;
442
- transform: translateY(0);
443
- }
444
- }
445
-
446
- .star-results {
447
- display: flex;
448
- flex-direction: column;
449
- gap: 2rem;
450
- justify-content: center;
451
- }
452
-
453
- .star-result-main {
454
- text-align: center;
455
- background: var(--bg-muted);
456
- padding: 2rem;
457
- border-radius: 1.5rem;
458
- border: 1px solid var(--border-base);
459
- }
460
-
461
- .star-time-display {
462
- display: flex;
463
- flex-direction: column;
464
- align-items: center;
465
- margin-bottom: 1rem;
466
- }
467
-
468
- .star-time-value {
469
- font-size: 5rem;
470
- font-weight: 800;
471
- color: var(--color-amber, #f59e0b);
472
- line-height: 1;
473
- text-shadow: 0 0 30px rgba(245, 158, 11, 0.3);
474
- }
475
-
476
- .star-time-unit {
477
- font-size: 1.25rem;
478
- color: var(--text-muted, #94a3b8);
479
- text-transform: uppercase;
480
- letter-spacing: 0.1em;
481
- margin-top: 0.5rem;
482
- }
483
-
484
- .star-result-text {
485
- font-size: 0.95rem;
486
- color: var(--text-muted, #94a3b8);
487
- margin: 0;
488
- }
489
-
490
- .star-simulation {
491
- background: var(--bg-muted);
492
- padding: 1.5rem;
493
- border-radius: 1rem;
494
- border: 1px solid var(--border-base);
495
- }
496
-
497
- .star-sim-label {
498
- display: block;
499
- font-size: 0.85rem;
500
- color: var(--text-muted, #94a3b8);
501
- margin-bottom: 1rem;
502
- text-align: center;
503
- }
504
-
505
- .star-sim-container {
506
- height: 100px;
507
- background: radial-gradient(circle at center, #0f172a 0%, #020617 100%);
508
- border-radius: 0.5rem;
509
- position: relative;
510
- display: flex;
511
- align-items: center;
512
- justify-content: center;
513
- overflow: hidden;
514
- margin-bottom: 1rem;
515
- }
516
-
517
- .star-sim-view {
518
- position: relative;
519
- width: 100%;
520
- height: 100%;
521
- display: flex;
522
- align-items: center;
523
- justify-content: center;
524
- }
525
-
526
- .star-point {
527
- height: 4px;
528
- width: 4px;
529
- background: white;
530
- border-radius: 50%;
531
- box-shadow: 0 0 10px white;
532
- transition: width 0.3s ease, border-radius 0.3s ease;
533
- }
534
-
535
- .star-point.is-trail {
536
- background: linear-gradient(90deg, white, rgba(255, 255, 255, 0.1));
537
- }
538
-
539
- .star-center-marker {
540
- position: absolute;
541
- color: rgba(245, 158, 11, 0.3);
542
- font-size: 1.5rem;
543
- pointer-events: none;
544
- }
545
-
546
- .star-sim-info-row {
547
- text-align: center;
548
- font-size: 0.85rem;
549
- }
550
-
551
- .star-sim-info {
552
- color: var(--color-amber, #f59e0b);
553
- font-weight: 500;
554
- }
555
-
556
- .star-sim-range-wrapper {
557
- margin-top: 1rem;
558
- display: flex;
559
- flex-direction: column;
560
- gap: 0.5rem;
561
- }
562
-
563
- .star-sim-range-label {
564
- font-size: 0.75rem;
565
- color: var(--text-muted, #64748b);
566
- text-align: center;
567
- }
568
- </style>
@@ -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>