<style>
/* Blog Recommendations Component Styles - Scoped to avoid conflicts */
.blog-recommendations {
    max-width: 75rem;
    margin: 0 auto;
    padding: 2rem;
    background: transparent;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.blog-header {
    margin-bottom: 3rem;
    text-align: center;
}

.blog-header h2 {
    font-size: 2.25rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 0.75rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.blog-header p {
    color: #64748b;
    font-size: 1.125rem;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

.blog-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-bottom: 3rem;
}

@media (min-width: 768px) {
    .blog-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.75rem;
    }
}

@media (min-width: 1024px) {
    .blog-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 1.5rem;
    }
}

.blog-recommendations .blog-card {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    transition: all 0.3s ease;
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.blog-recommendations .blog-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #667eea, #764ba2);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.blog-recommendations .blog-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
    border-color: #cbd5e1;
}

.blog-recommendations .blog-card:hover::before {
    transform: scaleX(1);
}

.blog-recommendations .blog-content {
    padding: 1.75rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

@media (min-width: 1024px) {
    .blog-recommendations .blog-content {
        padding: 1.5rem;
    }
}

.blog-recommendations .blog-meta {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    margin-bottom: 1.25rem;
}

.blog-recommendations .blog-date {
    font-size: 0.875rem;
    color: #64748b;
    font-weight: 500;
}

.blog-recommendations .blog-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 1rem;
    transition: color 0.2s ease;
    line-height: 1.4;
    flex-grow: 0;
}

@media (min-width: 1024px) {
    .blog-recommendations .blog-title {
        font-size: 1rem;
        margin-bottom: 0.875rem;
    }
}

.blog-recommendations .blog-card:hover .blog-title {
    color: #667eea;
}

.blog-recommendations .blog-description {
    color: #64748b;
    margin-bottom: 1.5rem;
    line-height: 1.6;
    font-size: 0.9rem;
    flex-grow: 1;
}

@media (min-width: 1024px) {
    .blog-recommendations .blog-description {
        font-size: 0.85rem;
        margin-bottom: 1.25rem;
        line-height: 1.5;
    }
}

.blog-recommendations .blog-link {
    display: inline-flex;
    align-items: center;
    padding: 0.75rem 1.5rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    font-weight: 600;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.025em;
    margin-top: auto;
}

@media (min-width: 1024px) {
    .blog-recommendations .blog-link {
        padding: 0.625rem 1.25rem;
        font-size: 0.8rem;
    }
}

.blog-recommendations .blog-link:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.3);
}

.blog-recommendations .blog-arrow {
    width: 1rem;
    height: 1rem;
    margin-left: 0.5rem;
    transition: transform 0.2s ease;
}

.blog-recommendations .blog-card:hover .blog-arrow {
    transform: translateX(3px);
}

.blog-refresh-container {
    text-align: center;
}

.blog-refresh-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    background: white;
    color: #475569;
    border: 2px solid #e2e8f0;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.blog-refresh-btn:hover {
    background: #f8fafc;
    border-color: #667eea;
    color: #667eea;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.blog-refresh-btn:active {
    transform: translateY(0);
}

.blog-refresh-icon {
    width: 1.25rem;
    height: 1.25rem;
    transition: transform 0.3s ease;
}

.blog-refresh-btn:hover .blog-refresh-icon {
    transform: rotate(180deg);
}

/* Reading time badge */
.blog-recommendations .blog-reading-time {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(102, 126, 234, 0.1);
    color: #667eea;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
}

/* Spin animation for loading state */
@keyframes blog-spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}
</style>
