/* Blog-specific styles for LVMRE */

/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Open Sans', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #ffffff;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Blog post header */
.blog-post {
    margin-top: 80px; /* Account for fixed header */
}

.post-header {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    color: white;
    padding: 60px 0;
    text-align: center;
}

.post-header h1 {
    font-family: 'Montserrat', sans-serif;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
}

.post-meta {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 30px;
    font-size: 0.9rem;
    opacity: 0.9;
}

.post-meta .author {
    color: #FFD700;
}

.featured-image {
    margin-top: 30px;
}

.featured-image img {
    width: 100%;
    max-width: 800px;
    height: 400px;
    object-fit: cover;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.image-caption {
    font-size: 0.85rem;
    color: #ccc;
    margin-top: 10px;
    font-style: italic;
}

/* Post content */
.post-content {
    max-width: 900px;
    margin: 0 auto;
    padding: 60px 20px;
}

.intro-section {
    margin-bottom: 50px;
}

.lead {
    font-size: 1.2rem;
    color: #555;
    margin-bottom: 20px;
    font-weight: 500;
    line-height: 1.7;
}

/* Table of contents */
.table-of-contents {
    background: #f8f9fa;
    border-left: 4px solid #FFD700;
    padding: 30px;
    margin: 40px 0;
    border-radius: 8px;
}

.table-of-contents h2 {
    font-family: 'Montserrat', sans-serif;
    color: #333;
    margin-bottom: 20px;
    font-size: 1.3rem;
}

.table-of-contents ul {
    list-style: none;
    columns: 2;
    column-gap: 30px;
}

.table-of-contents li {
    margin-bottom: 8px;
    break-inside: avoid;
}

.table-of-contents a {
    color: #555;
    text-decoration: none;
    padding: 5px 0;
    display: block;
    transition: color 0.3s ease;
}

.table-of-contents a:hover {
    color: #FFD700;
    text-decoration: underline;
}

/* Section styling */
section {
    margin: 60px 0;
}

h2 {
    font-family: 'Montserrat', sans-serif;
    font-size: 2rem;
    color: #2d2d2d;
    margin-bottom: 20px;
    border-bottom: 2px solid #FFD700;
    padding-bottom: 10px;
}

h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.4rem;
    color: #333;
    margin: 30px 0 15px 0;
}

h4 {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.1rem;
    color: #444;
    margin: 20px 0 10px 0;
}

p {
    margin-bottom: 16px;
    line-height: 1.7;
}

/* Info boxes and components */
.info-box {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 10px;
    padding: 30px;
    margin: 30px 0;
}

.component-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    margin-top: 20px;
}

.component {
    background: white;
    padding: 20px;
    border-radius: 8px;
    border-left: 4px solid #FFD700;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.component strong {
    display: block;
    font-family: 'Montserrat', sans-serif;
    color: #2d2d2d;
    margin-bottom: 10px;
    font-size: 1.1rem;
}

.component ul {
    list-style: none;
    padding-left: 0;
}

.component li {
    padding: 4px 0;
    color: #666;
}

.component li:before {
    content: "•";
    color: #FFD700;
    font-weight: bold;
    margin-right: 8px;
}

/* Tables */
table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

th, td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #e9ecef;
}

th {
    background: #2d2d2d;
    color: white;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
}

tr:hover {
    background-color: #f8f9fa;
}

/* Code blocks */
.code-block {
    background: #2d2d2d;
    border-radius: 8px;
    padding: 20px;
    margin: 20px 0;
    overflow-x: auto;
}

.code-block pre {
    color: #f8f8f2;
    font-family: 'Courier New', monospace;
    margin: 0;
    white-space: pre;
}

/* Characteristics grid */
.characteristics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin: 30px 0;
}

.characteristic {
    background: white;
    padding: 25px;
    border-radius: 10px;
    border: 1px solid #e9ecef;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.characteristic:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.characteristic h4 {
    font-size: 1.2rem;
    margin-bottom: 15px;
    color: #2d2d2d;
}

/* Lists */
.application-list {
    list-style: none;
    padding: 0;
}

.application-list li {
    background: #f8f9fa;
    margin: 10px 0;
    padding: 15px 20px;
    border-left: 4px solid #FFD700;
    border-radius: 0 8px 8px 0;
}

.application-list li strong {
    color: #2d2d2d;
}

/* Comparison table */
.comparison-table {
    margin: 30px 0;
    overflow-x: auto;
}

/* Synergy benefits */
.synergy-benefits {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin: 30px 0;
}

.benefit {
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
    color: white;
    padding: 25px;
    border-radius: 10px;
    text-align: center;
}

