/* ================================
   Gokstad AI — Tyr Home Styles
   COMPLETE REPLACEMENT FILE
   ================================ */

/* ---------- Global ---------- */
body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    margin: 0;
    padding: 0;
    background: #000 url('gokstad-tyr_output_20241230_235935.png') no-repeat center center fixed;
    background-size: auto 100vh;
    color: #ccc;
  }
  
  a { text-decoration: none; color: #fff; }
  a:hover { text-decoration: underline; }
  
  /* ---------- Logo ---------- */
  .logo img {
    width: 100%;
    max-width: 400px;
    height: auto;
    margin: 35px auto 10px;
    display: block;
  }
  
  /* ---------- Hamburger Menu ---------- */
  #hamburgerIcon {
    position: absolute;
    top: 10px;
    left: 10px;
    cursor: pointer;
    width: 30px;
    height: auto;
    z-index: 1001;
  }
  
  #menuDropdown {
    display: none;
    position: absolute;
    background-color: #333;
    color: #fff;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.2);
    padding: 10px;
    z-index: 1000;
    top: 50px;
    left: 10px;
    width: 200px;
  }
  
  #menuDropdown.show { display: block; }
  
  #menuDropdown ul {
    padding: 0;
    margin: 0;
    text-align: left;
    list-style: none;
  }
  
  #menuDropdown ul li { margin: 10px 0; }
  #menuDropdown ul li a { text-decoration: none; color: #fff; }
  
  /* ---------- Top Support Bar ---------- */
  #supportBar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    font-size: 14px;
    color: #000;
    background-color: #333;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
  }
  
  /* Theme Switch (kept for future) */
  .theme-switch-wrapper {
    display: flex;
    align-items: center;
    cursor: pointer;
    flex: 0 0 auto;
    padding-left: 20px;
  }
  
  #toggleIcon {
    max-height: 30px;
    width: 57px;
    height: auto;
  }
  
  /* Support Address (center text inside top bar) */
  .support-address {
    text-align: center;
    flex: 1;
    font-size: 14px;
    color: #000;
  }
  
  /* ---------- Bottom Bar ---------- */
  #privacyEthicsLink {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 10px;
    background-color: #333;
    color: #ccc;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    box-sizing: border-box;
    z-index: 1000;
  }
  
  .privacy-content { text-align: center; }
  
  /* ===================================
     HERO (replaces old #centeredTextBox)
     =================================== */
  .btn {
    display: inline-block;
    font-weight: 600;
    padding: 12px 22px;
    border: 1px solid transparent;
    transition: transform .08s ease, background .2s ease, border-color .2s ease;
  }
  .btn:active { transform: translateY(1px); }
  .btn-pill { border-radius: 999px; }
  .btn-primary { background: #00c8ff; color: #001016; border-color: #00b4e6; }
  .btn-primary:hover { background: #00b4e6; }
  .btn-ghost { background: transparent; border-color: #6ee1ff; color: #ccefff; }
  .btn-ghost:hover { background: rgba(110,225,255,0.08); }
  
  .hero-card {
    position: relative;
    margin: 0 auto;
    margin-top: 10px;
    background: rgba(0, 0, 0, 0.72);
    color: #ddd;
    padding: 22px 22px;
    border-radius: 16px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
    max-width: 720px;
    text-align: center;
  }
  .hero-card h1 { margin: 0 0 6px; font-size: 28px; letter-spacing: .2px; }
  .hero-sub { margin: 0 0 14px; color: #b9e9f7; font-size: 15px; }
  .hero-ctas { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
  
/* ======================
   Carousel (Showcase)
   ====================== */
   .showcase{
    position: relative;
    margin: 14px auto 110px; /* leave space for bottom bar */
    width: min(1100px, 94vw);
  }
  
  .carousel{
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    background: rgba(0,0,0,.55);
    backdrop-filter: blur(2px);
    outline: 1px solid rgba(255,255,255,.08);
  }
  
  /* Track now slides left/right */
  .carousel-track{
    position: relative;
    display: flex;                 /* lay slides in a row */
    width: 100%;
    height: 100%;
    transform: translateX(0%);
    transition: transform 450ms ease;   /* slide animation */
    will-change: transform;
  }
  
  /* Each slide fills the viewport width */
  .slide{
    position: relative;
    flex: 0 0 100%;                /* each slide is 100% width */
    aspect-ratio: 16/9;            /* 16:9 desktop (mobile overridden below) */
    display: grid;                 /* keep caption layering */
    align-items: start;
    justify-content: start;
  }
  
  /* keep .is-active only for styling (dots), not for layout visibility */
  .slide.is-active {}
  
  /* Image */
  .slide img{
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    filter: saturate(1.03) contrast(1.02);
  }
  
  /* Caption — top-left per your request */
  .slide-caption{
    position: absolute;
    left: 12px;
    top: 12px;
    background: rgba(0,0,0,.55);
    padding: 6px 10px;
    border-radius: 10px;
    font-size: 14px;
    color: #e9faff;
    border: 1px solid rgba(255,255,255,.08);
  }
  
  /* Arrows */
  .nav{
    position: absolute; top: 50%; transform: translateY(-50%);
    background: rgba(0,0,0,.55); color:#e9faff;
    border: 1px solid rgba(255,255,255,.15);
    width: 38px; height: 38px; border-radius: 50%;
    font-size: 22px; line-height: 36px; text-align:center;
    cursor: pointer; z-index: 2;
  }
  .nav:hover{ background: rgba(0,0,0,.7); }
  .prev{ left: 10px; }
  .next{ right: 10px; }
  
  /* Dots */
  .dots{
    position: absolute; left:0; right:0; bottom:8px;
    display: flex; gap:6px; justify-content: center; z-index:2;
  }
  .dot{
    width: 8px; height: 8px; border-radius: 999px;
    background: rgba(255,255,255,.35);
    border: 1px solid rgba(255,255,255,.5);
  }
  .dot.is-active{ background:#00c8ff; border-color:#00c8ff; }
  
  /* Mobile: slightly taller ratio feels better */
  @media (max-width: 599px){
    .showcase{ width: 96vw; margin-bottom:110px; }
    .slide{ aspect-ratio: 16/10; }
    .slide-caption{ font-size:12px; top:10px; left:10px; }
    .nav{ width:34px; height:34px; font-size:20px; line-height:32px; }
  }
  
  /* Reduced motion */
  @media (prefers-reduced-motion: reduce){
    .carousel-track{ transition: none !important; }
  }
  
  
  /* ======================
     Settings Page Styles
     ====================== */
  .settings-container {
    flex: 1;
    max-width: 600px;
    margin: 80px auto 50px;
    padding: 20px;
    background: rgba(0, 0, 0, 0.7);
    color: #ccc;
    border-radius: 15px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
  }
  
  .settings-container h1 {
    font-size: 24px;
    color: #00c8ff;
    margin-bottom: 20px;
  }
  
  .settings-section {
    margin-bottom: 20px;
    padding: 15px;
    background: rgba(50, 50, 50, 0.8);
    border-radius: 8px;
  }
  
  .settings-section h2 {
    font-size: 18px;
    margin-bottom: 10px;
    color: #00c8ff;
  }
  
  .settings-section input {
    width: 100%;
    max-width: 100%;
    padding: 10px;
    margin-top: 5px;
    border: 1px solid #777;
    border-radius: 5px;
    font-size: 14px;
    background: #222;
    color: #ccc;
    box-sizing: border-box;
  }
  
  .settings-section button {
    display: block;
    width: 100%;
    padding: 10px;
    margin-top: 10px;
    background: #00c8ff;
    color: black;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
  }
  
  .settings-section button:hover { background: #008CBA; }
  
  /* Danger Zone */
  .danger-zone { background: rgba(255, 0, 0, 0.2); border: 1px solid #ff4d4d; }
  .delete-btn { background: #ff4d4d; }
  .delete-btn:hover { background: #cc0000; }
  
  /* PASSWORD COMPARES */
  .hidden { display: none; }
  .password-match { color: green; font-size: 14px; }
  .password-mismatch { color: red; font-size: 14px; }
  .error-message { color: red; font-size: 0.9em; }
  .success-message { color: green; font-size: 1em; }


  /* ======================
     MEMBERSHIP TIERS AND NOTIFICATIONS 
     ====================== */

  .account-header {
    text-align: center;
    margin-bottom: 18px;
  }

  .account-username {
    font-size: 20px;
    font-weight: 600;
    color: #f0f7ff;
  }

  .account-tier {
    text-align: center;
    font-size: 13px;
    color: #8be4ff;
    margin-bottom: 14px;
  }
  

  /* Tier pill */
  .tier-pill {
    display: inline-block;
    padding: 3px 10px;
    margin-left: 4px;
    border-radius: 999px;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    background: rgba(0, 200, 255, 0.1);
    border: 1px solid #00c8ff;
  }

  /* Optional: subtle color variants */
  .tier-free       { border-color: #777;   color: #ddd;   background: rgba(120,120,120,0.18); }
  .tier-supporter  { border-color: #00c8ff; color: #dff7ff; }
  .tier-enhanced   { border-color: #7fff6a; color: #e6ffe8; background: rgba(127,255,106,0.1); }
  .tier-power      { border-color: #ffb347; color: #fff4de; background: rgba(255,179,71,0.1); }
  .tier-god        { border-color: #ff4dff; color: #ffe6ff; background: rgba(255,77,255,0.14); }

  /* ===== Notices / changelog ===== */
  .notice-list {
    list-style: none;
    margin: 0;
    padding: 0;
  }

  .notice-item {
    display: flex;
    gap: 10px;
    padding: 8px 10px;
    margin-bottom: 6px;
    background: rgba(0, 0, 0, 0.6);
    border-radius: 6px;
    border-left: 3px solid #00c8ff;
  }

  .notice-date {
    font-family: monospace;
    font-size: 12px;
    color: #9be9ff;
    min-width: 52px;
  }

  .notice-text {
    font-size: 13px;
    color: #e0e8ee;
  }

  /* ===== Membership section ===== */
  .membership-section {
    position: relative;
  }

  .membership-current {
    font-size: 14px;
    margin-bottom: 10px;
  }

  .membership-copy {
    font-size: 13px;
    color: #bcd6e5;
    margin-bottom: 14px;
  }

  .membership-tiers {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
  }

  /* Membership "Manage plan" button — full width inside panel without overflow */
  .membership-section .membership-manage-btn {
    display: block;
    width: 100%;
    box-sizing: border-box;
    text-align: center;
    margin-top: 8px;
  }


  .tier-card {
    flex: 1 1 170px;
    min-width: 0;
    background: rgba(10, 10, 10, 0.85);
    border-radius: 8px;
    padding: 10px 12px;
    border: 1px solid rgba(0, 200, 255, 0.25);
  }

  .tier-name {
    font-size: 15px;
    font-weight: 600;
    color: #eaf8ff;
  }

  .tier-price {
    font-size: 13px;
    color: #7be0ff;
    margin-bottom: 6px;
  }

  .tier-perks {
    list-style: none;
    padding: 0;
    margin: 0 0 8px 0;
    font-size: 12px;
    color: #d0dde8;
  }

  .tier-perks li {
    margin-bottom: 3px;
  }

  .tier-select-btn {
    width: 100%;
    padding: 8px;
    font-size: 13px;
    border-radius: 5px;
    border: none;
    cursor: pointer;
    background: #00c8ff;
    color: #001018;
  }

  .tier-select-btn:hover {
    background: #00a9dd;
  }

  .membership-note {
    margin-top: 10px;
    font-size: 12px;
    color: #9fb8c9;
  }

  .membership-message {
    font-size: 13px;
    margin-top: 6px;
    font-weight: 600;
  }

  /* Mobile tweaks */
  @media only screen and (max-width: 599px) {
    .membership-tiers {
      flex-direction: column;
    }
  }


  
  /* ======================
     Responsive
     ====================== */
  @media only screen and (max-width: 599px) {
    /* Logo */
    .logo img { max-width: 80%; }
  
    /* Top/Bottom bars scale down */
    #privacyEthicsLink, #supportBar { font-size: 12px; }
  
    /* Hero */
    .hero-card { width: 92%; padding: 16px; }
    .hero-card h1 { font-size: 22px; }
    .hero-sub { font-size: 14px; }
  
    /* Carousel uses 16:10 on phones for a little more height */
    .showcase { width: 96vw; margin-bottom: 110px; }
    .slide { aspect-ratio: 16/10; }
  
    .slide-caption { font-size: 12px; }
    .nav { width: 34px; height: 34px; font-size: 20px; line-height: 32px; }
  
    /* Settings */
    .settings-container { width: 90%; padding: 15px; }
    .settings-section input { font-size: 16px; }
    .settings-section button { font-size: 16px; }
  
    /* Top bar tweaks */
    #supportBar {
      justify-content: space-between;
      flex-wrap: nowrap;
      padding: 5px 10px;
    }
    .theme-switch-wrapper { margin-left: 0; }
    #toggleIcon { max-height: 20px; }
  }
  
  /* Reduced motion respect */
  @media (prefers-reduced-motion: reduce) {
    .btn, .nav, .dot { transition: none !important; }
  }
  


/* ======================
   LOGIN / SIMPLE PAGES FIX
   Restores center positioning for legacy forms
   ====================== */
   #centeredTextBox {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.7);
    color: #ccc;
    padding: 20px;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
    max-width: 600px;
    text-align: center;
    width: 90%;
  }
  
  #centeredTextBox a {
    color: #00c8ff;
    text-decoration: none;
  }
  
  #centeredTextBox a:hover {
    text-decoration: underline;
  }
  
  /* keep mobile override */
  @media only screen and (max-width: 599px) {
    #centeredTextBox {
      width: 90%;
      max-width: none;
      left: 50%;
      transform: translateX(-50%);
      top: 30%;
      padding: 15px;
    }
  
    #centeredTextBox p {
      font-size: 16px;
      line-height: 1.4;
    }
  }
  

/* ======================
   SIGNUP / FORM PAGE STYLES
   ====================== */
   #centeredTextBox form {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 10px;
  }
  
  #centeredTextBox label {
    color: #eee;
    font-weight: 600;
    display: block;
    text-align: left;
    width: 100%;
    max-width: 300px;
    margin-top: 8px;
  }
  
  #centeredTextBox .input-field {
    width: 100%;
    max-width: 300px;
    padding: 10px;
    margin-top: 5px;
    border: 1px solid #777;
    border-radius: 5px;
    background: #111;
    color: #eee;
    font-size: 14px;
    box-sizing: border-box;
  }
  
  #centeredTextBox .input-field:focus {
    outline: none;
    border-color: #00c8ff;
    box-shadow: 0 0 5px #00c8ff;
  }
  
  /* Buttons */
  #centeredTextBox button {
    margin-top: 15px;
    padding: 10px 24px;
    background: #00c8ff;
    color: #000;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    font-weight: bold;
    transition: background 0.2s ease, transform 0.1s ease;
  }
  
  #centeredTextBox button:hover {
    background: #00a4cc;
  }
  
  #centeredTextBox button:active {
    transform: translateY(1px);
  }
  
  /* Feedback messages */
  .hidden { display: none; }
  
  .password-match {
    color: #00ff66;
    font-size: 14px;
    margin-top: 5px;
  }
  
  .password-mismatch {
    color: #ff4d4d;
    font-size: 14px;
    margin-top: 5px;
  }
  
  .error-message {
    color: #ff4d4d;
    font-size: 14px;
    margin-top: 4px;
  }
  
  .success-message {
    color: #00ff88;
    font-size: 14px;
    margin-top: 4px;
  }
  
  /* Checkbox and link */
  #centeredTextBox input[type="checkbox"] {
    accent-color: #00c8ff;
  }
  
  #centeredTextBox a {
    color: #00c8ff;
    text-decoration: none;
  }
  
  #centeredTextBox a:hover {
    text-decoration: underline;
  }
  
  /* Responsive tweaks */
  @media only screen and (max-width: 599px) {
    #centeredTextBox label,
    #centeredTextBox .input-field {
      max-width: 90%;
    }
  }
  