@tailwind base;
@tailwind components;
@tailwind utilities;

:root {
  --foreground-rgb: 0, 0, 0;
  --background-start-rgb: 214, 219, 220;
  --background-end-rgb: 255, 255, 255;

  --color-blue: #0ca6f2;
  --color-white: #fff;
  --color-white-rgb: 255, 255, 255;

  /* custom colors (rgb) */
  --color-background-rgb: 16 16 16;

  --color-dark-grey-0-rgb: 23 23 23;
  --color-dark-grey-1-rgb: 34 34 34;
  --color-dark-grey-2-rgb: 41 41 41;
  --color-dark-grey-3-rgb: 53 53 53;
  --color-dark-grey-4-rgb: 57 57 57;
  --color-dark-grey-5-rgb: 112 112 112;
  --color-dark-grey-6-rgb: 136 136 136;
  --color-dark-grey-7-rgb: 198 198 198;
  --color-dark-grey-8-rgb: 232 232 232;
  --color-dark-grey-9-rgb: 244 244 244;

  --color-light-grey-3-rgb: 237 237 237;
  --color-light-grey-7-rgb: 85 85 85;

  --color-action-theme-rgb: 12 166 242;

  --color-status-warning-rgb: 242 170 24;
  --color-status-success-rgb: 82 204 122;
  --color-status-danger-rgb: 230 92 92;

  --dark-code-tag-t-keyword-t-strong-rgb: 37 175 244;
  --dark-code-settings-foreground-rgb: 204 204 204;
  --dark-code-tag-t-list-rgb: 224 108 195;
  --dark-code-tag-t-heading-rgb: 102 153 255;
  --dark-code-tag-t-tag-name-rgb: 122 184 153;
  --dark-code-tag-t-escape-rgb: 217 128 38;

  /* custom var */
  --Ad-bar-Gradient: linear-gradient(
    90deg,
    #0cb1f2 -0.01%,
    #12c0c5 13.53%,
    #256cd4 28.11%,
    #15a1e6 40.61%,
    #0ca6f2 64.05%,
    #01ecb0 91.53%,
    #0cf06e 99.98%
  );
  --Button-Gradient: linear-gradient(
    94deg,
    #5ccae2 0%,
    #0ca6f2 52.08%,
    #4374c4 100%
  );
  --Bg-bar-Gradient: linear-gradient(
    90deg,
    #13367d -1.46%,
    #0f3141 37.65%,
    #006f5d 100%
  );
  --DevX-bar-Gradient: linear-gradient(
    90deg,
    #0ca6f2 -1.46%,
    #0aadc4 19.31%,
    #006fc2 30.37%,
    #0ca6f2 40.95%,
    #01ecb0 95.03%,
    #00f261 100%
  );
  --Section-bar-Gradient: linear-gradient(
    90deg,
    #0ca6f2 -1.46%,
    #0aadc4 7.56%,
    #006fc2 16.61%,
    #0ca6f2 23.05%,
    #01ecb0 91.39%,
    #28ea76 100%
  );
  --Tab-bar-Gradient: linear-gradient(
    180.21deg,
    #0ca6f2 0.18%,
    #0aadc4 9.32%,
    #006fc2 18.5%,
    #0ca6f2 25.03%,
    #01ecb0 94.3%,
    #28ea76 103.03%
  );
}

/* @media (prefers-color-scheme: dark) {
  :root {
    --foreground-rgb: 255, 255, 255;
    --background-start-rgb: 0, 0, 0;
    --background-end-rgb: 0, 0, 0;
  }
} */

html {
  font-family: var(--font-inter);
}

body {
  /* color: rgb(var(--foreground-rgb)); */
  /* background: linear-gradient(
      to bottom,
      transparent,
      rgb(var(--background-end-rgb))
    )
    rgb(var(--background-start-rgb)); */

  &.b1 {
    font-size: 1.125rem;
    line-height: 2.5rem;
  }
  &.b2 {
    font-size: 1rem;
    line-height: 2.5rem;
  }
  &.b3 {
    font-size: 0.875rem;
    line-height: 2rem;
  }
  &.b4 {
    font-size: 0.75rem;
    line-height: 2rem;
  }
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-lexend);
  font-weight: bold;
}

