/* snag.fabri.cc / snagStyles.css */

body {
  padding: 0;
  font-family: "Rubik", sans-serif;
  font-weight: 600;
  text-align: center;
  margin: 0;
  pointer-events: none;
  position: absolute;
  width: 100%;
  height: 100%;
  overflow: hidden;

  /* swap this for your own background image later */
  background: #f4f4f4 url("images/snag-bg.jpg") no-repeat;
  background-size: cover;
  background-position: center 75%;
}

a {
  text-decoration: none;
  color: inherit;
}

input:focus,
input:focus-visible,
select:focus,
select:focus-visible {
  outline: none;
}

/* match go structure */
.holder {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 20px;
  background-size: cover;
  background-position: center 75%;
  background-repeat: no-repeat;
  z-index: -3;
}

#overlay {
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;
  background: #ffffff47;
  z-index: 0;
  pointer-events: all;
}

#logo {
  position: absolute;
  top: 18px;
  left: 22px;
  display: flex;
  align-items: center;
  z-index: 10;
  pointer-events: all;
}

#logo img {
  height: 30px;
  width: auto;
}

#logo p {
  font-family: "Rubik", sans-serif;
  font-weight: 500;
  align-self: center;
  margin: 0 0 0 8px;
  font-size: 18px;
  letter-spacing: 6px;
  color: #a39a8e;
  text-shadow: -1px -0.5px #fff;
  transform: translateY(2px);
}

.frontCap {
  margin-right: 6px;
  font-weight: 400;
}

/* ---------- logged out welcome ---------- */
#logoutWelcome {
  position: absolute;
  left: 0;
  top: 30%;
  width: 100%;
  text-align: center;
  color: #449ba4;
  font-size: 27px;
  font-weight: bold;
  opacity: 1;
  pointer-events: all;
  text-shadow: 0 0 20px rgb(247, 244, 241);
  font-family: "Rubik", sans-serif;
  transition: all 0.3s ease;
  z-index: 5;
}

#logoutWelcome.loggedIn {
  opacity: 0;
  pointer-events: none;
}

#logoutWelcome h1 {
  margin: 0 0 14px;
}

#logoutWelcome .subhead {
  font-size: 18px;
  font-weight: 400;
  color: #6a6a6a;
  margin: 0 0 20px;
}

#logoutWelcome .button p {
  cursor: pointer;
  font-size: 21px;
  display: inline-block;
  padding: 6px 14px;
  color: #fff;
  background: #862d2d91;
  border-radius: 4px;
}

/* ---------- main mats ---------- */
#container,
#questionMat {
  opacity: 0;
  position: relative;
  margin: 75px auto 0;
  background: #fffffff0;
  max-width: 560px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  border-radius: 8px;
  height: auto;
  max-height: calc(100vh - 150px);
  pointer-events: none;
  transition: 0.3s ease;
  z-index: 6;
  overflow: hidden;
}

#container.loggedIn {
  opacity: 1;
  pointer-events: all;
}

/* auth mat spacing */
#auth-section {
  padding: 50px 0;
}

/* dashboard area */
#dashboard {
  padding: 14px;
  pointer-events: all;
}

#snagTool {
  background: #fff;
  padding: 14px;
  border-radius: 10px;
  box-shadow: 3px 2px 11px -10px #829599;
  text-align: left;
}

.titleRow {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 10px;
}

.titleRow h2 {
  margin: 0 0 6px;
  font-weight: 500;
  color: #1f7384;
  letter-spacing: 1px;
}

.miniNote {
  margin: 0;
  font-size: 12px;
  font-weight: 400;
  color: #6c6c6c;
}

.optRow {
  margin: 14px 0;
}

.optRow label {
  display: block;
  font-size: 12px;
  font-weight: 500;
  color: #5e8e97;
  margin-bottom: 6px;
  text-transform: lowercase;
  letter-spacing: 0.6px;
}

.optRow input,
.optRow select {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid #d7e4e2;
  background: #f2f7f6;
  border-radius: 6px;
  padding: 12px 12px;
  font-size: 15px;
  font-weight: 400;
  color: #3d4648;
  pointer-events: all;
}

