// portal-icons.jsx — brand SVG icons + scenic art

const IconX = (p) => (
  <svg viewBox="0 0 24 24" fill="currentColor" {...p}>
    <path d="M18.244 2.25h3.308l-7.227 8.26 8.502 11.24H16.17l-5.214-6.817L4.99 21.75H1.68l7.73-8.835L1.254 2.25H8.08l4.713 6.231zm-1.161 17.52h1.833L7.084 4.126H5.117z"/>
  </svg>
);
const IconLine = (p) => (
  <svg viewBox="0 0 24 24" fill="currentColor" {...p}>
    <path d="M24 10.304c0-5.369-5.383-9.738-12-9.738S0 4.935 0 10.304c0 4.814 4.27 8.846 10.035 9.608.391.084.923.258 1.058.592.121.303.079.778.039 1.085l-.171 1.027c-.053.303-.242 1.186 1.039.647 1.281-.54 6.911-4.069 9.428-6.967C23.176 14.393 24 12.458 24 10.304zM7.69 13.21H5.299a.632.632 0 01-.632-.631V7.802a.632.632 0 011.263 0v4.145H7.69a.632.632 0 010 1.263zm2.476-.631a.632.632 0 01-1.263 0V7.802a.632.632 0 011.263 0zm5.69 0a.63.63 0 01-.631.631.626.626 0 01-.51-.252l-2.452-3.339v2.96a.632.632 0 01-1.263 0V7.802a.631.631 0 011.142-.378l2.452 3.339V7.802a.632.632 0 011.263 0zm3.82-2.704a.632.632 0 010 1.263h-1.758v1.13h1.758a.631.631 0 010 1.262h-2.39a.632.632 0 01-.631-.631V7.802a.632.632 0 01.631-.631h2.39a.632.632 0 010 1.263h-1.758v1.13z"/>
  </svg>
);
const IconFB = (p) => (
  <svg viewBox="0 0 24 24" fill="currentColor" {...p}>
    <path d="M24 12.073c0-6.627-5.373-12-12-12s-12 5.373-12 12c0 5.99 4.388 10.954 10.125 11.854v-8.385H7.078v-3.47h3.047V9.43c0-3.007 1.792-4.669 4.533-4.669 1.312 0 2.686.235 2.686.235v2.953H15.83c-1.491 0-1.956.925-1.956 1.874v2.25h3.328l-.532 3.47h-2.796v8.385C19.612 23.027 24 18.062 24 12.073z"/>
  </svg>
);
const IconIG = (p) => (
  <svg viewBox="0 0 24 24" fill="currentColor" {...p}>
    <path d="M12 2.163c3.204 0 3.584.012 4.85.07 3.252.148 4.771 1.691 4.919 4.919.058 1.265.069 1.645.069 4.849 0 3.205-.012 3.584-.069 4.849-.149 3.225-1.664 4.771-4.919 4.919-1.266.058-1.644.07-4.85.07-3.204 0-3.584-.012-4.849-.07-3.26-.149-4.771-1.699-4.919-4.92-.058-1.265-.07-1.644-.07-4.849 0-3.204.013-3.583.07-4.849.149-3.227 1.664-4.771 4.919-4.919 1.266-.057 1.645-.069 4.849-.069zM12 0C8.741 0 8.333.014 7.053.072 2.695.272.273 2.69.073 7.052.014 8.333 0 8.741 0 12c0 3.259.014 3.668.072 4.948.2 4.358 2.618 6.78 6.98 6.98C8.333 23.986 8.741 24 12 24c3.259 0 3.668-.014 4.948-.072 4.354-.2 6.782-2.618 6.979-6.98.059-1.28.073-1.689.073-4.948 0-3.259-.014-3.667-.072-4.947-.196-4.354-2.617-6.78-6.979-6.98C15.668.014 15.259 0 12 0zm0 5.838a6.162 6.162 0 100 12.324 6.162 6.162 0 000-12.324zM12 16a4 4 0 110-8 4 4 0 010 8zm6.406-11.845a1.44 1.44 0 100 2.881 1.44 1.44 0 000-2.881z"/>
  </svg>
);
const IconCopy = (p) => (
  <svg viewBox="0 0 24 24" fill="none" stroke="currentColor" strokeWidth="1.8" strokeLinecap="round" strokeLinejoin="round" {...p}>
    <rect x="9" y="9" width="13" height="13" rx="2"/>
    <path d="M5 15H4a2 2 0 01-2-2V4a2 2 0 012-2h9a2 2 0 012 2v1"/>
  </svg>
);
const IconYT = (p) => (
  <svg viewBox="0 0 24 24" fill="currentColor" {...p}>
    <path d="M23.498 6.186a3.016 3.016 0 00-2.122-2.136C19.505 3.545 12 3.545 12 3.545s-7.505 0-9.377.505A3.017 3.017 0 00.502 6.186C0 8.07 0 12 0 12s0 3.93.502 5.814a3.016 3.016 0 002.122 2.136c1.871.505 9.376.505 9.376.505s7.505 0 9.377-.505a3.015 3.015 0 002.122-2.136C24 15.93 24 12 24 12s0-3.93-.502-5.814zM9.545 15.568V8.432L15.818 12l-6.273 3.568z"/>
  </svg>
);

