/* Blog-Specific Styles - Extracted from inline CSS */

/* ============================================
   RELATED ARTICLES SECTION (Common across all blog posts)
   ============================================ */
.related-articles {
    background-color: #f8f9fa;
    border-radius: 8px;
    padding: 30px;
    margin: 40px 0;
}

.related-articles h2 {
    color: #2c3e50;
    margin-top: 0;
    border-bottom: 3px solid #3498db;
    padding-bottom: 10px;
    margin-bottom: 1.5rem;
}

.article-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.article-card {
    background: white;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: transform 0.2s, box-shadow 0.2s;
}

.article-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.article-card h3 {
    color: #2c3e50;
    font-size: 1.1rem;
    margin-top: 0;
    margin-bottom: 10px;
}

.article-card p {
    color: #666;
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 15px;
}

.article-card a {
    color: #3498db;
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
}

.article-card a:hover {
    color: #2980b9;
    text-decoration: underline;
}

.article-tag {
    display: inline-block;
    background-color: #e8f4f8;
    color: #3498db;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.8rem;
    margin-right: 8px;
    margin-bottom: 10px;
}

/* Related Grid (Alternative layout for pages) */
.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.related-card {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    border-left: 4px solid #3498db;
    transition: transform 0.3s, box-shadow 0.3s;
}

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

.related-card h3 {
    margin-top: 0;
    margin-bottom: 0.5rem;
}

.related-card h3 a {
    color: #2c3e50;
    text-decoration: none;
}

.related-card h3 a:hover {
    color: #3498db;
}

.related-card p {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0;
}

/* ============================================
   BLOG-SPECIFIC BOXES
   ============================================ */

/* Beginner Welcome Box */
.beginner-box {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 25px;
    margin: 25px 0;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.beginner-box h3 {
    margin-top: 0;
    color: white;
}

/* Success Box */
.success-box {
    background-color: #d4edda;
    border-left: 4px solid #28a745;
    padding: 20px;
    margin: 20px 0;
    border-radius: 4px;
}

.success-box h3,
.success-box h4 {
    color: #155724;
    margin-top: 0;
}

/* Mistake Box */
.mistake-box {
    background-color: #fff3e0;
    border: 2px solid #ff9800;
    border-radius: 8px;
    padding: 20px;
    margin: 20px 0;
}

.mistake-box h4 {
    color: #e65100;
    margin-top: 0;
}

/* ============================================
   DOSE/COMPARISON TABLES
   ============================================ */
.dose-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    background-color: white;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.dose-table th {
    background-color: #2c3e50;
    color: white;
    padding: 12px;
    text-align: left;
    font-weight: 600;
}

.dose-table td {
    padding: 12px;
    border-bottom: 1px solid #ddd;
}

.dose-table tr:hover {
    background-color: #f5f5f5;
}

.dose-low {
    color: #28a745;
    font-weight: bold;
}

.dose-moderate {
    color: #ffc107;
    font-weight: bold;
}

.dose-high {
    color: #dc3545;
    font-weight: bold;
}

/* ============================================
   PRODUCT COMPARISON CARDS
   ============================================ */
.product-comparison {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

.product-card {
    background-color: white;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px;
    transition: transform 0.2s, box-shadow 0.2s;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.product-card h4 {
    margin-top: 0;
    color: #2c3e50;
}

/* ============================================
   PROS/CONS LAYOUT
   ============================================ */
.pros-cons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin: 20px 0;
}

.pros, .cons {
    padding: 20px;
    border-radius: 8px;
}

.pros {
    background-color: #d4edda;
    border-left: 4px solid #28a745;
}

.cons {
    background-color: #f8d7da;
    border-left: 4px solid #dc3545;
}

.pros h4, .cons h4 {
    margin-top: 0;
}

/* ============================================
   CHECKLIST STYLING
   ============================================ */
.checklist {
    background-color: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    margin: 20px 0;
}

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

.checklist li {
    padding: 8px 0;
    padding-left: 30px;
    position: relative;
}

.checklist li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #28a745;
    font-weight: bold;
    font-size: 18px;
}

/* ============================================
   TIMELINE STYLING (Enhanced)
   ============================================ */
.timeline {
    position: relative;
    padding: 20px 0;
    margin: 30px 0;
}

.timeline-item {
    position: relative;
    padding-left: 50px;
    margin-bottom: 30px;
}

.timeline-item:before {
    content: "";
    position: absolute;
    left: 15px;
    top: 0;
    bottom: -30px;
    width: 2px;
    background-color: #3498db;
}

.timeline-item:last-child:before {
    display: none;
}

.timeline-marker {
    position: absolute;
    left: 0;
    top: 0;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background-color: #3498db;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 14px;
}

.timeline-item h4 {
    margin-top: 0;
    margin-bottom: 0.5rem;
    color: #2c3e50;
}

.timeline-item strong {
    color: #2c3e50;
    display: block;
    margin-bottom: 0.3rem;
}

/* ============================================
   RESPONSIVE ADJUSTMENTS
   ============================================ */
@media (max-width: 768px) {
    .article-grid,
    .related-grid {
        grid-template-columns: 1fr;
    }
    
    .product-comparison {
        grid-template-columns: 1fr;
    }
    
    .pros-cons {
        grid-template-columns: 1fr;
    }
    
    .related-articles {
        padding: 20px;
        margin: 30px 0;
    }
    
    .timeline-item {
        padding-left: 40px;
    }
    
    .timeline-marker {
        width: 25px;
        height: 25px;
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    .article-card,
    .related-card,
    .product-card {
        padding: 15px;
    }
    
    .related-articles {
        padding: 15px;
    }
    
    .beginner-box,
    .mistake-box,
    .checklist {
        padding: 15px;
    }
}