/* ─────────────────────────────────────────────
   IT Signage Display — Styles
   hellojesus.dev/signage
───────────────────────────────────────────── */

:root {
  --primary: #285940;
  --accent:  #ffffff;
  --bg:      #07101f;
  --surface: rgba(255, 255, 255, 0.05);
  --border:  rgba(255, 255, 255, 0.08);
  --text:    #ffffff;
  --muted:   rgba(255, 255, 255, 0.45);
}

*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  background: var(--bg);
  color: var(--text);
  font-family: 'Barlow', sans-serif;
}

body {
  display: flex;
  flex-direction: column;
}

/* ── LOADER ── */
#loader {
  position: fixed;
  inset: 0;
  z-index: 999;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.6s ease;
}

#loader.hidden {
  opacity: 0;
  pointer-events: none;
}

.loader-inner {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 28px;
  font-weight: 700;
  letter-spacing: 6px;
  text-transform: uppercase;
  color: var(--accent);
  animation: pulse 1.4s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.3; }
}

/* ── HEADER ── */
header {
  flex-shrink: 0;
  height: 76px;
  background: var(--primary);
  border-bottom: 3px solid var(--accent);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 44px;
}

.hd-left {
  display: flex;
  align-items: center;
  gap: 16px;
}

.hd-badge {
  background: var(--accent);
  color: #000;
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 800;
  font-size: 18px;
  letter-spacing: 1px;
  padding: 4px 12px;
  border-radius: 4px;
}

.hd-dept {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 26px;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.hd-dept span { color: var(--accent); }

.hd-clock { text-align: right; }

#clock-time {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 800;
  font-size: 40px;
  letter-spacing: 2px;
  line-height: 1;
}

#clock-date {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.65);
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-top: 2px;
}

/* ── MAIN / SLIDES ── */
main {
  flex: 1;
  position: relative;
  overflow: hidden;
}

.slide {
  position: absolute;
  inset: 0;
  padding: 36px 56px 28px;
  opacity: 0;
  transition: opacity 0.8s ease;
  pointer-events: none;
}

.slide.active {
  opacity: 1;
  pointer-events: all;
}

.slide-label {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--accent);
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 28px;
}

.slide-label::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

/* ── WEATHER SLIDE ── */
.wx-body {
  display: flex;
  align-items: flex-start;
  gap: 50px;
  margin-bottom: 32px;
}

.wx-temp {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 800;
  font-size: 154px;
  line-height: 1;
  color: var(--accent);
  white-space: nowrap;
}

.wx-temp sup {
  font-size: 44px;
  vertical-align: super;
}

.wx-right { padding-top: 16px; }

.wx-icon {
  font-size: 64px;
  line-height: 1;
  margin-bottom: 10px;
}

.wx-cond {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 44px;
  font-weight: 700;
  text-transform: uppercase;
  line-height: 1;
  margin-bottom: 12px;
}

.wx-meta {
  font-size: 18px;
  color: var(--muted);
}

.forecast { display: flex; gap: 16px; }

.fc-day {
  flex: 1;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px 0;
  text-align: center;
}

.fc-name {
  font-size: 12px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 8px;
}

.fc-icon {
  font-size: 30px;
  margin-bottom: 8px;
}

.fc-temps {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 22px;
  font-weight: 700;
}

.fc-lo {
  color: var(--muted);
  font-size: 18px;
  margin-left: 4px;
}

/* ── SPORTS SLIDE ── */
.sports-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  height: calc(100% - 56px);
}

.team-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 28px 32px;
  display: flex;
  flex-direction: column;
}

.team-head {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
}

.team-emoji { font-size: 44px; }

.team-name {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 800;
  font-size: 34px;
  text-transform: uppercase;
}

.team-rec {
  font-size: 13px;
  color: var(--accent);
  letter-spacing: 1px;
  margin-top: 2px;
}

.game-wrap {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.game-status {
  font-size: 11px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 8px;
}

.game-status.live { color: #ff4d4d; }

.game-score {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 52px;
  font-weight: 800;
  line-height: 1;
  margin-bottom: 8px;
}

.game-detail {
  font-size: 16px;
  color: var(--muted);
}

.game-next {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 26px;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 6px;
}

/* ── ANNOUNCEMENTS SLIDE ── */
.ann-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.ann-item {
  background: var(--surface);
  border-left: 4px solid var(--accent);
  border-radius: 0 12px 12px 0;
  padding: 20px 28px;
  font-size: 22px;
  line-height: 1.4;
}

.ann-footer {
  margin-top: 28px;
  font-size: 15px;
  color: var(--muted);
  letter-spacing: 1px;
}

.ann-footer strong { color: var(--accent); }

/* ── EMPLOYEE OF THE MONTH SLIDE ── */
.eotm-wrap {
  height: calc(100% - 56px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.eotm-trophy {
  font-size: 72px;
  line-height: 1;
  margin-bottom: 16px;
  animation: float 3s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-12px); }
}

.eotm-name {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 800;
  font-size: 84px;
  text-transform: uppercase;
  line-height: 1;
  color: var(--accent);
  margin-bottom: 8px;
}

.eotm-title {
  font-size: 20px;
  color: var(--muted);
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-bottom: 28px;
}

.eotm-blurb {
  font-size: 22px;
  font-style: italic;
  max-width: 720px;
  line-height: 1.55;
  margin-bottom: 24px;
}

.eotm-month {
  font-size: 13px;
  color: var(--accent);
  letter-spacing: 4px;
  text-transform: uppercase;
}

/* ── FOOTER ── */
footer {
  flex-shrink: 0;
  background: var(--primary);
  border-top: 2px solid var(--accent);
}

.dots {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  padding: 8px 0 6px;
}

.dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.25);
  transition: background 0.4s, transform 0.4s;
}

.dot.active {
  background: var(--accent);
  transform: scale(1.3);
}

.ticker-wrap {
  overflow: hidden;
  padding: 8px 0;
}

.ticker-track {
  display: flex;
  white-space: nowrap;
  animation: ticker 90s linear infinite;
}

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

.ticker-item {
  display: inline-block;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.8);
  padding: 0 56px;
}

.ticker-item::before {
  content: '◆ ';
  color: var(--accent);
}

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