@import url("https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600&family=Sora:wght@500;600;700&family=Space+Mono:wght@400;600&display=swap");

:root {
  --bg: #ffffff;
  --bg-2: #ffffff;
  --text: #0f172a;
  --muted: #5b6472;
  --surface: #ffffff;
  --surface-2: #f8fafc;
  --border: #e4e7ee;
  --accent: #00c46a;
  --accent-dark: #00a45a;
  --shadow: 0 18px 40px rgba(15, 23, 42, 0.08);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Manrope", "Trebuchet MS", sans-serif;
  color: var(--text);
  background: #ffffff;
}

.topbar {
  position: sticky;
  top: 0;
  background: #ffffff;
  border-bottom: 1px solid var(--border);
  z-index: 10;
}

.topbar-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.topbar-logo {
  height: 58px;
  width: auto;
  display: block;
}

.topbar-logo-link {
  display: inline-flex;
}

.topbar-links {
  display: flex;
  gap: 16px;
}

.topbar-links a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 700;
  font-size: 16px;
}

.topbar-links a:hover {
  color: var(--text);
}

.shell {
  max-width: 1100px;
  margin: 0 auto;
  padding: 48px 24px 80px;
}

.hero {
  text-align: center;
}

.hero h1 {
  font-family: "Sora", "Trebuchet MS", sans-serif;
  font-size: 38px;
  font-weight: 600;
  margin: 0 0 8px;
  letter-spacing: -0.4px;
}

.subtitle {
  margin: 0 0 24px;
  font-size: 16px;
  color: var(--muted);
}

.panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 22px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 720px;
  margin: 0 auto;
  text-align: left;
}

.form label {
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  color: var(--muted);
}

.input-row {
  display: flex;
  gap: 12px;
  margin-top: 10px;
}

.input-row input {
  flex: 1;
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--surface-2);
  font-size: 15px;
  font-family: "Manrope", "Trebuchet MS", sans-serif;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.input-row input:focus {
  border-color: rgba(0, 196, 106, 0.5);
  box-shadow: 0 0 0 4px rgba(0, 196, 106, 0.12);
}

.form-meta {
  display: flex;
  justify-content: flex-end;
  margin-top: 8px;
}

.status {
  font-size: 13px;
  color: var(--accent-dark);
}

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

.btn {
  border-radius: 12px;
  padding: 12px 18px;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  cursor: pointer;
  font-family: "Manrope", "Trebuchet MS", sans-serif;
}

.btn.primary {
  background: linear-gradient(120deg, #3b82f6, #2563eb);
  color: #ffffff;
  box-shadow: 0 12px 24px rgba(37, 99, 235, 0.25);
}

.btn.primary:hover {
  transform: translateY(-1px);
}

.btn.ghost {
  background: var(--surface-2);
  border-color: var(--border);
  color: var(--text);
}

.btn.ghost:hover {
  background: #eef2f7;
}

.btn.disabled {
  pointer-events: none;
  opacity: 0.5;
}

.results {
  margin-top: 40px;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

body.has-results .results {
  opacity: 1;
  transform: translateY(0);
}

.results-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
}

.results-header h2 {
  font-family: "Sora", "Trebuchet MS", sans-serif;
  font-size: 22px;
  font-weight: 600;
  margin: 0;
}

.summary {
  font-size: 13px;
  color: var(--muted);
  text-align: right;
}

.slug-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.slug-card {
  background: var(--surface);
  border-radius: 16px;
  border: 1px solid var(--border);
  padding: 16px;
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.06);
  animation: cardIn 0.45s ease forwards;
  animation-delay: var(--delay, 0s);
  opacity: 0;
  transform: translateY(12px);
  font-size: 15px;
}

.download-card {
  background: linear-gradient(140deg, rgba(255, 255, 255, 0.9), rgba(248, 250, 252, 0.6));
  border-style: dashed;
  color: var(--muted);
  opacity: 0.9;
}

.download-note {
  margin: 6px 0 14px;
  font-size: 13px;
  color: var(--muted);
}

.download-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.download-card .btn {
  padding: 10px 14px;
  font-size: 12px;
}

.slug-card h3 {
  margin: 0 0 8px;
  font-size: 18px;
  font-weight: 600;
}

.slug-meta {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 10px;
}

.entry-line {
  border-top: 1px solid rgba(15, 23, 42, 0.08);
  padding: 10px 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.entry-line:first-child {
  border-top: none;
}

.entry-main {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: baseline;
  font-size: 14px;
  font-weight: 600;
  font-family: "Space Mono", "Courier New", monospace;
}

.entry-time {
  color: var(--muted);
  font-weight: 500;
}

.entry-action {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  font-weight: 700;
}

.entry-side.side-buy {
  color: #16a34a;
}

.entry-side.side-sell {
  color: #dc2626;
}

.entry-side.side-unknown {
  color: var(--muted);
}

.entry-outcome {
  color: var(--text);
  font-weight: 600;
}

.entry-meta {
  font-size: 13px;
  color: var(--muted);
  word-break: break-word;
}

.more {
  margin-top: 8px;
  font-size: 12px;
  color: var(--accent-dark);
}

.blog-shell {
  padding-top: 32px;
}

.blog-hero h1 {
  font-family: "Sora", "Trebuchet MS", sans-serif;
  font-size: 32px;
  margin: 0 0 8px;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
  margin-top: 20px;
}

.blog-card {
  background: var(--surface);
  border-radius: 16px;
  border: 1px solid var(--border);
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.06);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.blog-card a {
  display: block;
  padding: 18px;
  color: inherit;
  text-decoration: none;
}

.blog-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 30px rgba(15, 23, 42, 0.08);
}

.blog-meta {
  font-size: 12px;
  color: var(--muted);
  margin: 0 0 8px;
  text-transform: uppercase;
  letter-spacing: 0.6px;
}

.blog-title {
  margin: 0 0 8px;
  font-size: 18px;
  font-weight: 600;
}

.blog-excerpt {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.post {
  max-width: 760px;
  margin: 0 auto;
}

.post h1 {
  font-family: "Sora", "Trebuchet MS", sans-serif;
  font-size: 32px;
  margin: 0 0 10px;
}

.post-meta {
  font-size: 12px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.6px;
  margin-bottom: 18px;
}

.post p {
  line-height: 1.7;
  color: #1f2937;
  font-size: 15px;
}


@keyframes cardIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 760px) {
  .hero h1 {
    font-size: 30px;
  }

  .topbar-logo {
    height: 48px;
  }

  .blog-hero h1,
  .post h1 {
    font-size: 26px;
  }

  .input-row {
    flex-direction: column;
  }

  .results-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .summary {
    text-align: left;
  }
}

@media (max-width: 520px) {
}
