/* Base Styles */
.term {
    width: 6rem;
    height: 6rem;
    display: flex;
}

.term-link {
    display: block;
    width: 100%;
    height: 100%;
    text-decoration: none;
    color: var(--e-global-color-primary) !important;
}

.term-content {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.term-title-lines {
    display: flex;
    justify-content: center;
    flex-direction: column;
    width: 100%;
    font-feature-settings: "ss03";
    z-index: 1;
    transition: 0.5s ease all;
    transform: scale(0.95);
    font-size: 1rem;
    font-weight: bold;
}

.term-title-line[data-line=line-1] {
    text-align: right;
}

.term-title-line[data-line=line-3] {
    text-align: left;
}

.term-bg {
    position: absolute;
}

.term-bg-rounded {
    position: absolute;
    width: 4rem;
    height: 4rem;
    border-radius: 0.75rem;
    mix-blend-mode: multiply;
}

/* Position Classes */
.term-bg-rounded--position-1 {
    left: -0.75rem;
    top: -0.75rem;
    transition: 0.5s ease all;
}

.term-bg-rounded--position-2 {
    right: -0.75rem;
    bottom: -0.75rem;
    transition: 0.5s ease all;
}

.term:hover .term-bg-rounded--position-1 {
    left: -1.25rem;
    top: -1.25rem;
    transition: 0.5s ease all;
}

.term:hover .term-bg-rounded--position-2 {
    right: -1.25rem;
    bottom: -1.25rem;
    transition: 0.5s ease all;
}


/*shining mask*/
/* لایه شیشه‌ای برای افکت برق زدن */
.shining-term {
  overflow: hidden;
}

.term:hover .shining-term::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 300%;
  height: 300%;
  background: linear-gradient(to right,
      rgba(255, 255, 255, 0) 0%,
      rgba(255, 255, 255, 0.7) 50%,
      rgba(255, 255, 255, 0) 100%);
  transform: rotate(30deg);
  opacity: 1;
  z-index: 1;
  animation: glassShineTerm 3s ease-in-out infinite;
}

.term:hover .term-title-lines {
    transform: scale(1);
    text-shadow: 0 0 8px #0000004a;
    transition: 0.5s ease all;
}

@keyframes glassShineTerm {
  0% {
    transform: translateX(-100%) translateY(0) rotate(30deg);
  }

  100% {
    transform: translateX(100%) translateY(0) rotate(30deg);
  }
}

/* Color Variants */
.term-bg-color--red { background-color: hsl(0, 100%, 95%); }
.term-bg-color--orange { background-color: hsl(27, 100%, 95%); }
.term-bg-color--yellow { background-color: hsl(49, 100%, 95%); }
.term-bg-color--green { background-color: hsl(120, 100%, 95%); }
.term-bg-color--teal { background-color: hsl(180, 100%, 95%); }
.term-bg-color--blue { background-color: hsl(210, 100%, 95%); }
.term-bg-color--indigo { background-color: hsl(240, 100%, 95%); }
.term-bg-color--purple { background-color: hsl(270, 100%, 95%); }
.term-bg-color--pink { background-color: hsl(330, 100%, 95%); }
.term-bg-color--gray { background-color: hsl(0, 0%, 95%); }

/* Title Line Alignment */
.term-title-line[data-line="1"] { align-self: flex-start; }
.term-title-line[data-line="2"] { align-self: center; }
.term-title-line[data-line="3"] { align-self: flex-end; }

@media (max-width:1024px) {
    .term {
        width: 4rem;
        height: 4rem;
    }
    .term-title-lines {
        font-size: 0.8rem;
    }
    .term-bg-rounded {
        width: 3rem;
        height: 3rem;
    }

}

@media (max-width:480px) {
    .term {
        width: 5rem;
        height: 5rem;
    }
    .term-title-lines {
        font-size: 0.9rem;
    }

}