/* Blog Academy Educação - Custom Styles */

/* Base */
body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
}

/* Article body styling */
.prose-content {
  font-size: 1.0625rem;
  line-height: 1.8;
  color: #cbd5e1;
}

.prose-content h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: #f8fafc;
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  line-height: 1.3;
  letter-spacing: -0.01em;
}

.prose-content h3 {
  font-size: 1.25rem;
  font-weight: 600;
  color: #f8fafc;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
  line-height: 1.4;
}

.prose-content h4 {
  font-size: 1.125rem;
  font-weight: 600;
  color: #e2e8f0;
  margin-top: 1.75rem;
  margin-bottom: 0.5rem;
}

.prose-content p {
  margin-bottom: 1.25rem;
}

.prose-content a {
  color: #38bdf8;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.prose-content a:hover {
  color: #7dd3fc;
}

.prose-content strong {
  color: #f8fafc;
  font-weight: 600;
}

.prose-content blockquote {
  border-left: 4px solid #38bdf8;
  padding-left: 1.25rem;
  margin: 1.5rem 0;
  font-style: italic;
  color: #94a3b8;
}

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

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

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

.prose-content li {
  margin-bottom: 0.5rem;
  line-height: 1.75;
}

.prose-content img {
  border-radius: 0.75rem;
  margin: 1.5rem 0;
  max-width: 100%;
  height: auto;
}

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

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

.prose-content th {
  background: #1e293b;
  color: #f8fafc;
  font-weight: 600;
}

.prose-content code {
  background: #1e293b;
  padding: 0.15em 0.4em;
  border-radius: 0.25rem;
  font-size: 0.875em;
  color: #e2e8f0;
}

.prose-content pre {
  background: #0f172a;
  border: 1px solid #1e293b;
  border-radius: 0.75rem;
  padding: 1.25rem;
  overflow-x: auto;
  margin: 1.5rem 0;
}

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

.prose-content hr {
  border: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin: 2rem 0;
}

/* Text truncation */
.line-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

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

/* Card glow hover effect */
.card-glow {
  position: relative;
  box-shadow: 0 0 0 rgba(59, 130, 246, 0);
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.card-glow:hover {
  box-shadow: 0 0 25px rgba(59, 130, 246, 0.2), 0 0 50px rgba(59, 130, 246, 0.08);
}

/* Scroll reveal animation */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* Search input glow */
.search-input:focus {
  box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.5), 0 0 20px rgba(59, 130, 246, 0.12);
}

/* Hide scrollbar */
.no-scrollbar::-webkit-scrollbar {
  display: none;
}
.no-scrollbar {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

/* Lazysizes */
.lazyload,
.lazyloading {
  opacity: 0;
}
.lazyloaded {
  opacity: 1;
  transition: opacity 0.2s ease-out;
}

/* Alpine.js cloak */
[x-cloak] {
  display: none !important;
}

/* WhatsApp button pulse */
@keyframes pulse-glow {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.4);
  }
  50% {
    box-shadow: 0 0 0 12px rgba(37, 211, 102, 0);
  }
}

/* Share button hover */
.share-btn {
  transition: background-color 0.15s ease, color 0.15s ease;
}

/* Smooth scroll */
html {
  scroll-behavior: smooth;
}

/* Touch optimization */
html {
  touch-action: manipulation;
}

/* Cursor pointer for clickable elements */
a, button, [role="button"], input[type="submit"], select, label[for], summary {
  cursor: pointer;
}

/* Footer content-visibility optimization */
footer {
  content-visibility: auto;
  contain-intrinsic-size: auto 600px;
}

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
  .lazyloaded {
    transition: none;
  }
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .card-glow {
    transition: none;
  }
  html {
    scroll-behavior: auto;
  }
}

/* Mobile responsive */
@media (max-width: 640px) {
  .prose-content {
    font-size: 1rem;
    line-height: 1.7;
  }
  .prose-content h2 {
    font-size: 1.25rem;
  }
  .prose-content h3 {
    font-size: 1.125rem;
  }
  .prose-content pre {
    padding: 0.75rem;
    font-size: 0.8125rem;
  }
}
