/* TechnoLila Custom Styles & Design System */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=JetBrains+Mono:ital,wght@0,400;0,500;0,600;0,700;1,400&display=swap');

:root {
  --font-sans: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

body {
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

code, pre, kbd, samp, .font-mono {
  font-family: var(--font-mono);
}

/* Glassmorphism & Card Accents */
.glass-panel {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.dark .glass-panel {
  background: rgba(15, 23, 42, 0.85);
}

/* Code Editor & Tool Controls */
.tool-editor {
  font-family: var(--font-mono);
  tab-size: 2;
  resize: vertical;
}

/* Custom Scrollbars */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 4px;
}
.dark ::-webkit-scrollbar-thumb {
  background: #334155;
}
::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}
.dark ::-webkit-scrollbar-thumb:hover {
  background: #475569;
}

/* Article Content Typography */
.article-body {
  font-size: 1.0625rem;
  line-height: 1.75;
}
.article-body h2 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-top: 2rem;
  margin-bottom: 1rem;
  color: #0f172a;
}
.dark .article-body h2 {
  color: #f8fafc;
}
.article-body h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
  color: #1e293b;
}
.dark .article-body h3 {
  color: #e2e8f0;
}
.article-body p {
  margin-bottom: 1.25rem;
}
.article-body ul, .article-body ol {
  margin-bottom: 1.25rem;
  padding-left: 1.5rem;
}
.article-body ul {
  list-style-type: disc;
}
.article-body ol {
  list-style-type: decimal;
}
.article-body li {
  margin-bottom: 0.5rem;
}
.article-body pre {
  background: #0f172a;
  color: #e2e8f0;
  padding: 1.25rem;
  border-radius: 0.75rem;
  overflow-x: auto;
  margin-top: 1.25rem;
  margin-bottom: 1.5rem;
  border: 1px solid #334155;
  font-size: 0.875rem;
}
.article-body code {
  background: #f1f5f9;
  color: #0284c7;
  padding: 0.15rem 0.35rem;
  border-radius: 0.375rem;
  font-size: 0.875em;
}
.dark .article-body code {
  background: #1e293b;
  color: #38bdf8;
}
.article-body pre code {
  background: transparent;
  color: inherit;
  padding: 0;
}
.article-body img {
  border-radius: 0.75rem;
  margin: 1.5rem auto;
  max-width: 100%;
  height: auto;
  border: 1px solid #e2e8f0;
}
.dark .article-body img {
  border-color: #334155;
}
.article-body blockquote {
  border-left: 4px solid #3b82f6;
  padding-left: 1rem;
  font-style: italic;
  color: #64748b;
  margin: 1.5rem 0;
}
.dark .article-body blockquote {
  color: #94a3b8;
}
.article-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
}
.article-body th, .article-body td {
  border: 1px solid #e2e8f0;
  padding: 0.75rem;
  text-align: left;
}
.dark .article-body th, .dark .article-body td {
  border-color: #334155;
}
.article-body th {
  background: #f8fafc;
  font-weight: 600;
}
.dark .article-body th {
  background: #1e293b;
}

/* Toast Notifications */
#toast-container {
  position: fixed;
  bottom: 80px;
  right: 16px;
  z-index: 9999;
}
@media (min-width: 1024px) {
  #toast-container {
    bottom: 24px;
    right: 24px;
  }
}
.toast {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  transform: translateY(100%);
  opacity: 0;
}
.toast.show {
  transform: translateY(0);
  opacity: 1;
}

/* ==========================================================
   PREMIUM MOBILE APP EXPERIENCE (NATIVE FEEL & TOUCH ERGONOMICS)
   ========================================================== */
* {
  -webkit-tap-highlight-color: transparent;
}

/* Mobile Safe Areas */
.safe-bottom {
  padding-bottom: env(safe-area-inset-bottom, 0px);
}
.safe-top {
  padding-top: env(safe-area-inset-top, 0px);
}

/* Native App Bottom Navigation Bar */
.mobile-app-dock {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-top: 1px solid rgba(226, 232, 240, 0.8);
  box-shadow: 0 -4px 20px -2px rgba(0, 0, 0, 0.05);
}
.dark .mobile-app-dock {
  background: rgba(2, 6, 23, 0.88);
  border-top-color: rgba(30, 41, 59, 0.8);
  box-shadow: 0 -4px 20px -2px rgba(0, 0, 0, 0.4);
}

.mobile-dock-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  padding: 6px 12px;
  border-radius: 12px;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  touch-action: manipulation;
}
.mobile-dock-btn:active {
  transform: scale(0.92);
}
.mobile-dock-btn.active {
  color: #0d9488;
}
.dark .mobile-dock-btn.active {
  color: #2dd4bf;
}

/* Mobile Slide-Up Drawer / Bottom Sheet */
.mobile-drawer-backdrop {
  position: fixed;
  inset: 0;
  z-index: 60;
  background: rgba(2, 6, 23, 0.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: opacity 0.3s ease;
}
.mobile-drawer-content {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 70;
  max-height: 85vh;
  border-top-left-radius: 24px;
  border-top-right-radius: 24px;
  background: #ffffff;
  box-shadow: 0 -10px 40px -5px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s cubic-bezier(0.32, 0.72, 0, 1);
  overflow-y: auto;
}
.dark .mobile-drawer-content {
  background: #090d16;
  border-top: 1px solid rgba(51, 65, 85, 0.6);
  box-shadow: 0 -10px 40px -5px rgba(0, 0, 0, 0.7);
}

.drawer-drag-pill {
  width: 36px;
  height: 4px;
  border-radius: 9999px;
  background: #cbd5e1;
  margin: 12px auto 8px auto;
}
.dark .drawer-drag-pill {
  background: #334155;
}

/* Horizontal Touch Scroll Category Carousels */
.no-scrollbar::-webkit-scrollbar {
  display: none;
}
.no-scrollbar {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

