/* ============================================
   Blog Pulsor - Estilos
   ============================================ */

body { font-family: 'Inter', sans-serif; }
html { scroll-behavior: smooth; }

/* ===== Prose / Article Typography ===== */
.prose {
    color: #404040;
    line-height: 1.8;
    font-size: 1.125rem;
}
.prose h1 { font-size: 2.5rem; font-weight: 800; color: #171717; line-height: 1.15; margin-bottom: 1rem; letter-spacing: -0.02em; }
.prose h2 { font-size: 1.875rem; font-weight: 700; color: #171717; line-height: 1.2; margin-top: 2.5rem; margin-bottom: 0.75rem; letter-spacing: -0.01em; }
.prose h3 { font-size: 1.5rem; font-weight: 700; color: #171717; line-height: 1.3; margin-top: 2rem; margin-bottom: 0.5rem; }
.prose h4 { font-size: 1.25rem; font-weight: 600; color: #171717; line-height: 1.4; margin-top: 1.5rem; margin-bottom: 0.5rem; }
.prose p { margin-bottom: 1.25rem; }
.prose a { color: #2563eb; text-decoration: underline; text-underline-offset: 2px; }
.prose a:hover { color: #1d4ed8; }
.prose strong { font-weight: 600; color: #171717; }
.prose ul, .prose ol { margin-bottom: 1.25rem; padding-left: 1.5rem; }
.prose ul { list-style-type: disc; }
.prose ol { list-style-type: decimal; }
.prose li { margin-bottom: 0.5rem; }
.prose li::marker { color: #a3a3a3; }
.prose blockquote {
    border-left: 4px solid #2563eb;
    padding: 1rem 1.5rem;
    margin: 1.5rem 0;
    background: #f5f5f5;
    border-radius: 0 12px 12px 0;
    font-style: italic;
    color: #525252;
}
.prose img {
    max-width: 100%;
    height: auto;
    border-radius: 16px;
    margin: 1.5rem 0;
}
.prose pre {
    background: #171717;
    color: #e5e5e5;
    border-radius: 12px;
    padding: 1.25rem;
    overflow-x: auto;
    margin: 1.5rem 0;
    font-size: 0.875rem;
    line-height: 1.7;
}
.prose code {
    background: #f5f5f5;
    padding: 0.15rem 0.4rem;
    border-radius: 4px;
    font-size: 0.875em;
    color: #dc2626;
}
.prose pre code {
    background: transparent;
    padding: 0;
    color: inherit;
}
.prose table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
    font-size: 0.95rem;
}
.prose th, .prose td {
    border: 1px solid #e5e5e5;
    padding: 0.75rem 1rem;
    text-align: left;
}
.prose th {
    background: #f5f5f5;
    font-weight: 600;
    color: #171717;
}
.prose hr {
    border: none;
    border-top: 1px solid #e5e5e5;
    margin: 2rem 0;
}

/* ===== Responsive Prose ===== */
@media (max-width: 768px) {
    .prose { font-size: 1rem; line-height: 1.75; }
    .prose h1 { font-size: 1.875rem; }
    .prose h2 { font-size: 1.5rem; }
    .prose h3 { font-size: 1.25rem; }
    .prose blockquote { padding: 0.75rem 1rem; }
    .prose pre { padding: 1rem; font-size: 0.8rem; }
}

/* ===== Post Card Hover ===== */
.post-card {
    transition: transform 0.3s cubic-bezier(.16,1,.3,1), box-shadow 0.3s ease;
}
.post-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px -12px rgba(37, 99, 235, 0.1);
}

/* ===== Category Badge ===== */
.category-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    background: rgba(37, 99, 235, 0.08);
    color: #2563eb;
    transition: background 0.2s;
}
.category-badge:hover {
    background: rgba(37, 99, 235, 0.15);
}

/* ===== Breadcrumb ===== */
.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: #a3a3a3;
}
.breadcrumb a {
    color: #737373;
    transition: color 0.2s;
}
.breadcrumb a:hover {
    color: #2563eb;
}
.breadcrumb .separator {
    color: #d4d4d4;
}

/* ===== Featured Image ===== */
.featured-image {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    border-radius: 24px;
}

@media (max-width: 768px) {
    .featured-image {
        border-radius: 16px;
    }
}

/* ===== Skeleton Loading ===== */
.skeleton {
    background: linear-gradient(90deg, #f5f5f5 25%, #e5e5e5 50%, #f5f5f5 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite;
    border-radius: 8px;
}

@keyframes skeleton-loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* ===== Scroll Animations ===== */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s cubic-bezier(.16,1,.3,1), transform 0.8s cubic-bezier(.16,1,.3,1);
}
.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

.stagger-1 { transition-delay: .1s; }
.stagger-2 { transition-delay: .2s; }
.stagger-3 { transition-delay: .25s; }
.stagger-4 { transition-delay: .35s; }
.stagger-5 { transition-delay: .4s; }
.stagger-6 { transition-delay: .5s; }
.stagger-7 { transition-delay: .55s; }
.stagger-8 { transition-delay: .6s; }
.stagger-9 { transition-delay: .65s; }
