/* static/css/landing.css */

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
  background: #000;
  color: #fff;
  font-family: monospace;
}

body {
  border: none;
}

.frame {
  position: relative;
  width: 100vw;
  height: 100vh;
  display: flex;
  flex-direction: column;
}

/* top and bottom bars */

.top-strip,
.bottom-strip {
  font-size: 11px;
  padding: 4px 8px;
}

.top-strip {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.top-left {
  text-align: left;
  white-space: pre-line;
}

/* brand link same size as menu items (14px) */
.brand-link {
  display: inline-block;
  font-size: 14px;
  text-decoration: none;
  color: #fff;
  margin-bottom: 2px;
}

.brand-link:hover {
  text-decoration: underline;
}

#clock {
  display: block;
  margin-top: 2px;
}

.top-right {
  text-align: right;
}

.lang-switcher {
  display: flex;
  gap: 4px;
}

/* languages – no frames/lines */

.lang {
  background: transparent;
  border: none;
  color: #ccc;
  padding: 2px 4px;
  font-size: 10px;
  cursor: pointer;
}

.lang.active {
  color: #fff;
  text-decoration: underline;
}

/* main layout: side menu + center */

.main-row {
  flex: 1 1 auto;
  display: flex;
  padding: 4px 8px;
  overflow: hidden;
}

/* side menu */

.side-menu {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-right: 16px;
  padding-top: 18px;
  min-width: 120px;
}

.side-menu button {
  background: transparent;
  border: none;
  color: #fff;
  font-size: 14px;
  text-align: left;
  cursor: pointer;
  padding: 2px 0;
}

.side-menu button:hover {
  text-decoration: underline;
}

/* center area */

.center-area {
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

/* logo + slogan */

.logo-view {
  text-align: center;
}

.logo-view img {
  max-width: 260px;
  width: 40vw;
}

/* slogan two steps bigger than menu:
   menu ~14px -> slogan 18px */
.logo-slogan {
  margin-top: 12px;
  font-size: 18px;
}

/* content view – no border/frame */

.content-view {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.content-inner {
  width: 70%;
  max-width: 720px;
  max-height: 80%;
  padding: 12px 14px;
  background: #000;
  display: flex;
  flex-direction: column;
}

.content-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 8px;
}

.content-header h1 {
  font-size: 16px;
  margin: 0;
}

.close-link {
  font-size: 11px;
  text-decoration: none;
  color: #fff;
  cursor: pointer;
}

.close-link:hover {
  text-decoration: underline;
}

/* scroll only inside text */

.content-body {
  flex: 1 1 auto;
  overflow-y: auto;
  padding-right: 4px;
  font-size: 13px;
  line-height: 1.4;
}

.content-body p {
  margin: 0 0 6px 0;
}

/* footer – bottom left */

.bottom-strip {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  font-size: 11px;
}

.footer-menu {
  display: flex;
  gap: 16px;
}

.footer-menu button {
  background: transparent;
  border: none;
  color: #fff;
  font-size: 12px;
  cursor: pointer;
  padding: 2px 0;
}

.footer-menu button:hover {
  text-decoration: underline;
}

.hidden {
  display: none;
}

@media (max-width: 768px) {
  .content-inner {
    max-height: 80vh;
  }

  .logo-view img {
    max-width: 70%;
    height: auto;
  }

  .logo-slogan {
    font-size: 14px;
    text-align: center;
  }
}
/* Mobile landscape tweaks */
/* Mobile landscape tweaks (notch-friendly) */
@media (max-width: 768px) and (orientation: landscape) {
  body {
    padding-left: 12px; /* avoid notch cut-off */
    box-sizing: border-box;
  }

  .frame {
    padding: 4px 6px;
  }

  .top-strip {
    flex-direction: row;
    align-items: center;
  }

  .side-menu {
    width: 32%;
    overflow-y: auto;
  }

  .side-menu button {
    font-size: 11px;
    padding: 4px 4px;
  }

  .center-area {
    margin-left: 0;
  }

  .logo-view img {
    max-width: 55%;
    height: auto;
    display: block;
    margin: 0 auto 4px auto;
  }

  .logo-slogan {
    font-size: 11px;
    line-height: 1.3;
    text-align: center;
    margin: 0 4px 4px 4px;
    max-height: 3.2em; /* force it to fit */
    overflow: hidden;
  }

  .content-inner {
    max-height: 65vh;
  }
}
