/* Castaldo Solutions Blog Theme CSS */

/* Remove blue outline/focus from images and links */
img,
a img,
button {
  outline: none !important;
  -webkit-tap-highlight-color: transparent !important;
}

a:focus,
button:focus {
  outline: none !important;
}

/* Prevent blue highlight on mobile tap */
* {
  -webkit-tap-highlight-color: transparent;
}

/* Typography for prose content */
.prose {
  color: #374151;
}

/* Override max-width when using max-w-none */
.prose.max-w-none {
  max-width: none;
}

/* Justified text for better readability */
.prose p,
.prose li {
  text-align: justify;
  hyphens: auto;
  -webkit-hyphens: auto;
  -ms-hyphens: auto;
}

.prose h1, .prose h2, .prose h3, .prose h4, .prose h5, .prose h6 {
  color: #111827;
  font-weight: 700;
  line-height: 1.25;
  margin-top: 2em;
  margin-bottom: 0.75em;
}

.prose h1 { font-size: 2.25em; }
.prose h2 { font-size: 1.75em; }
.prose h3 { font-size: 1.5em; }
.prose h4 { font-size: 1.25em; }

.prose p {
  margin-top: 1.25em;
  margin-bottom: 1.25em;
}

.prose a {
  color: #2563EB;
  text-decoration: none;
}

.prose a:hover {
  text-decoration: underline;
}

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

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

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

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

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

.prose li {
  margin-top: 0.5em;
  margin-bottom: 0.5em;
  padding-left: 0.375em;
}

.prose li::marker {
  color: #2563EB;
}

.prose blockquote {
  border-left: 4px solid #2563EB;
  padding-left: 1em;
  margin: 1.5em 0;
  font-style: italic;
  color: #4B5563;
}

.prose code {
  background: #F3F4F6;
  padding: 0.2em 0.4em;
  border-radius: 0.25em;
  font-size: 0.875em;
}

.prose pre {
  background: #1F2937;
  color: #F9FAFB;
  padding: 1em;
  border-radius: 0.5em;
  overflow-x: auto;
  margin: 1.5em 0;
}

.prose pre code {
  background: transparent;
  padding: 0;
}

.prose img {
  border-radius: 0.5rem;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  margin: 2em auto;
}

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

.prose th, .prose td {
  border: 1px solid #E5E7EB;
  padding: 0.75em 1em;
  text-align: left;
}

.prose th {
  background: #F9FAFB;
  font-weight: 600;
}

/* Line clamp utility */
.line-clamp-3 {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Aspect ratio for images */
.aspect-video {
  aspect-ratio: 16 / 9;
}

/* Additional blog-specific styles */
article img {
  max-width: 100%;
  height: auto;
}

/* Notice/callout styles from markdown-notices plugin */
.notices {
  margin: 1.5rem 0;
  padding: 1rem 1.5rem;
  border-radius: 0.5rem;
}

.notices.yellow {
  background: #FEF3C7;
  border-left: 4px solid #F59E0B;
}

.notices.red {
  background: #FEE2E2;
  border-left: 4px solid #EF4444;
}

.notices.blue {
  background: #DBEAFE;
  border-left: 4px solid #2563EB;
}

.notices.green {
  background: #D1FAE5;
  border-left: 4px solid #10B981;
}

/* Reading time indicator */
.reading-time {
  color: #6B7280;
  font-size: 0.875rem;
}

/* Smooth scroll for in-page navigation */
html {
  scroll-behavior: smooth;
}

/* Focus styles for accessibility */
a:focus, button:focus {
  outline: 2px solid #2563EB;
  outline-offset: 2px;
}

/* Animation for cards on hover */
.hover\:shadow-xl:hover {
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}
