/* Blog Content Styling - WordPress-like formatting */

.blog-content {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    line-height: 1.7;
    color: #2c3e50;
    max-width: 100%;
}

/* Typography */
.blog-content p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.blog-content p.lead {
    font-size: 1.25rem;
    font-weight: 300;
    color: #555;
    margin-bottom: 2rem;
    border-left: 4px solid #3b82f6;
    padding-left: 1.5rem;
    font-style: italic;
}

.blog-content h1,
.blog-content h2,
.blog-content h3,
.blog-content h4,
.blog-content h5,
.blog-content h6 {
    font-weight: 600;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    color: #1a202c;
}

.blog-content h1 { font-size: 2.25rem; }
.blog-content h2 { font-size: 1.875rem; color: #2563eb; }
.blog-content h3 { font-size: 1.5rem; color: #3730a3; }
.blog-content h4 { font-size: 1.25rem; }
.blog-content h5 { font-size: 1.125rem; }
.blog-content h6 { font-size: 1rem; }

/* Lists */
.blog-content ul,
.blog-content ol {
    margin-bottom: 1.5rem;
    padding-left: 2rem;
}

.blog-content li {
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

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

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

/* WordPress Block Styles */
.wp-block-columns {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.wp-block-column {
    background: #f8fafc;
    padding: 1.5rem;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
}

.wp-block-quote {
    border-left: 4px solid #10b981;
    background: #f0fdf4;
    padding: 1.5rem 2rem;
    margin: 2rem 0;
    border-radius: 0 8px 8px 0;
    font-style: italic;
}

.wp-block-quote p {
    margin-bottom: 0.5rem;
    font-size: 1.125rem;
    color: #065f46;
}

.wp-block-quote cite {
    font-size: 0.875rem;
    color: #6b7280;
    font-weight: 500;
}

.wp-block-group {
    margin: 2rem 0;
    border-radius: 12px;
}

.wp-block-group.has-background {
    padding: 1.5rem;
}

/* Images and Media */
.wp-block-image {
    margin: 2rem 0;
    text-align: center;
}

.wp-block-image img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.wp-block-image figcaption {
    margin-top: 0.5rem;
    font-size: 0.875rem;
    color: #6b7280;
    font-style: italic;
}

.wp-block-media-text {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 2rem;
    align-items: center;
    margin: 2rem 0;
    padding: 1.5rem;
    background: #f8fafc;
    border-radius: 12px;
}

.wp-block-media-text__media img {
    width: 100%;
    border-radius: 8px;
}

/* Tables */
.wp-block-table {
    width: 100%;
    margin: 2rem 0;
    border-collapse: collapse;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.wp-block-table th,
.wp-block-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid #e5e7eb;
}

.wp-block-table th {
    background: #f3f4f6;
    font-weight: 600;
    color: #374151;
}

.wp-block-table tr:hover {
    background: #f9fafb;
}

/* Text Formatting */
.blog-content strong {
    font-weight: 600;
    color: #1f2937;
}

.blog-content em {
    font-style: italic;
    color: #4b5563;
}

/* Links */
.blog-content a {
    color: #3b82f6;
    text-decoration: underline;
    text-decoration-color: #93c5fd;
    text-underline-offset: 2px;
    transition: all 0.2s ease;
}

.blog-content a:hover {
    color: #1d4ed8;
    text-decoration-color: #3b82f6;
}

/* Special Elements */
.blog-content .pro-tip,
.blog-content .wp-block-group h4 {
    font-size: 1.125rem;
    font-weight: 600;
    color: #059669;
    margin-bottom: 0.5rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .blog-content {
        font-size: 1rem;
    }
    
    .blog-content p.lead {
        font-size: 1.125rem;
    }
    
    .blog-content h1 { font-size: 1.875rem; }
    .blog-content h2 { font-size: 1.5rem; }
    .blog-content h3 { font-size: 1.25rem; }
    
    .wp-block-columns {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .wp-block-media-text {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .wp-block-table {
        font-size: 0.875rem;
    }
    
    .wp-block-table th,
    .wp-block-table td {
        padding: 0.75rem 0.5rem;
    }
}

/* Print Styles */
@media print {
    .blog-content {
        font-size: 12pt;
        line-height: 1.5;
    }
    
    .blog-content h1,
    .blog-content h2,
    .blog-content h3 {
        page-break-after: avoid;
    }
    
    .wp-block-group,
    .wp-block-quote,
    .wp-block-table {
        page-break-inside: avoid;
    }
}