.benefit h4 {
    color: white;
    margin-bottom: 15px;
    font-size: 1.1rem;
}

/* Architecture diagrams */
.architecture-diagram {
    background: #f8f9fa;
    padding: 30px;
    border-radius: 10px;
    margin: 30px 0;
}

.tier-explanation {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

.tier {
    background: white;
    padding: 20px;
    border-radius: 8px;
    border-top: 4px solid #FFD700;
    text-align: center;
}

.tier strong {
    display: block;
    color: #2d2d2d;
    margin-bottom: 10px;
    font-family: 'Montserrat', sans-serif;
}

/* Cost breakdown */
.cost-breakdown {
    background: #f8f9fa;
    padding: 30px;
    border-radius: 10px;
    margin: 30px 0;
}

.server-cost-breakdown {
    background: #f8f9fa;
    padding: 30px;
    border-radius: 10px;
    margin: 30px 0;
}

/* ROI analysis */
.roi-analysis {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 30px;
    margin: 30px 0;
}

.roi-scenario {
    background: white;
    padding: 25px;
    border-radius: 10px;
    border: 1px solid #e9ecef;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.roi-scenario h4 {
    color: #2d2d2d;
    margin-bottom: 15px;
    font-family: 'Montserrat', sans-serif;
}

/* Performance metrics */
.performance-metrics {
    margin: 30px 0;
}

.metrics-table {
    font-size: 0.9rem;
}

/* Load balancing */
.algorithm-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

.algorithm {
    background: white;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #e9ecef;
    text-align: center;
}

.algorithm strong {
    display: block;
    color: #2d2d2d;
    margin-bottom: 10px;
    font-family: 'Montserrat', sans-serif;
}

.use-case-item {
    display: block;
    font-size: 0.85rem;
    color: #666;
    font-style: italic;
    margin-top: 10px;
}

/* Use cases */
.use-case-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 25px;
    margin: 30px 0;
}

.use-case {
    background: white;
    padding: 25px;
    border-radius: 10px;
    border: 1px solid #e9ecef;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.use-case h4 {
    font-size: 1.2rem;
    margin-bottom: 15px;
    color: #2d2d2d;
}

/* Hybrid example */
.hybrid-example {
    background: #f8f9fa;
    padding: 30px;
    border-radius: 10px;
    margin: 30px 0;
}

.hybrid-architecture {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

/* Trends */
.trends-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin: 30px 0;
}

