/* ===== Bendra ===== */
* { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg: #0c0b09;
  --ink: #f4f1e8;
  --muted: rgba(244, 241, 232, 0.52);
  --line: rgba(255, 255, 255, 0.10);
  --surface: rgba(255, 255, 255, 0.045);
  --accent: #f3c518;          /* logotipo geltona */
  --accent-hover: #e0a800;
  --accent-soft: rgba(243, 197, 24, 0.22);
  --ink-on-accent: #14110a;   /* juodas tekstas ant geltonos (kaip logotipe) */
  --ok: #6ee7b7;
  --err: #f87171;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  background: var(--bg);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

/* ===== Subtilus fonas (šilta tamsa) ===== */
.aurora,
.screen-aurora {
  position: fixed;
  inset: -20%;
  z-index: 0;
  background:
    radial-gradient(45% 45% at 25% 20%, hsla(45, 80%, 45%, 0.10), transparent 60%),
    radial-gradient(45% 45% at 80% 80%, hsla(38, 70%, 40%, 0.08), transparent 60%);
  filter: blur(70px);
  animation: drift 30s ease-in-out infinite alternate;
}
@keyframes drift {
  0%   { transform: translate(0, 0) scale(1); }
  100% { transform: translate(-2%, 2%) scale(1.04); }
}

/* ===== Rašymo puslapis ===== */
.submit-body {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.submit-card {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 440px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 32px 28px 36px;
  backdrop-filter: blur(20px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
}
.submit-logo {
  display: block;
  width: auto;
  height: 64px;
  margin: 0 auto 22px;
  image-rendering: -webkit-optimize-contrast;
}
.submit-title {
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.3px;
  color: var(--ink);
  text-align: center;
}
.submit-sub {
  margin: 8px 0 26px;
  color: var(--muted);
  font-size: 14px;
  text-align: center;
}

.field {
  width: 100%;
  background: rgba(0, 0, 0, 0.30);
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--ink);
  font-size: 17px;
  padding: 14px 16px;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.field:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.field::placeholder { color: rgba(244, 241, 232, 0.38); }

.textarea-wrap { position: relative; margin-top: 14px; }
.textarea { resize: none; line-height: 1.4; }
.counter {
  position: absolute;
  right: 12px;
  bottom: 10px;
  font-size: 12px;
  opacity: 0.5;
}

.send-btn {
  width: 100%;
  margin-top: 20px;
  padding: 15px;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  color: var(--ink-on-accent);
  border: none;
  border-radius: 10px;
  cursor: pointer;
  background: var(--accent);
  transition: transform 0.1s, background 0.2s, opacity 0.2s;
}
.send-btn:hover { background: var(--accent-hover); }
.send-btn:active { transform: scale(0.98); }
.send-btn:disabled { opacity: 0.55; cursor: default; }

.toast {
  margin-top: 16px;
  text-align: center;
  font-weight: 600;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.25s, transform 0.25s;
}
.toast--show { opacity: 1; transform: translateY(0); }
.toast--ok { color: var(--ok); }
.toast--err { color: var(--err); }

/* ===== LED ekranas ===== */
.screen-body { overflow: hidden; height: 100vh; }
.screen-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px 28px;
  background: linear-gradient(to bottom, rgba(12, 11, 9, 0.95), transparent);
}
.screen-logo {
  height: clamp(48px, 7vh, 88px);
  width: auto;
  image-rendering: -webkit-optimize-contrast;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.6));
}

/* Diskretiškas ryšio indikatorius (vietoj „gyvai" užrašo) */
.status-dot {
  position: fixed;
  top: 16px; right: 18px;
  z-index: 4;
  width: 9px; height: 9px;
  border-radius: 50%;
  transition: background 0.3s, box-shadow 0.3s;
}
.status-dot--on {
  background: var(--ok);
  box-shadow: 0 0 8px rgba(110, 231, 183, 0.5);
}
.status-dot--off {
  background: var(--err);
  box-shadow: 0 0 8px rgba(248, 113, 113, 0.5);
}

.wall {
  position: relative;
  z-index: 1;
  height: 100vh;
  padding: 104px 28px 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  overflow: hidden;
}

.card {
  flex-shrink: 0;
  position: relative;
  padding: 18px 24px;
  border-radius: 10px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 4px solid var(--accent);
  box-shadow: 0 6px 22px rgba(0, 0, 0, 0.45);
  transform-origin: top center;
}
.card-name {
  font-size: clamp(13px, 1.3vw, 18px);
  font-weight: 700;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 6px;
}
.card-text {
  font-size: clamp(22px, 3vw, 44px);
  font-weight: 600;
  line-height: 1.2;
  word-break: break-word;
  color: var(--ink);
}
.card-id {
  position: absolute;
  top: 8px; right: 14px;
  font-size: 11px;
  opacity: 0.3;
}

/* Naujos žinutės atsiradimas + geltonas blyksnis */
.card--new {
  animation: pop-in 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}
@keyframes pop-in {
  0%   { opacity: 0; transform: translateY(-20px) scale(0.97); box-shadow: 0 0 0 2px var(--accent), 0 6px 22px rgba(0, 0, 0, 0.45); }
  100% { opacity: 1; transform: translateY(0) scale(1); box-shadow: 0 6px 22px rgba(0, 0, 0, 0.45); }
}

.empty {
  position: fixed;
  inset: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: clamp(20px, 3vw, 38px);
  font-weight: 600;
  color: var(--muted);
  pointer-events: none;
}

/* ===== Admin ===== */
.admin-body {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.admin-card {
  width: 100%;
  max-width: 400px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.admin-logo { height: 44px; width: auto; margin-bottom: 6px; }
.admin-card h1 { font-size: 22px; font-weight: 700; }
.admin-label { font-size: 13px; opacity: 0.7; }
.admin-row { display: flex; gap: 10px; }
.admin-btn {
  padding: 13px 16px;
  font-size: 15px;
  font-weight: 700;
  color: var(--ink-on-accent);
  border: none;
  border-radius: 10px;
  cursor: pointer;
  background: var(--accent);
  white-space: nowrap;
}
.admin-btn:hover { background: var(--accent-hover); }
.admin-btn--danger { background: #dc2626; color: #fff; }
.admin-btn--danger:hover { background: #b91c1c; }
.admin-msg { min-height: 20px; font-weight: 600; }
.admin-hint { font-size: 12px; opacity: 0.5; }
