/* Global styles */
:root {
  --primary-color: #1980e6;
  --primary-hover: #1668c2;
  --text-color: #111418;
  --text-light: #6b7280;
  --bg-color: #f9fafb;
  --bg-card: #ffffff;
  --border-color: #f0f2f4;
}

body {
  font-family: 'Inter', 'Noto Sans', sans-serif;
  color: var(--text-color);
  background-color: var(--bg-color);
  line-height: 1.5;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  margin-top: 1.5rem;
  margin-bottom: 1rem;
  font-weight: 700;
  line-height: 1.2;
}

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

p {
  margin-bottom: 1.25rem;
}

a {
  color: var(--primary-color);
  text-decoration: none;
}

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

/* Blog post content styling */
.prose {
  max-width: 100%;
  color: var(--text-color);
  font-family: 'Inter', sans-serif;
  line-height: 1.6;
  font-size: 1.125rem;
}

@media (min-width: 768px) {
  .prose {
    font-size: 1.15rem;
    line-height: 1.7;
  }
}

/* Enhanced heading styles with visual hierarchy */
.prose h1 {
  font-size: 2.5rem;
  color: #4338ca;
  margin-top: 0;
  margin-bottom: 1.5rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid #e5e7eb;
  letter-spacing: -0.025em;
}

/* Collapsible section styles */
.collapsible-heading {
  transition: all 0.2s ease;
  position: relative;
  display: flex;
  align-items: center;
  cursor: pointer;
}

.collapsible-heading:hover {
  color: #4338ca;
}

.toggle-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background-color: #eff6ff;
  color: #4338ca;
  margin-left: 8px;
  font-size: 16px;
  font-weight: bold;
  transition: all 0.2s ease;
  animation: bounce 2s infinite;
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-5px);
  }
  60% {
    transform: translateY(-2px);
  }
}

.collapsible-heading:hover .toggle-icon {
  background-color: #dbeafe;
}

.collapsible-content {
  padding-left: 20px;
  margin-left: 12px;
  border-left: 2px solid #e5e7eb;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.collapsible-content.hidden {
  display: none;
}

.prose h2 {
  font-size: 2rem;
  color: #1f2937;
  margin-top: 2.5rem;
  margin-bottom: 1.25rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid #e5e7eb;
}

.prose h3 {
  font-size: 1.65rem;
  color: #4338ca;
  margin-top: 2rem;
  margin-bottom: 1rem;
}

.prose h4 {
  font-size: 1.35rem;
  color: #4b5563;
  font-weight: 600;
  margin-top: 1.75rem;
  margin-bottom: 0.75rem;
}

.prose h5 {
  font-size: 1.15rem;
  color: #6b7280;
  font-weight: 600;
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.prose h6 {
  font-size: 1rem;
  color: #6b7280;
  font-weight: 600;
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
}

.prose img {
  margin: 2.5rem auto;
  max-width: 100%;
  height: auto;
  border-radius: 0.5rem;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  display: block;
}

.prose a {
  color: var(--primary-color);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
  font-weight: 500;
  transition: all 0.2s ease;
}

.prose a:hover {
  color: var(--primary-hover);
  text-decoration-thickness: 2px;
}

.prose strong {
  font-weight: 700;
  color: #111827;
}

.prose ul, .prose ol {
  margin-top: 1.25rem;
  margin-bottom: 1.5rem;
  padding-left: 1.625rem;
}

.prose ul {
  list-style-type: disc;
}

.prose ol {
  list-style-type: decimal;
}

.prose li {
  margin-top: 0.75rem;
  margin-bottom: 0.75rem;
  line-height: 1.5;
}

.prose blockquote {
  font-style: italic;
  border-left: 4px solid var(--primary-color);
  padding: 1rem 1.5rem;
  margin: 1.5rem 0;
  color: var(--text-light);
  background-color: rgba(0, 0, 0, 0.02);
  border-radius: 0 0.25rem 0.25rem 0;
}

.prose pre {
  background-color: #1e293b;
  color: #e2e8f0;
  padding: 1rem;
  border-radius: 0.5rem;
  overflow-x: auto;
  margin: 1.5rem 0;
}

.prose code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: 0.875em;
  background-color: rgba(0, 0, 0, 0.05);
  padding: 0.2em 0.4em;
  border-radius: 0.25rem;
}

.prose pre code {
  background-color: transparent;
  padding: 0;
  border-radius: 0;
}

.prose table {
  width: 100%;
  border-collapse: collapse;
  margin: 2rem 0;
}

.prose th {
  background-color: rgba(0, 0, 0, 0.05);
  font-weight: 600;
  text-align: left;
}

.prose th, .prose td {
  padding: 0.75rem;
  border: 1px solid var(--border-color);
}

.prose tr:nth-child(even) {
  background-color: rgba(0, 0, 0, 0.02);
}
