/* shadcn/ui Master CSS Template - True Compliance */
/* Based on official shadcn/ui documentation */
/* Version: 1.0.0 - September 22, 2024 */

@layer base {
  :root {
    /* shadcn/ui Core Color System - Neutral Palette */
    --background: 0 0% 100%;
    --foreground: 220 13% 18%;

    --card: 0 0% 100%;
    --card-foreground: 220 13% 18%;

    --popover: 0 0% 100%;
    --popover-foreground: 220 13% 18%;

    --primary: 220 13% 18%;
    --primary-foreground: 0 0% 98%;

    --secondary: 220 14% 96%;
    --secondary-foreground: 220 13% 18%;

    --muted: 220 14% 96%;
    --muted-foreground: 220 13% 45%;

    --accent: 220 14% 96%;
    --accent-foreground: 220 13% 18%;

    --destructive: 0 84% 60%;
    --destructive-foreground: 0 0% 98%;

    --border: 220 13% 91%;
    --input: 220 13% 91%;
    --ring: 220 13% 18%;

    --radius: 0.625rem;
  }

  .dark {
    --background: 220 13% 9%;
    --foreground: 0 0% 98%;

    --card: 220 13% 9%;
    --card-foreground: 0 0% 98%;

    --popover: 220 13% 9%;
    --popover-foreground: 0 0% 98%;

    --primary: 0 0% 98%;
    --primary-foreground: 220 13% 9%;

    --secondary: 220 13% 15%;
    --secondary-foreground: 0 0% 98%;

    --muted: 220 13% 15%;
    --muted-foreground: 220 13% 65%;

    --accent: 220 13% 15%;
    --accent-foreground: 0 0% 98%;

    --destructive: 0 62% 30%;
    --destructive-foreground: 0 0% 98%;

    --border: 220 13% 15%;
    --input: 220 13% 15%;
    --ring: 220 13% 82%;
  }
}

/* Base Reset */
* {
  border-color: hsl(var(--border));
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background-color: hsl(var(--background));
  color: hsl(var(--foreground));
  font-feature-settings: "rlig" 1, "calt" 1;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
               "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans",
               sans-serif, "Apple Color Emoji", "Segoe UI Emoji",
               "Segoe UI Symbol", "Noto Color Emoji";
  line-height: 1.6;
  font-synthesis-weight: none;
  text-rendering: optimizeLegibility;
}

/* shadcn/ui Button Components */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  border-radius: calc(var(--radius) - 2px);
  font-size: 0.875rem;
  font-weight: 500;
  transition: colors 0.2s;
  cursor: pointer;
  outline: none;
  border: 1px solid transparent;
  text-decoration: none;
  height: 2.5rem;
  padding: 0 1rem;
}

.btn:focus-visible {
  outline: 2px solid hsl(var(--ring));
  outline-offset: 2px;
}

.btn:disabled {
  pointer-events: none;
  opacity: 0.5;
}

/* Button Variants */
.btn-default {
  background-color: hsl(var(--primary));
  color: hsl(var(--primary-foreground));
}

.btn-default:hover {
  background-color: hsl(var(--primary) / 0.9);
}

.btn-secondary {
  background-color: hsl(var(--secondary));
  color: hsl(var(--secondary-foreground));
}

.btn-secondary:hover {
  background-color: hsl(var(--secondary) / 0.8);
}

.btn-outline {
  border: 1px solid hsl(var(--border));
  background-color: hsl(var(--background));
}

.btn-outline:hover {
  background-color: hsl(var(--accent));
  color: hsl(var(--accent-foreground));
}

.btn-ghost {
  background-color: transparent;
}

.btn-ghost:hover {
  background-color: hsl(var(--accent));
  color: hsl(var(--accent-foreground));
}

/* shadcn/ui Card Components */
.card {
  border-radius: var(--radius);
  border: 1px solid hsl(var(--border));
  background-color: hsl(var(--card));
  color: hsl(var(--card-foreground));
  box-shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
}

.card-header {
  display: flex;
  flex-direction: column;
  padding: 1.5rem;
  gap: 1.5rem;
}

.card-title {
  font-size: 1.5rem;
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.025em;
}

.card-description {
  font-size: 0.875rem;
  color: hsl(var(--muted-foreground));
}

.card-content {
  padding: 1.5rem;
  padding-top: 0;
}

