/* --- General Font & Body --- */
body {
  font-family: 'Press Start 2P', monospace;
  background: #d97bb3; /* pink desktop */
  margin: 0;
  overflow: hidden; /* Prevent page scrolling on mobile */
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
}

/* --- Main Client Review Window --- */
.window {
  width: 420px;
  height: 500px;
  background: #c0c0c0; /* window frame */
  border: 2px solid #000;
  box-shadow: 4px 4px 0 #7a7a7a;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* --- Title Bar --- */
.title-bar {
  background: #000080;
  color: white;
  padding: 4px 8px;
  font-size: 13px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* --- Window Buttons --- */
.buttons span {
  display: inline-block;
  width: 16px;
  height: 16px;
  margin-left: 4px;
  background: #c0c0c0;
  border: 1px solid #000;
  text-align: center;
  line-height: 14px;
  font-size: 11px;
  color: black;
  cursor: default;
}

/* --- Menu Bar --- */
.menu {
  background: #c0c0c0;
  padding: 4px 8px;
  font-size: 12px;
  border-bottom: 1px solid #808080;
}

.menu-item.clickable {
  cursor: pointer;
  color: #0000AA;
}
.menu-item.clickable:hover {
  background-color: #000080;
  color: #FFFFFF;
}

/* --- Content Area --- */
.content {
  background: #ffffff;
  flex-grow: 1;
  overflow-y: auto; /* scroll inside content */
  padding: 12px;
  font-size: 13px;
  line-height: 1.4;
}

/* --- Individual Review --- */
.review {
  margin-bottom: 18px;
}

/* --- Leave A Review Popup --- */
.review-popup {
  border: 2px solid #000;
  background: #C0C0C0;
  position: absolute;
  top: 100px;
  left: 50%;
  transform: translateX(-50%);
  display: none; /* KEEP hidden until opened */
  width: 400px;
  height: 250px;
  min-width: 300px;
  max-width: 500px;
  padding: 0;
  z-index: 1000;
  box-shadow: 4px 4px 0 #7a7a7a;
  flex-direction: column;
  resize: both;
  overflow: hidden;
  flex-shrink: 0;
}

/* --- Popup Title Bar --- */
.review-popup .title-bar {
  background: #000080;
  color: #FFF;
  font-family: 'MS Sans Serif', Tahoma, sans-serif;
  font-size: 13px;
  padding: 4px 8px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: move; /* draggable */
}

/* --- Popup Close Button --- */
.review-popup .buttons span {
  cursor: pointer;
  display: inline-block;
  width: 16px;
  height: 16px;
  margin-left: 4px;
  background: #c0c0c0;
  border: 1px solid #000;
  text-align: center;
  line-height: 14px;
  font-size: 11px;
  color: black;
}

/* --- Popup Content --- */
.review-popup .content {
  background: #dcdcdc;
  padding: 8px;
  font-family: 'MS Sans Serif', Tahoma, sans-serif;
  font-size: 13px;
  line-height: 1.4;
  overflow: auto;
  flex: 1 1 auto;
  min-height: 0;
}

/* --- Form Button --- */
.retro-button {
  font-family: 'MS Sans Serif', Tahoma, sans-serif;
  font-size: 13px;
  padding: 4px 8px;
  background: #C0C0C0;
  border: 2px solid #FFF;
  box-shadow: inset -2px -2px 0 #808080, inset 2px 2px 0 #FFF;
  cursor: pointer;
  color: #000;
}
.retro-button:hover {
  box-shadow: inset 2px 2px 0 #808080, inset -2px -2px 0 #FFF;
}

/* --- Mobile one-page client reviews --- */
@media (max-width: 768px) {

  .window {
    position: fixed !important;
    inset: 0 !important;

    width: 100vw !important;
    height: 100vh !important;

    max-width: none !important;
    max-height: none !important;

    margin: 0 !important;
    border-radius: 0;
    box-shadow: none;
  }

  body, html {
    overflow: hidden;
  }

}
  .content {
    flex: 1;
    overflow-y: auto; /* scrollable reviews inside */
  }

  body, html {
    margin: 0;
    padding: 0;
    overflow: hidden; /* background unscrollable */
  }

  /* Keep popup fixed size and draggable */
  .review-popup {
    width: 400px;
    height: 250px;
    max-width: 90%;
    max-height: 90%;
    position: absolute;
    top: 100px;
    left: 50%;
    transform: translateX(-50%);
    display: none;
    flex-direction: column;
    overflow: hidden; /* content scrolls only */
  }

  /* Prevent textarea resize */
  #reviewInput {
    resize: none;
  }
}
