import { motion } from "framer-motion";
import { ABOUT_ORG } from "@/data/event-data";
import communityImg from "@/assets/community.jpg";
import { Instagram, Facebook, Youtube } from "lucide-react";

const OrgSection = () => (
  <section className="section-padding bg-card py-20 md:py-28">
    <div className="container mx-auto">
      <div className="grid md:grid-cols-2 gap-12 items-center">
        {/* Texto */}
        <motion.div
          initial={{ opacity: 0, y: 30 }}
          whileInView={{ opacity: 1, y: 0 }}
          viewport={{ once: true }}
          transition={{ duration: 0.6 }}
        >
          <h2 className="font-display text-4xl md:text-5xl font-bold mb-6 text-gradient">
            {ABOUT_ORG.title}
          </h2>
          <div className="space-y-4 text-muted-foreground leading-relaxed">
            <p className="whitespace-pre-line">{ABOUT_ORG.history}</p>
            <p className="whitespace-pre-line">{ABOUT_ORG.philosophy}</p>
          </div>

          {/* Redes sociales */}
          <div className="flex gap-4 mt-8">
            {ABOUT_ORG.socials.instagram && (
              <a
                href={ABOUT_ORG.socials.instagram}
                target="_blank"
                rel="noopener noreferrer"
                className="bg-gradient-tropical p-3 rounded-full hover:opacity-80 transition-opacity"
                aria-label="Instagram"
              >
                <Instagram className="w-5 h-5 text-primary-foreground" />
              </a>
            )}
            {ABOUT_ORG.socials.facebook && (
              <a
                href={ABOUT_ORG.socials.facebook}
                target="_blank"
                rel="noopener noreferrer"
                className="bg-gradient-tropical p-3 rounded-full hover:opacity-80 transition-opacity"
                aria-label="Facebook"
              >
                <Facebook className="w-5 h-5 text-primary-foreground" />
              </a>
            )}
            {ABOUT_ORG.socials.youtube && (
              <a
                href={ABOUT_ORG.socials.youtube}
                target="_blank"
                rel="noopener noreferrer"
                className="bg-gradient-tropical p-3 rounded-full hover:opacity-80 transition-opacity"
                aria-label="YouTube"
              >
                <Youtube className="w-5 h-5 text-primary-foreground" />
              </a>
            )}
          </div>
        </motion.div>

        {/* Imagen */}
        <motion.div
          initial={{ opacity: 0, y: 30 }}
          whileInView={{ opacity: 1, y: 0 }}
          viewport={{ once: true }}
          transition={{ duration: 0.6, delay: 0.2 }}
        >
          <img
            src={communityImg}
            alt="Comunidad ZoukLambadaBCN"
            className="rounded-2xl shadow-elevated w-full h-auto object-contain bg-muted"
          />
        </motion.div>
      </div>
    </div>
  </section>
);

export default OrgSection;
