/* Custom styles for Life After Coding blog */

/* Typography improvements */
.navbar-brand {
  font-weight: 700;
  font-size: 1.4rem;
}

/* Blog post cards */
.quarto-listing .card {
  border: none;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
  margin-bottom: 2rem;
}

.quarto-listing .card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

/* Code blocks */
pre {
  border-radius: 8px;
  border: 1px solid #e9ecef;
}

/* Headers */
h1, h2, h3, h4, h5, h6 {
  color: #2c3e50;
  margin-top: 2rem;
  margin-bottom: 1rem;
}

h1 {
  border-bottom: 3px solid #3498db;
  padding-bottom: 0.5rem;
}

h2 {
  border-bottom: 2px solid #e9ecef;
  padding-bottom: 0.3rem;
}

/* Links */
a {
  color: #3498db;
  text-decoration: none;
}

a:hover {
  color: #2980b9;
  text-decoration: underline;
}

/* Blockquotes */
blockquote {
  border-left: 4px solid #3498db;
  background-color: #f8f9fa;
  padding: 1rem 1.5rem;
  margin: 1.5rem 0;
  border-radius: 0 4px 4px 0;
}

/* Categories */
.quarto-category {
  background-color: #3498db;
  color: white;
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.85rem;
  text-decoration: none;
  display: inline-block;
  margin: 0.2rem 0.3rem 0.2rem 0;
}

.quarto-category:hover {
  background-color: #2980b9;
  color: white;
  text-decoration: none;
}

/* Footer */
.nav-footer {
  border-top: 1px solid #e9ecef;
  margin-top: 3rem;
}

/* Custom emoji styling */
.emoji {
  font-style: normal;
  font-size: 1.2em;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .navbar-brand {
    font-size: 1.2rem;
  }
  
  h1 {
    font-size: 1.8rem;
  }
  
  h2 {
    font-size: 1.5rem;
  }
}

/* Dark mode adjustments */
@media (prefers-color-scheme: dark) {
  h1, h2, h3, h4, h5, h6 {
    color: #ecf0f1;
  }
  
  blockquote {
    background-color: #2c3e50;
    color: #ecf0f1;
  }
}

/* Table styling */
table {
  border-collapse: collapse;
  width: 100%;
  margin: 1.5rem 0;
}

table th,
table td {
  border: 1px solid #dee2e6;
  padding: 0.75rem;
  text-align: left;
}

table th {
  background-color: #f8f9fa;
  font-weight: 600;
}

/* Alert boxes */
.alert {
  padding: 1rem 1.25rem;
  margin-bottom: 1rem;
  border: 1px solid transparent;
  border-radius: 0.375rem;
}

.alert-info {
  color: #055160;
  background-color: #cff4fc;
  border-color: #b6effb;
}

.alert-warning {
  color: #664d03;
  background-color: #fff3cd;
  border-color: #ffecb5;
}

.alert-danger {
  color: #721c24;
  background-color: #f8d7da;
  border-color: #f5c2c7;
}
