/* Twitter Ripper — site styles (ripper.3mdash.net) */

html,
body {
  height: 100%;
}

body {
  margin: 0;
  padding: 2rem;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.panel {
  width: 100%;
  max-width: 720px;
}

.panel-body p {
  color: var(--text-dim);
}

.input-group {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin: 1.5rem 0;
}

input[type="url"] {
  width: 100%;
  height: 42px;
  background: transparent;
  border: 1px solid #333;
  color: #fff;
  padding: 0 1rem;
  font-family: inherit;
  font-size: 1rem;
}

input[type="url"]:focus {
  outline: none;
  border-color: #F59E0B;
}

.hidden {
  display: none;
}

.status-err {
  color: #ef4444;
  font-size: var(--text-sm);
  margin-top: 1.25rem;
}

.status-line {
  color: var(--text-dim);
  font-size: var(--text-sm);
  letter-spacing: 0.08em;
  margin-top: 1.25rem;
}

#results {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: 1.25rem;
}

/* DL button — same bones as .btn-primary (EXECUTE), inverted + blue */
.btn-dl {
  width: 100%;
  justify-content: space-between;
  gap: 1rem;
  overflow: hidden;
  background: transparent;
  color: var(--blue);
  border-color: var(--blue);
}

.btn-dl:hover {
  background: var(--blue-dim);
  border-color: #60a5fa;
}

.btn-dl:active {
  background: var(--blue-dim);
  border-color: var(--blue);
  filter: brightness(0.9);
}

.btn-dl span {
  white-space: nowrap;
}

.btn-dl .dl-meta {
  text-transform: none;
  letter-spacing: 0;
  color: #60a5fa;
}

@media (max-width: 640px) {
  body {
    padding: 0;
    overflow: hidden;
  }

  .panel {
    width: 100vw;
    height: 100vh;
    height: 100dvh;
    max-width: none;
    display: flex;
    flex-direction: column;
  }

  /* content block pinned to viewport vertical center;
     auto margins collapse to 0 once results overflow, so scrolling still starts at top */
  .panel-body {
    flex: 1;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    display: flex;
    flex-direction: column;
  }

  .panel-body > p {
    margin-top: auto;
  }

  .panel-body > #results {
    margin-bottom: auto;
  }

  /* dl button: label centered, details stacked below it */
  .btn-dl {
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 0.35rem;
    text-align: center;
  }

  .btn-dl .dl-meta {
    font-size: 11px;
  }
}
