/* Fullscreen Layout - full viewport, no scroll, header floats on top */

body#ly-fullscreen {
  width: 100%;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
  background: var(--bg);
  font-family: var(--ubuntu);
  color: var(--text);

  /* Container base */
  & .container {
    max-width: var(--wide);
    margin: 0 auto;
    padding: 0 1.5rem;
  }

  /* Header: fixed floating, translucent blur, compact */
  & header.cp-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: var(--xs) 0;

    /* Center the logo, position hamburger absolutely on right */
    & .container {
      justify-content: center;
      position: relative;
    }

    /* Compact logo */
    & .logo-icon {
      height: 40px;
      max-height: 40px;
    }

    & .logo .brand {
      font-size: 1.25rem;
    }

    & .logo a {
      gap: 0.5rem;
    }

    /* Hamburger: always visible, positioned absolute right, vertically centered */
    & .mobile-menu-toggle {
      display: flex !important;
      position: absolute;
      right: 1.5rem;
      top: 50%;
      transform: translateY(-50%);
    }

    /* Menu text: always visible at 450px+ (header.css hides it above 900px) */
    @media (min-width: 450px) {
      & .menu-text {
        display: block !important;
      }
    }

    /* NEVER show inline nav — always dropdown behind hamburger */
    & nav {
      position: absolute;
      top: 100%;
      right: 0;
      left: auto;
      width: 240px;
      background: rgba(0, 0, 0, 0.95);
      backdrop-filter: blur(10px);
      -webkit-backdrop-filter: blur(10px);
      flex-direction: column;
      padding: 0;
      gap: 0;
      border: 1px solid var(--border);
      border-top: none;
      border-radius: 0 0 3px 3px;
      z-index: 1000;
      max-height: 0;
      overflow: hidden;
      opacity: 0;
      transition: max-height var(--normal) ease, opacity var(--normal) ease, padding var(--normal) ease;
    }

    & .menu-toggle:checked ~ nav {
      max-height: 500px;
      opacity: 1;
      padding: var(--sm) 0;
    }

    & nav a {
      padding: var(--sm) 1.25rem;
      width: 100%;
      border-bottom: 1px solid var(--border);
      text-align: center;
    }

    & nav a.active {
      background: var(--bg-2);
    }

    /* Scale up at breakpoints */
    @media (min-width: 768px) {
      & .logo-icon {
        height: 50px;
        max-height: 50px;
      }

      & .logo .brand {
        font-size: 1.5rem;
      }

      & .logo a {
        gap: 0.75rem;
      }
    }

    @media (min-width: 1100px) {
      & .logo-icon {
        height: 60px;
        max-height: 60px;
      }

      & .logo .brand {
        font-size: 1.75rem;
      }
    }
  }
}
