:root {
  --mint: #1fffa9;
  --red: #e43f45;
  --blue: #0974ff;
  --white: #ffffff;
  --black: #000000;
  --mint-rgb: 31, 255, 169;
  --red-rgb: 228, 63, 69;
  --blue-rgb: 9, 116, 255;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Segoe UI", Arial, sans-serif;
}

/* BACKGROUND FUTURISTA */

body {
  /* background:
    radial-gradient(
      circle at 50% 120%,
      rgba(var(--blue-rgb), 0.25),
      transparent 60%
    ),
    radial-gradient(
      circle at 0% 0%,
      rgba(var(--mint-rgb), 0.15),
      transparent 50%
    ),
    radial-gradient(
      circle at 100% 0%,
      rgba(var(--red-rgb), 0.15),
      transparent 50%
    ),
    url("./bg.png"); */

  background-size: cover;
  background-position: center;
  background-attachment: fixed;

  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background: radial-gradient(circle at 30% 20%, #0f2a25, #050808 60%);

  color: white;
  padding: 24px;
}

/* CONTAINER */

.container {
  width: 100%;
  max-width: 520px;
}

/* CARD FUTURISTA */

.card {
  background: rgba(23, 23, 23, 0.8);
  backdrop-filter: blur(12px);

  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 20px;

  padding: 32px;

  box-shadow:
    0 0 25px rgba(0, 0, 0, 0.6),
    0 0 8px rgba(var(--mint-rgb), 0.15);

  transition: all 0.25s ease;
}

.card:hover {
  box-shadow:
    0 0 30px rgba(0, 0, 0, 0.7),
    0 0 12px rgba(var(--mint-rgb), 0.25);
}

.creator {
  text-align: center;
  color: var(--mint);
  font-size: 14px;
  margin-top: 10px;
}

.creator-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  margin-top: 4px;
  margin-bottom: 8px;

  a {
    outline: none;
    text-decoration: none;
  }

  .instagram-icon {
    width: 18px;
    height: 18px;
  }
}

/* TITULO */

h1 {
  font-size: 28px;
  margin-bottom: 8px;
  text-align: center;
  letter-spacing: 0.5px;
}

.subtitle {
  color: #9a9a9a;
  text-align: center;
  margin-bottom: 24px;
}

/* INPUT */

.url-box {
  margin-bottom: 20px;
}

.url-box input {
  width: 100%;
  padding: 18px;

  border-radius: 14px;
  border: 1px solid #2b2b2b;

  background: #111;
  color: white;
  font-size: 15px;

  transition: 0.2s;
}

.url-box input::placeholder {
  color: #6b6b6b;
}

.url-box input:focus {
  outline: none;
  border-color: var(--mint);

  box-shadow: 0 0 10px rgba(var(--mint-rgb), 0.3);
}

/* FORMATOS */

.formats {
  display: flex;
  gap: 12px;
  margin-bottom: 20px;
}

.format-option {
  flex: 1;

  background: #111;
  border: 1px solid #2a2a2a;

  border-radius: 12px;
  padding: 14px;

  text-align: center;
  cursor: pointer;

  transition: 0.2s;
}

.format-option:hover {
  border-color: var(--mint);
}

.format-option input {
  margin-right: 8px;
}

.format-option:has(input[type="radio"]:checked) {
  border-color: var(--mint);
  box-shadow: 0 0 8px rgba(var(--mint-rgb), 0.3);
}

.format-option input[type="radio"] {
  appearance: none;
  width: 16px;
  height: 16px;

  border: 2px solid #888;
  border-radius: 50%;

  position: relative;
  top: 2px;
}

.format-option input[type="radio"]:checked {
  border-color: var(--mint);
  background: radial-gradient(circle, var(--mint) 45%, transparent 46%);
}

/* BOTÃO */

button {
  width: 100%;
  padding: 14px;

  border: none;
  border-radius: 12px;

  background: var(--mint);

  color: var(--black);
  font-size: 16px;
  font-weight: bold;

  cursor: pointer;

  transition: all 0.25s ease;
}

button:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 15px rgba(var(--mint-rgb), 0.6);
}

button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* STATUS */

.status {
  margin-top: 18px;
  text-align: center;
  color: #d0d0d0;
}

.status.success {
  color: var(--mint);
  font-weight: 600;
}

.status.error {
  color: var(--red);
}

/* RESULT */

.result {
  margin-top: 18px;
  text-align: center;
}

.result .download-hint {
  color: #b3b3b3;
  margin-bottom: 12px;
}

.result a {
  display: inline-block;

  margin-top: 8px;

  text-decoration: none;
  color: white;

  background: var(--blue);

  padding: 12px 18px;
  border-radius: 10px;

  transition: 0.2s;
}

.result a:hover {
  box-shadow: 0 0 10px rgba(var(--blue-rgb), 0.6);
}

/* LOADING */

.loading {
  display: flex;
  flex-direction: column;
  align-items: center;

  gap: 16px;

  margin-top: 24px;
  padding: 24px;
}

.loading.hidden {
  display: none;
}

.spinner {
  width: 48px;
  height: 48px;

  border: 4px solid #2a2a2a;
  border-top-color: var(--mint);

  border-radius: 50%;

  animation: spin 0.9s linear infinite;
}

.loading-text {
  color: #b3b3b3;
  font-size: 15px;
  animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.6;
  }
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* MOBILE WARNING */

.mobile-warning {
  text-align: center;
  padding: 24px 16px;
}

.mobile-warning.hidden {
  display: none;
}

.mobile-warning-icon {
  font-size: 48px;
  display: block;
  margin-bottom: 16px;
}

.mobile-warning h2 {
  font-size: 22px;
  margin-bottom: 12px;
  color: #fff;
}

.mobile-warning p {
  color: #9a9a9a;
  line-height: 1.5;
  font-size: 15px;
}

#desktopContent.hidden {
  display: none;
}

/* FOOTER */

.footer {
  display: flex;
  align-items: center;
  justify-content: center;

  gap: 8px;
  margin-top: 32px;
}

body.is-mobile .footer {
  margin-top: 8px;
}

.footer-text {
  color: #6b6b6b;
  font-size: 13px;
}

.footer-logo {
  height: 20px;
  width: auto;
  object-fit: contain;
}