.card-footer {
  display: flex;
  align-items: center;
  padding: 1.5rem;
  padding-top: 0;
}

/* shadcn/ui Input Components */
.input {
  display: flex;
  height: 2.5rem;
  width: 100%;
  border-radius: calc(var(--radius) - 2px);
  border: 1px solid hsl(var(--border));
  background-color: hsl(var(--background));
  padding: 0 0.75rem;
  font-size: 0.875rem;
  transition: colors 0.2s;
}

.input:focus {
  outline: none;
  ring: 2px solid hsl(var(--ring));
  ring-offset: 2px;
}

.input:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}

.input::placeholder {
  color: hsl(var(--muted-foreground));
}

/* shadcn/ui Badge Components */
.badge {
  display: inline-flex;
  align-items: center;
  border-radius: 9999px;
  padding: 0.125rem 0.625rem;
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1;
  transition: colors 0.2s;
  cursor: pointer;
  border: 1px solid transparent;
}

.badge-default {
  background-color: hsl(var(--primary));
  color: hsl(var(--primary-foreground));
}

.badge-secondary {
  background-color: hsl(var(--secondary));
  color: hsl(var(--secondary-foreground));
}

.badge-outline {
  border: 1px solid hsl(var(--border));
  color: hsl(var(--foreground));
}

/* shadcn/ui Typography */
h1 {
  font-size: 2.25rem;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.025em;
  color: hsl(var(--foreground));
}

h2 {
  font-size: 1.875rem;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.025em;
  color: hsl(var(--foreground));
}

h3 {
  font-size: 1.5rem;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: -0.025em;
  color: hsl(var(--foreground));
}

h4 {
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.4;
  color: hsl(var(--foreground));
}

p {
  line-height: 1.7;
  color: hsl(var(--foreground));
}

.text-muted-foreground {
  color: hsl(var(--muted-foreground));
}

.text-sm {
  font-size: 0.875rem;
}

.text-xs {
  font-size: 0.75rem;
}

.text-lg {
  font-size: 1.125rem;
}

/* shadcn/ui Navigation */
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1rem;
  height: 4rem;
  border-bottom: 1px solid hsl(var(--border));
  background-color: hsl(var(--background) / 0.95);
  backdrop-filter: blur(8px);
  position: sticky;
  top: 0;
  z-index: 50;
}

.nav-brand {
  font-weight: 600;
  font-size: 1.125rem;
  color: hsl(var(--foreground));
  text-decoration: none;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.nav-link {
  font-size: 0.875rem;
  font-weight: 500;
  color: hsl(var(--foreground) / 0.6);
  text-decoration: none;
  transition: colors 0.2s;
}

.nav-link:hover {
  color: hsl(var(--foreground));
}

/* shadcn/ui Code Blocks */
pre {
  background-color: hsl(var(--muted));
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius);
  padding: 1rem;
  overflow-x: auto;
  font-family: ui-monospace, SFMono-Regular, "SF Mono", monospace;
  font-size: 0.875rem;
}

code {
  background-color: hsl(var(--muted));
  border-radius: calc(var(--radius) - 4px);
  padding: 0.125rem 0.25rem;
  font-family: ui-monospace, SFMono-Regular, "SF Mono", monospace;
  font-size: 0.875rem;
}

/* Container and Layout */
.container {
  width: 100%;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1rem;
  padding-right: 1rem;
}

@media (min-width: 640px) {
  .container { max-width: 640px; }
}

@media (min-width: 768px) {
  .container { max-width: 768px; }
}

@media (min-width: 1024px) {
  .container { max-width: 1024px; }
}

@media (min-width: 1280px) {
  .container { max-width: 1280px; }
}

@media (min-width: 1536px) {
  .container { max-width: 1536px; }
}

/* Dark Mode Toggle */
.dark-mode-toggle {
  background: none;
  border: 1px solid hsl(var(--border));
  border-radius: calc(var(--radius) - 2px);
  padding: 0.5rem;
  cursor: pointer;
  transition: colors 0.2s;
}

.dark-mode-toggle:hover {
  background-color: hsl(var(--accent));
}

/* Accessibility Enhancements */
*:focus-visible {
  outline: 2px solid hsl(var(--ring));
  outline-offset: 2px;
}

/* Smooth Transitions */
* {
  transition: background-color 0.2s, border-color 0.2s, color 0.2s;
}

/* Theme Toggle Script Integration */
html.dark {
  color-scheme: dark;
}

