/* ----- GLOBAL ----- */
* { box-sizing: border-box; }
body {
  font-family: sans-serif;
  margin: 0;
}
.wrapper {
  max-width: 740px;
  margin: 0 auto;
  padding: 0 20px;
}
.site-header {
  border-bottom: 1px solid #e8e8e8;
}

/* ----- YOUR ORIGINAL .site-title ----- */
.site-title {
  font-size: 26px;
  font-weight: 300;
  line-height: 54px;
  letter-spacing: -1px;
  margin-bottom: 0;
  float: left;
}

/* ----- BASE NAV STYLES (overridden on desktop) ----- */
.site-nav {
  float: right;
  line-height: 54px;
}
.site-nav .menu-icon { display: none; }
.site-nav .trigger { display: block; }

/* ----- DESKTOP OVERRIDES (≥601px) ----- */
@media only screen and (min-width: 601px) {
  .site-nav {
    float: none;        /* remove float */
    width: 100%;        /* full width */
  }
  .site-nav .trigger {
    display: block;
  }
  .desktop-only {
    display: block;     /* show nav title */
  }
  .mobile-menu-title {
    display: none;      /* hide mobile menu title */
  }
  .site-header > .wrapper > .site-title {
    display: none;      /* hide standalone title */
  }
}

/* ----- DESKTOP FLEX MENU (applies to all, but container is now full width) ----- */
.menu {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  align-items: center;
}
.menu > li {
  flex: 1 1 0;
  list-style: none;
  margin: 0;
  padding: 0;
  text-align: center;
}

/* ----- DROPDOWN CONTAINER – SHRINK-WRAPS BUTTON, POSITION CONTEXT ----- */
.dropdown {
  display: inline-block;
  position: relative;
  margin: 0;
}
.dropbtn {
  display: inline-block;
  background-color: #b5b4c5;
  color: #111;
  border: none;
  padding: 10px 8px;
  font-size: 18px;
  font-family: inherit;
  cursor: pointer;
  text-align: center;
  white-space: nowrap;
  width: auto;
}
.btn-about { min-width: 120px; }
.btn-notifications { min-width: 180px; }
.btn-novels { min-width: 290px; } /* adjust if needed */

/* Site title inside nav (desktop) */
.site-title-item {
  flex: 0 1 auto;
}
.site-title-item .site-title {
  float: none;
  display: block;
  width: 100%;
  text-decoration: none;
}

/* ----- DROPDOWN CONTENT – ABSOLUTE, CENTERED UNDER BUTTON ----- */
.dropdown-content {
  display: none;
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  width: max-content;
  max-width: 350px;
  background-color: #b5b4c5;
  box-shadow: 0 8px 16px rgba(0,0,0,0.2);
  z-index: 9999;
  list-style: none;
  margin: 0;
  padding: 0;
  text-align: center;
}
.dropdown-content li { list-style: none; }
.dropdown-content a {
  display: block;
  padding: 12px 16px;
  color: #000;
  text-decoration: none;
  text-align: center;
  font-size: 16px;
}
.dropdown-content a:hover { background-color: #f1f1f1; }

/* ----- HOVER ON DESKTOP ONLY ----- */
.dropdown:hover .dropdown-content {
  display: block;
}
.show { display: block; } /* for JS fallback (mobile) */

/* ----- MOBILE (≤600px) – RESTORE MINIMA HEADER + ACCORDION + MENU TITLE ----- */
@media only screen and (max-width: 600px) {
  /* Original minima .site-nav positioning */
  .site-nav {
    position: absolute;
    top: 10px;
    right: 15px;
    background-color: #fdfdfd;
    border: 1px solid #e8e8e8;
    border-radius: 5px;
    text-align: right;
  }

  /* Hamburger icon – square, rounded corners */
  .site-nav .menu-icon {
    display: block;
    float: right;
    width: 36px;
    height: 26px;
    padding-top: 10px;
    text-align: center;
  }
  .site-nav .menu-icon svg {
    width: 18px;
    height: 15px;
  }
  .site-nav label[for="nav-trigger"] {
    display: block;
    float: right;
    width: 36px;
    height: 36px;
    z-index: 2;
    cursor: pointer;
  }

  /* Hidden by default, shown when checkbox checked */
  .trigger {
    display: none;
    clear: both;
    background: #fdfdfd;
    border: 1px solid #e8e8e8;
    border-top: none;
    margin-top: 5px;
    padding: 10px;
  }
  #nav-trigger:checked ~ .trigger {
    display: block;
  }

  /* Menu items stack vertically */
  .menu {
    display: block;
    margin: 0;
    padding: 0;
  }
  .menu > li {
    display: block;
    width: 100%;
    margin: 0;
    padding: 0;
  }

  /* Hide desktop title inside nav */
  .menu .site-title-item {
    display: none;
  }

  /* Dropdown container full width */
  .dropdown {
    display: block;
    width: 100%;
  }

  /* Buttons – full width, left-aligned, grey background */
  .dropbtn {
    display: block;
    width: 100%;
    text-align: left;
    padding: 14px 20px;
    background-color: #e0e0e0;
    border: none;
    border-bottom: 1px solid #ccc;
    font-size: 18px;
    cursor: pointer;
  }

  /* Dropdown content – inline, static, no shadow, light grey */
  .dropdown-content {
    display: none;
    width: 100%;
    max-width: none;
    position: static;
    background-color: #f9f9f9;
    box-shadow: none;
    transform: none;
    left: auto;
    top: auto;
    margin: 0;
    padding: 0;
  }
  .dropdown-content a {
    padding: 12px 20px;
    text-align: left;
    border-bottom: 1px solid #eee;
  }

  /* Standalone site title – visible left of hamburger */
  .site-header > .wrapper > .site-title {
    display: block;
    float: left;
    font-size: 22px;
    line-height: 54px;
    background: none;
    margin: 0;
  }

  /* Mobile menu title – appears as first item in dropdown */
  .mobile-menu-title {
    display: block;
    font-size: 22px;
    line-height: 54px;
    padding: 10px 20px;
    background-color: #d0d0d0;
    text-decoration: none;
    color: #444 !important;
    border-bottom: 1px solid #ccc;
  }

  /* Hide desktop-only title */
  .desktop-only {
    display: none;
  }
}