:root {
  --primary-light: #fff2e9;
  --primary: #E89F71;
  --primary-dark: #D9774B;
  --background: #FAF8F0;
  --surface: #FFFFFF;
  --text: #3D405B;
  --text-subtle: #8D99AE;
  --border: #E0DCD1;
  --error: #BC4749;
  --error-light: rgb(242, 220, 220);
  --success: #6A994E;
}

[data-theme=dark] {
  --primary-light: #fff2e9;
  --primary: #E89F71;
  --primary-dark: #D9774B;
  --background: #242424;
  --surface: #333333;
  --text: #EAEAEA;
  --text-subtle: #9E9E9E;
  --border: #4D4D4D;
  --error: #FF6B6B;
  --error-light: rgb(242, 220, 220);
  --success: #6A994E;
}

.tool-hero {
  margin-bottom: 2.5rem;
}
.tool-hero .eyebrow {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--primary-dark);
  margin-bottom: 0.25rem;
}
.tool-hero h2 {
  border: 0;
  font-size: 2rem;
  margin: 0 0 0.5rem;
  color: var(--text);
}
.tool-hero .intro {
  margin: 0;
  color: var(--text-subtle);
}

.tool-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 2rem;
  box-shadow: 0 30px 70px rgba(61, 64, 91, 0.08);
}
.tool-card .card-header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}
.tool-card .card-header h3 {
  margin: 0 0 0.25rem;
  font-size: 1.3rem;
}
.tool-card .card-header .subtitle {
  margin: 0;
  color: var(--text-subtle);
}
.tool-card .card-header .badge-group {
  display: inline-flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.tool-card .card-header .badge-group .badge {
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  background: var(--primary-light);
  color: var(--primary-dark);
  font-size: 0.85rem;
  font-weight: 600;
}
.tool-card #url-form {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.tool-card #url-form .input-label {
  font-size: 0.95rem;
  font-weight: 600;
}
.tool-card #url-form .input-row {
  display: flex;
  gap: 0.75rem;
  align-items: center;
}
.tool-card #url-form .input-row input[type=url] {
  flex: 1;
  padding: 0.9rem 1rem;
  border-radius: 12px;
  border: 1px solid var(--border);
  font-size: 1rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.tool-card #url-form .input-row input[type=url]:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(232, 159, 113, 0.2);
}
.tool-card #url-form .input-row input[type=url].errored {
  border-color: var(--error);
  background: var(--error-light);
}
.tool-card #url-form .input-row .form-button {
  padding: 0.95rem 1.75rem;
  border: none;
  border-radius: 12px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  background: var(--primary);
  color: #fff;
  transition: background 0.2s ease, transform 0.2s ease;
  min-width: 140px;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 0.4rem;
}
.tool-card #url-form .input-row .form-button:hover {
  background: var(--primary-dark);
}
.tool-card #url-form .input-row .form-button.is-loading .default-label {
  display: none;
}
.tool-card #url-form .input-row .form-button.is-loading .loading-label {
  display: inline;
}
.tool-card #url-form .input-row .form-button .loading-label {
  display: none;
}
.tool-card #url-form .helper-text {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-subtle);
}
.tool-card #url-form .error-message {
  margin: 0;
  font-size: 0.9rem;
  color: var(--error);
  min-height: 1.25rem;
}
.tool-card .result-card {
  margin-top: 1.5rem;
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 1.5rem;
  background: var(--background);
}
.tool-card .result-card[hidden] {
  display: none;
}
.tool-card .result-card .result-body {
  margin-bottom: 1rem;
}
.tool-card .result-card .result-body .result-label {
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  color: var(--text-subtle);
  margin: 0 0 0.25rem;
}
.tool-card .result-card .result-body .result-url {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
}
.tool-card .result-card .result-body .result-url .short-url {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--primary-dark);
  text-decoration: none;
  word-break: break-all;
}
.tool-card .result-card .result-body .result-url .ghost-button {
  background: transparent;
  border: 1px solid var(--primary);
  border-radius: 999px;
  padding: 0.5rem 1.25rem;
  font-weight: 600;
  color: var(--primary);
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}
.tool-card .result-card .result-body .result-url .ghost-button:hover {
  background: var(--primary-light);
}
.tool-card .result-card .result-meta {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1rem;
}
.tool-card .result-card .result-meta .meta-label {
  display: block;
  font-size: 0.85rem;
  color: var(--text-subtle);
}
.tool-card .result-card .result-meta .meta-value {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
}
.tool-card .response-message {
  margin-top: 1rem;
  font-size: 0.95rem;
  color: var(--text-subtle);
  min-height: 1.25rem;
}
.tool-card .response-message.is-error {
  color: var(--error);
}

.tips-grid {
  margin-top: 3rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
}
.tips-grid article {
  padding: 1.25rem;
  border: 1px dashed var(--border);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.6);
}
.tips-grid article h4 {
  margin: 0 0 0.5rem;
}

@media (max-width: 640px) {
  .tool-card {
    padding: 1.5rem;
  }
  .tool-card #url-form .input-row {
    flex-direction: column;
  }
  .tool-card #url-form .input-row input[type=url],
  .tool-card #url-form .input-row .form-button {
    width: 100%;
  }
  .tool-card .result-card .result-url {
    flex-direction: column;
    align-items: flex-start;
  }
}

/*# sourceMappingURL=url-shortener.css.map */