/* Minimal Hero Section (shadcn/ui style) */
.hero {
  padding: 3rem 0;
  text-align: center;
}

.hero-title {
  font-size: 2.25rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: hsl(var(--foreground));
}

.hero-description {
  font-size: 1.125rem;
  color: hsl(var(--muted-foreground));
  margin-bottom: 2rem;
  max-width: 42rem;
  margin-left: auto;
  margin-right: auto;
}

/* Clean Footer */
.footer {
  border-top: 1px solid hsl(var(--border));
  background-color: hsl(var(--background));
  padding: 3rem 0 1rem;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-section h4 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: hsl(var(--foreground));
}

.footer-section ul {
  list-style: none;
}

.footer-section ul li {
  margin-bottom: 0.5rem;
}

.footer-section a {
  color: hsl(var(--muted-foreground));
  text-decoration: none;
  font-size: 0.875rem;
  transition: colors 0.2s;
}

.footer-section a:hover {
  color: hsl(var(--foreground));
}

.footer-bottom {
  border-top: 1px solid hsl(var(--border));
  padding-top: 1rem;
  text-align: center;
  color: hsl(var(--muted-foreground));
  font-size: 0.875rem;
}

/* Responsive Design */
@media (max-width: 768px) {
  .nav {
    padding: 0 1rem;
  }

  .hero-title {
    font-size: 1.875rem;
  }

  .hero-description {
    font-size: 1rem;
  }

  .container {
    padding-left: 1rem;
    padding-right: 1rem;
  }
}

/* Compatibility Layer for Existing Custom Classes */
/* Provides minimal styling to prevent broken layouts while maintaining shadcn/ui aesthetic */

.section-title {
  font-size: 1.875rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 2rem;
  color: hsl(var(--foreground));
}

.path-card {
  border-radius: var(--radius);
  border: 1px solid hsl(var(--border));
  background-color: hsl(var(--card));
  padding: 1.5rem;
  box-shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1);
}

.path-icon {
  font-size: 2rem;
  margin-bottom: 1rem;
  display: block;
}

.path-topics {
  list-style: none;
  margin: 1rem 0;
  padding: 0;
}

.path-topics li {
  padding: 0.25rem 0;
  color: hsl(var(--muted-foreground));
  font-size: 0.875rem;
}

.path-link {
  color: hsl(var(--primary));
  text-decoration: none;
  font-weight: 500;
  transition: colors 0.2s;
}

.path-link:hover {
  color: hsl(var(--primary) / 0.8);
}

.examples-showcase {
  margin: 2rem 0;
}

.example-category {
  background: hsl(var(--card));
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius);
  margin-bottom: 2rem;
  overflow: hidden;
}

.example-category h3 {
  background: hsl(var(--muted));
  padding: 1rem 1.5rem;
  margin: 0;
  font-size: 1.25rem;
  font-weight: 600;
}

.example-tabs {
  padding: 1rem 1.5rem;
  border-bottom: 1px solid hsl(var(--border));
  display: flex;
  gap: 0.5rem;
}

.tab-btn {
  padding: 0.5rem 1rem;
  border: 1px solid hsl(var(--border));
  background: hsl(var(--background));
  border-radius: calc(var(--radius) - 2px);
  cursor: pointer;
  transition: colors 0.2s;
  font-size: 0.875rem;
}

.tab-btn.active {
  background: hsl(var(--primary));
  color: hsl(var(--primary-foreground));
}

.tab-btn:hover {
  background: hsl(var(--accent));
}

.code-examples {
  background: hsl(var(--muted));
}

.code-tab {
  display: none;
}

.code-tab.active {
  display: block;
}

.ecosystem-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}

.ecosystem-card {
  background: hsl(var(--card));
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius);
  padding: 1.5rem;
  text-align: center;
  transition: all 0.2s;
}

.ecosystem-card:hover {
  box-shadow: 0 4px 6px 0 rgb(0 0 0 / 0.1);
}

.ecosystem-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.technology-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  margin-top: 1rem;
}

.tech-tag {
  background: hsl(var(--secondary));
  color: hsl(var(--secondary-foreground));
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 500;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}

.feature {
  background: hsl(var(--card));
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius);
  padding: 1.5rem;
  text-align: center;
}

.feature-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

/* Remove all colorful gradients and marketing elements */
/* This template enforces neutral, minimal shadcn/ui aesthetic with compatibility */