/* ============================================
   ZYNVERT BLOG – ENHANCED POLISH (2025)
   ============================================ */

/* 1. Subtle Background Depth */
.blog-list {
    background: radial-gradient(circle at top right, rgba(30, 64, 175, 0.03), transparent 400px),
                radial-gradient(circle at bottom left, rgba(16, 185, 129, 0.03), transparent 400px);
}

/* 2. Enhanced Card Interaction */
.post-card {
    border: 1px solid rgba(226, 232, 240, 0.8);
    backdrop-filter: blur(8px);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), 
                box-shadow 0.4s ease, 
                border-color 0.3s ease;
}

.post-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 4px;
    background: linear-gradient(90deg, var(--brand), var(--accent));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.5s ease;
}

.post-card:hover::before {
    transform: scaleX(1);
}

/* 3. Typography & Spacing Polish */
.post-card h2 {
    font-size: 1.6rem;
    letter-spacing: -0.02em;
    margin-bottom: 1.2rem;
}

.post-card .meta {
    font-family: 'Inter', sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-size: 0.75rem;
    opacity: 0.8;
}

/* 4. Modern Category Badge (Glassmorphism) */
.post-category {
    background: rgba(30, 64, 175, 0.08);
    border: 1px solid rgba(30, 64, 175, 0.1);
    backdrop-filter: blur(4px);
    color: var(--brand-light);
    padding: 6px 14px;
    font-size: 0.7rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.02);
}

/* 5. Animated "Read More" Arrow */
.read-more svg {
    transition: transform 0.3s ease;
}

.read-more:hover {
    text-decoration: none;
    color: var(--accent);
}

/* 6. Featured Post Style (Optional) 
   Apply this class to your first article for impact
*/
.post-card.featured {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    background: linear-gradient(to right, #ffffff, #f0f9ff);
}

/* 7. Image placeholder (if you add thumbnails later) */
.post-image-placeholder {
    width: 100%;
    height: 200px;
    background: #e2e8f0;
    border-radius: 12px;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--muted);
    font-weight: 600;
}

/* Small screen adjustments for the new styles */
@media (max-width: 768px) {
    .post-card.featured {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .post-card:hover {
        transform: translateY(-5px); /* Less aggressive on mobile */
    }
}/* ============================================
   ZYNVERT BLOG POST PAGE – PROFESSIONAL 2025
   Beautiful Reading Experience • SEO Optimized
   ============================================ */

/* -------------------------------------------
   1. POST PAGE CONTAINER
   ------------------------------------------- */
.post-page {
    padding: 4rem 0 8rem;
    background: 
        radial-gradient(circle at 15% 8%, rgba(30, 64, 175, 0.03), transparent 450px),
        radial-gradient(circle at 85% 92%, rgba(16, 185, 129, 0.03), transparent 450px),
        var(--bg);
}

/* -------------------------------------------
   2. ARTICLE WRAPPER
   ------------------------------------------- */
.post {
    max-width: 820px;
    margin: 0 auto;
    background: var(--surface);
    border-radius: 24px;
    padding: 4rem 3.5rem;
    box-shadow: 
        0 4px 20px rgba(10, 29, 86, 0.06),
        0 1px 3px rgba(0, 0, 0, 0.02);
    border: 1px solid rgba(226, 232, 240, 0.6);
}

/* -------------------------------------------
   3. POST TITLE (H1)
   ------------------------------------------- */
.post h1 {
    font-size: clamp(2rem, 4vw, 2.8rem);
    font-weight: 800;
    color: var(--brand);
    line-height: 1.25;
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
    background: linear-gradient(135deg, var(--brand), var(--brand-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* -------------------------------------------
   4. META INFORMATION (DATE & AUTHOR)
   ------------------------------------------- */
.post .meta {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.9rem;
    color: var(--muted);
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 2px solid var(--border);
    font-weight: 600;
}

.post .meta::before {
    content: '📅';
    font-size: 1.1rem;
}

/* -------------------------------------------
   5. MAIN CONTENT PARAGRAPHS
   ------------------------------------------- */
.post p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #334155;
    margin-bottom: 1.8rem;
    text-align: justify;
}

.post p:first-of-type {
    font-size: 1.2rem;
    color: #1e293b;
    line-height: 1.9;
}

/* -------------------------------------------
   6. SECTION STYLING
   ------------------------------------------- */
.post section {
    margin: 3.5rem 0;
    padding-top: 2rem;
}

.post section:first-of-type {
    padding-top: 0;
}

/* -------------------------------------------
   7. HEADINGS (H2, H3, H4)
   ------------------------------------------- */
.post h2 {
    font-size: 2rem;
    font-weight: 800;
    color: var(--brand);
    margin: 3.5rem 0 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 3px solid var(--border);
    letter-spacing: -0.01em;
    position: relative;
}

.post h2::before {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, var(--brand), var(--accent));
    border-radius: 2px;
}

.post h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--brand-light);
    margin: 2.5rem 0 1.2rem;
    letter-spacing: -0.01em;
}

