/* SharedDrive: the public listing (pastes and files) and the paste viewer.
 * Uses the Classical tokens and base from ../css/style.css (page,
 * page-head, links). Mobile-first.
 */

/* Listing */
.drive-section + .drive-section { margin-top: 48px; }

.drive-heading {
  margin-bottom: 16px;
  font-size: 30px;
  line-height: 1.1;
}

.drive-table {
  width: 100%;
  border-collapse: collapse;
  border-top: 1px solid var(--color-divider);
}

.drive-table th,
.drive-table td {
  text-align: left;
  padding: 14px 16px 14px 0;
  border-bottom: 1px solid var(--color-divider);
  font-size: 15px;
  vertical-align: baseline;
}

.drive-table thead th {
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-accent-700);
}

.drive-table td:first-child { overflow-wrap: anywhere; }
.drive-table td:not(:first-child) { color: var(--text-72); white-space: nowrap; font-feature-settings: "tnum" 1; }

.empty {
  padding: 28px 0;
  border-top: 1px solid var(--color-divider);
  border-bottom: 1px solid var(--color-divider);
  color: var(--text-72);
}

/* Paste viewer */
.paste-shell {
  max-width: 760px;
  gap: 24px;
  padding-bottom: 24px;
}

.share-component {
  padding: clamp(24px, 4vw, 40px);
  border: 1px solid var(--color-divider);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  color: var(--color-text);
}

.share-muted {
  margin-bottom: 14px;
  font-size: 14px;
  line-height: 22px;
  color: var(--text-72);
}

.share-dead {
  margin-bottom: 8px;
  font-family: var(--font-heading);
  font-weight: var(--font-heading-weight);
  font-size: 26px;
  line-height: 1.1;
}

/* Same look as .btn .btn-primary in the base stylesheet */
.share-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 44px;
  padding: 0 20px;
  font-family: var(--font-heading);
  font-weight: var(--font-heading-weight);
  font-size: 15px;
  line-height: 1.2;
  color: var(--color-accent-700);
  background: transparent;
  border: 1px solid var(--color-accent);
  border-radius: var(--radius-md);
  cursor: pointer;
  text-decoration: none;
  transition: background-color 0.15s;
}

.share-btn:hover {
  color: var(--color-accent-700);
  background: color-mix(in srgb, var(--color-accent) 12%, transparent);
}

.share-btn:active { background: color-mix(in srgb, var(--color-accent) 22%, transparent); }

.paste-body {
  margin: 0 0 16px;
  padding: 16px;
  max-height: 70vh;
  overflow: auto;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 14px;
  line-height: 22px;
  color: var(--color-text);
  background: var(--color-surface);
  border: 1px solid var(--color-divider);
  border-radius: var(--radius-md);
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.paste-link,
.paste-url {
  color: var(--color-accent-700);
  overflow-wrap: anywhere;
}

.paste-url {
  display: block;
  margin-bottom: 16px;
  font-size: 18px;
  line-height: 28px;
}

.paste-open { margin: 0 8px 8px 0; }

.paste-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

@media (prefers-reduced-motion: reduce) {
  .share-btn { transition: none; }
}
