/* Layerbit shared base styles */
/* Extracted Phase 1: selectors with a >=69% majority value across the site. */
/* Page-specific layout (IDE panes, upload zones, tool-unique components) stays inline per page. */

:root {
  --bg-base: #0a0c10;
  --bg-gradient: radial-gradient(circle at 50% 0%, #1a1e2d 0%, #0a0c10 70%);
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --card-bg: rgba(20, 22, 30, 0.6);
  --card-border: rgba(255, 255, 255, 0.08);
  --card-hover-bg: rgba(30, 34, 48, 0.6);
  --card-hover-border: rgba(56, 189, 248, 0.4);
  --accent-main: #38bdf8;
  --accent-glow: rgba(56, 189, 248, 0.5);
  --neon-gradient: linear-gradient(135deg, #00f2fe 0%, #4facfe 100%);
  --error-bg: rgba(239, 68, 68, 0.1);
  --error-border: #ef4444;
  --threat-clean: #22c55e;
  --threat-clean-bg: rgba(34, 197, 94, 0.1);
  --threat-critical: #ef4444;
  --threat-critical-bg: rgba(239, 68, 68, 0.1);
  --error-color: #ef4444;
  --success-color: #22c55e;
  --syn-key: #38bdf8;
  --syn-string: #a7f3d0;
  --syn-number: #fdba74;
  --syn-boolean: #f472b6;
  --syn-null: #94a3b8;
  --jwt-header: #fb7185;
  --jwt-payload: #c084fc;
  --jwt-sig: #38bdf8;
  --success: #22c55e;
  --warning: #eab308;
  --danger: #ef4444;
  --log-error: #ef4444;
  --log-error-bg: rgba(239, 68, 68, 0.1);
  --log-warn: #eab308;
  --log-warn-bg: rgba(234, 179, 8, 0.1);
  --log-info: #3b82f6;
  --log-info-bg: rgba(59, 130, 246, 0.1);
  --log-debug: #8b5cf6;
  --log-timestamp: #64748b;
  --threat-warn: #eab308;
  --threat-neutral: #64748b;
  --warn-color: #fbbf24;
  --info-bg: rgba(56, 189, 248, 0.1);
  --info-border: rgba(56, 189, 248, 0.3);
  --match-bg: rgba(56, 189, 248, 0.2);
  --sql-keyword: #38bdf8;
  --sql-string: #a7f3d0;
  --sql-number: #fdba74;
  --sql-func: #f472b6;
  --diff-add-bg: rgba(34, 197, 94, 0.15);
  --diff-add-text: #4ade80;
  --diff-add-word: rgba(34, 197, 94, 0.4);
  --diff-sub-bg: rgba(239, 68, 68, 0.15);
  --diff-sub-text: #f87171;
  --diff-sub-word: rgba(239, 68, 68, 0.4);
  --yaml-color: #f472b6;
  --json-color: #a7f3d0;
}

* {
      box-sizing: border-box;
      margin: 0;
      padding: 0;
    }

html {
      scroll-behavior: smooth;
    }

.brand { font-size: 1.6em; font-weight: 700; display: flex; align-items: center; gap: 12px; text-decoration: none; color: #fff; }

.brand svg {
      filter: drop-shadow(0 0 10px var(--accent-glow));
    }

.info-panel { background: rgba(255,255,255,0.02); border: 1px solid var(--card-border); padding: 40px; border-radius: 20px; }

.info-panel h2 { color: #fff; margin-bottom: 20px; display: flex; align-items: center; gap: 10px; }

.info-panel h2 i { color: var(--accent-main); }

.info-panel p { color: var(--text-muted); margin-bottom: 20px; line-height: 1.7; }

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

.use-case-card { background: rgba(255,255,255,0.03); padding: 20px; border-radius: 12px; border: 1px solid rgba(255,255,255,0.05); }

.use-case-card h3 { display: flex; align-items: center; gap: 8px; font-size: 1.1em; margin-bottom: 10px; color: #fff; }

.use-case-card h3 i { color: var(--accent-main); width: 16px; }

.use-case-card p { font-size: 0.9em; margin-bottom: 0; color: var(--text-muted); line-height: 1.6; }

.faq-item { border: 1px solid rgba(255,255,255,0.05); border-radius: 12px; margin-bottom: 10px; overflow: hidden; }

.faq-question { width: 100%; background: rgba(255,255,255,0.03); border: none; padding: 18px 20px; color: #fff; font-size: 1em; font-weight: 500; text-align: left; cursor: pointer; display: flex; justify-content: space-between; align-items: center; transition: background 0.2s; }

.faq-question:hover { background: rgba(255,255,255,0.05); }

.faq-question i { transition: transform 0.3s; color: var(--accent-main); }

.faq-question.active i { transform: rotate(180deg); }

.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.3s ease-out; background: rgba(0,0,0,0.2); }

.faq-answer p { padding: 20px; margin: 0; font-size: 0.95em; color: var(--text-muted); line-height: 1.6; }

.changelog-list li { margin-bottom: 12px; font-size: 0.95em; color: var(--text-muted); display: flex; align-items: flex-start; gap: 10px; }

.sample-btn {
      background: rgba(255,255,255,0.05);
      border: 1px solid rgba(255,255,255,0.1);
      color: var(--text-muted);
      padding: 8px 16px;
      border-radius: 8px;
      font-family: 'Space Grotesk', sans-serif;
      cursor: pointer;
      margin-right: 10px;
      margin-bottom: 10px;
      transition: all 0.2s;
    }

.sample-btn:hover { background: rgba(56, 189, 248, 0.1); color: var(--accent-main); border-color: var(--accent-main); }

a:focus-visible, button:focus-visible, select:focus-visible, input:focus-visible, [tabindex]:focus-visible {
      outline: 2px solid var(--accent-main); outline-offset: 2px;
    }

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

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

@keyframes drift {
      from { background-position: 0 0, 20px 20px; }
      to { background-position: -60px -60px, -40px -40px; }
    }

.cookie-consent-banner {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 9999;
  max-width: 640px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  padding: 16px 20px;
  background: rgba(15, 17, 24, 0.96);
  border: 1px solid var(--card-border);
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  font-family: 'Space Grotesk', sans-serif;
}

.cookie-consent-banner p {
  flex: 1 1 260px;
  margin: 0;
  font-size: 0.88em;
  line-height: 1.5;
  color: var(--text-muted);
}

.cookie-consent-banner a { color: var(--accent-main); }

.cookie-consent-accept {
  flex: 0 0 auto;
  background: var(--neon-gradient);
  color: #041014;
  font-weight: 600;
  border: none;
  border-radius: 8px;
  padding: 10px 20px;
  cursor: pointer;
  font-family: inherit;
  font-size: 0.9em;
}

.cookie-consent-accept:hover { filter: brightness(1.08); }
