/* Base Styles */
:root {
  --primary: #4f46e5;
  --primary-dark: #4338ca;
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-300: #d1d5db;
  --gray-400: #9ca3af;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-800: #1f2937;
  --gray-900: #111827;
  --max-width: 80rem;
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-md: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
  --border: 1px solid var(--gray-200);
  --border-dark: 2px solid var(--gray-900);
}

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

body {
  font-family: var(--font-body);
  line-height: 1.6;
  color: var(--gray-900);
  background-color: #fafafa;
  padding: 2rem 1rem;
  max-width: var(--max-width);
  margin: 0 auto;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  margin: 1.5em 0 0.75em;
  color: var(--gray-900);
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }

p {
  margin-bottom: 1.25em;
  max-width: 65ch;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--primary-dark);
  text-decoration: underline;
}

/* Navbar Layout */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
  margin-bottom: 3rem;
  border-bottom: 2px solid var(--gray-900); /* High-contrast bottom border */
}

.navbar-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--gray-900);
  text-decoration: none !important;
}

.navbar-brand i {
  color: var(--primary);
  stroke-width: 2.5px;
}

/* Button System */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  border: 2px solid var(--gray-900);
  box-shadow: 3px 3px 0 0 var(--gray-900); /* Neo-brutalism style shadow */
  transition: all 0.1s ease;
  cursor: pointer;
  text-decoration: none !important;
}

.btn:hover {
  transform: translate(-1px, -1px);
  box-shadow: 4px 4px 0 0 var(--gray-900);
}

.btn:active {
  transform: translate(2px, 2px);
  box-shadow: 0px 0px 0 0 var(--gray-900);
}

/* Color Variants */
.btn-indigo { background-color: #e0e7ff; color: #4338ca; }
.btn-purple { background-color: #f3e8ff; color: #7e22ce; }
.btn-cyan { background-color: #ecfeff; color: #0e7490; }
.btn-emerald { background-color: #d1fae5; color: #047857; }

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

.card {
  position: relative;
  background: white;
  border: 2px solid var(--gray-900);
  padding: 2rem;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 6px 6px 0 0 var(--gray-900);
}

.card:hover {
  transform: translate(-2px, -2px);
  box-shadow: 8px 8px 0 0 var(--gray-900);
}

.card-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.card-header h3 {
  margin: 0;
  font-size: 1.25rem;
}

.card-emoji {
  font-size: 1.5rem;
  background: var(--gray-100);
  width: 45px;
  height: 45px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  border: 1px solid var(--gray-900);
}

.card-footer {
  margin-top: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  font-size: 0.875rem;
  text-transform: uppercase;
  color: var(--primary);
}

/* Color Accents */
.card-api { border-top: 6px solid #6366f1; }

/* List Styles - Simple Version */
.list-simple {
  margin-bottom: 1rem;
}

.list-simple .list-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.25rem 0;
  border-bottom: 1px solid var(--gray-200);
}

.list-simple .list-item:last-child {
  border-bottom: none;
}

.list-simple .list-icon {
  width: 18px;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gray-700);
  font-size: 1rem;
  flex-shrink: 0;
}

.list-simple .list-content {
  flex: 1;
}

.list-simple .list-title {
  font-weight: 500;
  font-size: 0.875rem;
  color: var(--gray-900);
  margin: 0;
}

.list-simple .list-description {
  font-size: 0.75rem;
  color: var(--gray-600);
  margin: 0;
  line-height: 1.3;
}

.list-simple .list-badge {
  padding: 0.125rem 0.5rem;
  background: var(--gray-100);
  border: 1px solid var(--gray-300);
  border-radius: 0.25rem;
  font-size: 0.625rem;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--gray-600);
}

/* Code Block Styles - Simple Version */
.code-block {
  background: #f8f9fa;
  border: 2px solid var(--gray-900);
  border-radius: 0.5rem;
  margin: 1.5rem 0;
  overflow: hidden;
  box-shadow: 4px 4px 0 0 var(--gray-700);
}

.code-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 1rem;
  background: var(--gray-100);
  border-bottom: 2px solid var(--gray-900);
}

.code-filename {
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--gray-900);
}

.code-copy {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: var(--gray-200);
  border: 2px solid var(--gray-900);
  border-radius: 0.25rem;
  color: var(--gray-700);
  cursor: pointer;
  transition: all 0.2s ease;
}

.code-copy:hover {
  background: var(--gray-300);
  color: var(--gray-900);
}

.code-copy i {
  width: 16px;
  height: 16px;
}

.code-block pre {
  margin: 0;
  padding: 1rem;
  overflow-x: auto;
}

.code-block code {
  font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--gray-900);
  background: transparent;
}

/* Heading Styles - Cool Underline */
.heading-1,
.heading-2,
.heading-3,
.heading-4,
.heading-5,
.heading-6 {
  position: relative;
  display: inline-block;
  margin-bottom: 0.5rem;
}

.heading-1::after,
.heading-2::after,
.heading-3::after,
.heading-4::after,
.heading-5::after,
.heading-6::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--primary) 0%, var(--primary-dark) 100%);
  border-radius: 2px;
  box-shadow: 0 2px 0 0 rgba(79, 70, 229, 0.3);
}

.heading-1 {
  font-size: 2.5rem;
}

.heading-2 {
  font-size: 2rem;
}

.heading-3 {
  font-size: 1.5rem;
}

.heading-4 {
  font-size: 1.25rem;
}

.heading-5 {
  font-size: 1.125rem;
}

.heading-6 {
  font-size: 1rem;
}
.card-web { border-top: 6px solid #a855f7; }
.card-arch { border-top: 6px solid #06b6d4; }
