"use client";

import SecretLayer from "@/components/SecretLayer";
import OnionDisclosureBar from "@/components/OnionDisclosureBar";
import HubChatterPublicStrip from "@/components/HubChatterPublicStrip";
import AppProviders from "@/components/AppProviders";
import DarkWebLaunchFooter from "@/components/DarkWebLaunchFooter";
import RaffleCountdownBanner from "@/components/RaffleCountdownBanner";

export default function RootLayoutClient({ children }: { children: React.ReactNode }) {
  return (
    <>
      <AppProviders>
        <div className="flex min-h-screen flex-col">
          {/* Raffle countdown sticky bar — visible on every page */}
          <RaffleCountdownBanner />
          <div className="flex-1">{children}</div>
          <DarkWebLaunchFooter />
        </div>
        {/* Must stay inside AppProviders — uses useAccount() */}
        <HubChatterPublicStrip />
      </AppProviders>
      <SecretLayer />
      <OnionDisclosureBar />
    </>
  );
}
