App Setup & Deployment Guide
Follow these steps to connect your Firebase project and deploy the application.

Step 1: Find Your Firebase Project ID

Go to Project Settings (click the gear icon ⚙️ next to 'Project Overview' in your Firebase Console). Your Project ID is listed on the General tab. It will look like 'trendlens-ai-f123b'.

Step 2: Update the .firebaserc file

Open the `.firebaserc` file in your project's root directory. Replace the placeholder text with your actual Firebase Project ID.

Step 3: Create a Web App in Firebase

In your project's dashboard, click the web icon (</>) to add a new web app. Give it a name (e.g., 'TrendLens Web') and click 'Register app'.

Step 4: Find Your Firebase Web App Config

After registering, Firebase will show you a `firebaseConfig` object. Copy the values for `apiKey`, `authDomain`, `projectId`, etc.

Step 5: Fill in the .env file

Open the `.env` file in the project's root directory. Paste the values from the `firebaseConfig` object into the corresponding `NEXT_PUBLIC_` variables in the file.

Step 6: Enable Email/Password Authentication

In the Firebase Console, go to Authentication > Sign-in method tab. Click on 'Email/Password' and enable it.

Step 7: Set up Firestore Database

Go to Firestore Database > Create database. Start in 'production mode' and choose a region. This is where your user data will be stored.

Step 8: Deploy Your App

Once all the steps above are complete, your app is ready. You can deploy it using Firebase App Hosting from your terminal with `firebase deploy`.