/* Blog Post Styles */

/* Article Layout */
.post-article {
    padding-top: 8rem;
    padding-bottom: 4rem;
}

.post-wrapper {
    max-width: 48rem;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Header */
.post-header {
    margin-bottom: 3rem;
}

.post-meta {
    display: flex;
    align-items: center;
    gap: .6rem;
    flex-wrap: wrap;
    margin-bottom: 1.25rem;
}

.post-tag {
    display: inline-block;
    padding: .3rem .85rem;
    font-size: .7rem;
    font-weight: 700;
    border-radius: 9999px;
    text-transform: uppercase;
    letter-spacing: .06em;
}

.post-tag-blue { background: #dbeafe; color: #1d4ed8; }
.post-tag-green { background: #dcfce7; color: #15803d; }
.post-tag-red { background: #fee2e2; color: #b91c1c; }
.post-tag-purple { background: #f3e8ff; color: #7c3aed; }

.post-date {
    color: #9ca3af;
    font-size: .85rem;
}

.post-title {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 800;
    color: #111827;
    line-height: 1.2;
    margin-bottom: 1.25rem;
}

.post-subtitle {
    font-size: 1.2rem;
    color: #6b7280;
    line-height: 1.7;
}

/* Content */
.post-body {
    color: #374151;
    font-size: 1.05rem;
    line-height: 1.85;
}

.post-body img {
    width: 100%;
    border-radius: .75rem;
    box-shadow: 0 8px 24px rgba(0,0,0,.08);
    margin: 2rem 0;
}

.post-body h2 {
    font-size: 1.65rem;
    font-weight: 700;
    color: #111827;
    margin: 2.5rem 0 1rem;
    padding-left: 1rem;
    position: relative;
}

.post-body h2::before {
    content: '';
    position: absolute;
    left: 0;
    top: .15em;
    bottom: .15em;
    width: 4px;
    border-radius: 2px;
    background: linear-gradient(180deg, #3b82f6, #8b5cf6);
}

.post-body h3 {
    font-size: 1.3rem;
    font-weight: 600;
    color: #1f2937;
    margin: 2rem 0 .75rem;
}

.post-body p {
    margin-bottom: 1.4rem;
}

.post-body ul, .post-body ol {
    padding-left: 1.5rem;
    margin-bottom: 1.4rem;
}

.post-body li {
    margin-bottom: .45rem;
}

.post-body strong {
    color: #111827;
}

/* Tables */
.post-body .overflow-x-auto {
    margin: 2rem 0;
}

.post-body table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    border-radius: .75rem;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0,0,0,.06);
    font-size: .95rem;
}

.post-body thead th {
    background: #f8fafc;
    padding: .85rem 1rem;
    text-align: left;
    font-weight: 600;
    color: #1e293b;
    border-bottom: 2px solid #e2e8f0;
}

.post-body tbody td {
    padding: .75rem 1rem;
    border-bottom: 1px solid #f1f5f9;
    color: #475569;
}

.post-body tbody tr:last-child td {
    border-bottom: none;
}

.post-body tbody tr:hover {
    background: #f8fafc;
}

/* CTA Box */
.post-cta {
    padding: 2rem;
    border-radius: 1rem;
    margin: 2.5rem 0;
    position: relative;
    overflow: hidden;
}

.post-cta h3 {
    font-size: 1.35rem;
    font-weight: 700;
    margin-bottom: .5rem;
}

.post-cta p {
    margin-bottom: 1rem;
    opacity: .9;
}

/* Related Posts */
.related-section {
    padding: 4rem 0;
    background: #f8fafc;
}

.related-section h2 {
    font-size: 1.75rem;
    font-weight: 700;
    color: #111827;
    text-align: center;
    margin-bottom: 2.5rem;
}

.related-grid {
    display: grid;
    gap: 1.5rem;
}

@media(min-width:768px) {
    .related-grid { grid-template-columns: repeat(3, 1fr); }
}

.related-card {
    background: #fff;
    border-radius: .75rem;
    padding: 1.5rem;
    border: 1px solid #f1f5f9;
    box-shadow: 0 2px 8px rgba(0,0,0,.04);
    transition: transform .3s ease, box-shadow .3s ease;
}

.related-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,.1);
    background: #fff;
}

.related-card h3 {
    font-size: 1.05rem;
    font-weight: 600;
    color: #111827;
    margin-bottom: .4rem;
    line-height: 1.4;
}

.related-card h3 a {
    color: inherit;
    text-decoration: none;
    transition: color .2s;
}

.related-card h3 a:hover {
    color: #2563eb;
}

.related-card p {
    color: #6b7280;
    font-size: .875rem;
    line-height: 1.5;
}

/* Footer */
.post-footer {
    background: #111827;
    color: #fff;
    padding: 3rem 0;
    text-align: center;
}

.post-footer a {
    color: #9ca3af;
    text-decoration: none;
    transition: color .2s;
}

.post-footer a:hover {
    color: #60a5fa;
}

/* Responsive */
@media(max-width:768px) {
    .post-title { font-size: 1.75rem; }
    .post-body h2 { font-size: 1.35rem; }
    .post-body h3 { font-size: 1.15rem; }
    .post-body { font-size: 1rem; }
    .post-wrapper { padding: 0 1rem; }
}