.optRow .hint {
  margin: 6px 0 0;
  font-size: 12px;
  font-weight: 400;
  color: #7a7a7a;
}

.twoCol {
  display: flex;
  gap: 12px;
}

.twoCol .col {
  flex: 1;
}

/* segmented buttons */
.segmented {
  display: flex;
  gap: 8px;
}

.segBtn {
  flex: 1;
  border: 1px solid #cfe0de;
  background: #eef4f3;
  color: #3d4648;
  border-radius: 8px;
  padding: 11px 10px;
  cursor: pointer;
  font-weight: 500;
  font-size: 14px;
  pointer-events: all;
  transition: 0.15s ease;
}

.segBtn i {
  margin-right: 8px;
}

.segBtn.active {
  background: #5e8e97;
  border-color: #5e8e97;
  color: #fff;
}

.segBtn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* action buttons */
.actionRow {
  display: flex;
  gap: 10px;
  margin-top: 10px;
}

.primaryBtn,
.ghostBtn {
  border: none;
  border-radius: 7px;
  padding: 12px 14px;
  cursor: pointer;
  font-weight: 600;
  pointer-events: all;
}

.primaryBtn {
  background: #5e8e97;
  color: #fff;
  flex: 1;
}

.primaryBtn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.ghostBtn {
  background: #e9efee;
  color: #3d4648;
  width: 120px;
}

/* job area */
.jobArea {
  margin-top: 14px;
  background: #fbfafa;
  border-radius: 10px;
  padding: 12px;
  border: 1px solid #e3e8e7;
}

.jobTop {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}

.jobStatus {
  margin: 0;
  font-size: 13px;
  font-weight: 500;
  color: #3d4648;
}

.muted {
  font-weight: 400;
  color: #6c6c6c;
  margin-left: 8px;
}

/* status pill */
.pill {
  display: inline-block;
  padding: 4px 9px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.4px;
  background: #e7ecea;
  color: #3d4648;
  margin-right: 8px;
}

.pill-queued { background: #e7ecea; }
.pill-downloading { background: #dfecef; }
.pill-converting { background: #f1eadf; }
.pill-done { background: #deefe0; }
.pill-error { background: #f2d9d9; }

.progressWrap {
  margin-top: 10px;
}

.progressBar {
  width: 100%;
  height: 10px;
  border-radius: 999px;
  background: #e7ecea;
  overflow: hidden;
}

.progressFill {
  height: 100%;
  width: 0%;
  background: #5e8e97;
  border-radius: 999px;
  transition: width 0.2s ease;
}

/* log box */
.logWrap {
  margin-top: 12px;
}

.logTitle {
  margin: 0 0 6px;
  font-size: 12px;
  font-weight: 600;
  color: #5e8e97;
}

.logTail {
  margin: 0;
  padding: 10px;
  border-radius: 8px;
  border: 1px solid #e3e8e7;
  background: #ffffff;
  font-family: "Roboto Mono", monospace;
  font-size: 11px;
  line-height: 16px;
  color: #3d4648;
  max-height: 160px;
  overflow: auto;
}

/* help mat */
#questionMat {
  display: none;
  padding: 20px;
  text-align: left;
}

#questionMat h2 {
  margin-top: 0;
  color: #1f7384;
  font-weight: 500;
}

.howBlock p {
  margin: 12px 0;
  font-weight: 400;
  color: #3d4648;
}

.highLight {
  background: #e7ecea;
  padding: 1px 5px;
  margin-right: 6px;
  display: inline-block;
  border: 0.5px solid #74aeb5;
  font-weight: 500;
  color: #3d4648;
  white-space: nowrap;
  border-radius: 4px;
}

.legalNote {
  margin-top: 12px;
  font-size: 12px;
  font-weight: 400;
  color: #6c6c6c;
}

/* responsive */
@media (max-width: 640px) {
  #container,
  #questionMat {
    margin-top: 70px;
    max-width: calc(100% - 30px);
  }

  .twoCol {
    flex-direction: column;
  }

  #logoutWelcome .subhead {
    padding: 0 18px;
  }
}
