/* The look of the extension's popup: Beatport's dark palette and brand green, see src/assets/styles/variables.scss */

:root {
  --bg: #141414;
  --surface: #1f1f1f;
  --border: #2e2e2e;
  --text: #f0f0f0;
  --muted: #8f8f8f;
  --green: #01ff95;
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.5 -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--green);
}

a:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 2px;
}

kbd {
  padding: 0 0.35em;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: var(--surface);
  font: inherit;
  font-size: 0.9em;
}

.wrap {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
}

.top {
  border-bottom: 1px solid var(--border);
}

.top .wrap {
  display: flex;
  align-items: center;
  gap: 24px;
  height: 64px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-weight: 600;
  text-decoration: none;
}

.top nav {
  display: flex;
  gap: 24px;
  margin-left: auto;
}

.top nav a,
footer a {
  color: var(--muted);
  text-decoration: none;
}

.top nav a:hover,
footer a:hover {
  color: var(--text);
}

.hero {
  padding: 72px 0 0;
  text-align: center;
}

h1 {
  margin: 16px 0 12px;
  font-size: clamp(2rem, 6vw, 3.2rem);
  line-height: 1.15;
  letter-spacing: -0.01em;
}

.lead {
  max-width: 640px;
  margin: 0 auto 28px;
  color: var(--muted);
  font-size: 1.15rem;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.button {
  display: inline-flex;
  align-items: center;
  height: 44px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}

.button--primary {
  background: var(--green);
  color: var(--bg);
}

.button--primary:hover {
  background: #4dffb4;
}

.button--ghost {
  border-color: rgb(1 255 149 / 55%);
  background: rgb(1 255 149 / 8%);
  color: var(--text);
}

.button--ghost:hover {
  border-color: var(--green);
  background: rgb(1 255 149 / 18%);
}

.note {
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.shot {
  margin: 48px 0 0;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 10px;
  box-shadow: 0 24px 60px rgb(0 0 0 / 55%);
}

.shot img,
figure img {
  display: block;
  width: 100%;
  height: auto;
}

section {
  padding: 64px 0 0;
}

h2 {
  margin: 0 0 24px;
  font-size: 1.6rem;
}

.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.feature {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
}

h3 {
  margin: 0 0 4px;
  font-size: 1rem;
  font-weight: 500;
}

.feature p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.45;
}

/* the popup's switch, switched on */
.switch {
  position: relative;
  flex: none;
  width: 36px;
  height: 20px;
  margin-top: 2px;
  border-radius: 999px;
  background: var(--green);
}

.switch::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 18px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--bg);
}

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
}

figure {
  margin: 0;
}

figure img {
  border: 1px solid var(--border);
  border-radius: 8px;
}

figcaption {
  margin-top: 10px;
  color: var(--muted);
  font-size: 0.95rem;
}

.privacy {
  padding: 20px 24px;
  border: 1px solid rgb(1 255 149 / 35%);
  border-radius: 8px;
  background: var(--surface);
  color: var(--muted);
}

.privacy p {
  margin: 0;
}

.privacy p + p {
  margin-top: 8px;
}

footer {
  margin-top: 72px;
  padding: 28px 0 40px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.9rem;
}

footer .wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px 24px;
}

footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

/* narrow screens: the hero buttons and the footer carry the links */
@media (max-width: 600px) {
  .top nav {
    display: none;
  }

  .hero {
    padding-top: 48px;
  }
}

/* privacy.html */
.policy {
  max-width: 760px;
  padding-top: 56px;
}

.policy h1 {
  margin-top: 0;
  font-size: clamp(1.8rem, 5vw, 2.4rem);
}

.policy h2 {
  margin: 40px 0 12px;
  font-size: 1.25rem;
}

.policy p,
.policy li {
  color: #c8c8c8;
}

.policy ul {
  padding-left: 1.2rem;
}

.policy li + li {
  margin-top: 8px;
}

.updated {
  color: var(--muted);
}