h1 {
  font-size: 3.5rem;
  line-height: 10rem;

  /* @media screen and (max-width: 1280px) {
  }
  @media screen and (max-width: 1024px) {
  } */

  @media screen and (max-width: 768px) {
    font-size: 3rem;
    line-height: 8rem;
  }

  @media screen and (max-width: 640px) {
    font-size: 2.5rem;
    line-height: 4rem;
  }
}
h2 {
  font-size: 3rem;
  line-height: 6rem;

  @media screen and (max-width: 768px) {
    font-size: 2.5rem;
    line-height: 4rem;
  }

  @media screen and (max-width: 640px) {
    font-size: 2rem;
    line-height: 3.5rem;
  }
}
h3 {
  font-size: 2.5rem;
  line-height: 4rem;

  @media screen and (max-width: 768px) {
    font-size: 2rem;
    line-height: 3.5rem;
  }

  @media screen and (max-width: 640px) {
    font-size: 2rem;
    line-height: 3rem;
  }
}
h4 {
  font-size: 2rem;
  line-height: 3.5rem;
}

label {
  font-family: var(--font-inter);

  &.l1 {
    font-weight: bold;
    font-size: 1.5rem;
    line-height: 2.5rem;
  }
  &.l2 {
    font-size: 1.375rem;
    line-height: 2rem;
  }
  &.l3 {
    font-weight: bold;
    font-size: 1.25rem;
    line-height: 2rem;
  }
  &.l4 {
    font-size: 1.25rem;
    line-height: 2rem;
  }
}

code {
  &.c1 {
    font-weight: bold;
    font-size: 1.25rem;
    line-height: 2.5rem;

    @media screen and (max-width: 768px) {
      font-size: 1rem;
      line-height: 2rem;
    }

    @media screen and (max-width: 640px) {
      font-size: 0.875rem;
      line-height: 1.5rem;
    }
  }
  &.c2 {
    font-weight: bold;
    font-size: 1rem;
    line-height: 2rem;
  }
  &.c3 {
    font-size: 0.875rem;
    line-height: 1.5rem;
  }
  &.c4 {
    font-size: 0.75rem;
    line-height: 1.5rem;
  }
}

.opacity-65 {
  opacity: 0.65;
}

.custom-style {
  &-button {
    background: var(--Button-Gradient);
    padding: 0.625rem 1rem;
    border-radius: 1.5625rem;
    &.menu-cta {
      display: flex;
      align-items: center;
      letter-spacing: 0.5px;
      justify-content: center;
      padding: 0;
      width: 136px;
      height: 2rem;
    }
    &.md {
      padding: 14px 2rem;
      line-height: 1.5;
    }
    &:hover {
      opacity: 0.9;
    }
  }
  &-button-link {
    position: relative;
    text-decoration: underline;
    padding-right: 10px;
    &::before {
      content: '';
      width: 12px;
      height: 1px;
      background-color: #fff;
      display: block;
      position: absolute;
      right: -6px;
      top: 0;
      bottom: 0;
      margin: auto;
      transition: all 0.2s ease-in-out;
    }
    &::after {
      content: '';
      font-size: 1.6rem;
      position: absolute;
      right: -5px;
      top: 0;
      bottom: 0;
      margin: auto;
      width: 8px;
      height: 8px;
      display: block;
      border: 1px solid #fff;
      border-left-color: transparent;
      border-bottom-color: transparent;
      transform: rotate(45deg);
      color: #fff;
      pointer-events: none;
      transition: right 0.2s ease-in-out;
    }
    &:hover {
      color: var(--color-blue);
      &::before {
        background-color: var(--color-blue);
        width: 20px;
        right: -14px;
      }
      &::after {
        border: 1px solid var(--color-blue);
        border-left-color: transparent;
        border-bottom-color: transparent;
        color: var(--color-blue);
        right: -13px;
      }
    }
  }
  &-outline-button {
    border: 1px solid #0ca6f2;
    background: transparent;
    padding: 0.625rem 1rem;
    border-radius: 1.5625rem;
    &.menu-cta {
      display: flex;
      align-items: center;
      letter-spacing: 0.5px;
      justify-content: center;
      padding: 0;
      width: 136px;
      height: 2rem;
    }
    &:hover {
      background: var(--Button-Gradient);
    }
  }

  &-ad-bar {
    background: var(--Ad-bar-Gradient);
  }

  &-clip-text {
    background-image: var(--Ad-bar-Gradient);
  }

  &-bg-bar {
    background: var(--Bg-bar-Gradient);
  }
}