.trend {
    background: white;
    padding: 25px;
    border-radius: 10px;
    border: 1px solid #e9ecef;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.trend h4 {
    color: #2d2d2d;
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.trend-impact {
    background: #f8f9fa;
    padding: 10px 15px;
    border-radius: 6px;
    margin-top: 15px;
    font-size: 0.9rem;
}

/* Roadmap */
.roadmap {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin: 30px 0;
}

.roadmap-item {
    background: linear-gradient(135deg, #2d2d2d 0%, #1a1a1a 100%);
    color: white;
    padding: 25px;
    border-radius: 10px;
}

.roadmap-item strong {
    display: block;
    color: #FFD700;
    font-size: 1.1rem;
    margin-bottom: 15px;
    font-family: 'Montserrat', sans-serif;
}

/* Decision framework */
.decision-matrix {
    overflow-x: auto;
    margin: 30px 0;
}

.criteria-table {
    font-size: 0.9rem;
}

.decision-tree {
    background: #f8f9fa;
    padding: 30px;
    border-radius: 10px;
    margin: 30px 0;
}

.decision-node {
    text-align: center;
}

.branches {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.branch {
    background: white;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.sub-branch {
    margin-top: 10px;
}

.yes, .no {
    display: block;
    margin: 5px 0;
    font-size: 0.9rem;
}

.yes {
    color: #28a745;
}

.no {
    color: #dc3545;
}

/* Checklists */
.checklist-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 30px;
    margin: 30px 0;
}

.checklist {
    background: white;
    padding: 25px;
    border-radius: 10px;
    border: 1px solid #e9ecef;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.checklist h4 {
    color: #2d2d2d;
    margin-bottom: 20px;
    font-family: 'Montserrat', sans-serif;
}

.checklist ul {
    list-style: none;
    padding: 0;
}

.checklist li {
    padding: 8px 0;
    border-bottom: 1px solid #f0f0f0;
}

/* FAQ */
.faq-container {
    margin: 30px 0;
}

.faq-item {
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    margin: 15px 0;
    padding: 25px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.faq-item h3 {
    color: #2d2d2d;
    margin-bottom: 15px;
    font-family: 'Montserrat', sans-serif;
    font-size: 1.1rem;
}

.faq-item p {
    margin-bottom: 0;
    line-height: 1.6;
}

/* Troubleshooting */
.troubleshooting-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 25px;
    margin: 30px 0;
}

.issue {
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.issue h3 {
    color: #dc3545;
    margin-bottom: 20px;
    font-family: 'Montserrat', sans-serif;
}

.solution {
    margin-top: 15px;
}

.solution h4 {
    color: #2d2d2d;
    margin: 15px 0 10px 0;
    font-size: 1rem;
}

.solution ol, .solution ul {
    margin-left: 20px;
}

/* Conclusion and CTA */
.conclusion {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 50px 30px;
    border-radius: 15px;
    margin: 60px 0;
    text-align: center;
}

.key-takeaways {
    background: white;
    padding: 30px;
    border-radius: 10px;
    margin: 30px 0;
    text-align: left;
}

.key-takeaways h3 {
    color: #2d2d2d;
    margin-bottom: 20px;
    font-family: 'Montserrat', sans-serif;
}

.key-takeaways ul {
    list-style: none;
    padding: 0;
}

.key-takeaways li {
    padding: 8px 0;
    border-bottom: 1px solid #f0f0f0;
}

.key-takeaways li:before {
    content: "✓";
    color: #28a745;
    font-weight: bold;
    margin-right: 10px;
}

.cta-section {
    background: linear-gradient(135deg, #2d2d2d 0%, #1a1a1a 100%);
    color: white;
    padding: 40px;
    border-radius: 10px;
    margin: 40px 0;
}

.cta-section h3 {
    color: #FFD700;
    margin-bottom: 15px;
    font-family: 'Montserrat', sans-serif;
}

.cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-top: 25px;
    flex-wrap: wrap;
}

.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-family: 'Montserrat', sans-serif;
}

.btn-primary {
    background: #FFD700;
    color: #2d2d2d;
}

.btn-primary:hover {
    background: #FFA500;
    transform: translateY(-2px);
}

.btn-secondary {
    background: transparent;
    color: white;
    border: 2px solid #FFD700;
}

.btn-secondary:hover {
    background: #FFD700;
    color: #2d2d2d;
}

/* Author bio */
.author-bio {
    background: #f8f9fa;
    padding: 40px 30px;
    border-radius: 15px;
    margin: 60px 0;
}

.author-info {
    display: flex;
    gap: 30px;
    align-items: center;
    max-width: 800px;
    margin: 0 auto;
}

.author-image {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid #FFD700;
}

.bio-text h3 {
    color: #2d2d2d;
    margin-bottom: 15px;
    font-family: 'Montserrat', sans-serif;
}

.social-links {
    margin-top: 15px;
}

.social-links a {
    color: #FFD700;
    text-decoration: none;
    margin-right: 15px;
    font-weight: 500;
}

.social-links a:hover {
    text-decoration: underline;
}

/* Related posts */
.related-posts {
    margin: 60px 0;
}

.related-posts h3 {
    color: #2d2d2d;
    margin-bottom: 30px;
    font-family: 'Montserrat', sans-serif;
    text-align: center;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
}

.related-post {
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.related-post:hover {
    transform: translateY(-5px);
}

.related-post h4 {
    margin-bottom: 10px;
}

.related-post h4 a {
    color: #2d2d2d;
    text-decoration: none;
}

.related-post h4 a:hover {
    color: #FFD700;
}

/* Responsive design */
@media (max-width: 768px) {
    .post-header h1 {
        font-size: 2rem;
    }
    
    .post-meta {
        flex-direction: column;
        gap: 10px;
    }
    
    .table-of-contents ul {
        columns: 1;
    }
    
    .component-grid,
    .characteristics-grid,
    .synergy-benefits,
    .roi-analysis,
    .algorithm-grid,
    .use-case-grid,
    .trends-grid,
    .roadmap,
    .checklist-container,
    .troubleshooting-grid,
    .related-grid {
        grid-template-columns: 1fr;
    }
    
    .author-info {
        flex-direction: column;
        text-align: center;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .featured-image img {
        height: 250px;
    }
    
    table {
        font-size: 0.8rem;
    }
    
    .post-content {
        padding: 40px 15px;
    }
}

@media (max-width: 480px) {
    .post-header {
        padding: 40px 0;
    }
    
    .post-header h1 {
        font-size: 1.6rem;
    }
    
    h2 {
        font-size: 1.5rem;
    }
    
    .featured-image img {
        height: 200px;
    }
    
    .info-box,
    .cost-breakdown,
    .server-cost-breakdown,
    .architecture-diagram,
    .hybrid-example,
    .decision-tree {
        padding: 20px;
    }
}
