/* ========================================
   BLOG POST STYLES - MODERN & BEAUTIFUL
   Matches Homepage Aesthetic
   ======================================== */

/* Hero Section with Gradient */
.post-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 8rem 0 4rem;
    color: white;
    position: relative;
    overflow: hidden;
}

.post-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="grid" width="40" height="40" patternUnits="userSpaceOnUse"><path d="M 40 0 L 0 0 0 40" fill="none" stroke="rgba(255,255,255,0.05)" stroke-width="1"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
}

.post-header .container {
    position: relative;
    z-index: 2;
}

.breadcrumbs {
    font-size: 0.9rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.breadcrumbs a {
    color: white;
    text-decoration: none;
    transition: opacity 0.3s;
}

.breadcrumbs a:hover {
    opacity: 0.7;
}

.breadcrumbs span {
    opacity: 0.7;
}

.post-header h1 {
    font-size: 3rem;
    font-weight: 700;
    line-height: 1.2;
    margin: 0 0 1.5rem 0;
    max-width: 900px;
}

.post-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 0.95rem;
    opacity: 0.9;
    margin-bottom: 2rem;
}

.post-intro {
    font-size: 1.25rem;
    line-height: 1.8;
    max-width: 800px;
    opacity: 0.95;
    margin: 0;
}

/* Featured Image */
.featured-image {
    margin: -3rem auto 4rem;
    max-width: 1200px;
    padding: 0 2rem;
}

.featured-image img {
    width: 100%;
    height: auto;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.2);
    transition: transform 0.3s ease;
}

.featured-image img:hover {
    transform: translateY(-5px);
}

/* Article Content */
.post-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 2rem 6rem;
}

.post-content h2 {
    font-size: 2.25rem;
    font-weight: 700;
    margin: 4rem 0 1.5rem;
    color: #1a202c;
    position: relative;
    padding-bottom: 1rem;
}

.post-content h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 4px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 2px;
}

.post-content h3 {
    font-size: 1.75rem;
    font-weight: 600;
    margin: 3rem 0 1rem;
    color: #2d3748;
}

.post-content h4 {
    font-size: 1.4rem;
    font-weight: 600;
    margin: 2rem 0 1rem;
    color: #2d3748;
}

.post-content p {
    font-size: 1.125rem;
    line-height: 1.8;
    color: #4a5568;
    margin: 1.5rem 0;
}

.post-content a {
    color: #667eea;
    text-decoration: none;
    border-bottom: 2px solid rgba(102, 126, 234, 0.2);
    transition: all 0.3s;
}

.post-content a:hover {
    color: #764ba2;
    border-bottom-color: #764ba2;
}

.post-content ul,
.post-content ol {
    margin: 1.5rem 0;
    padding-left: 2rem;
}

.post-content li {
    font-size: 1.125rem;
    line-height: 1.8;
    color: #4a5568;
    margin: 0.75rem 0;
}

.post-content strong {
    color: #2d3748;
    font-weight: 600;
}

/* Stat Box - Beautiful Card */
.stat-box {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 16px;
    padding: 3rem;
    text-align: center;
    margin: 3rem 0;
    color: white;
    box-shadow: 0 10px 40px rgba(102, 126, 234, 0.3);
    transform: translateY(0);
    transition: transform 0.3s ease;
}

.stat-box:hover {
    transform: translateY(-5px);
}

.stat-number {
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1;
}

.stat-label {
    font-size: 1.25rem;
    opacity: 0.95;
    font-weight: 500;
}

