/* Designed on a fixed 1920x1080 stage; app.js scales it to fit any TV. */
* { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  width: 100%; height: 100%;
  overflow: hidden;
  background: #0d1a17;
  cursor: none;
}

body {
  font-family: "Roboto", "Noto Sans", "Segoe UI", Arial, sans-serif;
  color: #fff;
  -webkit-font-smoothing: antialiased;
}

#stage {
  position: absolute;
  left: 0; top: 0;
  width: 1920px; height: 1080px;
  transform-origin: 0 0;
  overflow: hidden;
  background: radial-gradient(ellipse at 30% 20%, #3a3a3a 0%, #1c1c1c 55%, #0b0b0b 100%);
}

.hidden { display: none !important; }

/* ---------- Slideshow ---------- */
#slides, .slide { position: absolute; left: 0; top: 0; width: 1920px; height: 1080px; }

.slide {
  opacity: 0;
  transition: opacity 1.2s ease-in-out;
}
.slide.show { opacity: 1; }

.slide img, .slide video {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}

/* Slow zoom on photos (cheap: GPU transform only) */
.slide img.kenburns { animation: kb 14s ease-out forwards; }
@keyframes kb {
  from { transform: scale(1.0); }
  to   { transform: scale(1.06); }
}

/* ---------- Top bar: clock + weather ---------- */
#topbar {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 220px;
  padding: 44px 64px 0;
  display: flex;
  justify-content: flex-start;
  align-items: flex-start;
  gap: 36px;
  background: linear-gradient(to bottom, rgba(0,0,0,0.55), rgba(0,0,0,0));
  text-shadow: 0 2px 8px rgba(0,0,0,0.6);
}

#clockbox { text-align: right; order: 2; }
#time { font-size: 84px; font-weight: 300; line-height: 1; letter-spacing: 1px; }
#date { font-size: 28px; opacity: 0.9; margin-top: 8px; white-space: nowrap; }

#weather {
  order: 1;
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 34px;
  padding-top: 14px;
}
#wIcon { font-size: 54px; }
#wTemp { font-weight: 500; }
#wText { opacity: 0.85; font-size: 22px; line-height: 1.3; white-space: nowrap; }
#wText .id { display: block; opacity: 0.8; }

/* ---------- Caption for the current slide ---------- */
#caption {
  position: absolute;
  left: 64px;
  bottom: 330px;
  max-width: 1100px;
  font-size: 38px;
  font-weight: 400;
  line-height: 1.3;
  text-shadow: 0 2px 10px rgba(0,0,0,0.8);
  transition: opacity 0.8s;
}
#caption .id { display: block; font-size: 28px; opacity: 0.85; }

/* ---------- Bottom bar ---------- */
#bottombar {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 270px;
  padding: 0 64px 48px;
  display: flex;
  align-items: flex-end;
  gap: 56px;
  background: linear-gradient(to top, rgba(0,0,0,0.78) 0%, rgba(0,0,0,0.5) 60%, rgba(0,0,0,0) 100%);
  text-shadow: 0 2px 8px rgba(0,0,0,0.5);
}

#brand { display: flex; align-items: center; gap: 32px; flex: 1 1 auto; min-width: 0; }
#brand > div { min-width: 0; }
#logo {
  height: 200px; width: auto;
  background: #fff;
  border-radius: 18px;
  padding: 14px 16px;
  box-shadow: 0 6px 24px rgba(0,0,0,0.45);
}
#welcomeEn { font-size: 72px; font-weight: 300; line-height: 1; }
#welcomeEn::after { content: ""; display: block; width: 120px; height: 3px; background: #c2a45e; margin-top: 14px; }
#welcomeEn.m { font-size: 58px; }
#welcomeEn.s { font-size: 46px; line-height: 1.1; }
#guestMsg { font-size: 30px; color: #f1e2b8; font-style: italic; margin-top: 10px; max-width: 900px; line-height: 1.25; }
#welcomeId { font-size: 34px; opacity: 0.85; margin-top: 8px; }
#room {
  display: inline-block;
  margin-top: 16px;
  font-size: 28px;
  padding: 6px 18px;
  border: 2px solid #c2a45e;
  color: #f1e2b8;
  border-radius: 40px;
}

#info { list-style: none; display: flex; gap: 30px; padding-top: 18px; order: 0; min-width: 0; overflow: hidden; }
#info li { font-size: 25px; line-height: 1.25; white-space: nowrap; }
#info .ic { display: inline-block; width: 38px; }
#info .id { display: block; padding-left: 38px; font-size: 20px; opacity: 0.75; }
#spacer { flex: 1 1 auto; order: 0; }

#wifi {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 24px;
  background: rgba(0,0,0,0.35);
  border: 2px solid rgba(194,164,94,0.8);
  border-radius: 20px;
  padding: 18px 26px 18px 18px;
  max-width: 560px;
}
#wifiQr {
  width: 170px; height: 170px;
  background: #fff;
  border-radius: 10px;
  padding: 10px;
}
#wifiSsid { font-size: 32px; font-weight: 500; color: #f1e2b8; }
#wifiEn { font-size: 22px; margin-top: 8px; line-height: 1.3; }
#wifiId { font-size: 20px; margin-top: 6px; opacity: 0.75; line-height: 1.3; }

/* Public screens (?screen=reception / restaurant) */
body.public #room { display: none !important; }
