/* Custom styles on top of Tailwind CSS */

body {
  padding-top: 80px;
}

/* Font definitions */
.font-inter {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

/* Header styling */
.site-header {
  background-color: #111827;
  color: white;
}

/* Header scroll effects */
header {
  transition: background-color 0.3s ease, backdrop-filter 0.3s ease;
}

header.scrolled {
  backdrop-filter: blur(8px);
  background-color: #111827de;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.site-logo {
  display: flex;
  align-items: center;
}

.site-nav a {
  color: #d1d5db;
  transition: color 0.2s ease;
}

.site-nav a:hover {
  color: white;
}

/* Typography adjustments */
.prose {
  max-width: none;
  color: var(--text-color);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

.prose h1, .prose h2, .prose h3, .prose h4, .prose h5, .prose h6 {
  color: #111827;
  margin-top: 2em;
  margin-bottom: 1em;
  line-height: 1.3;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  position: relative;
}

.prose h1 {
  font-size: 2.25em;
  letter-spacing: -0.025em;
  margin-top: 1.5em;
}

.prose h2 {
  font-size: 1.75em;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 0.3em;
}

.prose h3 {
  font-size: 1.5em;
}

.prose h1 .header-anchor,
.prose h2 .header-anchor,
.prose h3 .header-anchor {
  position: absolute;
  left: -1em;
  opacity: 0;
  transition: opacity 0.2s;
  font-weight: normal;
  text-decoration: none;
  border-bottom: none;
}

.prose h1:hover .header-anchor,
.prose h2:hover .header-anchor,
.prose h3:hover .header-anchor {
  opacity: 0.7;
}

.prose h1 .header-anchor:hover,
.prose h2 .header-anchor:hover,
.prose h3 .header-anchor:hover {
  opacity: 1;
  border-bottom: none;
}

.prose p {
  margin-top: 1.5em;
  margin-bottom: 1.5em;
  line-height: 1.7;
}

.prose a {
  color: var(--primary-color);
  text-decoration: none;
  border-bottom: 1px solid var(--primary-color);
  transition: border-color 0.2s ease;
}

.prose a:hover {
  color: var(--primary-color-dark);
  border-bottom-width: 2px;
}

.prose ul {
  list-style-type: disc;
  margin-top: 1.25em;
  margin-bottom: 1.25em;
  padding-left: 1.625em;
}

.prose ol {
  list-style-type: decimal;
  margin-top: 1.25em;
  margin-bottom: 1.25em;
  padding-left: 1.625em;
}

.prose ul li, .prose ol li {
  margin-top: 0.6em;
  margin-bottom: 0.6em;
  padding-left: 0.375em;
  display: list-item;
}

.prose blockquote {
  font-style: italic;
  border-left: 4px solid var(--primary-color);
  padding-left: 1em;
  margin-left: 0;
  color: var(--text-color-light);
}

.prose code {
  background-color: #f1f5f9;
  padding: 0.2em 0.4em;
  border-radius: 0.25em;
  font-family: 'Consolas', 'Monaco', 'Andale Mono', monospace;
  font-size: 0.9em;
}

.prose pre {
  background-color: #f8fafc;
  padding: 1em;
  border-radius: 0.5em;
  overflow-x: auto;
}

/* Font classes */
.font-montserrat {
  font-family: 'Montserrat', sans-serif;
}

.font-montserrat-bold {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
}

/* Blog post card hover effects */
.blog-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.blog-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

/* Custom button styles */
.btn-primary {
  background-color: var(--primary-color);
  color: white;
  padding: 0.75rem 1.5rem;
  border-radius: 0.375rem;
  font-weight: 500;
  transition: background-color 0.3s ease;
}

.btn-primary:hover {
  background-color: var(--primary-color-dark);
}

/* Custom list styles */
.custom-list {
  list-style-type: none;
  padding-left: 1.5rem;
}

.custom-list li {
  position: relative;
  margin-bottom: 0.8rem;
  padding-left: 0.5rem;
}

.custom-list li::before {
  content: "";
  position: absolute;
  left: -1.5rem;
  top: 0.5rem;
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background-color: var(--primary-color);
}

/* Helper classes */
.text-primary {
  color: var(--primary-color);
}

.bg-primary {
  background-color: var(--primary-color);
}

.bg-primary-light {
  background-color: var(--primary-color-light);
}

/* Responsive adjustments */
@media (max-width: 640px) {
  .container {
    padding-left: 1rem;
    padding-right: 1rem;
  }
  
  .prose h1 {
    font-size: 1.75em;
  }
  
  .prose h2 {
    font-size: 1.5em;
  }
} 