/* Info Box - Card Style */
.info-box {
    background: linear-gradient(135deg, #f6f8fb 0%, #e9ecf5 100%);
    border-left: 4px solid #667eea;
    border-radius: 12px;
    padding: 2rem;
    margin: 2.5rem 0;
}

.info-box h4 {
    color: #667eea;
    margin-top: 0;
    font-size: 1.3rem;
}

.info-box p {
    margin-bottom: 0;
}

/* Comparison Table - Modern Design */
.comparison-table {
    width: 100%;
    margin: 3rem 0;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.comparison-table table {
    width: 100%;
    border-collapse: collapse;
}

.comparison-table th {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 1.25rem;
    text-align: left;
    font-weight: 600;
    font-size: 1.1rem;
}

.comparison-table td {
    padding: 1.25rem;
    border-bottom: 1px solid #e2e8f0;
    font-size: 1rem;
}

.comparison-table tr:hover {
    background: #f7fafc;
}

.comparison-table tr:last-child td {
    border-bottom: none;
}

/* Highlight Box */
.highlight-box {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border-left: 4px solid #f59e0b;
    border-radius: 12px;
    padding: 2rem;
    margin: 2.5rem 0;
}

.highlight-box strong {
    color: #92400e;
}

/* Callout Paragraphs */
.post-content p.callout {
    background: linear-gradient(135deg, #e0e7ff 0%, #c7d2fe 100%);
    border-left: 4px solid #667eea;
    border-radius: 12px;
    padding: 1.5rem 2rem;
    margin: 2.5rem 0;
    font-size: 1.15rem;
    color: #3730a3;
}

.post-content p.callout strong {
    color: #312e81;
}

/* Lists Styling */
.post-content ul.cost-breakdown,
.post-content ul.research-list,
.post-content ul.ideal-for-list {
    background: white;
    border-radius: 12px;
    padding: 2rem 2rem 2rem 3.5rem;
    margin: 2rem 0;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.post-content ul.cost-breakdown li,
.post-content ul.research-list li,
.post-content ul.ideal-for-list li {
    position: relative;
    padding-left: 0.5rem;
}

.post-content ul.cost-breakdown li::marker,
.post-content ul.research-list li::marker,
.post-content ul.ideal-for-list li::marker {
    color: #667eea;
}

/* Call to Action Box */
.cta-box {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 16px;
    padding: 3rem;
    text-align: center;
    margin: 4rem 0;
    color: white;
    box-shadow: 0 10px 40px rgba(102, 126, 234, 0.3);
}

.cta-box h3 {
    color: white;
    margin-top: 0;
    font-size: 2rem;
}

.cta-box p {
    color: white;
    opacity: 0.95;
    font-size: 1.2rem;
}

.cta-box .btn {
    display: inline-block;
    background: white;
    color: #667eea;
    padding: 1rem 2.5rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.1rem;
    text-decoration: none;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.cta-box .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
    background: #f7fafc;
}

/* Blockquote */
.post-content blockquote {
    border-left: 4px solid #667eea;
    padding-left: 2rem;
    margin: 2.5rem 0;
    font-size: 1.3rem;
    font-style: italic;
    color: #2d3748;
}

/* Code Blocks */
.post-content code {
    background: #f7fafc;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 0.9em;
    color: #667eea;
}

.post-content pre {
    background: #1a202c;
    color: #e2e8f0;
    padding: 1.5rem;
    border-radius: 12px;
    overflow-x: auto;
    margin: 2rem 0;
}

.post-content pre code {
    background: none;
    color: inherit;
    padding: 0;
}

/* Benefits Grid */
.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin: 3rem 0;
}

.benefit-item {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    transition: all 0.3s;
    border-left: 4px solid #667eea;
}

.benefit-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.1);
    border-left-color: #764ba2;
}

.benefit-item h4 {
    margin-top: 0;
    color: #1a202c;
    font-size: 1.3rem;
}

.benefit-item p {
    margin-bottom: 0;
    color: #718096;
}

/* Related Articles Section */
.related-articles {
    background: linear-gradient(135deg, #f6f8fb 0%, #e9ecf5 100%);
    padding: 4rem 0;
    margin-top: 4rem;
}

.related-articles h3 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: #1a202c;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.related-card {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.related-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.1);
}

.related-card h4 {
    color: #1a202c;
    margin: 0 0 1rem 0;
    font-size: 1.4rem;
}

.related-card p {
    color: #718096;
    margin: 0;
    font-size: 1rem;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .post-header {
        padding: 6rem 0 3rem;
    }
    
    .post-header h1 {
        font-size: 2rem;
    }
    
    .post-intro {
        font-size: 1.1rem;
    }
    
    .featured-image {
        margin: -2rem auto 3rem;
        padding: 0 1rem;
    }
    
    .post-content {
        padding: 0 1rem 4rem;
    }
    
    .post-content h2 {
        font-size: 1.75rem;
    }
    
    .post-content h3 {
        font-size: 1.4rem;
    }
    
    .post-content p,
    .post-content li {
        font-size: 1rem;
    }
    
    .stat-number {
        font-size: 3rem;
    }
    
    .stat-label {
        font-size: 1.1rem;
    }
    
    .cta-box,
    .stat-box {
        padding: 2rem 1.5rem;
    }
    
    .related-grid {
        grid-template-columns: 1fr;
        padding: 0 1rem;
    }
}

/* Smooth Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.post-content > * {
    animation: fadeInUp 0.6s ease-out;
    animation-fill-mode: both;
}

.post-content > *:nth-child(1) { animation-delay: 0.1s; }
.post-content > *:nth-child(2) { animation-delay: 0.2s; }
.post-content > *:nth-child(3) { animation-delay: 0.3s; }
