/**
 * WordPressSharedHosting.tsx — dedicated landing page for managed WordPress.
 *
 * This is the "Shared Hosting → WordPress" variant (managed WordPress with
 * LiteSpeed + Redis). It is intentionally separate from the legacy
 * `/wordpress-hosting` landing page so both can coexist while we align
 * content.
 */
import {
  Zap,
  ShieldCheck,
  RefreshCw,
  Bug,
  GitBranch,
  Layers,
} from "lucide-react";
import HostingPlanDetail, {
  HostingPlanDetailConfig,
} from "./HostingPlanDetail";

const config: HostingPlanDetailConfig = {
  name: "WordPress Hosting",
  tagline: "Managed · cached · secured",
  heroTitle: "Managed WordPress Hosting, tuned for speed",
  heroDescription:
    "Managed WordPress hosting with LiteSpeed cache, Redis object cache, automatic core updates, staging environments, and malware scanning — all on NVMe SSD. Your WordPress site, fast out of the box.",
  accentColor: "#21759b",
  accentColorSoft: "#eff6fb",
  heroIcon: (
    <svg
      viewBox="0 0 24 24"
      fill="currentColor"
      aria-hidden="true"
      className="w-7 h-7"
    >
      <path d="M12 2a10 10 0 1 0 10 10A10 10 0 0 0 12 2Zm0 18a8 8 0 1 1 8-8 8 8 0 0 1-8 8Zm-4.42-11.3L10 16l1.5-4.2 1.7 4.2 2.4-7.3H14l-1.2 3.8-1.3-3.8h-1.5l-1.2 3.8-1.2-3.8Z" />
    </svg>
  ),
  externalUrl: "https://doiteasy.net/wordpress-hosting/",
  tiers: [
    {
      name: "WP Starter",
      price: "$3.99",
      cadence: "/mo",
      features: [
        "1 WordPress site",
        "10 GB NVMe storage",
        "LiteSpeed cache",
        "Free SSL + CDN",
        "Daily backups",
      ],
      ctaLabel: "Choose Starter",
    },
    {
      name: "WP Pro",
      price: "$7.99",
      cadence: "/mo",
      highlight: true,
      features: [
        "5 WordPress sites",
        "40 GB NVMe storage",
        "LiteSpeed + Redis cache",
        "1-click staging",
        "Auto WP core updates",
        "Malware scan & removal",
      ],
      ctaLabel: "Choose Pro",
    },
    {
      name: "WP Agency",
      price: "$13.99",
      cadence: "/mo",
      features: [
        "Unlimited WordPress sites",
        "100 GB NVMe storage",
        "Premium support SLA",
        "White-label staging",
        "Advanced firewall",
        "Dedicated IP",
      ],
      ctaLabel: "Choose Agency",
    },
  ],
  features: [
    {
      icon: <Zap className="w-6 h-6" />,
      title: "LiteSpeed + Redis",
      desc:
        "Full-page cache with LiteSpeed and Redis object cache mean instant page loads.",
    },
    {
      icon: <Layers className="w-6 h-6" />,
      title: "1-Click Staging",
      desc:
        "Clone your live site to a staging URL, test safely, then push changes back in one click.",
    },
    {
      icon: <RefreshCw className="w-6 h-6" />,
      title: "Auto Core Updates",
      desc:
        "WordPress core, plugins, and themes stay updated automatically — on your schedule.",
    },
    {
      icon: <Bug className="w-6 h-6" />,
      title: "Malware Scan",
      desc:
        "Continuous malware scanning with automatic removal of known threats.",
    },
    {
      icon: <ShieldCheck className="w-6 h-6" />,
      title: "WAF & DDoS Protection",
      desc:
        "Application-layer firewall blocks bad bots and mitigates DDoS attacks.",
    },
    {
      icon: <GitBranch className="w-6 h-6" />,
      title: "Git-friendly",
      desc:
        "Deploy wp-content via Git, or use WP-CLI over SSH for power-user workflows.",
    },
  ],
  faqs: [
    {
      q: "Will my existing WordPress site work here?",
      a: "Yes. Our team provides free migration for any WordPress site, including database, uploads, themes and plugins — usually within 24 hours.",
    },
    {
      q: "Can I use any WordPress theme or plugin?",
      a: "Yes, with one small exception: we block a tiny list of known-malicious or performance-breaking plugins. Everything else is fair game.",
    },
    {
      q: "What happens if my site gets hacked?",
      a: "Our malware scanner alerts us and our team will clean the infection for free on managed plans. Daily backups let us roll back if needed.",
    },
    {
      q: "Do you include a staging environment?",
      a: "Yes — WP Pro and WP Agency include 1-click staging so you can safely test changes before pushing them live.",
    },
  ],
};

export default function WordPressSharedHosting() {
  return <HostingPlanDetail config={config} />;
}