/* ===== LCARS MODE - Star Trek Interface ===== */
@import url('https://fonts.googleapis.com/css2?family=Antonio:wght@400;700&display=swap');

/* Base LCARS styles */
body.lcars-mode {
  background-color: #000 !important;
  font-family: 'Antonio', 'Helvetica Neue', Arial, sans-serif !important;
}

body.lcars-mode h1,
body.lcars-mode h2,
body.lcars-mode h3,
body.lcars-mode h4,
body.lcars-mode h5,
body.lcars-mode h6,
body.lcars-mode p,
body.lcars-mode a,
body.lcars-mode li,
body.lcars-mode td,
body.lcars-mode th,
body.lcars-mode button,
body.lcars-mode blockquote,
body.lcars-mode nav,
body.lcars-mode footer {
  font-family: 'Antonio', 'Helvetica Neue', Arial, sans-serif;
}

/* Scale down MathJax to match text size */
body.lcars-mode mjx-container {
  font-size: 85% !important;
}

/* Hide normal sidebar, show LCARS frame */
body.lcars-mode #desktop-sidebar {
  background: #000 !important;
  border-right: none !important;
  box-shadow: none !important;
  width: 200px !important;
}

body.lcars-mode .sidebar-toggle {
  display: none !important;
}

body.lcars-mode .sidebar-content {
  padding: 0 !important;
}

/* LCARS sidebar styling */
body.lcars-mode #desktop-sidebar .sidebar-content::before {
  content: '';
  display: block;
  height: 80px;
  background: #cc99cc;
  border-radius: 40px 0 0 0;
  margin-bottom: 0;
  margin-right: -24px;
}

body.lcars-mode #desktop-sidebar a {
  background: #ff9900 !important;
  color: #000 !important;
  border: none !important;
  border-radius: 0 20px 20px 0 !important;
  margin: 4px 20px 4px 0 !important;
  padding: 8px 16px !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  letter-spacing: 1px !important;
  font-size: 14px !important;
}

body.lcars-mode #desktop-sidebar a:nth-child(odd) {
  background: #cc99cc !important;
}

body.lcars-mode #desktop-sidebar a:nth-child(3n) {
  background: #9999ff !important;
}

body.lcars-mode #desktop-sidebar a:nth-child(4n) {
  background: #ffcc66 !important;
}

body.lcars-mode #desktop-sidebar a:hover,
body.lcars-mode #desktop-sidebar button:hover {
  background: #fff !important;
  color: #000 !important;
}

body.lcars-mode #desktop-sidebar button {
  background: #9999ff !important;
  color: #000 !important;
  border: none !important;
  border-radius: 0 20px 20px 0 !important;
  margin: 4px 20px 4px 0 !important;
  padding: 8px 16px !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  letter-spacing: 1px !important;
  font-size: 14px !important;
}

body.lcars-mode #desktop-sidebar a.font-bold {
  background: transparent !important;
  color: #ff9900 !important;
  font-size: 1.5rem !important;
  letter-spacing: 3px !important;
  margin-bottom: 1rem !important;
  border: none !important;
}

/* Main content area */
body.lcars-mode #main-content {
  background: #000 !important;
  margin-left: 200px !important;
}

body.lcars-mode main {
  background: #000 !important;
  color: #ff9900 !important;
  border-left: none;
  padding-left: 2rem !important;
  position: relative;
}


/* Typography */
body.lcars-mode h1 {
  color: #ffcc66 !important;
  text-transform: uppercase;
  letter-spacing: 4px;
  font-weight: 700 !important;
  border-bottom: 3px solid #cc99cc;
  padding-bottom: 0.5rem;
}

body.lcars-mode h2 {
  color: #cc99cc !important;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-weight: 700 !important;
}

body.lcars-mode h3 {
  color: #9999ff !important;
  text-transform: uppercase;
  letter-spacing: 1px;
}

body.lcars-mode p {
  color: #ff9900 !important;
  font-weight: 400 !important;
  line-height: 1.8 !important;
}

body.lcars-mode a {
  color: #9999ff !important;
  border-bottom-color: #9999ff !important;
}

