@font-face {
  font-family: 'Hack';
  src: url('/public/Hack-Regular.ttf') format('truetype');
}

:root {
  --bg-primary: #0b0910;
  --bg-secondary: #0d121e;
  --text-primary: #ffffff;
  --text-secondary: #a0a0a0;
  --accent-warning: #ffaa00;
  --accent-error: #ff4444;
  --accent-info: #44aaff;
  --card-bg: rgba(255, 255, 255, 0.05);
  --card-border: rgba(255, 255, 255, 0.1);
  --shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

* {
  box-sizing: border-box;
}

html {
  font-size: clamp(0.8rem, 0.8rem + 0.5vw, 1rem);
  background: linear-gradient(135deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
  color: var(--text-primary);
  font-family: 'Hack', 'Consolas', 'Monaco', monospace;
  height: 100vh;
  width: 100%;
}

body {
  padding: 0;
  margin: 0;
  height: 100%;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  min-height: 100vh;
}

main {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0;
  width: 100%;
  flex: 1;
}

article {
  background: var(--card-bg);
  backdrop-filter: blur(20px);
  border: 1px solid var(--card-border);
  border-radius: 12px;
  padding: 1rem 1.5rem;
  box-shadow: var(--shadow);
  transition: all 0.3s ease;
  width: 90vw;
  max-width: 90vw;
  min-height: 70px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1rem;
  box-sizing: border-box;
  overflow: hidden;
}

article > section {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  min-width: 0;
}

article > section.off-air {
  align-items: center;
}

article > section > header {
  display: flex;
  align-items: center;
  gap: 1rem;
}

article > aside {
  display: flex;
  align-items: center;
  justify-content: center;
}

article > section > header > span {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: bold;
  transition: all 0.3s ease;
  position: relative;
  flex-shrink: 0;
}

article > section > header > span::before {
  content: '';
  position: absolute;
  top: -3px;
  left: -3px;
  right: -3px;
  bottom: -3px;
  border-radius: 50%;
  background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.1));
  z-index: -1;
}

article > section > header > span.off-air {
  background: linear-gradient(135deg, #1e1e1e, #141414);
}

article > section > header > span.on-air {
  background: linear-gradient(135deg, #1E88E5, #3F51B5);
  animation: pulse-qap 1s infinite;
  box-shadow: 0 0 20px rgba(30, 136, 229, 0.5);
}

article > section > header > span.ptt-active {
  background: linear-gradient(135deg, #E63946, #FF6B6B);
  animation: pulse-tx 1s infinite;
  box-shadow: 0 0 20px rgba(230, 57, 70, 0.6);
}

@keyframes pulse-qap {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

@keyframes pulse-tx {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.1); }
}

article > section > header > h1 {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0;
  flex-grow: 1;
}

article > section > footer {
  font-size: 0.7rem;
  color: var(--text-secondary);
  margin: 0;
}

article > section > footer > time {
  color: inherit;
  text-transform: uppercase;
}

article > aside > dl {
  display: flex;
  gap: 0.2rem;
  align-items: center;
  flex-direction: column;
  flex-shrink: 0;
  margin: 0;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 6px;
  padding: 0.4rem 0.6rem;
  border: 1px solid rgba(255, 255, 255, 0.05);
  text-align: center;
  min-width: 80px;
}

article > aside > dl > dt {
  font-size: 0.9rem;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin: 0;
}

article > aside > dl > dd {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--accent-info);
  margin: 0;
}

body > footer {
  width: 100%;
  text-align: center;
  padding: 0.6rem;
  background: rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(10px);
  font-size: 0.8rem;
  color: var(--text-secondary);
  margin-top: 0;
}

footer a {
  color: var(--accent-info);
  text-decoration: none;
}

footer a:hover {
  text-decoration: underline;
}
