/* Base Styles */

/* Typography */
.blog-post-title {
    font-size: clamp(1.75rem, 5vw, 2.5rem);
    line-height: 1.2;
}

h1, h2, h3, h4, h5, h6 {
    color: #1a1a1a;
    margin-bottom: 1rem;
    font-weight: 700;
}

p {
    margin-bottom: 1.25rem;
}

.lead {
    font-size: 1.25rem;
    font-weight: 400;
    color: #444;
}

/* Layout */
.blog-content {
    max-width: 800px;
    margin: 0 auto;
}

/* Cards */
.card {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

/* Lists */
.list-steps {
    counter-reset: step-counter;
    padding-left: 0;
    list-style: none;
}

.list-steps > li {
    position: relative;
    padding-left: 2.5rem;
    counter-increment: step-counter;
}

.list-steps > li::before {
    content: counter(step-counter);
    position: absolute;
    left: 0;
    top: 0;
    background: #0d6efd;
    color: white;
    width: 1.75rem;
    height: 1.75rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.875rem;
    font-weight: bold;
}

/* CTAs */
.cta-card {
    background: linear-gradient(135deg, #0d6efd 0%, #0b5ed7 100%);
}

/* Newsletter Form */
.newsletter-card {
    border: 1px solid rgba(0,0,0,0.1);
}

/* Author Card */
.author-card img {
    width: 80px;
    height: 80px;
    object-fit: cover;
}

/* Comments */
.comment img {
    width: 40px;
    height: 40px;
    object-fit: cover;
}

/* Lazy loading */
img.lazy-load {
    opacity: 0;
    transition: opacity 0.3s ease;
}

img.lazy-load.loaded {
    opacity: 1;
}

/* Performance optimizations */
img {
    max-width: 100%;
    height: auto;
}

/* Mobile optimizations */
@media (max-width: 767.98px) {
    .blog-content {
        padding: 0 15px;
    }
    
    .lead {
        font-size: 1.1rem;
    }
    
    .cta-card .btn {
        width: 100%;
    }
}

/* Print styles */
@media print {
    .newsletter-card, .comments, .toc-card {
        display: none;
    }
}