/* Logitech C920 Information Hub - shared stylesheet */

:root {
  --bg: #ffffff;
  --bg-alt: #f4f8fb;
  --text: #1c2733;
  --text-muted: #55636f;
  --accent: #0a6cff;
  --accent-dark: #0850c4;
  --border: #e1e8ee;
  --success: #1a9c6b;
  --warn: #c4780a;
  --max-width: 960px;
}

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
}

body {
  font-family: "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
}

a {
  color: var(--accent-dark);
}

a:hover {
  text-decoration: none;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

/* Header / nav */
header.site-header {
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 50;
}

.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

.brand {
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--text);
  text-decoration: none;
}

.brand span {
  color: var(--accent);
}

nav.main-nav ul {
  list-style: none;
  display: flex;
  gap: 22px;
  margin: 0;
  padding: 0;
  flex-wrap: wrap;
}

nav.main-nav a {
  text-decoration: none;
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.95rem;
}

nav.main-nav a:hover,
nav.main-nav a.active {
  color: var(--accent);
}

/* Hero */
.hero {
  background: linear-gradient(180deg, var(--bg-alt) 0%, var(--bg) 100%);
  padding: 56px 0 40px;
  border-bottom: 1px solid var(--border);
}

.hero h1 {
  font-size: 2.1rem;
  margin: 0 0 12px;
}

.hero p.lead {
  color: var(--text-muted);
  font-size: 1.08rem;
  max-width: 640px;
}

.disclaimer-badge {
  display: inline-block;
  background: #fff4e5;
  border: 1px solid #f0c987;
  color: #7a4b00;
  font-size: 0.8rem;
  padding: 4px 10px;
  border-radius: 20px;
  margin-bottom: 16px;
}

/* Sections */
main {
  padding: 40px 0 60px;
}

section {
  margin-bottom: 44px;
}

h2 {
  font-size: 1.5rem;
  border-left: 4px solid var(--accent);
  padding-left: 12px;
  margin-bottom: 18px;
}

h3 {
  font-size: 1.15rem;
  margin-bottom: 8px;
}

/* Spec table */
table.specs {
  width: 100%;
  border-collapse: collapse;
  background: var(--bg);
}

table.specs th,
table.specs td {
  text-align: left;
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
  font-size: 0.95rem;
}

table.specs th {
  width: 40%;
  color: var(--text-muted);
  font-weight: 600;
}

/* Cards */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}

.card {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 18px;
}

.card h3 {
  margin-top: 0;
  color: var(--accent-dark);
}

/* Steps */
ol.steps {
  list-style: none;
  padding: 0;
  margin: 0;
  counter-reset: step;
}

ol.steps li {
  counter-increment: step;
  position: relative;
  padding: 16px 16px 16px 56px;
  margin-bottom: 14px;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 10px;
}

ol.steps li::before {
  content: counter(step);
  position: absolute;
  left: 14px;
  top: 14px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
}

ol.steps li h3 {
  margin: 0 0 6px;
}

ol.steps li p {
  margin: 0;
  color: var(--text-muted);
}

/* Visual diagram box */
.visual-box {
  background: #fff;
  border: 1px dashed var(--border);
  border-radius: 10px;
  padding: 16px;
  margin-top: 10px;
  display: flex;
  justify-content: center;
}

/* Callouts */
.callout {
  border-left: 4px solid var(--success);
  background: #eafaf2;
  padding: 12px 16px;
  border-radius: 6px;
  margin: 16px 0;
}

.callout.warn {
  border-left-color: var(--warn);
  background: #fff6e8;
}

/* Official link box */
.official-box {
  border: 1px solid var(--border);
  background: var(--bg-alt);
  border-radius: 10px;
  padding: 20px;
  text-align: center;
}

.btn {
  display: inline-block;
  background: var(--accent);
  color: #fff !important;
  padding: 12px 26px;
  border-radius: 8px;
  font-weight: 700;
  text-decoration: none;
  font-size: 1rem;
  border: none;
  cursor: pointer;
}

.btn:hover {
  background: var(--accent-dark);
}

.btn.secondary {
  background: transparent;
  color: var(--accent-dark) !important;
  border: 1px solid var(--accent);
}

/* Footer */
footer.site-footer {
  border-top: 1px solid var(--border);
  background: var(--bg-alt);
  padding: 30px 0;
  font-size: 0.9rem;
  color: var(--text-muted);
}

footer.site-footer .footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
}

footer.site-footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

footer.site-footer a {
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 600;
}

footer.site-footer a:hover {
  color: var(--accent-dark);
}

/* Cookie notice */
#cookie-notice {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #10233d;
  color: #f2f6fa;
  padding: 16px 20px;
  display: none;
  align-items: center;
  justify-content: center;
  gap: 18px;
  flex-wrap: wrap;
  z-index: 100;
  box-shadow: 0 -2px 12px rgba(0,0,0,0.15);
}

#cookie-notice p {
  margin: 0;
  font-size: 0.9rem;
  max-width: 640px;
}

#cookie-notice a {
  color: #9cc7ff;
}

#cookie-accept {
  background: var(--accent);
  color: #fff;
  border: none;
  padding: 9px 18px;
  border-radius: 6px;
  font-weight: 700;
  cursor: pointer;
  font-size: 0.9rem;
  white-space: nowrap;
}

@media (max-width: 600px) {
  .hero h1 {
    font-size: 1.6rem;
  }
}
