/* Mobile-First Header, Ticker, Teams Grid & Common Actions */

/* Top App Header & Live Badge */
.app-top-header {
  margin-bottom: 0.85rem;
}

.brand-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.5rem;
}

.brand-title {
  font-size: 1.35rem;
  font-weight: 900;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, #ffffff 40%, var(--neon-cyan) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.live-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: rgba(0, 255, 135, 0.15);
  color: var(--pitch-green);
  border: 1px solid rgba(0, 255, 135, 0.35);
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-pill);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.pulse-dot {
  width: 7px;
  height: 7px;
  background: var(--pitch-green);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--pitch-green);
  animation: radar-ping 1.6s infinite ease-in-out;
}

@keyframes radar-ping {
  0% { transform: scale(0.9); opacity: 0.6; }
  50% { transform: scale(1.3); opacity: 1; }
  100% { transform: scale(0.9); opacity: 0.6; }
}

/* Compact Ticker Bar */
.ticker-bar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(10, 15, 29, 0.85);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-pill);
  padding: 0.4rem 0.75rem;
  overflow: hidden;
}

.ticker-icon {
  font-size: 0.85rem;
  flex-shrink: 0;
}

.ticker-content {
  font-size: 0.78rem;
  color: var(--text-dim);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Serie A Teams Grid - Mobile 5 Columns x 4 Rows */
.teams-grid-container {
  width: 100%;
  margin-bottom: 0.85rem;
  background: var(--bg-glass);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  padding: 0.65rem 0.45rem;
}

.teams-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0.45rem 0.2rem;
  width: 100%;
}

.team-card-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  min-height: 48px;
  min-width: 48px;
  padding: 0.25rem 0.1rem;
  background: transparent;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.15s ease;
}

.team-card-btn:hover {
  background: rgba(255, 255, 255, 0.06);
}

.team-card-btn:active {
  transform: scale(0.92);
}

.team-card-btn.active {
  background: rgba(0, 240, 255, 0.12);
  border-color: var(--neon-cyan);
  box-shadow: 0 0 8px rgba(0, 240, 255, 0.3);
}

.team-crest-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  transition: transform 0.15s ease;
}

.team-crest-icon::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle, rgba(10, 16, 30, 0.35) 40%, rgba(10, 16, 30, 0.1) 100%);
  pointer-events: none;
}

.team-crest-img {
  width: 26px;
  height: 26px;
  object-fit: contain;
  filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.75));
  position: relative;
  z-index: 1;
  pointer-events: none;
}

.team-card-label {
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  color: var(--text-dim);
  transition: color 0.15s ease;
}

.team-card-btn:hover .team-card-label {
  color: #fff;
}

.team-card-btn.active .team-card-label {
  color: var(--neon-cyan);
  font-weight: 900;
}

/* Touch Ergonomic Action Buttons (Rule 10: >= 48px) */
.btn-action {
  min-height: 48px;
  min-width: 48px;
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  text-decoration: none;
  border: none;
  transition: all 0.15s ease;
}

.btn-action:active {
  transform: scale(0.96);
}