body.lcars-mode a:hover {
  color: #fff !important;
}

body.lcars-mode strong,
body.lcars-mode b {
  color: #ffcc66 !important;
}

body.lcars-mode em,
body.lcars-mode i {
  color: #cc99cc !important;
}

/* Code blocks */
body.lcars-mode pre {
  background: linear-gradient(90deg, #9999ff, #cc99cc, #ff9900) 0 0 / 100% 3px no-repeat,
              linear-gradient(135deg, #0a0a12 0%, #0f0f1a 100%) !important;
  border: 2px solid #9999ff !important;
  border-radius: 0 20px 20px 0 !important;
  box-shadow: 0 0 20px rgba(153, 153, 255, 0.3) !important;
}

body.lcars-mode code {
  color: #9999ff !important;
}

body.lcars-mode :not(pre) > code {
  background: rgba(153, 153, 255, 0.2) !important;
  color: #cc99cc !important;
  border-radius: 4px !important;
}

/* Blockquotes */
body.lcars-mode blockquote {
  background: rgba(204, 153, 204, 0.1) !important;
  border-left: 4px solid #cc99cc !important;
  border-radius: 0 20px 20px 0 !important;
}

body.lcars-mode blockquote p {
  color: #cc99cc !important;
}

body.lcars-mode blockquote::before {
  color: #cc99cc !important;
}

/* Lists */
body.lcars-mode li {
  color: #ff9900 !important;
}

body.lcars-mode li::marker {
  color: #9999ff !important;
}

/* Tables */
body.lcars-mode table {
  border: 2px solid #ff9900 !important;
  border-radius: 0 20px 20px 0 !important;
  overflow: hidden;
}

body.lcars-mode th {
  background: #ff9900 !important;
  color: #000 !important;
  text-transform: uppercase;
  letter-spacing: 1px;
}

body.lcars-mode td {
  background: rgba(255, 153, 0, 0.1) !important;
  color: #ff9900 !important;
  border-color: #ff9900 !important;
}

body.lcars-mode tr:hover td {
  background: rgba(255, 153, 0, 0.2) !important;
}

/* Images */
body.lcars-mode img {
  border: 3px solid #9999ff !important;
  border-radius: 0 20px 20px 0 !important;
  box-shadow: 0 0 20px rgba(153, 153, 255, 0.3) !important;
}

/* Post meta */
body.lcars-mode .post-meta {
  color: #9999ff !important;
}

body.lcars-mode .post-tags a {
  background: #9999ff !important;
  color: #000 !important;
  border: none !important;
  border-radius: 10px !important;
  text-transform: uppercase !important;
  font-weight: 700 !important;
  letter-spacing: 1px !important;
}

body.lcars-mode .post-tags a:hover {
  background: #fff !important;
}

/* Footer */
body.lcars-mode footer {
  background: #000 !important;
  border-top: 20px solid #cc99cc;
  position: relative;
}

body.lcars-mode footer::before {
  content: '';
  position: absolute;
  top: -20px;
  right: 0;
  width: 100px;
  height: 20px;
  background: #ff9900;
  border-radius: 0 0 0 20px;
}

body.lcars-mode footer p {
  color: #9999ff !important;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 12px !important;
}

/* Mobile header in LCARS mode */
body.lcars-mode #mobile-header {
  background: #000 !important;
  border-bottom: 4px solid #ff9900 !important;
  box-shadow: none !important;
}

body.lcars-mode #mobile-header a {
  color: #ff9900 !important;
}

body.lcars-mode #mobile-header button {
  color: #ff9900 !important;
}


/* Scrollbar styling for LCARS */
body.lcars-mode ::-webkit-scrollbar {
  width: 12px;
  background: #000;
}

body.lcars-mode ::-webkit-scrollbar-track {
  background: #0a0a12;
  border-left: 2px solid #9999ff;
}

body.lcars-mode ::-webkit-scrollbar-thumb {
  background: #ff9900;
  border-radius: 0 6px 6px 0;
}

body.lcars-mode ::-webkit-scrollbar-thumb:hover {
  background: #ffcc66;
}

