/* Premium Blog Post Styles */

/* Post Hero */
.post-hero {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    padding: 6rem 0 8rem;
    position: relative;
    overflow: hidden;
}
.post-hero::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%2340E0D0' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.5;
}
.post-hero .container { position: relative; z-index: 1; max-width: 900px; }
.post-breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 2rem;
    font-size: 0.9rem;
}
.post-breadcrumb a { color: #94a3b8; text-decoration: none; transition: color 0.2s; }
.post-breadcrumb a:hover { color: #14b8a6; }
.post-breadcrumb span { color: #64748b; }
.post-category {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, #0f766e, #14b8a6);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1.5rem;
}
.post-hero h1 {
    font-size: 2.75rem;
    font-weight: 800;
    color: white;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}
.post-meta {
    display: flex;
    align-items: center;
    gap: 2rem;
    color: #94a3b8;
    font-size: 0.95rem;
    flex-wrap: wrap;
}
.post-meta-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.post-author {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}
.author-avatar {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #14b8a6, #0f766e);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 0.9rem;
}

/* Reading Progress */
.reading-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    background: linear-gradient(90deg, #14b8a6, #0f766e);
    z-index: 9999;
    transition: width 0.1s ease-out;
}

/* Article Content */
.post-content-wrapper {
    background: white;
    margin-top: -4rem;
    position: relative;
    z-index: 10;
}
.post-content-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 4rem 2rem;
}

/* Table of Contents */
.toc-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 1.5rem 2rem;
    margin-bottom: 3rem;
}
.toc-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    user-select: none;
}
.toc-title {
    font-size: 0.9rem;
    font-weight: 700;
    color: #0f172a;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.toc-toggle {
    background: none;
    border: none;
    color: #64748b;
    cursor: pointer;
    font-size: 1rem;
    transition: transform 0.2s;
}
.toc-list {
    list-style: none;
    padding: 0;
    margin: 1rem 0 0;
}
.toc-list.hidden { display: none; }
.toc-list li { margin: 0.5rem 0; }
.toc-list a {
    color: #475569;
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.2s;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.toc-list a::before {
    content: '→';
    color: #14b8a6;
    opacity: 0;
    transition: opacity 0.2s;
}
.toc-list a:hover { color: #14b8a6; }
.toc-list a:hover::before { opacity: 1; }

/* Article Typography */
.post-content {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #334155;
}
.post-content .lead {
    font-size: 1.25rem;
    color: #475569;
    line-height: 1.7;
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid #e2e8f0;
}
.post-content h2 {
    font-size: 1.75rem;
    font-weight: 800;
    color: #0f172a;
    margin: 3rem 0 1.25rem;
    padding-top: 1rem;
}
.post-content h3 {
    font-size: 1.35rem;
    font-weight: 700;
    color: #1e293b;
    margin: 2rem 0 1rem;
}
.post-content p { margin-bottom: 1.5rem; }
.post-content ul, .post-content ol {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
}
.post-content li {
    margin-bottom: 0.75rem;
    padding-left: 0.5rem;
}
.post-content li::marker { color: #14b8a6; }
.post-content strong { color: #0f172a; }
.post-content a { color: #14b8a6; text-decoration: none; border-bottom: 1px solid #14b8a6; }
.post-content a:hover { color: #0f766e; border-color: #0f766e; }

/* Code Blocks */
.post-content pre,
.post-code {
    background: #1e293b;
    color: #e2e8f0;
    padding: 1.5rem;
    border-radius: 12px;
    overflow-x: auto;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    font-size: 0.9rem;
    line-height: 1.6;
    margin: 1.5rem 0;
}
.post-content code {
    background: #f1f5f9;
    color: #0f766e;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-size: 0.9em;
}
.post-content pre code {
    background: none;
    color: inherit;
    padding: 0;
}

/* Tables */
.post-content table,
.post-table {
    width: 100%;
    border-collapse: collapse;
    margin: 2rem 0;
    font-size: 0.95rem;
}
.post-content th,
.post-table th {
    background: #f8fafc;
    color: #0f172a;
    font-weight: 600;
    text-align: left;
    padding: 1rem;
    border-bottom: 2px solid #e2e8f0;
}
.post-content td,
.post-table td {
    padding: 1rem;
    border-bottom: 1px solid #e2e8f0;
    color: #475569;
}
.post-content tr:hover td,
.post-table tr:hover td {
    background: #f8fafc;
}

/* Callout Boxes */
.tip-box, .warning-box, .info-box {
    padding: 1.5rem;
    border-radius: 12px;
    margin: 2rem 0;
}
.tip-box {
    background: linear-gradient(135deg, #f0fdf4 0%, #ecfdf5 100%);
    border-left: 4px solid #14b8a6;
}
.tip-box strong { color: #0f766e; display: flex; align-items: center; gap: 0.5rem; margin-bottom: 0.5rem; }
.tip-box p { margin: 0; font-size: 1rem; color: #065f46; }
.warning-box {
    background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
    border-left: 4px solid #f59e0b;
}
.warning-box strong { color: #b45309; display: flex; align-items: center; gap: 0.5rem; margin-bottom: 0.5rem; }
.warning-box p { margin: 0; font-size: 1rem; color: #92400e; }
.info-box {
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    border-left: 4px solid #3b82f6;
}
.info-box strong { color: #1d4ed8; display: flex; align-items: center; gap: 0.5rem; margin-bottom: 0.5rem; }
.info-box p { margin: 0; font-size: 1rem; color: #1e40af; }

/* CTA Box */
.post-cta {
    background: linear-gradient(135deg, #0f766e 0%, #14b8a6 100%);
    border-radius: 16px;
    padding: 2.5rem;
    margin: 3rem 0;
    display: flex;
    align-items: center;
    gap: 2rem;
    color: white;
}
.post-cta-icon {
    font-size: 3.5rem;
    flex-shrink: 0;
}
.post-cta-content h4 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}
.post-cta-content p {
    opacity: 0.9;
    margin-bottom: 1rem;
    font-size: 1rem;
}
.post-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: white;
    color: #0f766e;
    padding: 0.875rem 1.5rem;
    border-radius: 10px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
}
.post-cta-btn:hover { transform: translateY(-2px); box-shadow: 0 10px 20px rgba(0,0,0,0.2); }

/* Post Footer */
.post-footer {
    border-top: 1px solid #e2e8f0;
    padding-top: 2rem;
    margin-top: 3rem;
}
.post-tags {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}
.post-tag {
    background: #f1f5f9;
    color: #475569;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.85rem;
    text-decoration: none;
    transition: all 0.2s;
}
.post-tag:hover { background: #e2e8f0; color: #0f172a; }

.post-share {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2.5rem;
}
.post-share span { color: #64748b; font-size: 0.9rem; }
.share-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: #f1f5f9;
    border-radius: 50%;
    color: #475569;
    text-decoration: none;
    font-size: 1rem;
    transition: all 0.2s;
    border: none;
    cursor: pointer;
}
.share-btn:hover { background: #14b8a6; color: white; }

/* Author Box */
.author-box {
    background: #f8fafc;
    border-radius: 16px;
    padding: 2rem;
    display: flex;
    gap: 1.5rem;
    margin-bottom: 3rem;
}
.author-box-avatar {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #14b8a6, #0f766e);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 1.5rem;
    flex-shrink: 0;
}
.author-box-info h4 {
    font-size: 1.1rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 0.5rem;
}
.author-box-info p {
    color: #64748b;
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0;
}

/* Related Posts */
.related-section {
    background: #f8fafc;
    border-radius: 16px;
    padding: 2rem;
}
.related-section h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 1.5rem;
}
.related-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}
.related-card {
    background: white;
    border-radius: 12px;
    padding: 1.25rem;
    text-decoration: none;
    transition: all 0.2s;
    border: 1px solid #e2e8f0;
}
.related-card:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(0,0,0,0.08); }
.related-card h4 {
    font-size: 1rem;
    font-weight: 600;
    color: #0f172a;
    margin-bottom: 0.5rem;
    line-height: 1.4;
}
.related-card span { color: #64748b; font-size: 0.85rem; }

/* Responsive */
@media (max-width: 768px) {
    .post-hero { padding: 4rem 0 6rem; }
    .post-hero h1 { font-size: 2rem; }
    .post-meta { gap: 1rem; }
    .post-content-container { padding: 3rem 1.5rem; }
    .post-cta { flex-direction: column; text-align: center; }
    .related-grid { grid-template-columns: 1fr; }
    .author-box { flex-direction: column; text-align: center; }
    .author-box-avatar { margin: 0 auto; }
}
