
import { Button } from "@/components/ui/button";
import { Card, CardContent, CardHeader, CardTitle } from "@/components/ui/card";
import { Users, Target, Award, Globe, Zap, Shield } from "lucide-react";
import { useTranslation } from "react-i18next";
import SEO from "@/components/SEO";

const About = () => {
  const { t } = useTranslation();

  // Get the current URL for Open Graph
  const currentUrl = typeof window !== 'undefined' ? window.location.href : 'https://shopcall.ai/about';

  const values = [
    {
      icon: Target,
      title: t('about.values.mission.title'),
      description: t('about.values.mission.description')
    },
    {
      icon: Users,
      title: t('about.values.customerFirst.title'),
      description: t('about.values.customerFirst.description')
    },
    {
      icon: Globe,
      title: t('about.values.globalReach.title'),
      description: t('about.values.globalReach.description')
    },
    {
      icon: Award,
      title: t('about.values.excellence.title'),
      description: t('about.values.excellence.description')
    }
  ];

  const teamMembers = [
    {
      name: t('about.team.members.sarah.name'),
      role: t('about.team.members.sarah.role'),
      bio: t('about.team.members.sarah.bio'),
      image: "SJ"
    },
    {
      name: t('about.team.members.marcus.name'),
      role: t('about.team.members.marcus.role'),
      bio: t('about.team.members.marcus.bio'),
      image: "MC"
    },
    {
      name: t('about.team.members.emma.name'),
      role: t('about.team.members.emma.role'),
      bio: t('about.team.members.emma.bio'),
      image: "ER"
    },
    {
      name: t('about.team.members.david.name'),
      role: t('about.team.members.david.role'),
      bio: t('about.team.members.david.bio'),
      image: "DK"
    }
  ];

  return (
    <div className="min-h-screen bg-slate-900 text-white">
      <SEO
        title={t('about.seo.title')}
        description={t('about.seo.description')}
        keywords={t('about.seo.keywords')}
        ogTitle={t('about.seo.ogTitle')}
        ogDescription={t('about.seo.ogDescription')}
        ogUrl={currentUrl}
        ogType="website"
      />
      {/* Header */}
      <header className="border-b border-slate-800">
        <div className="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8">
          <div className="flex items-center justify-between h-16">
            <div className="flex items-center gap-3">
              <img src="/uploads/e0ddbf09-622c-426a-851f-149776e300c0.png" alt="ShopCall.ai" className="w-8 h-8" />
              <span className="text-xl font-bold text-white">ShopCall.ai</span>
            </div>
            <Button variant="outline" className="border-slate-600 text-slate-300 hover:bg-slate-800" asChild>
              <a href="/">{t('about.backHome')}</a>
            </Button>
          </div>
        </div>
      </header>

      {/* Hero Section */}
      <section className="py-20">
        <div className="max-w-4xl mx-auto px-4 sm:px-6 lg:px-8 text-center">
          <h1 className="text-5xl font-bold mb-6">{t('about.title')}</h1>
          <p className="text-xl text-slate-300 mb-8 leading-relaxed">
            {t('about.hero.description')}
          </p>
          <div className="grid md:grid-cols-3 gap-8 mt-12">
            <div className="text-center">
              <div className="text-3xl font-bold text-[#52b3d0] mb-2">1,000+</div>
              <div className="text-slate-400">{t('about.hero.stats.businesses')}</div>
            </div>
            <div className="text-center">
              <div className="text-3xl font-bold text-[#52b3d0] mb-2">10M+</div>
              <div className="text-slate-400">{t('about.hero.stats.calls')}</div>
            </div>
            <div className="text-center">
              <div className="text-3xl font-bold text-[#52b3d0] mb-2">50+</div>
              <div className="text-slate-400">{t('about.hero.stats.languages')}</div>
            </div>
          </div>
        </div>
      </section>

      {/* Values Section */}
      <section className="py-20 bg-slate-800/50">
        <div className="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8">
          <div className="text-center mb-16">
            <h2 className="text-4xl font-bold mb-6">{t('about.values.title')}</h2>
            <p className="text-xl text-slate-300 max-w-3xl mx-auto">
              {t('about.values.subtitle')}
            </p>
          </div>
          
          <div className="grid md:grid-cols-2 lg:grid-cols-4 gap-8">
            {values.map((value, index) => (
              <Card key={index} className="bg-slate-700/50 border-slate-600">
                <CardHeader className="text-center">
                  <div className="w-12 h-12 bg-[#52b3d0]/20 rounded-lg flex items-center justify-center mb-4 mx-auto">
                    <value.icon className="h-6 w-6 text-[#52b3d0]" />
                  </div>
                  <CardTitle className="text-white text-lg">{value.title}</CardTitle>
                </CardHeader>
                <CardContent>
                  <p className="text-slate-300 text-center">{value.description}</p>
                </CardContent>
              </Card>
            ))}
          </div>
        </div>
      </section>

      {/* Team Section */}
      <section className="py-20">
        <div className="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8">
          <div className="text-center mb-16">
            <h2 className="text-4xl font-bold mb-6">{t('about.team.title')}</h2>
            <p className="text-xl text-slate-300 max-w-3xl mx-auto">
              {t('about.team.subtitle')}
            </p>
          </div>
          
          <div className="grid md:grid-cols-2 lg:grid-cols-4 gap-8">
            {teamMembers.map((member, index) => (
              <Card key={index} className="bg-slate-700/50 border-slate-600 text-center">
                <CardHeader>
                  <div className="w-20 h-20 bg-[#52b3d0] rounded-full flex items-center justify-center mx-auto mb-4">
                    <span className="text-xl font-bold text-white">{member.image}</span>
                  </div>
                  <CardTitle className="text-white text-lg">{member.name}</CardTitle>
                  <p className="text-[#52b3d0] text-sm">{member.role}</p>
                </CardHeader>
                <CardContent>
                  <p className="text-slate-300 text-sm">{member.bio}</p>
                </CardContent>
              </Card>
            ))}
          </div>
        </div>
      </section>

      {/* CTA Section */}
      <section className="py-20 bg-slate-800/50">
        <div className="max-w-4xl mx-auto px-4 sm:px-6 lg:px-8 text-center">
          <h2 className="text-4xl font-bold mb-6">{t('about.cta.title')}</h2>
          <p className="text-xl text-slate-300 mb-8">
            {t('about.cta.description')}
          </p>
          <Button size="lg" className="bg-[#52b3d0] hover:bg-[#4a9fbc] text-white px-8 py-4 text-lg" asChild>
            <a href="/signup">
              {t('about.cta.button')}
              <Zap className="ml-2 h-5 w-5" />
            </a>
          </Button>
        </div>
      </section>

      {/* Footer */}
      <footer className="bg-slate-900 border-t border-slate-800 py-8">
        <div className="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 text-center">
          <div className="flex justify-center items-center gap-4 text-sm text-slate-500">
            <span>{t('about.footer.copyright')}</span>
            <span>•</span>
            <a href="/privacy" className="hover:text-slate-300">{t('about.footer.privacy')}</a>
            <span>•</span>
            <a href="/contact" className="hover:text-slate-300">{t('about.footer.contact')}</a>
          </div>
        </div>
      </footer>
    </div>
  );
};

export default About;
