|
420 | 420 | cursor: not-allowed; |
421 | 421 | } |
422 | 422 |
|
423 | | -/* ========== TERM MODAL ========== */ |
| 423 | +/* ========== TERM MODAL - NOTION STYLE REDESIGN ========== */ |
424 | 424 | .modal-overlay { |
425 | 425 | display: none; |
426 | 426 | position: fixed; |
427 | 427 | top: 0; |
428 | 428 | left: 0; |
429 | 429 | width: 100%; |
430 | 430 | height: 100%; |
431 | | - background: rgba(0, 0, 0, 0.8); |
432 | | - backdrop-filter: blur(5px); |
| 431 | + background: rgba(0, 0, 0, 0.85); |
| 432 | + backdrop-filter: blur(8px); |
433 | 433 | z-index: 1000; |
434 | 434 | justify-content: center; |
435 | 435 | align-items: center; |
|
441 | 441 | } |
442 | 442 |
|
443 | 443 | .term-modal-content { |
444 | | - background: linear-gradient(135deg, var(--bg-darker), var(--bg-dark)); |
445 | | - border: 1px solid rgba(201, 162, 39, 0.3); |
| 444 | + background: linear-gradient(180deg, #1a1a22 0%, #12121a 100%); |
| 445 | + border: 1px solid rgba(255, 255, 255, 0.08); |
446 | 446 | border-radius: 16px; |
447 | 447 | width: 100%; |
448 | | - max-width: 600px; |
| 448 | + max-width: 640px; |
449 | 449 | max-height: 90vh; |
450 | | - overflow-y: auto; |
451 | | - animation: modalSlideIn 0.3s ease; |
| 450 | + overflow: hidden; |
| 451 | + box-shadow: |
| 452 | + 0 25px 50px -12px rgba(0, 0, 0, 0.7), |
| 453 | + 0 0 0 1px rgba(255, 255, 255, 0.05); |
| 454 | + animation: notionModalIn 0.25s cubic-bezier(0.16, 1, 0.3, 1); |
452 | 455 | } |
453 | 456 |
|
454 | | -@keyframes modalSlideIn { |
| 457 | +@keyframes notionModalIn { |
455 | 458 | from { |
456 | 459 | opacity: 0; |
457 | | - transform: translateY(-20px); |
| 460 | + transform: translateY(-10px) scale(0.98); |
458 | 461 | } |
459 | 462 | to { |
460 | 463 | opacity: 1; |
461 | | - transform: translateY(0); |
| 464 | + transform: translateY(0) scale(1); |
462 | 465 | } |
463 | 466 | } |
464 | 467 |
|
| 468 | +/* Modal Header */ |
465 | 469 | .term-modal-content .modal-header { |
466 | 470 | display: flex; |
467 | 471 | justify-content: space-between; |
468 | 472 | align-items: center; |
469 | 473 | padding: 1.25rem 1.5rem; |
470 | | - border-bottom: 1px solid rgba(255, 255, 255, 0.1); |
| 474 | + border-bottom: 1px solid rgba(255, 255, 255, 0.06); |
| 475 | + background: rgba(255, 255, 255, 0.02); |
471 | 476 | } |
472 | 477 |
|
473 | 478 | .term-modal-content .modal-header h3 { |
474 | 479 | font-family: 'Cinzel', serif; |
| 480 | + font-size: 1.25rem; |
| 481 | + font-weight: 600; |
475 | 482 | color: var(--gold); |
476 | | - font-size: 1.5rem; |
477 | 483 | margin: 0; |
| 484 | + text-shadow: 0 0 20px rgba(201, 162, 39, 0.3); |
478 | 485 | } |
479 | 486 |
|
480 | 487 | .modal-close { |
481 | | - background: none; |
| 488 | + width: 32px; |
| 489 | + height: 32px; |
| 490 | + display: flex; |
| 491 | + align-items: center; |
| 492 | + justify-content: center; |
| 493 | + background: transparent; |
482 | 494 | border: none; |
| 495 | + border-radius: 8px; |
483 | 496 | color: var(--text-secondary); |
484 | | - font-size: 2rem; |
| 497 | + font-size: 1.5rem; |
485 | 498 | cursor: pointer; |
486 | | - line-height: 1; |
487 | | - transition: color 0.3s ease; |
| 499 | + transition: all 0.15s ease; |
488 | 500 | } |
489 | 501 |
|
490 | 502 | .modal-close:hover { |
| 503 | + background: rgba(255, 255, 255, 0.06); |
491 | 504 | color: var(--gold); |
492 | 505 | } |
493 | 506 |
|
| 507 | +/* Modal Body */ |
494 | 508 | .term-modal-content .modal-body { |
495 | 509 | padding: 1.5rem; |
| 510 | + overflow-y: auto; |
| 511 | + max-height: calc(90vh - 160px); |
496 | 512 | } |
497 | 513 |
|
| 514 | +/* Detail Grid - Notion Property Layout */ |
498 | 515 | .term-detail-grid { |
499 | | - display: grid; |
500 | | - grid-template-columns: 1fr 1fr; |
501 | | - gap: 1rem; |
| 516 | + display: flex; |
| 517 | + flex-direction: column; |
| 518 | + gap: 0.75rem; |
502 | 519 | } |
503 | 520 |
|
504 | 521 | .detail-section { |
505 | | - background: rgba(0, 0, 0, 0.2); |
506 | | - border-radius: 8px; |
507 | | - padding: 1rem; |
| 522 | + background: rgba(255, 255, 255, 0.02); |
| 523 | + border: 1px solid rgba(255, 255, 255, 0.05); |
| 524 | + border-radius: 10px; |
| 525 | + padding: 1rem 1.25rem; |
| 526 | + transition: all 0.2s ease; |
| 527 | +} |
| 528 | + |
| 529 | +.detail-section:hover { |
| 530 | + background: rgba(255, 255, 255, 0.04); |
| 531 | + border-color: rgba(255, 255, 255, 0.08); |
508 | 532 | } |
509 | 533 |
|
510 | 534 | .detail-section.full-width { |
|
515 | 539 | display: flex; |
516 | 540 | align-items: center; |
517 | 541 | gap: 0.5rem; |
518 | | - font-size: 0.8rem; |
| 542 | + font-size: 0.7rem; |
| 543 | + font-weight: 600; |
519 | 544 | color: var(--text-secondary); |
520 | | - margin-bottom: 0.5rem; |
521 | 545 | text-transform: uppercase; |
522 | | - letter-spacing: 0.5px; |
| 546 | + letter-spacing: 0.8px; |
| 547 | + margin-bottom: 0.6rem; |
523 | 548 | } |
524 | 549 |
|
525 | 550 | .detail-section label i { |
| 551 | + font-size: 0.8rem; |
526 | 552 | color: var(--gold); |
| 553 | + opacity: 0.8; |
527 | 554 | } |
528 | 555 |
|
529 | 556 | .detail-value { |
530 | 557 | font-size: 1rem; |
531 | 558 | color: var(--text-primary); |
532 | 559 | word-break: break-word; |
| 560 | + line-height: 1.5; |
533 | 561 | } |
534 | 562 |
|
535 | 563 | .detail-value.translation { |
536 | 564 | color: var(--gold); |
537 | 565 | font-weight: 600; |
| 566 | + font-size: 1.1rem; |
| 567 | + padding: 0.5rem 0.75rem; |
| 568 | + background: rgba(201, 162, 39, 0.1); |
| 569 | + border-radius: 6px; |
| 570 | + border-left: 3px solid var(--gold); |
538 | 571 | } |
539 | 572 |
|
540 | 573 | .detail-value.chinese { |
541 | | - font-size: 1.5rem; |
| 574 | + font-size: 1.75rem; |
| 575 | + letter-spacing: 2px; |
| 576 | + padding: 0.5rem 0; |
542 | 577 | } |
543 | 578 |
|
544 | 579 | .detail-value.context { |
545 | | - line-height: 1.5; |
| 580 | + line-height: 1.6; |
546 | 581 | color: var(--text-secondary); |
| 582 | + font-size: 0.9rem; |
| 583 | + font-style: italic; |
547 | 584 | } |
548 | 585 |
|
549 | 586 | .detail-value.aliases { |
|
553 | 590 | } |
554 | 591 |
|
555 | 592 | .detail-value.aliases span { |
556 | | - background: rgba(201, 162, 39, 0.2); |
557 | | - padding: 0.25rem 0.5rem; |
558 | | - border-radius: 4px; |
559 | | - font-size: 0.85rem; |
| 593 | + display: inline-flex; |
| 594 | + align-items: center; |
| 595 | + padding: 0.35rem 0.7rem; |
| 596 | + background: rgba(201, 162, 39, 0.12); |
| 597 | + border: 1px solid rgba(201, 162, 39, 0.25); |
| 598 | + border-radius: 6px; |
| 599 | + font-size: 0.8rem; |
| 600 | + font-weight: 500; |
560 | 601 | color: var(--gold); |
| 602 | + transition: all 0.15s ease; |
561 | 603 | } |
562 | 604 |
|
| 605 | +.detail-value.aliases span:hover { |
| 606 | + background: rgba(201, 162, 39, 0.2); |
| 607 | + border-color: var(--gold); |
| 608 | +} |
| 609 | + |
| 610 | +/* Category Badge */ |
563 | 611 | .category-badge { |
564 | 612 | display: inline-flex; |
565 | 613 | align-items: center; |
566 | | - gap: 0.4rem; |
567 | | - padding: 0.4rem 0.8rem; |
568 | | - border-radius: 6px; |
| 614 | + gap: 0.5rem; |
| 615 | + padding: 0.5rem 0.9rem; |
| 616 | + border-radius: 8px; |
569 | 617 | font-size: 0.85rem; |
| 618 | + font-weight: 500; |
| 619 | + transition: all 0.2s ease; |
| 620 | +} |
| 621 | + |
| 622 | +.category-badge:hover { |
| 623 | + transform: scale(1.02); |
570 | 624 | } |
571 | 625 |
|
| 626 | +/* Status Badge */ |
572 | 627 | .status-badge { |
573 | | - display: inline-block; |
574 | | - padding: 0.4rem 0.8rem; |
575 | | - border-radius: 6px; |
| 628 | + display: inline-flex; |
| 629 | + align-items: center; |
| 630 | + padding: 0.5rem 0.9rem; |
| 631 | + border-radius: 8px; |
576 | 632 | font-size: 0.85rem; |
577 | 633 | font-weight: 600; |
| 634 | + letter-spacing: 0.3px; |
578 | 635 | } |
579 | 636 |
|
580 | 637 | .status-badge.translate { |
581 | | - background: rgba(39, 174, 96, 0.2); |
582 | | - color: #27ae60; |
| 638 | + background: rgba(39, 174, 96, 0.15); |
| 639 | + color: #4ade80; |
| 640 | + border: 1px solid rgba(39, 174, 96, 0.3); |
583 | 641 | } |
584 | 642 |
|
585 | 643 | .status-badge.no-translate { |
586 | | - background: rgba(231, 76, 60, 0.2); |
587 | | - color: #e74c3c; |
| 644 | + background: rgba(231, 76, 60, 0.15); |
| 645 | + color: #f87171; |
| 646 | + border: 1px solid rgba(231, 76, 60, 0.3); |
588 | 647 | } |
589 | 648 |
|
| 649 | +/* Modal Footer */ |
590 | 650 | .term-modal-content .modal-footer { |
591 | 651 | display: flex; |
592 | 652 | justify-content: flex-end; |
593 | | - gap: 1rem; |
| 653 | + gap: 0.75rem; |
594 | 654 | padding: 1rem 1.5rem; |
595 | | - border-top: 1px solid rgba(255, 255, 255, 0.1); |
| 655 | + border-top: 1px solid rgba(255, 255, 255, 0.06); |
| 656 | + background: rgba(0, 0, 0, 0.15); |
596 | 657 | } |
597 | 658 |
|
598 | 659 | .btn-copy { |
599 | | - display: flex; |
| 660 | + display: inline-flex; |
600 | 661 | align-items: center; |
601 | 662 | gap: 0.5rem; |
602 | | - padding: 0.75rem 1.25rem; |
| 663 | + padding: 0.65rem 1.25rem; |
603 | 664 | background: linear-gradient(135deg, var(--gold), var(--gold-dark)); |
604 | 665 | border: none; |
605 | 666 | border-radius: 8px; |
606 | 667 | color: var(--bg-dark); |
607 | 668 | font-weight: 600; |
| 669 | + font-size: 0.85rem; |
608 | 670 | cursor: pointer; |
609 | | - transition: all 0.3s ease; |
| 671 | + transition: all 0.2s ease; |
610 | 672 | } |
611 | 673 |
|
612 | 674 | .btn-copy:hover { |
613 | | - transform: translateY(-2px); |
614 | | - box-shadow: 0 4px 15px rgba(201, 162, 39, 0.3); |
| 675 | + transform: translateY(-1px); |
| 676 | + box-shadow: 0 4px 12px rgba(201, 162, 39, 0.35); |
| 677 | +} |
| 678 | + |
| 679 | +.btn-copy:active { |
| 680 | + transform: translateY(0); |
615 | 681 | } |
616 | 682 |
|
617 | 683 | .btn-close { |
618 | | - padding: 0.75rem 1.25rem; |
619 | | - background: rgba(255, 255, 255, 0.1); |
620 | | - border: 1px solid rgba(255, 255, 255, 0.2); |
| 684 | + padding: 0.65rem 1.25rem; |
| 685 | + background: transparent; |
| 686 | + border: 1px solid rgba(255, 255, 255, 0.12); |
621 | 687 | border-radius: 8px; |
622 | 688 | color: var(--text-primary); |
| 689 | + font-size: 0.85rem; |
| 690 | + font-weight: 500; |
623 | 691 | cursor: pointer; |
624 | | - transition: all 0.3s ease; |
| 692 | + transition: all 0.15s ease; |
625 | 693 | } |
626 | 694 |
|
627 | 695 | .btn-close:hover { |
628 | | - border-color: var(--text-primary); |
| 696 | + background: rgba(255, 255, 255, 0.04); |
| 697 | + border-color: rgba(255, 255, 255, 0.2); |
629 | 698 | } |
630 | 699 |
|
631 | 700 | /* ========== RESPONSIVE ========== */ |
|
0 commit comments