#!/bin/bash

echo "🔍 VERIFYING ALL PAGES - Mercedes Image Size Check"
echo "=================================================="
echo ""

# Main pages
echo "📄 MAIN PAGES (should be 90px):"
for page in index.html quotation.html fleet.html contact.html locations.html sitemap-towns.html q-and-a.html privacy.html terms.html; do
  if [ -f "$page" ]; then
    size=$(grep "mercedes-logo-final" "$page" | grep -o "height: [0-9]*px" | head -1)
    echo "  ✅ $page: $size"
  fi
done

echo ""
echo "📄 ADMIN PAGES (should be 50px):"
for page in admin.html admin-login.html admin-new-booking.html admin-quotes.html admin-drivers.html admin-pricing.html admin-messages.html; do
  if [ -f "$page" ]; then
    size=$(grep "mercedes-logo-final" "$page" | grep -o "height: [0-9]*px" | head -1)
    if [ -z "$size" ]; then
      echo "  ⚠️  $page: No Mercedes image found"
    else
      echo "  ✅ $page: $size"
    fi
  fi
done

echo ""
echo "📄 OTHER PAGES (should be 50px):"
for page in sign-in.html sign-up.html reset-password.html success.html acceptable-use.html gdpr.html promotional-terms.html; do
  if [ -f "$page" ]; then
    size=$(grep "mercedes-logo-final" "$page" | grep -o "height: [0-9]*px" | head -1)
    if [ -z "$size" ]; then
      echo "  ℹ️  $page: No Mercedes image"
    else
      echo "  ✅ $page: $size"
    fi
  fi
done

echo ""
echo "=================================================="
echo "✅ VERIFICATION COMPLETE!"