.post h4 {
    font-size: 1.25rem;
    font-weight: 700;
    color: #475569;
    margin: 2rem 0 1rem;
}

/* -------------------------------------------
   8. LISTS (UL & OL)
   ------------------------------------------- */
.post ul,
.post ol {
    margin: 1.5rem 0 2rem 1.5rem;
    padding-left: 1rem;
}

.post ul li,
.post ol li {
    font-size: 1.05rem;
    line-height: 1.8;
    color: #334155;
    margin-bottom: 0.8rem;
    padding-left: 0.5rem;
}

.post ul li::marker {
    color: var(--brand-light);
    font-size: 1.2em;
}

.post ol li::marker {
    color: var(--brand-light);
    font-weight: 700;
}

/* -------------------------------------------
   9. LINKS
   ------------------------------------------- */
.post a {
    color: var(--brand-light);
    font-weight: 600;
    text-decoration: none;
    border-bottom: 2px solid transparent;
    transition: border-color 0.3s ease, color 0.3s ease;
}

.post a:hover {
    color: var(--accent);
    border-bottom-color: var(--accent);
}

/* -------------------------------------------
   10. STRONG & EMPHASIS
   ------------------------------------------- */
.post strong {
    font-weight: 700;
    color: var(--brand);
}

.post em {
    font-style: italic;
    color: #475569;
}

/* -------------------------------------------
   11. BLOCKQUOTE (Optional Enhancement)
   ------------------------------------------- */
.post blockquote {
    margin: 2.5rem 0;
    padding: 1.5rem 2rem;
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    border-left: 5px solid var(--brand-light);
    border-radius: 0 12px 12px 0;
    font-style: italic;
    color: #475569;
    box-shadow: 0 4px 15px rgba(10, 29, 86, 0.05);
}

.post blockquote p {
    margin-bottom: 0;
}

/* -------------------------------------------
   12. CODE BLOCKS (Optional)
   ------------------------------------------- */
.post code {
    background: #f1f5f9;
    color: #0f172a;
    padding: 0.25rem 0.5rem;
    border-radius: 6px;
    font-family: 'Courier New', monospace;
    font-size: 0.95em;
}

.post pre {
    background: #0f172a;
    color: #e2e8f0;
    padding: 1.5rem;
    border-radius: 12px;
    overflow-x: auto;
    margin: 2rem 0;
}

.post pre code {
    background: none;
    color: inherit;
    padding: 0;
}

/* -------------------------------------------
   13. IMAGES (If Added Later)
   ------------------------------------------- */
.post img {
    width: 100%;
    height: auto;
    border-radius: 16px;
    margin: 2.5rem 0;
    box-shadow: 0 8px 30px rgba(10, 29, 86, 0.12);
}

/* -------------------------------------------
   14. BACK TO BLOG LINK
   ------------------------------------------- */
.post > p:last-child {
    margin-top: 4rem;
    padding-top: 2.5rem;
    border-top: 2px solid var(--border);
}

.post > p:last-child a {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, var(--brand), var(--brand-light));
    color: white;
    padding: 14px 28px;
    border-radius: 12px;
    font-weight: 700;
    text-decoration: none;
    border: none;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 8px 20px rgba(10, 29, 86, 0.15);
}

.post > p:last-child a::before {
    content: '←';
    font-size: 1.3rem;
    transition: transform 0.3s ease;
}

.post > p:last-child a:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(10, 29, 86, 0.25);
}

.post > p:last-child a:hover::before {
    transform: translateX(-5px);
}

