"use client"; import { Icon } from "@iconify/react"; import Image from "next/image"; import { Badge, Button, ButtonIcon, ButtonLabel, Card, Typography, } from "poyraz-ui/atoms"; import { SPONSORS } from "@/data/sponsors"; import { MEDIA_KIT_AGES, MEDIA_KIT_DEVICES, MEDIA_KIT_GENDER, MEDIA_KIT_LOCATIONS, MEDIA_KIT_METRICS, MEDIA_KIT_PERIOD, MEDIA_KIT_TOPICS, type MediaKitAudienceRow, type MediaKitBreakdownRow, type MediaKitLocale, } from "@/data/media-kit"; import type { YouTubeChannelStats } from "@/lib/youtube-channel-stats"; const COPY = { tr: { eyebrow: "Medya kiti · 2026", availability: "İş birliklerine açık", title: "Teknolojiyi üretiyor, deneyimliyor ve anlaşılır şekilde paylaşıyorum.", intro: "Yazılım, teknoloji ve tasarımı gerçek projeler, dürüst deneyimler ve uygulanabilir anlatımlarla buluşturuyorum. Markalarla çalışırken ürünün doğal kullanımını ve izleyici güvenini merkeze alıyorum.", emailCta: "İletişime geç", youtubeCta: "YouTube kanalı", topicsLabel: "İçerik alanları", statsTitle: "Kanal görünümü", liveData: "Canlı YouTube verisi", liveDescription: "Görüntüleme ve abone toplamı saatlik yenilenir; diğer değerler YouTube Studio raporundan gelir.", snapshotDescription: "Ömür boyu performans ve güncel kitle kırılımları YouTube Studio raporundan alınmıştır.", publicTotal: "Herkese açık kanal toplamı", audienceTitle: "Kitle profili", audienceDescription: "İzleyicilerin %69,1’i 18–34 yaş aralığında ve kitlenin %89,2’si Türkiye’den izliyor.", ageTitle: "Yaş dağılımı", genderTitle: "Cinsiyet dağılımı", deviceTitle: "Cihaz türü", locationsTitle: "En çok izleyen yerler", activeTitle: "İzleyicilerin aktif olduğu saatler", activeHours: "16:00–00:00", activeDescription: "Hafta boyunca en yoğun zaman aralığı. Hafta sonu hareketlilik öğleden sonra daha erken başlıyor.", activePeriod: "Yerel saat · GMT +03:00 · Son 28 gün", male: "Erkek", female: "Kadın", partnersTitle: "Birlikte çalıştığım markalar", partnersDescription: "Ürünü gerçekten deneyimlemeye ve içeriğin doğal akışını korumaya dayalı seçili iş birlikleri.", formatsTitle: "İş birliği formatları", formats: [ "Sponsorlu YouTube videosu veya doğal ürün entegrasyonu", "Teknik ürün incelemesi ve kullanım senaryosu", "Kısa video ve çoklu platform içerik paketi", "Uzun dönem marka elçiliği ve içerik serisi", ], ctaTitle: "Teknoloji kitlesine güvenilir bir hikâyeyle ulaşın.", ctaDescription: "Ürününüzü anlayan, deneyimleyen ve izleyicisine açık bir dille anlatan bir iş birliği kurgulayalım.", dataNote: "Performans, demografi, cihaz ve ülke kırılımları ömür boyudur. Aktif saatler son 28 günü gösterir.", }, en: { eyebrow: "Media kit · 2026", availability: "Open to partnerships", title: "I build, experience, and explain technology in a clear way.", intro: "I bring software, technology, and design together through real projects, honest experiences, and practical storytelling. Brand work is grounded in natural product use and audience trust.", emailCta: "Get in touch", youtubeCta: "YouTube channel", topicsLabel: "Content topics", statsTitle: "Channel overview", liveData: "Live YouTube data", liveDescription: "View and subscriber totals refresh hourly; other figures come from YouTube Studio reports.", snapshotDescription: "Lifetime performance and current audience breakdowns come from YouTube Studio reports.", publicTotal: "Public channel total", audienceTitle: "Audience profile", audienceDescription: "69.1% of viewers are between 18 and 34, and 89.2% of the audience watches from Türkiye.", ageTitle: "Age distribution", genderTitle: "Gender distribution", deviceTitle: "Device type", locationsTitle: "Top geographies", activeTitle: "When viewers are on YouTube", activeHours: "4:00 PM–12:00 AM", activeDescription: "The busiest window throughout the week. Weekend activity starts earlier in the afternoon.", activePeriod: "Local time · GMT +03:00 · Last 28 days", male: "Male", female: "Female", partnersTitle: "Brands I have worked with", partnersDescription: "Selected partnerships based on genuine product experience and preserving the natural flow of the content.", formatsTitle: "Partnership formats", formats: [ "Sponsored YouTube video or native product integration", "Technical product review and use-case content", "Short-form video and multi-platform content package", "Long-term brand ambassadorship and content series", ], ctaTitle: "Reach a technology audience through a credible story.", ctaDescription: "Let’s shape a partnership that understands, experiences, and explains your product clearly.", dataNote: "Performance, demographic, device, and geography breakdowns are lifetime figures. Active hours cover the last 28 days.", }, } as const; function formatCompactNumber(value: number, locale: MediaKitLocale) { return new Intl.NumberFormat(locale === "tr" ? "tr-TR" : "en-US", { notation: "compact", maximumFractionDigits: 1, }).format(value); } function AudienceBar({ item, locale, max = 100, label, }: { item: MediaKitAudienceRow; locale: MediaKitLocale; max?: number; label?: string; }) { const width = Math.max((item.value / max) * 100, item.value > 0 ? 2 : 0); const formattedValue = item.value.toLocaleString( locale === "tr" ? "tr-TR" : "en-US", { maximumFractionDigits: 1 }, ); return (