/* Aqua-style theme, based on the Mac OS X 10.4 look. Plain CSS for old Safari:
   no flexbox, no CSS variables. Class names match index.html and js/app.js. */

html, body {
  margin: 0;
  padding: 0;
  min-height: 100%;
  background: #d9dde4;
  background-image: -webkit-gradient(linear, left top, left bottom, from(#eef1f5), to(#c7cdd6));
  background-image: linear-gradient(#eef1f5, #c7cdd6);
  font-family: Helvetica, Arial, sans-serif;
  font-size: 16px;
  color: #000;
  -webkit-text-size-adjust: none;
}

/* Title bar: brushed grey, like a Mac window */
.navbar {
  position: relative;
  height: 44px;
  background-color: #cfd3d9;
  background-image: -webkit-gradient(linear, left top, left bottom, from(#f6f7f9), color-stop(0.5, #e1e4e9), to(#b7bcc4));
  background-image: linear-gradient(#f6f7f9, #e1e4e9 50%, #b7bcc4);
  border-bottom: 1px solid #7d848e;
  box-shadow: 0 1px 0 #ffffff inset;
  text-align: center;
}
.nav-title {
  margin: 0;
  padding-top: 10px;
  font-size: 19px;
  font-weight: bold;
  color: #2b2f36;
  text-shadow: 0 1px 0 #ffffff;
}
.nav-btn {
  position: absolute;
  top: 7px;
  height: 28px;
  line-height: 28px;
  padding: 0 12px;
  font-size: 14px;
  font-weight: bold;
  color: #2a2f38;
  text-decoration: none;
  text-shadow: 0 1px 0 #ffffff;
  border: 1px solid #7d848e;
  border-radius: 14px;
  background-color: #eceef2;
  background-image: -webkit-gradient(linear, left top, left bottom, from(#ffffff), color-stop(0.5, #f0f2f5), to(#cdd2da));
  background-image: linear-gradient(#ffffff, #f0f2f5 50%, #cdd2da);
  box-shadow: 0 1px 1px rgba(0, 0, 0, 0.15);
}
.nav-btn:active {
  background-image: -webkit-gradient(linear, left top, left bottom, from(#b9c0ca), to(#dfe3e9));
  background-image: linear-gradient(#b9c0ca, #dfe3e9);
}
.nav-left { left: 8px; }
.nav-right { right: 8px; }

/* Content */
.content {
  padding: 0 0 20px 0;
}
.group-header {
  padding: 16px 18px 6px 18px;
  font-size: 13px;
  font-weight: bold;
  color: #4a5160;
  text-shadow: 0 1px 0 #ffffff;
}

/* White panels with a soft edge, like Aqua list windows */
.group {
  margin: 0 10px;
  background: #ffffff;
  border: 1px solid #9aa1ab;
  border-radius: 8px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.12);
  overflow: hidden;
}

/* Rows */
.row {
  position: relative;
  min-height: 44px;
  padding: 0 14px;
  border-top: 1px solid #dfe2e7;
  line-height: 44px;
  font-size: 16px;
}
.row:first-child {
  border-top: 0;
}
.row-label {
  color: #000;
  display: inline-block;
}
.muted {
  color: #8a909a;
}
.row-action {
  display: block;
  padding: 0 14px;
  min-height: 44px;
  line-height: 44px;
  color: #000;
  border-top: 1px solid #dfe2e7;
  position: relative;
  text-decoration: none;
}
.row-action:first-child {
  border-top: 0;
}
a.row-action:active {
  background-color: #dbe6f7;
}
.chevron {
  position: absolute;
  right: 14px;
  top: 0;
  font-size: 20px;
  color: #a4aab4;
  font-weight: bold;
  -webkit-transition: -webkit-transform 0.2s;
}
.chevron.open {
  -webkit-transform: rotate(90deg);
  transform: rotate(90deg);
}

/* Repo name, URL and status row */
.repo-name {
  font-weight: bold;
  display: inline-block;
  width: 60%;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  vertical-align: middle;
}
.repo-url {
  display: block;
  font-size: 13px;
  color: #2f5ea8;
  line-height: 16px;
  padding-bottom: 8px;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.repo-main {
  padding: 8px 0;
  line-height: 20px;
  min-height: 44px;
}

/* Glossy status dots: a white highlight on top of a coloured base */
.dot {
  display: inline-block;
  width: 12px;
  height: 12px;
  margin-right: 6px;
  border-radius: 6px;
  vertical-align: middle;
  border: 1px solid rgba(0, 0, 0, 0.3);
  box-shadow: 0 1px 1px rgba(0, 0, 0, 0.25);
}
.dot-green {
  background-color: #3cb84f;
  background-image: -webkit-gradient(linear, left top, left center, from(rgba(255,255,255,0.85)), to(rgba(255,255,255,0.05))),
                    -webkit-gradient(linear, left top, left bottom, from(#8ff09c), to(#2a9a3c));
  background-image: linear-gradient(rgba(255,255,255,0.85), rgba(255,255,255,0.05) 50%, rgba(0,0,0,0)), linear-gradient(#8ff09c, #2a9a3c);
}
.dot-orange {
  background-color: #e8890c;
  background-image: -webkit-gradient(linear, left top, left center, from(rgba(255,255,255,0.85)), to(rgba(255,255,255,0.05))),
                    -webkit-gradient(linear, left top, left bottom, from(#ffc572), to(#c46a00));
  background-image: linear-gradient(rgba(255,255,255,0.85), rgba(255,255,255,0.05) 50%, rgba(0,0,0,0)), linear-gradient(#ffc572, #c46a00);
}
.dot-red {
  background-color: #d62f22;
  background-image: -webkit-gradient(linear, left top, left center, from(rgba(255,255,255,0.85)), to(rgba(255,255,255,0.05))),
                    -webkit-gradient(linear, left top, left bottom, from(#ff8c82), to(#a11d13));
  background-image: linear-gradient(rgba(255,255,255,0.85), rgba(255,255,255,0.05) 50%, rgba(0,0,0,0)), linear-gradient(#ff8c82, #a11d13);
}
.dot-grey {
  background-color: #9a9aa0;
  background-image: -webkit-gradient(linear, left top, left center, from(rgba(255,255,255,0.85)), to(rgba(255,255,255,0.05))),
                    -webkit-gradient(linear, left top, left bottom, from(#d8d8dc), to(#6e6e74));
  background-image: linear-gradient(rgba(255,255,255,0.85), rgba(255,255,255,0.05) 50%, rgba(0,0,0,0)), linear-gradient(#d8d8dc, #6e6e74);
}

/* Aqua blue pill button for Copy */
.copy-btn {
  float: right;
  margin-top: 8px;
  height: 28px;
  line-height: 26px;
  padding: 0 14px;
  font-size: 14px;
  font-weight: bold;
  color: #ffffff;
  text-shadow: 0 -1px 0 #2a5c9e;
  border: 1px solid #2d62ab;
  border-radius: 14px;
  background-color: #4a8ee0;
  background-image: -webkit-gradient(linear, left top, left bottom, from(#a9cdf7), color-stop(0.5, #5b9be6), to(#2f74cc));
  background-image: linear-gradient(#a9cdf7, #5b9be6 50%, #2f74cc);
  box-shadow: 0 1px 1px rgba(0, 0, 0, 0.2);
}
.copy-btn:active {
  background-image: -webkit-gradient(linear, left top, left bottom, from(#2f74cc), to(#5b9be6));
  background-image: linear-gradient(#2f74cc, #5b9be6);
}

/* Expanded tweak list */
.tweaks {
  background-color: #f2f5f9;
  border-top: 1px solid #dfe2e7;
}
.tweak {
  padding: 10px 14px 10px 30px;
  font-size: 15px;
  border-top: 1px solid #e3e6ea;
  line-height: 20px;
}
.tweak:first-child {
  border-top: 0;
}
.tweak-desc {
  display: block;
  font-size: 13px;
  color: #6b717c;
}
.repo-meta {
  font-size: 13px;
  color: #6b717c;
}
.report-link {
  font-size: 15px;
  color: #2f5ea8;
  text-decoration: none;
}

/* Search field: Aqua-style rounded input */
.search-row {
  padding: 8px 10px;
}
.search-box {
  width: 100%;
  height: 30px;
  font-size: 16px;
  padding: 0 10px;
  border: 1px solid #9aa1ab;
  border-radius: 12px;
  background: #ffffff;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.15) inset;
  -webkit-box-sizing: border-box;
  box-sizing: border-box;
}

/* iOS version picker, placed on the right of its row */
.ios-select {
  position: absolute;
  right: 10px;
  top: 7px;
  height: 30px;
  font-size: 15px;
  color: #1d5fb4;
  background: #ffffff;
  border: 0;
}

.footer {
  padding: 14px 20px 0 20px;
  font-size: 13px;
  color: #4a5160;
  text-align: center;
  text-shadow: 0 1px 0 #ffffff;
}

/* Softboard posts */
.post {
  padding: 12px 14px;
  border-top: 1px solid #dfe2e7;
  line-height: 20px;
}
.post:first-child {
  border-top: 0;
}
.post-author {
  font-weight: bold;
  color: #2f5ea8;
  font-size: 15px;
}
.post-date {
  font-size: 12px;
  color: #8a909a;
  padding-bottom: 4px;
}
.post-body {
  font-size: 16px;
  color: #000;
}

/* Sort, saved repos and the save button */
.star {
  color: #e8890c;
  font-size: 14px;
}
.fav-btn {
  display: inline-block;
  height: 28px;
  line-height: 26px;
  padding: 0 14px;
  font-size: 14px;
  font-weight: bold;
  color: #2f5ea8;
  text-shadow: 0 1px 0 #ffffff;
  border: 1px solid #9aa1ab;
  border-radius: 14px;
  background-color: #eceef2;
  background-image: -webkit-gradient(linear, left top, left bottom, from(#ffffff), to(#cdd2da));
  background-image: linear-gradient(#ffffff, #cdd2da);
}
.fav-btn:active {
  background-image: -webkit-gradient(linear, left top, left bottom, from(#b9c0ca), to(#dfe3e9));
  background-image: linear-gradient(#b9c0ca, #dfe3e9);
}

/* Version number on the right of each tweak */
.tweak-version {
  float: right;
  font-size: 14px;
  color: #2f5ea8;
}

/* Recently changed dates and tweak tap */
.recent-when {
  float: right;
  font-size: 13px;
  color: #6b717c;
}
.tweak-tap {
  cursor: pointer;
}

.nav-logo {
  width: 26px;
  height: 26px;
  vertical-align: middle;
  margin-right: 6px;
  margin-top: -3px;
  border-radius: 6px;
}

/* Dark mode: js/theme.js adds the class "dark" to <html> */
html.dark, html.dark body {
  background: #1c1e23;
  background-image: none;
  color: #e6e8ec;
}
html.dark .navbar {
  background-color: #2a2d34;
  background-image: -webkit-gradient(linear, left top, left bottom, from(#3a3e47), color-stop(0.5, #2a2d34), to(#1f2227));
  background-image: linear-gradient(#3a3e47, #2a2d34 50%, #1f2227);
  border-bottom-color: #0c0d10;
}
html.dark .nav-title { color: #f2f3f5; text-shadow: 0 -1px 0 #000; }
html.dark .nav-btn,
html.dark .fav-btn {
  color: #e6e8ec;
  text-shadow: 0 -1px 0 #000;
  border-color: #50555f;
  background-color: #3a3e47;
  background-image: -webkit-gradient(linear, left top, left bottom, from(#4a4f59), to(#2e3238));
  background-image: linear-gradient(#4a4f59, #2e3238);
}
html.dark .group { background-color: #2a2d34; border-color: #50555f; }
html.dark .group-header,
html.dark .footer { color: #aeb4bf; text-shadow: 0 -1px 0 #000; }
html.dark .row,
html.dark .row-action { color: #e6e8ec; border-top-color: #3a3e47; }
html.dark a.row-action:active { background-color: #3a3e47; }
html.dark .muted { color: #7a808b; }
html.dark .repo-url,
html.dark .report-link,
html.dark .post-author { color: #7fa8e6; }
html.dark .repo-meta,
html.dark .tweak-desc,
html.dark .post-date,
html.dark .tweak-version,
html.dark .recent-when { color: #9aa1ac; }
html.dark .tweaks { background-color: #23262c; border-top-color: #3a3e47; }
html.dark .tweak { border-top-color: #3a3e47; }
html.dark .post { border-top-color: #3a3e47; }
html.dark .search-box {
  background-color: #1c1e23;
  color: #e6e8ec;
  border-color: #50555f;
  box-shadow: none;
}
html.dark .ios-select { background: transparent; color: #7fa8e6; }