/* -------------------------------------------
   15. TABLE OF CONTENTS (Optional)
   ------------------------------------------- */
.post-toc {
    background: #f8fafc;
    border: 2px solid var(--border);
    border-radius: 16px;
    padding: 2rem;
    margin: 2.5rem 0;
}

.post-toc h3 {
    font-size: 1.25rem;
    color: var(--brand);
    margin: 0 0 1rem 0;
}

.post-toc ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.post-toc ul li {
    margin: 0.5rem 0;
}

.post-toc ul li a {
    color: var(--brand-light);
    text-decoration: none;
    font-weight: 600;
}

/* -------------------------------------------
   16. CALL-TO-ACTION BOX
   ------------------------------------------- */
.post-cta {
    background: linear-gradient(135deg, var(--brand), var(--brand-light));
    color: white;
    padding: 2.5rem;
    border-radius: 20px;
    margin: 3rem 0;
    text-align: center;
    box-shadow: 0 15px 40px rgba(10, 29, 86, 0.2);
}

.post-cta h3 {
    color: white;
    margin: 0 0 1rem 0;
    font-size: 1.8rem;
}

.post-cta p {
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 1.5rem;
}

.post-cta a {
    display: inline-block;
    background: white;
    color: var(--brand);
    padding: 14px 32px;
    border-radius: 10px;
    font-weight: 700;
    text-decoration: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.post-cta a:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

/* -------------------------------------------
   17. HIGHLIGHT BOX (Optional)
   ------------------------------------------- */
.post-highlight {
    background: #fef3c7;
    border-left: 5px solid #f59e0b;
    padding: 1.5rem 2rem;
    margin: 2rem 0;
    border-radius: 0 12px 12px 0;
}

.post-highlight p {
    margin: 0;
    color: #78350f;
}

/* -------------------------------------------
   18. RESPONSIVE DESIGN
   ------------------------------------------- */

/* Tablet (768px - 1024px) */
@media (max-width: 1024px) {
    .post {
        padding: 3rem 2.5rem;
    }
    
    .post h1 {
        font-size: 2.2rem;
    }
    
    .post h2 {
        font-size: 1.75rem;
    }
}

/* Mobile (≤640px) */
@media (max-width: 640px) {
    .post-page {
        padding: 2rem 0 4rem;
    }
    
    .post {
        padding: 2rem 1.5rem;
        border-radius: 20px;
        margin: 0 1rem;
    }
    
    .post h1 {
        font-size: 1.75rem;
        margin-bottom: 1rem;
    }
    
    .post .meta {
        font-size: 0.85rem;
        margin-bottom: 2rem;
        padding-bottom: 1.5rem;
    }
    
    .post p {
        font-size: 1rem;
        line-height: 1.7;
        text-align: left;
    }
    
    .post p:first-of-type {
        font-size: 1.05rem;
    }
    
    .post h2 {
        font-size: 1.5rem;
        margin: 2.5rem 0 1rem;
    }
    
    .post h3 {
        font-size: 1.25rem;
        margin: 2rem 0 1rem;
    }
    
    .post ul,
    .post ol {
        margin-left: 0.5rem;
        padding-left: 0.75rem;
    }
    
    .post blockquote {
        padding: 1rem 1.5rem;
        margin: 1.5rem 0;
    }
    
    .post > p:last-child {
        margin-top: 3rem;
        padding-top: 2rem;
    }
    
    .post > p:last-child a {
        padding: 12px 20px;
        font-size: 0.95rem;
    }
}

/* Very Small Screens (≤360px) */
@media (max-width: 360px) {
    .post {
        padding: 1.5rem 1rem;
        margin: 0 0.5rem;
    }
    
    .post h1 {
        font-size: 1.5rem;
    }
    
    .post h2 {
        font-size: 1.35rem;
    }
}

/* -------------------------------------------
   19. PRINT STYLES
   ------------------------------------------- */
@media print {
    .post-page {
        background: white;
        padding: 0;
    }
    
    .post {
        box-shadow: none;
        border: none;
        padding: 0;
    }
    
    .post h1 {
        color: black;
        -webkit-text-fill-color: black;
    }
    
    .post a {
        color: black;
        text-decoration: underline;
    }
    
    .post > p:last-child {
        display: none;
    }
}

/* -------------------------------------------
   20. ACCESSIBILITY IMPROVEMENTS
   ------------------------------------------- */
.post a:focus-visible {
    outline: 3px solid var(--accent);
    outline-offset: 4px;
    border-radius: 4px;
}

/* Smooth scroll for anchor links */
html {
    scroll-behavior: smooth;
    scroll-padding-top: 100px;
}

/* Reduced motion for accessibility */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    html {
        scroll-behavior: auto;
    }
}