// Cinematic mountain backdrop for hero (satoyama at dusk)
function HeroScape() {
  return (
    <svg viewBox="0 0 1440 900" preserveAspectRatio="xMidYMid slice">
      <defs>
        <linearGradient id="hsky" x1="0" x2="0" y1="0" y2="1">
          <stop offset="0%" stopColor="#1d2a24"/>
          <stop offset="34%" stopColor="#33372a"/>
          <stop offset="60%" stopColor="#1a2018"/>
          <stop offset="100%" stopColor="#0a0e0a"/>
        </linearGradient>
        <radialGradient id="hsun" cx="68%" cy="30%" r="40%">
          <stop offset="0%" stopColor="#e6c08a" stopOpacity=".55"/>
          <stop offset="55%" stopColor="#c8965a" stopOpacity=".12"/>
          <stop offset="100%" stopColor="#c8965a" stopOpacity="0"/>
        </radialGradient>
        <filter id="hgrain">
          <feTurbulence type="fractalNoise" baseFrequency="1.1" numOctaves="2" stitchTiles="stitch"/>
          <feColorMatrix values="0 0 0 0 0.06  0 0 0 0 0.06  0 0 0 0 0.05  0 0 0 0.5 0"/>
        </filter>
      </defs>
      <rect width="1440" height="900" fill="url(#hsky)"/>
      <rect width="1440" height="900" fill="url(#hsun)"/>
      {/* sun */}
      <circle cx="980" cy="255" r="60" fill="#edcf9a" opacity=".5"/>
      <circle cx="980" cy="255" r="110" fill="#edcf9a" opacity=".08"/>
      {/* mist band */}
      <ellipse cx="720" cy="500" rx="900" ry="80" fill="#3a4636" opacity=".4"/>
      {/* far ridge */}
      <path d="M0,470 L120,400 L260,440 L400,360 L560,420 L720,345 L880,410 L1040,350 L1200,400 L1360,355 L1440,380 L1440,900 L0,900 Z" fill="#222c20" opacity=".9"/>
      {/* mid ridge */}
      <path d="M0,560 L160,490 L340,535 L500,455 L680,520 L860,455 L1040,520 L1220,470 L1440,500 L1440,900 L0,900 Z" fill="#161e15"/>
      {/* terraced fields hint */}
      <path d="M0,660 L220,610 L440,650 L640,600 L860,648 L1080,605 L1300,640 L1440,620 L1440,900 L0,900 Z" fill="#0d130c"/>
      {/* river */}
      <path d="M380,900 Q520,780 560,720 Q600,660 720,640" fill="none" stroke="#46584a" strokeWidth="40" opacity=".25" strokeLinecap="round"/>
      <path d="M400,900 Q540,790 580,730" fill="none" stroke="#5a6e58" strokeWidth="10" opacity=".3" strokeLinecap="round"/>
      <rect width="1440" height="900" filter="url(#hgrain)" opacity=".42"/>
    </svg>
  );
}

Object.assign(window, { IconX, IconLine, IconFB, IconIG, IconCopy, IconYT, HeroScape });
