/* Payscout Project Page - shared sidebar layout styles */

:root {
  --accent: #2f69b3;
  --accent-dark: #1e4d8c;
  --accent-light: #eaf1fb;
  --bg: #f8f9fb;
  --surface: #ffffff;
  --border: #e6e9ef;
  --text: #1a2130;
  --text-muted: #6b7688;
  --green-bg: #e6f6ec; --green-fg: #1a7f45;
  --amber-bg: #fff4e0; --amber-fg: #a85b00;
  --gray-bg: #eef0f3; --gray-fg: #6b7280;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  display: flex;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

/* Sidebar */
.sidebar {
  width: 250px;
  flex-shrink: 0;
  background: var(--surface);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  padding: 20px 12px;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
}

.brand { display: flex; align-items: center; gap: 10px; padding: 8px 12px 10px; }
.brand img { height: 48px; display: block; }

.brand-title {
  padding: 0 12px;
  margin: 0 0 12px;
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
}

.brand-subtitle {
  padding: 0 12px;
  margin: 0 0 20px;
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.5;
}

.nav { display: flex; flex-direction: column; gap: 2px; }

.navlink {
  display: flex;
  align-items: center;
  gap: 10px;
  text-align: left;
  background: transparent;
  border: none;
  border-left: 3px solid transparent;
  border-radius: 8px;
  padding: 11px 12px;
  font-family: var(--font);
  font-size: 14px;
  font-weight: 600;
  color: var(--text-muted);
  text-decoration: none;
  cursor: pointer;
  transition: background .15s ease, color .15s ease;
}

.navlink:hover { background: var(--accent-light); color: var(--accent-dark); }

.navlink.active {
  background: var(--accent);
  color: #ffffff;
  border-left-color: var(--accent-dark);
  font-weight: 700;
  box-shadow: 0 1px 2px rgba(30, 77, 140, .3);
}

.sidebar-footer { margin-top: auto; padding: 12px; }

.btn-outline {
  display: block;
  text-align: center;
  border: 1.5px solid var(--accent);
  color: var(--accent);
  border-radius: 8px;
  padding: 10px;
  font-weight: 600;
  font-size: 13px;
  text-decoration: none;
  transition: background .15s ease, color .15s ease;
}

.btn-outline:hover { background: var(--accent); color: #fff; }

/* Main content */
.main { flex: 1; padding: 32px 48px; max-width: 960px; }

h1 { font-size: 26px; font-weight: 700; letter-spacing: -0.01em; margin: 0 0 14px; }

.page-subtitle { color: var(--text-muted); margin: 0 0 14px; font-size: 14px; line-height: 1.6; }

.tabcontent { display: none; animation: fadeIn .2s ease; }

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Card wrapper used on the index page */
.panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 28px;
  box-shadow: 0 1px 3px rgba(20, 30, 50, .05);
}

.panel p { line-height: 1.6; margin: 0 0 14px; }

/* Buttons (real <a> elements so right-click "copy link" works) */
.button {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 11px 20px;
  font-size: 14px;
  font-weight: 600;
  margin: 4px 8px 4px 0;
  cursor: pointer;
  text-decoration: none;
  box-shadow: 0 1px 2px rgba(20, 30, 50, .08);
  transition: background .15s ease, transform .15s ease;
}

.button:hover { background: var(--accent-dark); transform: translateY(-1px); }

.button.ghost {
  background: var(--accent-light);
  color: var(--accent-dark);
  border: 1px solid transparent;
  box-shadow: none;
}

.button.ghost:hover { background: #dbe8f9; transform: none; }

.button.sm { padding: 8px 16px; font-size: 13px; }

/* Download page: section labels + badges */
.section-label {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 28px 0 14px;
  font-size: 12px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: .06em;
}

.section-label:first-child { margin-top: 0; }

.badge {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
}

.badge-stable { background: var(--green-bg); color: var(--green-fg); }
.badge-beta { background: var(--amber-bg); color: var(--amber-fg); }
.badge-history { background: var(--gray-bg); color: var(--gray-fg); }

/* Download page: release cards */
.release-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px 20px;
  margin-bottom: 10px;
}

.release-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.release-title { font-weight: 700; font-size: 16px; }

.release-notes {
  margin: 10px 0 0;
  padding-left: 18px;
  color: var(--text-muted);
  font-size: 12.5px;
  line-height: 1.65;
}

.release-notes .sub-label {
  display: block;
  font-weight: 700;
  color: var(--text);
  font-size: 12px;
  margin: 8px 0 2px;
  list-style: none;
}

/* Download page: simple rows (developer / other downloads) */
.simple-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 4px;
  border-bottom: 1px solid var(--border);
}

.simple-row:last-child { border-bottom: none; }
.simple-row label { font-size: 16px; font-weight: 500; }

/* Responsive */
@media (max-width: 780px) {
  body { flex-direction: column; }
  .sidebar { width: 100%; height: auto; position: static; flex-direction: row; align-items: center; overflow-x: auto; }
  .brand { padding: 8px; }
  .nav { flex-direction: row; }
  .sidebar-footer { margin-top: 0; padding: 8px; }
  .main { padding: 24px 20px 48px; }
}