/* -------------------------------------------
   21. READING PROGRESS BAR (Optional)
   ------------------------------------------- */
.reading-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--brand), var(--accent));
    z-index: 9999;
    transition: width 0.2s ease;
}

/* -------------------------------------------
   22. SHARE BUTTONS (Optional)
   ------------------------------------------- */
.post-share {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin: 3rem 0;
    padding: 2rem 0;
    border-top: 2px solid var(--border);
    border-bottom: 2px solid var(--border);
}

.post-share span {
    font-weight: 700;
    color: var(--brand);
    margin-right: 8px;
}

.post-share a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: var(--surface);
    border: 2px solid var(--border);
    border-radius: 50%;
    color: var(--brand-light);
    text-decoration: none;
    transition: all 0.3s ease;
}

.post-share a:hover {
    background: var(--brand-light);
    color: white;
    border-color: var(--brand-light);
    transform: translateY(-4px);
}/* ============================================
   ZYNVERT BLOG POST – PROFESSIONAL LONG-FORM
   ============================================ */

:root {
    --post-width: 800px; /* Optimal reading width */
    --line-height: 1.8;
}

/* 1. Layout & Vertical Rhythm */
.post-page {
    padding-top: 4rem;
    padding-bottom: 6rem;
    max-width: var(--post-width);
    margin: 0 auto;
}

.post section {
    margin-bottom: 3.5rem;
}

/* 2. Typography */
.post h1 {
    font-size: clamp(2.2rem, 5vw, 3.2rem);
    font-weight: 800;
    line-height: 1.1;
    color: var(--brand);
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

.post .meta {
    font-size: 0.95rem;
    color: var(--muted);
    margin-bottom: 3rem;
    display: block;
}

.post h2 {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--brand);
    margin-top: 4rem;
    margin-bottom: 1.25rem;
    border-bottom: 2px solid var(--border);
    padding-bottom: 0.5rem;
}

.post h3 {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--brand-light);
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.post p {
    font-size: 1.125rem;
    line-height: var(--line-height);
    color: var(--text);
    margin-bottom: 1.5rem;
}

/* 3. Lists */
.post ul, .post ol {
    margin-bottom: 2rem;
    padding-left: 1.5rem;
}

.post li {
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
    line-height: 1.6;
}

/* 4. Comparison Table */
.post table {
    width: 100%;
    border-collapse: collapse;
    margin: 2.5rem 0;
    background: var(--surface);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.post th, .post td {
    padding: 1rem 1.5rem;
    text-align: left;
    border-bottom: 1px solid var(--border);
}

.post th {
    background-color: var(--brand);
    color: white;
    font-weight: 600;
}

.post tr:last-child td {
    border-bottom: none;
}

/* 5. Code & Technical blocks */
.post pre {
    background: #1e293b;
    color: #f8fafc;
    padding: 1.5rem;
    border-radius: 12px;
    overflow-x: auto;
    margin: 2rem 0;
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.9rem;
    border: 1px solid #334155;
}

.post code {
    background: rgba(10, 29, 86, 0.05);
    padding: 0.2rem 0.4rem;
    border-radius: 4px;
    font-size: 0.9em;
}

/* 6. Links & CTA */
.post a {
    color: var(--brand-light);
    text-decoration: underline;
    text-underline-offset: 4px;
    font-weight: 600;
    transition: color 0.2s;
}

.post a:hover {
    color: var(--accent);
}

/* 7. Image Diagram placeholders (Added instruction value) */
[class^="Image of"] {
    display: block;
    margin: 2rem 0;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: #f1f5f9;
}

/* 8. Mobile Responsiveness */
@media (max-width: 768px) {
    .post-page {
        padding: 2rem 1.5rem;
    }
    
    .post h1 { font-size: 2rem; }
    .post h2 { font-size: 1.5rem; }
    
    /* Responsive Table */
    .post table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }
}