export default function MarqueeBar() {
  return (
    <>
      <div className="announce">
        <span className="icon">📢</span>
        <div className="ticker">
          <span>
            📣 নতুন বছরের স্বপ্নের পরিকল্পনা আনুষ্ঠানিকভাবে চালু হয়েছে 🎉
          </span>
        </div>
      </div>

      <style jsx>{`
        .announce {
          display: flex;
          align-items: center;
          gap: 10px;
          padding: 7px 14px;
          border-radius: 999px;
          background: linear-gradient(180deg, #002632, #013239);
          border: 1px solid rgba(17, 134, 125, 0.7);
          box-shadow: 0 3px 0 #00333a;
          color: #ffb65b;
          font-size: 14px;
          font-weight: 700;
          overflow: hidden;
          white-space: nowrap;
          margin: 15px 5px;
        }

        .icon {
          flex-shrink: 0;
        }

        .ticker {
          overflow: hidden;
          position: relative;
          flex: 1;
        }

        .ticker span {
          display: inline-block;
          padding-left: 100%;
          animation: ticker 12s linear infinite;
        }

        @keyframes ticker {
          from {
            transform: translateX(0);
          }
          to {
            transform: translateX(-100%);
          }
        }
      `}</style>
    </>
  );
}