@@ -511,4 +511,112 @@ footer {
511511 .accordion-button ::after {
512512 font-size : 0.8rem ;
513513 }
514+ }
515+
516+ /* Translation Widget */
517+ .translate-widget {
518+ position : fixed;
519+ bottom : 30px ;
520+ right : 30px ;
521+ z-index : 9999 ;
522+ font-family : 'JetBrains Mono' , monospace;
523+ }
524+
525+ .translate-btn {
526+ width : 50px ;
527+ height : 50px ;
528+ border-radius : 50% ;
529+ background : rgba (12 , 12 , 12 , 0.9 );
530+ border : 2px solid var (--terminal-green );
531+ color : # fff ;
532+ font-size : 24px ;
533+ cursor : pointer;
534+ box-shadow : 0 0 15px rgba (0 , 255 , 65 , 0.2 );
535+ transition : all 0.3s ease;
536+ display : flex;
537+ align-items : center;
538+ justify-content : center;
539+ backdrop-filter : blur (5px );
540+ }
541+
542+ .translate-btn : hover {
543+ box-shadow : 0 0 25px rgba (0 , 255 , 65 , 0.6 );
544+ transform : scale (1.1 );
545+ background : var (--terminal-green );
546+ }
547+
548+ .translate-widget .active .translate-btn {
549+ background : var (--terminal-green );
550+ box-shadow : 0 0 25px rgba (0 , 255 , 65 , 0.4 );
551+ }
552+
553+ .lang-options {
554+ position : absolute;
555+ bottom : 70px ;
556+ right : 0 ;
557+ background : rgba (12 , 12 , 12 , 0.95 );
558+ border : 1px solid var (--terminal-green );
559+ border-radius : 12px ;
560+ padding : 10px 0 ;
561+ width : 180px ;
562+ display : none;
563+ flex-direction : column;
564+ box-shadow : 0 5px 30px rgba (0 , 0 , 0 , 0.5 );
565+ backdrop-filter : blur (10px );
566+ overflow : hidden;
567+ transform-origin : bottom right;
568+ animation : slideUp 0.3s cubic-bezier (0.165 , 0.84 , 0.44 , 1 );
569+ }
570+
571+ .translate-widget .active .lang-options {
572+ display : flex;
573+ }
574+
575+ @keyframes slideUp {
576+ from {
577+ opacity : 0 ;
578+ transform : scale (0.8 ) translateY (20px );
579+ }
580+
581+ to {
582+ opacity : 1 ;
583+ transform : scale (1 ) translateY (0 );
584+ }
585+ }
586+
587+ .lang-option {
588+ padding : 10px 20px ;
589+ color : var (--text-muted );
590+ cursor : pointer;
591+ transition : all 0.2s ;
592+ font-size : 0.9rem ;
593+ display : flex;
594+ align-items : center;
595+ gap : 10px ;
596+ }
597+
598+ .lang-option : hover {
599+ background : rgba (0 , 255 , 65 , 0.1 );
600+ color : var (--terminal-green );
601+ padding-left : 25px ;
602+ }
603+
604+ .lang-flag {
605+ font-size : 1.2rem ;
606+ }
607+
608+ /* RTL Support */
609+ body .rtl-mode {
610+ direction : rtl;
611+ text-align : right;
612+ }
613+
614+ body .rtl-mode .ms-auto {
615+ margin-left : 0 !important ;
616+ margin-right : auto !important ;
617+ }
618+
619+ body .rtl-mode .me-auto {
620+ margin-left : auto !important ;
621+ margin-right : 0 !important ;
514622}
0 commit comments