/* Shared styles for Buffer Progress documentation (static hosting on aerial-germany.de) */
:root {
  --bg: #fafbfc;
  --surface: #ffffff;
  --text: #172b4d;
  --muted: #5e6c84;
  --border: #dfe1e6;
  --accent: #0052cc;
  --accent-hover: #0747a6;
  --success: #216e4e;
  --warning: #974f0c;
  --danger: #ae2e24;
  --code-bg: #f4f5f7;
  --radius: 6px;
  --shadow: 0 1px 2px rgba(9, 30, 66, 0.15);
  --font: system-ui, -apple-system, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
  --mono: ui-monospace, 'Cascadia Code', 'Segoe UI Mono', monospace;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  color: var(--accent-hover);
  text-decoration: underline;
}

.site-header {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow);
  position: sticky;
  top: 0;
  z-index: 10;
}

.site-header-inner {
  max-width: 920px;
  margin: 0 auto;
  padding: 1rem 1.5rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.site-title {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 600;
}

.site-title a {
  color: var(--text);
  text-decoration: none;
}

.site-title a:hover {
  color: var(--accent);
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.9rem;
}

.site-nav a {
  text-decoration: none;
}

main {
  max-width: 920px;
  margin: 0 auto;
  padding: 2rem 1.5rem 3rem;
}

.hero {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem 1.75rem;
  margin-bottom: 2rem;
  box-shadow: var(--shadow);
}

.hero p {
  margin: 0.5rem 0 0;
  color: var(--muted);
  font-size: 1.05rem;
}

.meta {
  font-size: 0.875rem;
  color: var(--muted);
  margin-top: 1rem;
}

.video-embed {
  position: relative;
  width: 100%;
  max-width: 720px;
  aspect-ratio: 16 / 9;
  margin: 1rem 0 0.5rem;
  background: #000;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.video-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.video-fallback {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  text-decoration: none;
}

.video-fallback img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.video-fallback-label {
  position: relative;
  z-index: 1;
  padding: 0.65rem 1.25rem;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.75);
  font-weight: 600;
  font-size: 1rem;
}

.video-fallback:hover .video-fallback-label {
  background: var(--accent);
}

#quick-start .meta {
  margin-top: 0.5rem;
}

h1 {
  font-size: 1.75rem;
  margin: 0 0 0.5rem;
  line-height: 1.3;
}

h2 {
  font-size: 1.35rem;
  margin: 2.5rem 0 1rem;
  padding-bottom: 0.35rem;
  border-bottom: 1px solid var(--border);
}

h3 {
  font-size: 1.1rem;
  margin: 1.5rem 0 0.75rem;
}

p,
ul,
ol {
  margin: 0 0 1rem;
}

ul,
ol {
  padding-left: 1.5rem;
}

li {
  margin-bottom: 0.35rem;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0 1.5rem;
  font-size: 0.95rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

th,
td {
  padding: 0.65rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

th {
  background: var(--code-bg);
  font-weight: 600;
}

tr:last-child td {
  border-bottom: none;
}

code,
kbd {
  font-family: var(--mono);
  font-size: 0.88em;
  background: var(--code-bg);
  padding: 0.15em 0.4em;
  border-radius: 3px;
}

.note,
.warning {
  padding: 1rem 1.25rem;
  border-radius: var(--radius);
  margin: 1rem 0 1.5rem;
  border-left: 4px solid var(--accent);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.warning {
  border-left-color: var(--warning);
}

.status-list {
  list-style: none;
  padding: 0;
  margin: 1rem 0;
}

.status-list li {
  padding: 0.35rem 0 0.35rem 1.75rem;
  position: relative;
}

.status-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.55rem;
  width: 0.75rem;
  height: 0.75rem;
  border-radius: 50%;
}

.status-green::before {
  background: #36b37e;
}

.status-yellow::before {
  background: #ffab00;
}

.status-red::before {
  background: #de350b;
}

.steps {
  counter-reset: step;
  list-style: none;
  padding: 0;
}

.steps li {
  counter-increment: step;
  margin-bottom: 1rem;
  padding-left: 2.5rem;
  position: relative;
}

.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  width: 1.75rem;
  height: 1.75rem;
  background: var(--accent);
  color: #fff;
  border-radius: 50%;
  font-size: 0.85rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
}

.site-footer {
  max-width: 920px;
  margin: 0 auto;
  padding: 1.5rem;
  border-top: 1px solid var(--border);
  font-size: 0.875rem;
  color: var(--muted);
  text-align: center;
}

@media (max-width: 600px) {
  main {
    padding: 1.25rem 1rem 2rem;
  }

  table {
    font-size: 0.85rem;
  }

  th,
  td {
    padding: 0.5rem 0.65rem;
  }
}
