/*
Theme Name: Dixl Developer Lexicon Theme
Theme URI: https://dixl.eu
Author: Dixl Engineering Consortium
Description: Ultra-fast, syntax-highlighted developer terminal & computer science lexicon theme for dixl.eu. Features code blocks, Big-O complexity badges, parameter tables, and anti-CLS ad slots.
Version: 1.0.0
License: GNU General Public License v2 or later
Text Domain: dixl-lexicon-theme
*/

:root {
  --bg-primary: #090d16;
  --bg-secondary: #0f172a;
  --bg-code: #050811;
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --border-color: #1e293b;
  --accent-purple: #a855f7;
  --accent-cyan: #06b6d4;
  --accent-emerald: #10b981;
  --accent-amber: #f59e0b;
  --font-mono: ui-monospace, "Fira Code", SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  --font-sans: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

body {
  margin: 0;
  padding: 0;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-sans);
  line-height: 1.68;
}

.dixl-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 36px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 24px 16px 60px;
}

@media (max-width: 1024px) {
  .dixl-layout {
    grid-template-columns: 1fr;
  }
}

.dixl-code-block {
  background: var(--bg-code);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 16px;
  padding-top: 36px;
  font-family: var(--font-mono);
  font-size: 13px;
  color: #38bdf8;
  overflow-x: auto;
  position: relative;
  margin: 20px 0;
}

.dixl-copy-btn {
  position: absolute;
  top: 8px;
  right: 8px;
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #94a3b8;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
  backdrop-filter: blur(4px);
  z-index: 10;
}

.dixl-copy-btn:hover {
  background: #1e293b;
  color: #f8fafc;
  border-color: var(--accent-purple);
}

.dixl-spec-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 16px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.4);
}

.dixl-spec-card table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  font-family: var(--font-mono);
}

.dixl-spec-card td {
  padding: 8px 4px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.dixl-spec-card td:first-child {
  color: var(--text-secondary);
  width: 42%;
}

.dixl-ad-slot {
  min-height: 90px;
  width: 100%;
  max-width: 728px;
  margin: 20px auto;
  text-align: center;
  box-sizing: border-box;
  background: transparent !important;
  border: none !important;
}

.dixl-ad-slot ins.adsbygoogle {
  display: block !important;
  margin: 0 auto !important;
  min-height: 90px;
}

.dixl-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 8px;
  border-radius: 6px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
}

.dixl-ad-sidebar-300x250 {
  width: 300px !important;
  height: 250px !important;
  max-height: 250px !important;
  min-height: 250px !important;
  overflow: hidden !important;
  margin: 0 auto !important;
  text-align: center !important;
  border-radius: 12px !important;
  box-sizing: border-box !important;
}

.dixl-ad-sidebar-300x250 ins.adsbygoogle {
  width: 300px !important;
  height: 250px !important;
  max-width: 300px !important;
  max-height: 250px !important;
  display: inline-block !important;
}
