/* YouCreateNews shared brand styles — keep this look across pages */

@keyframes pulseDot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.45; transform: scale(0.85); }
}

:root {
  --ink: #101820;
  --paper: #f3f6f8;
  --steel: #1f4b6e;
  --mist: #c9d6e2;
  --signal: #d62828;
  --signal-hover: #b82222;
  --dawn: #f0c35a;
}

body {
  font-family: Manrope, sans-serif;
  color: var(--ink);
  background: var(--paper);
}

.hero-plane {
  background:
    linear-gradient(115deg, rgba(16, 24, 32, 0.72) 0%, rgba(31, 75, 110, 0.55) 42%, rgba(16, 24, 32, 0.35) 100%),
    radial-gradient(ellipse 80% 60% at 70% 40%, rgba(240, 195, 90, 0.35), transparent 55%),
    linear-gradient(160deg, #1a3348 0%, #2f5f7e 38%, #6d8fa3 68%, #d7e0e7 100%);
}

.city-silhouette {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 220' fill='none'%3E%3Cpath fill='%23101820' fill-opacity='0.55' d='M0 220V128l48-18 36 28 54-46 42 22 66-54 48 30 72-40 40 18 58-36 50 28 64-48 46 20 70-34 52 26V220H0Z'/%3E%3Cpath fill='%23101820' fill-opacity='0.35' d='M0 220V156l40-12 44 20 38-28 56 18 48-24 62 14 44-20 58 22 50-16 66 18 42-12 54 16V220H0Z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: bottom center;
  background-size: cover;
}

.grain::after {
  content: '';
  pointer-events: none;
  position: absolute;
  inset: 0;
  opacity: 0.12;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  mix-blend-mode: soft-light;
}

.viewfinder {
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.28),
    inset 0 0 80px rgba(16, 24, 32, 0.25);
}

.viewfinder-corner {
  position: absolute;
  width: 28px;
  height: 28px;
  border-color: rgba(255, 255, 255, 0.85);
  border-style: solid;
}

.auth-panel {
  background: rgba(16, 24, 32, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(14px);
}

.auth-input {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.1);
  padding: 0.75rem 1rem;
  color: #fff;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.auth-input::placeholder {
  color: rgba(255, 255, 255, 0.55);
}

.auth-input:focus {
  border-color: var(--dawn);
  box-shadow: 0 0 0 2px rgba(240, 195, 90, 0.4);
}

.auth-label {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.75);
}

.auth-tab {
  flex: 1;
  padding: 0.65rem 0.75rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.7);
  border-bottom: 2px solid transparent;
  transition: color 0.15s ease, border-color 0.15s ease;
}

.auth-tab.is-active {
  color: #fff;
  border-bottom-color: var(--dawn);
}

.auth-submit {
  width: 100%;
  background: var(--signal);
  padding: 0.8rem 1.25rem;
  font-weight: 600;
  color: #fff;
  transition: background 0.15s ease;
}

.auth-submit:hover {
  background: var(--signal-hover);
}

.auth-submit:focus {
  outline: none;
  box-shadow: 0 0 0 2px var(--dawn), 0 0 0 4px var(--ink);
}

.demo-login-label {
  margin-bottom: 0.75rem;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
}

.demo-entry-stack {
  display: grid;
  gap: 0.85rem;
  margin-bottom: 1.25rem;
}

.demo-entry {
  display: grid;
  gap: 0.2rem;
  width: 100%;
  min-height: 5.25rem;
  padding: 1rem 1.1rem;
  border: 1px solid rgba(255, 255, 255, 0.28);
  text-decoration: none;
  color: #fff;
  transition: transform 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}

.demo-entry:hover,
.demo-entry:focus {
  transform: translateY(-1px);
  outline: none;
}

.demo-entry.is-viewer {
  background: rgba(31, 75, 110, 0.55);
  border-color: rgba(201, 214, 226, 0.55);
}

.demo-entry.is-viewer:hover,
.demo-entry.is-viewer:focus {
  background: rgba(31, 75, 110, 0.8);
  border-color: var(--dawn);
}

.demo-entry.is-broadcaster {
  background: rgba(214, 40, 40, 0.42);
  border-color: rgba(255, 180, 180, 0.55);
}

.demo-entry.is-broadcaster:hover,
.demo-entry.is-broadcaster:focus {
  background: rgba(214, 40, 40, 0.62);
  border-color: #fff;
}

.demo-entry-kicker {
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.72);
}

.demo-entry-title {
  font-family: "Archivo Black", sans-serif;
  font-size: 1.2rem;
  line-height: 1.1;
}

.demo-entry-copy {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.78);
}

.demo-entry-divider {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 0.25rem 0 1.15rem;
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.demo-entry-divider::before,
.demo-entry-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: rgba(255, 255, 255, 0.18);
}

/* Hide Alpine.js cloaked elements until Alpine boots */
[x-cloak] {
  display: none !important;
}
