@import "./base.css";

.seo-tool {
  min-height: 100vh;
  background: linear-gradient(108deg, #220f22 0.99%, #0f0b05 99.53%);
}

.seo-tool a {
  transition: color 0.25s ease, opacity 0.25s ease;
}

.seo-tool a:hover {
  opacity: 1;
  color: white;
}

.seo-tool header,
.tool-footer {
  padding: 16px 0;
  background: rgba(255, 255, 255, 0.05);
}

.seo-tool header .fixed-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.tool-footer {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.25);
}

.header-download {
  font-weight: 600;
  font-size: 14px;
  opacity: 0.8;
}

.header-logo {
  display: flex;
  font-weight: 600;
  font-size: 18px;
  color: rgba(255, 255, 255, 0.8);
  align-items: center;
  gap: 8px;
}

.fixed-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  gap: 16px;
}

.seo-tool h1 {
  font-size: 24px;
  font-style: normal;
  font-weight: 600;
  opacity: 0.8;
  margin-top: 40px;
  margin-bottom: 32px;
}

.seo-tool__content {
  padding: 40px 0;
}

.converter {
  display: flex;
  flex-direction: column;
}

.converter .seo-tool__content {
  flex-grow: 1;
}

.panel {
  position: relative;
  padding: 24px;
  border-radius: 16px;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.08) 0%,
    rgba(255, 255, 255, 0.05) 100%
  );
  box-shadow: 0px 2px 2px 0px rgba(255, 255, 255, 0.1) inset,
    0px 0px 0px 2px rgba(0, 0, 0, 0.15);
  width: 100%;
}

.panel--border {
  background: transparent;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.075);
}

.converter-boxes {
  width: 100%;
  display: flex;
  gap: 24px;
  align-items: stretch;
}

.converter-boxes > * {
  flex-grow: 1;
}

.panel__title {
  font-weight: 500;
  font-size: 18px;
  text-align: center;
  margin-top: 16px;
  opacity: 0.95;
}

.panel form {
  display: flex;
  flex-direction: column;
  align-items: center;
}

fieldset {
  outline: none;
  border: 0;
  width: 100%;
}

[disabled] .stylish-button {
  opacity: 0.5;
}

.stylish-button {
  cursor: pointer;
  position: relative;
  display: inline-block;
  border-radius: 8px;
  background: linear-gradient(
    131deg,
    var(--color-dark-purple) 0%,
    var(--color-pink) 48.2%,
    var(--color-dark-yellow) 100%
  );
  box-shadow: 0px 1px 2px 0px rgba(255, 255, 255, 0.5) inset;
  padding: 12px 24px;
  text-shadow: 0px 1px 3px rgba(0, 0, 0, 0.2), 0px 1px 0px rgba(0, 0, 0, 0.1);
  font-size: 14px;
  font-style: normal;
  font-weight: 600;
  line-height: normal;
  text-transform: uppercase;
  text-decoration: none;
  color: rgba(255, 255, 255, 1);

  transition: box-shadow 0.2s ease, transform 0.2s ease;
  transform: translate3d(0, 0, 0);

  margin-top: 16px;
  outline: none;
  border: 0;
}

.stylish-button:after {
  content: "";
  position: absolute;
  border-radius: 8px;
  inset: 0;
  background: white;
  opacity: 0;
  mix-blend-mode: overlay;
  pointer-events: none;

  transition: opacity 0.2s ease;
}

.stylish-button:hover,
.stylish-button:focus {
  box-shadow: 0px 1px 2px 0px rgba(255, 255, 255, 0.25) inset;
}

.stylish-button:hover::after,
.stylish-button:focus::after {
  opacity: 0.4;
}

.stylish-button:active {
  box-shadow: 0px 1px 2px 0px rgba(255, 255, 255, 0.25) inset,
    0 0 0 4px rgba(255, 255, 255, 0.12);
  transform: translate3d(0, 2px, 0);
}

.panel .stylish-button {
  width: 100%;
  text-align: center;
}

.color-input {
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.5);
  box-shadow: 0px 2px 4px 0px rgba(0, 0, 0, 0.25) inset;
  border: 0;
  outline: none;
  color: #fff;
  text-align: center;
  font-family: "IBM Plex Mono", monospace;
  font-size: 20px;
  font-style: normal;
  font-weight: 400;
  line-height: normal;
  height: 48px;
  width: 100%;
}

[disabled] .color-input,
.color-input[disabled] {
  background: rgba(0, 0, 0, 0.25);
}

.color-input::placeholder {
  color: rgba(255, 255, 255, 0.15);
}

.input-group {
  display: flex;
  gap: 16px;
  margin: 40px 0 24px 0;
}

.input-with-hint {
  text-align: center;
  width: 100%;
}

.input-hint {
  color: #fff;
  text-align: center;
  font-size: 12px;
  font-style: normal;
  font-weight: 500;
  line-height: normal;
  opacity: 0.5;
  margin-top: 12px;
}

@media screen and (max-width: 600px) {
  .fixed-container {
    display: block;
  }

  .converter-boxes {
    display: flex;
    flex-direction: column;
  }

  .color-input {
    font-size: 16px;
  }

  .seo-tool h1 {
    font-size: 20px;
    text-align: center;
    margin: 0 0 32px;
  }

  .seo-tool__content {
    align-items: center;
  }
}
