/* Thumbnail Page Styles */
.thumbnail-page {
  padding: 8rem 1.5rem 4rem;
  display: flex;
  align-items: flex-start;
  justify-content: center;
}

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

.thumbnail-header {
  text-align: center;
  margin-bottom: 2rem;
}

.thumbnail-header h1 {
  font-size: clamp(1.5rem, 4vw, 2rem);
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin-bottom: 0.5rem;
}

.thumbnail-header h1 svg {
  color: var(--orchid);
}

.thumbnail-header p {
  color: var(--text-secondary);
  font-size: 1rem;
}

.thumbnail-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 2rem;
  position: relative;
  overflow: hidden;
}

.thumbnail-card::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(217, 70, 239, 0.08) 0%, transparent 70%);
  pointer-events: none;
}

.thumbnail-form {
  margin-bottom: 0;
}

.input-row {
  display: flex;
  gap: 0.75rem;
}

.input-wrapper {
  flex: 1;
  position: relative;
  display: flex;
  align-items: center;
}

.input-wrapper svg {
  position: absolute;
  left: 1rem;
  color: var(--text-muted);
  pointer-events: none;
}

.input-wrapper .form-input {
  width: 100%;
  padding: 0.875rem 1rem 0.875rem 2.75rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  font-size: 0.95rem;
  color: var(--text-primary);
  transition: all 0.2s;
  font-family: inherit;
}

.input-wrapper .form-input::placeholder {
  color: var(--text-muted);
}

.input-wrapper .form-input:focus {
  outline: none;
  border-color: var(--orchid);
  box-shadow: 0 0 0 3px rgba(217, 70, 239, 0.1);
}

.input-row .btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 1.25rem;
  white-space: nowrap;
  flex-shrink: 0;
  border-radius: 12px !important;
}

/* Result */
.thumbnail-result {
  margin-top: 1.5rem;
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.thumbnail-preview {
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--border);
  margin-bottom: 1rem;
}

.thumbnail-preview img {
  width: 100%;
  display: block;
  object-fit: cover;
}

.thumbnail-info {
  margin-bottom: 1rem;
}

.thumbnail-info h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
  line-height: 1.4;
}

.thumbnail-info p {
  color: var(--text-muted);
  font-size: 0.85rem;
  margin: 0;
}

.download-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 1rem;
  text-decoration: none;
  border-radius: 12px !important;
}

/* Error */
.thumbnail-error {
  margin-top: 1.5rem;
  padding: 1rem;
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.2);
  border-radius: 12px;
}

.thumbnail-error p {
  color: #ef4444;
  font-size: 0.9rem;
  margin: 0;
  text-align: center;
}

/* Supported platforms */
.supported-platforms {
  text-align: center;
  margin-top: 1.5rem;
}

.supported-platforms p {
  color: var(--text-muted);
  font-size: 0.8rem;
}

/* Spinner */
.spinner {
  display: inline-block;
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: white;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}

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

/* Responsive */
@media (max-width: 639px) {
  .thumbnail-page {
    padding: 6rem 1rem 3rem;
  }

  .thumbnail-card {
    padding: 1.25rem;
  }

  .input-row {
    flex-direction: column;
  }

  .input-row .btn {
    justify-content: center;
  }
}
