/* ===========================
   Gokstad PWA Page (webapp.html)
   Modern look, same layout
   =========================== */

   :root{
    --bg: #fbf4cf;
    --surface: rgba(255,255,255,0.55);
    --surface-strong: rgba(255,255,255,0.72);
    --text: #1b1b1b;
    --muted: rgba(0,0,0,0.65);
    --border: rgba(0,0,0,0.10);
    --shadow: 0 12px 30px rgba(0,0,0,0.10);
    --link: #0b5bd3;
  
    --content-max: 980px; /* this is what “justifies more to the middle” */
    --radius: 18px;
  }
  
  body.pwa-page{
    margin: 0;
    color: var(--text);
    background: radial-gradient(1200px 500px at 50% 0%, rgba(255,255,255,0.55), transparent 70%),
                var(--bg);
    font-family: system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, "Helvetica Neue", Arial, sans-serif;
  }
  
  /* Dark mode */
  body.pwa-page.dark-mode{
    --bg: #0d1117;
    --surface: rgba(255,255,255,0.06);
    --surface-strong: rgba(255,255,255,0.08);
    --text: rgba(255,255,255,0.92);
    --muted: rgba(255,255,255,0.70);
    --border: rgba(255,255,255,0.14);
    --shadow: 0 16px 38px rgba(0,0,0,0.45);
    --link: #7ab7ff;
  
    background: radial-gradient(900px 480px at 50% 0%, rgba(255,255,255,0.08), transparent 70%),
                var(--bg);
  }
  
  /* Links */
  a{ color: var(--link); text-decoration: none; }
  a:hover{ text-decoration: underline; }
  
  /* ===========================
     Top support bar + theme toggle
     =========================== */
  
     #supportBar{
        position: fixed;
        top: 0;
        right: 0;
        left: 0;
        height: 54px;
        display: flex;
        align-items: center;
        justify-content: flex-end;
        padding: 0 14px;
        z-index: 50;
        pointer-events: auto; /* <-- enable clicks */
      }
      
  
  .theme-switch-wrapper{
    pointer-events: auto;
  }
  
  
  .icon-btn{
    border: 1px solid var(--border);
    background: var(--surface);
    border-radius: 999px;
  
    height: 44px;     /* pill size */
    width: 64px;      /* pill size */
  
    display: flex;
    align-items: center;
    justify-content: center;
  
    box-shadow: var(--shadow);
    cursor: pointer;
  
    padding: 0;
    line-height: 0;
  }
  
  
  .icon-btn img{
    width: 44px;
    height: 44px;
    object-fit: contain;
    display: block;
  }
  
  
  
  .icon-btn:hover{
    background: var(--surface-strong);
  }

  .icon-btn{ width: 60px; height: 40px; }
  .icon-btn img{ width: 44px; height: 44px; }
  
  
  /* ===========================
     Hamburger menu (keep your existing structure)
     =========================== */
  
  #hamburgerMenu{
    position: fixed;
    top: 10px;
    left: 10px;
    z-index: 60;
  }
  
  #hamburgerIcon{
    width: 32px;
    height: 32px;
    cursor: pointer;
    filter: drop-shadow(0 6px 16px rgba(0,0,0,0.18));
  }
  
  #menuDropdown{
    margin-top: 10px;
    width: 280px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    overflow: hidden;
    display: none;
  }
  
  #menuDropdown.show{
    display: block;
  }
  
  #menuDropdown ul{
    list-style: none;
    padding: 10px;
    margin: 0;
  }
  
  #menuDropdown li{
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 10px;
    border-radius: 12px;
    color: var(--text);
    font-size: 14px;
  }
  
  #menuDropdown li img{
    width: 18px;
    height: 18px;
    opacity: 0.95;
  }
  
  #menuDropdown li a{
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text);
    width: 100%;
  }
  
  #menuDropdown li:hover{
    background: var(--surface-strong);
  }
  
  #menuDropdown li:nth-child(6){
    opacity: 0.8;
    font-size: 12px;
  }
  
  /* ===========================
     Page header + centered content
     =========================== */
  
  .header{
    padding-top: 74px; /* gives room for fixed top bar */
    padding-left: 18px;
    padding-right: 18px;
    text-align: center;
  }
  
  .header img{
    max-width: 760px;
    width: min(760px, 88%);
    height: auto;
    filter: drop-shadow(0 10px 22px rgba(0,0,0,0.18));
  }
  
  .header p{
    margin-top: 10px;
    margin-bottom: 0;
    opacity: 0.92;
  }
  
  /* This is the main “center it more” change */
  .content{
    max-width: var(--content-max);
    margin: 22px auto 80px auto;
    padding: 0 18px;
  }
  
  .content header{
    text-align: center;
    margin-top: 18px;
  }
  
  .content h1{
    font-size: clamp(1.6rem, 2.6vw, 2.3rem);
    margin: 0 0 14px 0;
    letter-spacing: 0.2px;
  }
  
  .content main{
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 22px 22px;
  }
  
  .content p{
    color: var(--muted);
    line-height: 1.65;
    font-size: 15.5px;
    margin: 0;
  }
  
  .content section + section{
    margin-top: 18px;
    padding-top: 18px;
    border-top: 1px solid var(--border);
  }
  
  .content h2{
    margin: 0 0 10px 0;
    font-size: 1.15rem;
  }
  
  .content ul{
    margin: 0;
    padding-left: 18px;
    color: var(--muted);
    line-height: 1.6;
  }
  
  /* ===========================
     Footer link
     =========================== */
  
  #privacyEthicsLink{
    max-width: var(--content-max);
    margin: 0 auto 24px auto;
    padding: 0 18px;
    text-align: center;
    color: var(--muted);
  }
  
  #privacyEthicsLink .privacy-content{
    padding: 14px 10px;
    border-top: 1px solid var(--border);
  }
  