/* Home screen UI for Streamtape Downloader.
   Custom component classes live here so the page does not depend on
   utility classes that may be missing from the vendored Tailwind build. */

[hidden] {
  display: none !important;
}

body {
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", Roboto, sans-serif;
}

.st-glow {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(60rem 30rem at 50% -10%, rgba(59, 130, 246, 0.18), transparent 70%),
    radial-gradient(40rem 24rem at 90% 110%, rgba(168, 85, 247, 0.12), transparent 70%);
}

.st-logo {
  width: 4.5rem;
  height: 4.5rem;
  border-radius: 1rem;
  box-shadow: 0 12px 32px rgba(59, 130, 246, 0.25);
}

.st-title {
  background: linear-gradient(90deg, #ffffff 0%, #bfdbfe 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.st-card {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  width: 100%;
  padding: 1.1rem;
  text-align: left;
  background: rgba(17, 24, 39, 0.72);
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 1rem;
  backdrop-filter: blur(6px);
}

.st-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #9ca3af;
}

.st-optional {
  margin-left: 0.35rem;
  font-weight: 500;
  text-transform: none;
  letter-spacing: normal;
  color: #6b7280;
}

.st-row {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.st-row-end {
  align-items: stretch;
}

.st-hint {
  font-size: 0.75rem;
  color: #6b7280;
}

.st-input {
  width: 100%;
  padding: 0.7rem 0.85rem;
  font-size: 0.95rem;
  color: #f9fafb;
  background: #030712;
  border: 1px solid #374151;
  border-radius: 0.6rem;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.st-input::placeholder {
  color: #4b5563;
}

.st-input:focus {
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.25);
}

.st-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 1.1rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: #f9fafb;
  border: 1px solid transparent;
  border-radius: 0.6rem;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease,
    transform 0.05s ease;
}

.st-btn:active {
  transform: translateY(1px);
}

.st-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.st-btn-primary {
  background: #2563eb;
  border-color: #3b82f6;
}

.st-btn-primary:hover:not(:disabled) {
  background: #1d4ed8;
}

.st-btn-ghost {
  background: rgba(17, 24, 39, 0.6);
  border-color: rgba(148, 163, 184, 0.28);
  color: #d1d5db;
}

.st-btn-ghost:hover:not(:disabled) {
  border-color: #60a5fa;
  color: #ffffff;
}

.st-panel {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  width: 100%;
}

.st-panel-title {
  font-size: 0.95rem;
  font-weight: 600;
  color: #f3f4f6;
}

.st-status {
  padding: 0.7rem 0.85rem;
  font-size: 0.85rem;
  border-radius: 0.6rem;
  border: 1px solid transparent;
  text-align: left;
}

.st-status.is-error {
  color: #fecaca;
  background: rgba(127, 29, 29, 0.35);
  border-color: rgba(248, 113, 113, 0.4);
}

.st-status.is-info {
  color: #e5e7eb;
  background: rgba(17, 24, 39, 0.72);
  border-color: rgba(148, 163, 184, 0.22);
}

.st-result {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  padding: 1rem;
  background: rgba(5, 150, 105, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.4);
  border-radius: 1rem;
  text-align: left;
}

.st-result-link {
  font-size: 1rem;
  font-weight: 600;
  color: #6ee7b7;
  word-break: break-all;
  text-decoration: none;
}

.st-result-link:hover {
  text-decoration: underline;
}

.st-result-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.st-foot {
  font-size: 0.72rem;
  color: #4b5563;
}

@media (min-width: 640px) {
  .st-row:not(.st-row-end) {
    flex-direction: row;
    align-items: stretch;
  }

  .st-row:not(.st-row-end) .st-input {
    flex: 1 1 auto;
  }

  .st-row:not(.st-row-end) .st-btn {
    flex: 0 0 auto;
  }

  .st-btn-ghost {
    align-self: center;
  }
}