/* Shared panel / modal aesthetic — matches store modals site-wide */

.content-panel,
.docs-content {
  background: #06060a;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 16px;
  padding: 2rem 2.25rem;
  box-shadow:
    0 25px 60px rgba(0, 0, 0, 0.95),
    0 0 35px rgba(0, 0, 0, 0.6);
}

.docs-sidebar {
  background: rgba(6, 6, 10, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 14px;
  padding: 1.25rem 1rem;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.panel-card,
.docs-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  padding: 1.35rem 1.5rem;
  margin-bottom: 1rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.panel-card:hover,
.docs-card:hover {
  border-color: rgba(220, 38, 38, 0.22);
  box-shadow: 0 0 20px rgba(220, 38, 38, 0.06);
}

.panel-card--accent {
  border-color: rgba(220, 38, 38, 0.18);
  background:
    radial-gradient(ellipse at 0% 0%, rgba(220, 38, 38, 0.06) 0%, transparent 55%),
    rgba(255, 255, 255, 0.02);
}

.panel-card h2,
.panel-card h3,
.docs-card h2 {
  font-family: var(--font-body);
  font-size: 1.05rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.5rem;
}

.panel-card p,
.docs-card p {
  color: var(--text-muted);
  font-size: 0.88rem;
  line-height: 1.55;
  margin-bottom: 0.85rem;
}

.panel-card p:last-child,
.docs-card p:last-child {
  margin-bottom: 0;
}

/* Doc sections as nested panels */
.doc-section {
  background: rgba(255, 255, 255, 0.015);
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: 12px;
  padding: 1.35rem 1.5rem;
  margin-bottom: 1.25rem;
}

.doc-section h2 {
  border-top: none !important;
  padding-top: 0 !important;
  margin-top: 0 !important;
}

/* Download / support / key-mgmt panels */
.download-info {
  background: #06060a;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 16px;
  padding: 2rem 2.25rem;
  box-shadow:
    0 25px 60px rgba(0, 0, 0, 0.95),
    0 0 35px rgba(0, 0, 0, 0.6);
}

.download-panel,
.support-discord-card,
.support-panel {
  background: #06060a;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 16px;
  box-shadow:
    0 20px 50px rgba(0, 0, 0, 0.85),
    0 0 30px rgba(0, 0, 0, 0.5);
}

.download-panel {
  padding: 2rem;
}

.step {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: 10px;
  padding: 0.85rem 1rem;
}

/* Error code panels */
.error-codes-grid {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.error-panel {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  padding: 1.25rem 1.35rem;
  transition: border-color 0.2s ease;
}

.error-panel:hover {
  border-color: rgba(220, 38, 38, 0.2);
}

.error-panel-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 0.65rem;
}

.error-code-badge {
  font-family: "Consolas", "Courier New", monospace;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--accent);
  background: rgba(220, 38, 38, 0.1);
  border: 1px solid rgba(220, 38, 38, 0.25);
  padding: 0.2rem 0.55rem;
  border-radius: 6px;
  letter-spacing: 0.04em;
}

.error-severity {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.15rem 0.45rem;
  border-radius: 4px;
}

.error-severity--high {
  color: #ffb8c5;
  background: rgba(220, 38, 38, 0.12);
  border: 1px solid rgba(220, 38, 38, 0.2);
}

.error-severity--medium {
  color: #fce38a;
  background: rgba(245, 158, 11, 0.1);
  border: 1px solid rgba(245, 158, 11, 0.2);
}

.error-severity--low {
  color: #a7f3d0;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.2);
}

.error-panel h3 {
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  margin: 0;
}

.error-panel > p {
  color: var(--text-muted);
  font-size: 0.88rem;
  line-height: 1.55;
  margin-bottom: 0.75rem;
}

.error-fix-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.error-fix-item {
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
  font-size: 0.85rem;
  color: #cdd9e5;
  line-height: 1.45;
}

.error-fix-check {
  width: 1rem;
  height: 1rem;
  flex-shrink: 0;
  margin-top: 0.15rem;
  border-radius: 50%;
  background: rgba(16, 185, 129, 0.18);
  border: 1px solid rgba(16, 185, 129, 0.55);
  position: relative;
}

.error-fix-check::after {
  content: "";
  position: absolute;
  left: 0.27rem;
  top: 0.14rem;
  width: 0.22rem;
  height: 0.42rem;
  border: solid #10b981;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

/* Callouts match modal tone */
.callout {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-left-width: 3px;
  border-radius: 10px;
}

.docs-footer-cta {
  margin-top: 1.5rem;
  padding: 1.25rem 1.5rem;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(220, 38, 38, 0.15);
  border-radius: 12px;
  text-align: center;
}

.docs-footer-cta p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.docs-footer-cta a {
  color: var(--accent);
  text-decoration: none;
}

.docs-footer-cta a:hover {
  text-decoration: underline;
}

/* Product tiles on docs index */
.products-bento--docs .product-tile {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 12px;
}

.products-bento--docs .product-tile:hover {
  border-color: rgba(220, 38, 38, 0.25);
  box-shadow: 0 0 22px rgba(220, 38, 38, 0.08);
}

@media (max-width: 900px) {
  .content-panel,
  .docs-content,
  .download-info {
    padding: 1.5rem 1.25rem;
  }
}
