/* Subscription Content Page – public site */

:root {
  --bg: #0d0d0f;
  --surface: #16161a;
  --border: #2a2a2e;
  --text: #e4e4e7;
  --text-muted: #a1a1aa;
  --accent: #7c3aed;
  --accent-hover: #8b5cf6;
  --mono: "JetBrains Mono", ui-monospace, monospace;
  --sans: "DM Sans", system-ui, sans-serif;
  --radius: 10px;
  --wrap: min(90vw, 720px);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(13, 13, 15, 0.9);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--border);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1rem;
  padding-bottom: 1rem;
}

.logo {
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--text);
  text-decoration: none;
  letter-spacing: -0.02em;
  display: flex;
  align-items: center;
}

.site-header .logo {
  display: none; /* logo hidden for now */
}
.logo-img {
  height: 36px;
  width: auto;
  display: block;
  object-fit: contain;
}

.site-header nav {
  display: flex;
  gap: 1.5rem;
}

.site-header nav a {
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.9375rem;
}

.site-header nav a:hover {
  color: var(--text);
}

/* Hero */
.hero {
  padding: 3.5rem 0 2.5rem;
}

.hero h1 {
  margin: 0 0 0.5rem;
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 700;
  letter-spacing: -0.03em;
}

.hero-desc {
  margin: 0;
  color: var(--text-muted);
  font-size: 1.0625rem;
}

/* Sections */
.section {
  padding: 2.5rem 0 3rem;
  border-top: 1px solid var(--border);
}

.section h2 {
  margin: 0 0 0.35rem;
  font-size: 1.375rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.section-desc {
  margin: 0 0 1.5rem;
  color: var(--text-muted);
  font-size: 0.9375rem;
}

/* Download / versions */
.versions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.version-card {
  padding: 1rem 1.25rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.version-card-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.version-info {
  flex: 1;
  min-width: 0;
}

.version-card-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
  margin-left: auto;
}

.version-info .version {
  font-family: var(--mono);
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--text);
}

.version-info .meta {
  margin-top: 0.25rem;
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.version-notes-toggle {
  padding: 0.4rem 0.6rem;
  font-family: var(--sans);
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--accent);
  background: transparent;
  border: 1px solid var(--accent);
  border-radius: 6px;
  cursor: pointer;
}

.version-notes-toggle:hover {
  background: rgba(124, 58, 237, 0.1);
}

.version-notes {
  display: none;
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border);
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.5;
  white-space: pre-wrap;
}

.version-card.expanded .version-notes {
  display: block;
}

.version-card .btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  font-family: var(--sans);
  font-size: 0.875rem;
  font-weight: 600;
  color: #fff;
  background: var(--accent);
  border: none;
  border-radius: 8px;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s;
}

.version-card .btn:hover {
  background: var(--accent-hover);
}

/* Video grid */
.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.25rem;
}

.video-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color 0.2s;
}

.video-card:hover {
  border-color: var(--accent);
}

.video-card a {
  color: inherit;
  text-decoration: none;
  display: block;
}

.video-thumb {
  aspect-ratio: 16/9;
  background: var(--border);
  position: relative;
  overflow: hidden;
}

.video-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.video-thumb .play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.4);
  opacity: 0;
  transition: opacity 0.2s;
}

.video-card:hover .play {
  opacity: 1;
}

.video-thumb .play svg {
  width: 48px;
  height: 48px;
  fill: #fff;
}

.video-body {
  padding: 1rem;
}

.video-body h3 {
  margin: 0 0 0.35rem;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.35;
}

.video-body .duration {
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--text-muted);
}

.video-body .desc {
  margin-top: 0.5rem;
  font-size: 0.8125rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.loading {
  color: var(--text-muted);
  font-size: 0.9375rem;
}

.error {
  color: #f87171;
  font-size: 0.9375rem;
}

/* Footer */
.site-footer {
  padding: 2rem 0;
  border-top: 1px solid var(--border);
  margin-top: 1rem;
}

.site-footer p {
  margin: 0;
  font-size: 0.8125rem;
  color: var(--text-muted);
}
