/* Reusable component styles */

/* ── Announcement Ticker ── */
.ticker-bar {
  display: flex;
  align-items: center;
  background: #087fff;
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.8rem;
  height: 36px;
  overflow: hidden;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1001;
  letter-spacing: 0.01em;
}

.ticker-label {
  flex-shrink: 0;
  background: #E7DD36;
  color: #0f172a;
  font-weight: 800;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 0 1.1rem;
  height: 100%;
  display: flex;
  align-items: center;
}

.ticker-track-wrap {
  flex: 1;
  overflow: hidden;
  height: 100%;
  display: flex;
  align-items: center;
}

.ticker-track {
  display: flex;
  gap: 0;
  white-space: nowrap;
  animation: ticker-scroll 40s linear infinite;
}

.ticker-track span {
  padding: 0 3rem;
  opacity: 0.85;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.ticker-thumb {
  height: 22px;
  width: 32px;
  object-fit: cover;
  border-radius: 3px;
  flex-shrink: 0;
}

.ticker-track span::after {
  content: "•";
  margin-left: 3rem;
  opacity: 0.3;
}

.ticker-track span:last-child::after {
  content: "";
}

@keyframes ticker-scroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.ticker-bar:hover .ticker-track {
  animation-play-state: paused;
}

nav {
  display: flex;
  gap: 1.5rem;
  padding: 1rem 2rem;
  background: #fff;
  border-bottom: 1px solid #eee;
}

nav a {
  text-decoration: none;
  color: #333;
}

nav a:hover { color: #0070f3; }

footer {
  text-align: center;
  padding: 2rem;
  border-top: 1px solid #eee;
  font-size: 0.875rem;
  color: #666;
}

form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 480px;
}

form input, form textarea {
  padding: 0.5rem;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 1rem;
}

form button {
  padding: 0.6rem 1.2rem;
  background: #087fff;
  color: #fff;
  border: none;
  border-radius: 4px;
  cursor: poInter;
}
