/* Download Page Styles - Matching Typid's Minimal Aesthetic */

/* CSS Variables matching Typid */
:root {
  --bg-primary: #FAFAFA;
  --bg-secondary: #F5F5F5;
  --text-primary: #1A1A1A;
  --text-secondary: #666666;
  --text-muted: #999999;
  --accent: #0066CC;
  --border: #E5E5E5;

  --font-ui: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-heading: 'Lora', Georgia, serif;
  --font-mono: 'JetBrains Mono', 'SF Mono', Consolas, monospace;

  --content-width: 720px;
}

/* Dark theme */
.dark {
  --bg-primary: #1D1D1D;
  --bg-secondary: #252525;
  --text-primary: #E0E0E0;
  --text-secondary: #A0A0A0;
  --text-muted: #666666;
  --accent: #6BA4E7;
  --border: #333333;
}

/* Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-ui);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.download-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 48px 16px;
}

.container {
  width: 100%;
  max-width: var(--content-width);
}

.hero {
  text-align: center;
  margin-bottom: 48px;
  padding: 0 16px;
}

.app-name {
  font-family: var(--font-heading);
  font-size: 48px;
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: 8px;
  letter-spacing: -0.5px;
}

.tagline {
  font-size: 16px;
  color: var(--text-secondary);
  font-weight: 400;
  margin-bottom: 24px;
}

.version-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--bg-secondary);
  color: var(--text-secondary);
  padding: 6px 14px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 500;
  border: 1px solid var(--border);
}

.version-date {
  color: var(--text-muted);
  font-weight: 400;
}

.recommended-badge {
  margin-top: 16px;
  font-size: 14px;
  color: var(--text-secondary);
}

.recommended-badge strong {
  color: var(--accent);
}

.loading,
.error {
  padding: 16px;
  border-radius: 8px;
  margin: 24px 0;
  font-size: 15px;
}

.loading {
  color: var(--text-secondary);
  background: var(--bg-secondary);
  border: 1px solid var(--border);
}

.error {
  color: #dc2626;
  background: #fef2f2;
  border: 1px solid #fecaca;
}

.retry-button {
  background: var(--accent);
  color: white;
  border: none;
  padding: 10px 24px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.15s ease;
}

.retry-button:hover {
  background: #0055aa;
}

.download-sections {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.download-section {
  background: white;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 20px 24px;
  transition: border-color 0.15s ease;
}

.dark .download-section {
  background: var(--bg-secondary);
}

.download-section.recommended {
  border: 1px solid var(--accent);
}

.download-section:hover {
  border-color: var(--accent);
  border-color: var(--text-muted);
}

.section-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.icon {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-secondary);
  color: var(--text-primary);
  border-radius: 6px;
  font-size: 16px;
  font-weight: 500;
  border: 1px solid var(--border);
}

.dark .icon {
  background: var(--bg-primary);
}

.section-title {
  font-size: 18px;
  color: var(--text-primary);
  font-weight: 600;
}

.download-buttons {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.download-button {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.button {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border: none;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.15s ease;
  text-align: left;
  width: 100%;
}

.button.primary {
  background: var(--accent);
  color: white;
}

.button.primary:hover {
  background: #0055aa;
}

.button-icon {
  font-size: 16px;
  font-weight: 500;
}

.button-text {
  flex: 1;
  font-weight: 500;
}

.download-info {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 4px;
}

.file-size {
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 500;
}

.file-name {
  font-size: 12px;
  color: var(--text-muted);
  font-family: var(--font-mono);
}

.footer {
  margin-top: 40px;
  text-align: center;
}

.github-link {
  color: var(--text-secondary);
  font-size: 14px;
  text-decoration: none;
  font-weight: 500;
  padding: 8px 16px;
  border-radius: 6px;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  transition: all 0.15s ease;
  display: inline-block;
}

.github-link:hover {
  background: var(--bg-primary);
  color: var(--accent);
  text-decoration: none;
  border-color: var(--text-muted);
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--text-muted);
}

/* Installation Note */
.installation-note {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 20px;
  margin-top: 16px;
  text-align: left;
}

.installation-note h4 {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.installation-note p {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 12px;
}

.installation-note ol {
  margin: 16px 0;
  padding-left: 24px;
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
}

.installation-note li {
  margin-bottom: 8px;
  padding-left: 8px;
}

.installation-note li:last-child {
  margin-bottom: 12px;
}

.installation-note li code {
  display: inline;
  background: var(--bg-primary);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 2px 8px;
  font-size: 13px;
  color: var(--accent);
  margin: 0 4px;
}

.installation-note code {
  display: block;
  padding: 12px;
  background: var(--bg-primary);
  border: 1px solid var(--border);
  border-radius: 6px;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--accent);
  margin-bottom: 12px;
  word-break: break-all;
}

.installation-note li code {
  display: inline;
  background: var(--bg-primary);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 2px 8px;
  font-size: 13px;
  color: var(--accent);
  margin: 0 4px;
}

.installation-note a {
  font-size: 14px;
  color: var(--accent);
  text-decoration: none;
  font-weight: 500;
}

.installation-note a:hover {
  text-decoration: underline;
}

@media (max-width: 768px) {
  .app-name {
    font-size: 36px;
  }

  .download-section {
    padding: 16px 20px;
  }

  .container {
    padding: 0;
  }
}
